diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class PFont implements PConstants { COMMENT COMMENT public int index ( char c ) { + SINGLE + SINGLE + if ( value . length == NUMBER0 ) return - NUMBER1 ; + SINGLE SINGLE SINGLE
tweak for potential obscure bug in quicksort font char lookup
<nb> public class LifecycleBasePlugin implements Plugin < ProjectInternal > { @ override public void execute ( Delete clean ) { clean . setDescription ( STRING0 ) ; - clean . setGroup ( VERIFICATION_GROUP ) ; + clean . setGroup ( BUILD_GROUP ) ; clean . delete ( new Callable < File > ( ) { public File cal...
revert clean task group back to build
<nb> public class InternalNioOutputBuffer buf [ pos ++ ] = Constants . SP ; SINGLE - String message = null ; - if ( org . apache . coyote . Constants . USE_CUSTOM_STATUS_MSG_IN_HEADER ) { - message = response . getMessage ( ) ; - } - if ( message == null ) { + String message = response . getMessage ( ...
Revert change from some work in progress that snuck in as part of an unrelated commit
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Clarify the diagram
<nb> public final class HistoryGuru { COMMENT COMMENT private HistoryGuru ( ) { - if ( Boolean . getBoolean ( STRING0 ) ) { + if ( Boolean . getBoolean ( STRING1 ) ) { + SINGLE historyCache = new JDBCHistoryCache ( ) ; } else { historyCache = new FileHistoryCache ( ) ;
Changed property name missing from previous commit
<nb> public class DefaultGitHubDownloadsRepository implements GitHubDownloadsReposito applyCredentialsTo ( repository . getCredentials ( ) ) ; ArtifactRepositoryInternal repositoryInternal = toArtifactRepositoryInternal ( repository ) ; - SINGLE - SINGLE MavenResolver resolver = toMavenResolver ( repository...
Removed a TODO
<nb> public class Element extends Node { } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Element extends Node { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT - public Elements select ( String query ) { - return Selector . select ( query...
Tweaked Element select documentation to reinforce CSS selector syntax
<nb> public class AUC extends Func { @ override public boolean toHTML ( StringBuilder sb ) { SINGLE + if ( actual_domain == null ) actual_domain = new String [ ] { STRING0 , STRING1 } ; String [ ] my_actual_domain = actual_domain . clone ( ) ; String [ ] my_threshold_criteria = threshold_criteria . clone ( ...
Fix NPE in AUC toHTML
<nb> public class ShellTest STRING0 , STRING1 , STRING2 ) ; - doc . add ( STRING3 + + doc . add ( STRING4 + STRING5 + STRING0 , STRING6 ,
Fix for broken shell test
<nb> public class HibernateCriteriaBuilder extends GroovyObjectSupport implements org propertyValue = getHibernateDetachedCriteria ( queryableCriteria ) ; } else if ( propertyValue instanceof Closure ) { - QueryableCriteria queryableCriteria = ( QueryableCriteria ) new DetachedCriteria ( targetClass ) . build (...
removed unnecessary cast
<nb> public class DeterministicKeyChain implements EncryptableKeyChain { Utils . dateTimeFormat ( seed . getCreationTimeSeconds ( ) * NUMBER0 ) ) ) ; } final DeterministicKey watchingKey = getWatchingKey ( ) ; - SINGLE - SINGLE - SINGLE - SINGLE - if ( watchingKey . getParent ( ) != null ) { - builder...
remove unnecessary check to show the xpub
<nb> public class Algorithms { return STRING0 ; } + public static String extractOnlyIntegerSuffix ( String s ) { + int k = NUMBER0 ; + for ( ; k < s . length ( ) ; k ++ ) { + if ( Character . isDigit ( s . charAt ( k ) ) ) { + return s . substring ( k ) ; + } + } + return STRING0 ; + } + pub...
Add integer suffix
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ; <nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT...
Fix copyright headers
<nb> public class BasicBoltExecutor implements IRichBolt { _bolt . execute ( input , _collector ) ; _collector . getOutputter ( ) . ack ( input ) ; } catch ( FailedException e ) { - if ( e instanceof ReportedFailedException ) { - _collector . reportError ( e ) ; - } + LOG . warn ( STRING0 , e ) ; _colle...
Revert basic bolts check for reportedfailedexception
<nb> class ReaderBlogInfoView extends LinearLayout { new Handler ( ) . postDelayed ( new Runnable ( ) { @ override public void run ( ) { - ReaderAnim . scaleIn ( layoutInner , ReaderAnim . Duration . SHORT ) ; + SINGLE + if ( layoutInner . getVisibility ( ) != View . VISIBLE ) { + ReaderAnim . scaleIn ( l...
Fixed potential double animation of blog info
<nb> public class MetaDataExporter { @ nullable private String schemaPattern , tableNamePattern ; - private Serializer serializer = new MetaDataSerializer ( namePrefix , namingStrategy ) ; + private Serializer serializer ; @ nullable private Serializer beanSerializer ; <nb> public class MetaDataExport...
added lazy creation of serializer
<nb> public class DisplayUtils { return ( size . y ) ; } + public static float spToPx ( Context context , float sp ) { + DisplayMetrics displayMetrics = context . getResources ( ) . getDisplayMetrics ( ) ; + final float scale = displayMetrics . scaledDensity ; + return sp * scale ; + } + public stat...
Introduce our version of MarkView
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> import static NAMESPACE ; COMMENT COMMENT @ retention ( SOURCE ) - @ target ( { METHOD , PARAMETER , FIELD , LOCAL_VARIABL...
Improve IntDef annotation to handle special values and ranges
<nb> public abstract class Inode extends ImageWriter implements Comparable < Inode > { COMMENT COMMENT public synchronized void setAcl ( Acl acl ) { - this . mAcl = acl ; + mAcl = acl ; } } <nb> import NAMESPACE ; public class AclUtil { private static final AclPermission [ ] ACL_PERMISSIONS = AclP...
add default permission of file directory
<nb> public interface QueryCacheRecord < V > extends Evictable { Data getKey ( ) ; + @ override V getValue ( ) ; COMMENT
Added missing Override annotation in QueryCacheRecord
<nb> public class WebAppClassLoader extends URLClassLoader else if ( resource . isDirectory ( ) ) addURL ( resource . getURL ( ) ) ; else - throw new IllegalArgumentException ( STRING0 + resource ) ; + { + if ( LOG . isDebugEnabled ( ) ) + LOG . debug ( STRING1 + resource ) ; + throw new IllegalArgument...
Improve WebAppClassLoader addClassPath IllegalStateException message
<nb> public class WebView extends AbsoluteLayout return mProvider . getViewDelegate ( ) . requestFocus ( direction , previouslyFocusedRect ) ; } - @ deprecated @ override protected void onMeasure ( int widthMeasureSpec , int heightMeasureSpec ) { super . onMeasure ( widthMeasureSpec , heightMeasureSpec ) ...
Remove spurious Deprecate tag from WebView onMeasure
<nb> public class ErrorMessage { this . details = details ; } + @ jsonproperty ( STRING0 ) public Integer getCode ( ) { return code ; } + @ jsonproperty ( STRING1 ) public String getMessage ( ) { return message ; } + @ jsonproperty ( STRING2 ) public String getDetails ( ) { return detail...
Add JsonProperty annotations to ErrorMessage
<nb> public class HtmlUtil { final String tagName = tokenizer . nextToken ( ) ; if ( tagName . length ( ) == NUMBER0 ) continue ; - descriptors [ index ++ ] = new XmlElementDescriptorImpl ( context instanceof XmlTag ? ( XmlTag ) context : null ) { + descriptors [ index ++ ] = new XmlElementDescriptorImpl ( nu...
head contains invalid declaration while complete slim tags
<nb> public class ProfileLayout extends FlexibleSpaceLayout { } private void animateExit ( ) { - ObjectAnimator animator = ObjectAnimator . ofInt ( this , OFFSET , getOffset ( ) , getHeight ( ) ) ; + + int offset = getOffset ( ) ; + int height = getHeight ( ) ; + if ( offset >= height ) { + mListener ...
Skip exit animation when already out of screen
<nb> public class SQLSelectTest { } @ test + public void queryWhereInpreparred ( ) { + List < ODocument > result = database . command ( new OSQLSynchQuery < ODocument > ( STRING0 ) ) + . execute ( STRING1 ) ; + + Assert . assertEquals ( result . size ( ) , NUMBER0 ) ; + Assert . assertEquals ( ( ( ODo...
Added new test case with IN operator and
<nb> public class Hybi00Handshake extends Handshake { buffer . putInt ( ( int ) key1 ) ; buffer . putInt ( ( int ) key2 ) ; buffer . put ( key3 ) ; - - final byte [ ] solution = new byte [ NUMBER0 ] ; buffer . rewind ( ) ; - buffer . get ( solution , NUMBER1 , NUMBER0 ) ; try { final MessageDigest d...
Remove unnecessary byte copy
<nb> public class MulticastStopOnExceptionTest extends ContextTestSupport { fail ( STRING0 ) ; } catch ( CamelExecutionException e ) { CamelExchangeException cause = assertIsInstanceOf ( CamelExchangeException . class , e . getCause ( ) ) ; - assertTrue ( cause . getMessage ( ) . startsWith ( STRING1 ) ) ; + ...
Exchange should include id in toString so users can use that for tracking etc
<nb> public class TestFile extends File { public TestFile [ ] listFiles ( ) { File [ ] children = super . listFiles ( ) ; + if ( children == null ) { + return null ; + } TestFile [ ] files = new TestFile [ children . length ] ; for ( int i = NUMBER0 ; i < children . length ; i ++ ) { File child = chil...
Fix bug in TestFile test fixture
<nb> public class AggregatorBatchOptionsTest extends ContextTestSupport { template . sendBodyAndHeader ( STRING0 , STRING1 , STRING2 , STRING3 ) ; template . sendBodyAndHeader ( STRING0 , STRING4 , STRING2 , STRING5 ) ; + SINGLE + Thread . sleep ( NUMBER0 ) ; SINGLE SINGLE template . sendBodyAndHeader (...
Fixed failing unit test
<nb> public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa public void onTextChanged ( CharSequence s , int start , int before , int count ) { } } ) ; + searchFilter . setOnFocusChangeListener ( new View . OnFocusChangeListener ( ) { + @ override + public void onFocusChange ( View...
set focus on search field and enable keyboard
<nb> public abstract class AbstractBytesReferenceTestCase extends ESTestCase { public void testSliceArrayOffset ( ) throws IOException { int length = randomInt ( PAGE_SIZE * randomIntBetween ( NUMBER0 , NUMBER1 ) ) ; BytesReference pbr = newBytesReference ( length ) ; - int sliceOffset = randomIntBetween ( NUMB...
Fix test edge case for bytes reference
<nb> public class DefaultTaskOutputs extends FilePropertyContainer < DefaultTaskOutputs private final FileResolver resolver ; private final String taskName ; private final TaskMutator taskMutator ; - private int legacyFilePropertyCounter ; private Queue < Action < ? super TaskOutputs > > configureActions ; ...
Remove leftover code
<nb> public class TheTVDB { SINGLE SINGLE show . airtime -= NUMBER0 * DateUtils . HOUR_IN_MILLIS ; + } else if ( STRING0 . equals ( traktShow . country ) ) { + SINGLE + SINGLE + show . airtime -= NUMBER1 * DateUtils . HOUR_IN_MILLIS ; } else if ( STRING1 . equals ( traktShow . country ) ) { SINGLE S...
Set air time baseline for Japanese shows to JST
<nb> public class ApplyPatchAction extends DumbAwareAction { } } - private static void showApplyPatch ( @ notnull final Project project , @ notnull final VirtualFile file ) { + SINGLE + public static void showApplyPatch ( @ notnull final Project project , @ notnull final VirtualFile file ) { final ApplyPa...
make method public for TeamCity plugin
<nb> public class HadoopIndexTask extends AbstractTask Preconditions . checkArgument ( this . spec . getTuningConfig ( ) . getWorkingPath ( ) == null , STRING0 ) ; Preconditions . checkArgument ( this . spec . getIOConfig ( ) . getMetadataUpdateSpec ( ) == null , - STRING1 + STRING2 ) ; if ( hadoopDepen...
Fix confusing error message in HadoopIndexTask
<nb> public class HttpFilterCamelHeadersTest extends BaseJettyTest { SINGLE Map < String , Object > headers = out . getOut ( ) . getHeaders ( ) ; for ( String key : headers . keySet ( ) ) { - if ( ! key . equalsIgnoreCase ( Exchange . HTTP_RESPONSE_CODE ) ) { + boolean valid = key . equalsIgnoreCase ( Exchang...
http component now have header with response status line text as well the code is already there
<nb> public class LockScreenActivity extends SherlockActivity implements ICacheWordSu mApp = ( ImApp ) getApplication ( ) ; + ThemeableActivity . setBackgroundImage ( this ) ; + + getSherlock ( ) . getActionBar ( ) . hide ( ) ; setContentView ( R . layout . activity_lock_screen ) ;
allow background image to set on the lockscreen
<nb> public class GroovyShell extends GroovyObjectSupport { int p = scriptName . lastIndexOf ( STRING0 ) ; if ( p ++ >= NUMBER0 ) { if ( scriptName . substring ( p ) . equals ( STRING1 ) ) { - System . err . println ( STRING2 + scriptName ) ; + System . err . println ( STRING3 + scriptName ) ; throw new Com...
fixed a typo in an error message
<nb> public abstract class ODatabaseRecordAbstract < REC extends ORecordInternal < ? > > ex public void executeDeleteRecord ( final REC iRecord , final int iVersion ) { checkOpeness ( ) ; - ORecordId rid = ( ORecordId ) iRecord . getIdentity ( ) ; + final ORecordId rid = ( ORecordId ) iRecord . getIdentity ( ...
Fixed issue on deletion of null records
<nb> public class Stream extends AbstractStream implements HeaderEmitter { return written ; } - public void close ( ) { + public void close ( ) throws IOException { closed = true ; + flushData ( ) ; } public boolean isClosed ( ) { <nb> public class StreamProcessor extends AbstractProcessor impleme...
Align CLOSE with other implementations
<nb> public abstract class ContainerBase extends LifecycleMBeanBase parent . removeChild ( this ) ; } - startStopExecutor . shutdownNow ( ) ; + SINGLE + if ( startStopExecutor != null ) { + startStopExecutor . shutdownNow ( ) ; + } super . destroyInternal ( ) ; }
Fix potential NPE
<nb> final class ActivityStack { SINGLE mStackSupervisor . scheduleResumeTopActivities ( ) ; } + if ( next == mLastScreenshotActivity ) { + invalidateLastScreenshot ( ) ; + } if ( mStackSupervisor . reportResumedActivityLocked ( next ) ) { mNoAnimActivities . clear ( ) ; if ( DEBUG_STACK ) mStackSuper...
ActivityManager Invalidate last screenshot when activity relaunched
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT COMMENT COMMENT @ autovalue - public abstract class CompositeCodeTransformer implements CodeTransformer { + public abstract class CompositeCodeTransformer implements CodeTransformer , Se...
Change Refaster to output a serialized CodeTransformer
<nb> public class MapMemoryUsageStressTest extends HazelcastTestSupport { hazelcastFactory . terminateAll ( ) ; } - @ test + @ test ( timeout = NUMBER0 * NUMBER1 * NUMBER2 ) public void voidCacher ( ) throws Exception { final AtomicInteger counter = new AtomicInteger ( NUMBER3 ) ; final AtomicInteger er...
add proper timeouts to the tests since default timeout is introduced
<nb> public class FileTypeDescriptor extends FileChooserDescriptor { } @ override - public boolean isFileVisible ( VirtualFile file , boolean showHiddenFiles ) { + public boolean isFileVisible ( VirtualFile file , boolean showHiddenFiles ) { + if ( ! showHiddenFiles && FileElement . isFileHidden ( file ) ) ...
Don t show hidden directories if corresponding option is unset
<nb> public class Dependency implements JournalEntryRepresentable { COMMENT COMMENT public synchronized String getCommand ( ) { - SINGLE + SINGLE SINGLE StringBuilder sb = new StringBuilder ( parseCommandPrefix ( ) ) ; sb . append ( STRING0 ) . append ( mTachyonConf . get ( Constants . MASTER_ADDRESS ) ...
Tagging TODOs in tachyon master file meta
<nb> public class MultiPaxosNetworkTest logger . info ( STRING0 ) ; - for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) + for ( int i = NUMBER0 ; i < NUMBER2 ; i ++ ) { map . put ( STRING1 + i , STRING2 + i ) ; }
Reduces the number of operations in MultiPaxosNetworkTest even further trying to avoid potential timeouts
<nb> public class RemoteInterpreterServer implements RemoteInterpreterService . Iface { } } - private int getId ( Interpreter intp ) { - return intp . hashCode ( ) ; - } - private Interpreter getInterpreter ( String className ) throws TException { synchronized ( interpreterGroup ) { for ( Interprete...
Remove unused method
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractAndroidMojo extends AbstractMojo { protected boolean attachSources ; COMMENT + COMMENT + COMMENT +...
Expose the local repository to sub classes
<nb> public class JGroupsSubsystemParserTest { URL url = Thread . currentThread ( ) . getContextClassLoader ( ) . getResource ( name ) ; Assert . assertNotNull ( url ) ; - XMLStreamReader reader = XMLInputFactory . newFactory ( ) . createXMLStreamReader ( new StreamSource ( url . toString ( ) ) ) ; + XMLStrea...
Fix usage of non portable method
<nb> public abstract class AbstractShellCommand implements ShellCommand { . numberOfArgs ( NUMBER0 ) . desc ( STRING0 ) . build ( ) ; + protected static final Option FORCE_OPTION = + Option . builder ( STRING1 ) + . required ( false ) + . hasArg ( false ) + . desc ( STRING2 ) + . build ( ) ; prote...
Fix a bug in LSCommand
<nb> public class PApplet extends Applet } else if ( platform == MACOSX ) { SINGLE try { - Class < ? > mrjFileUtils = Class . forName ( STRING0 ) ; + SINGLE + SINGLE + SINGLE + Class < ? > eieio = Class . forName ( STRING1 ) ; Method openMethod = - mrjFileUtils . getMethod ( STRING2 , new Class [ ] ...
remove MRJ reference change to eio
<nb> public class ErrorUtils { } public static boolean isError ( @ notnull DeclarationDescriptor candidate ) { - return candidate . getContainingDeclaration ( ) == getErrorClass ( ) || candidate == ERROR_MODULE ; + return candidate == getErrorClass ( ) || candidate . getContainingDeclaration ( ) == getErrorCl...
add one more condition to ErrorUtils isError
<nb> public class GemFireClient extends DB { if ( val != null ) { if ( fields == null ) { for ( String k : val . keySet ( ) ) { - result . put ( key , new ByteArrayByteIterator ( val . get ( key ) ) ) ; + result . put ( key , new ByteArrayByteIterator ( val . get ( k ) ) ) ; } } else { for ( String fiel...
fixed an NPE
<nb> public class AssetExtractor { subAssetName += STRING0 ; Path subAssetFile = subAssetDir . resolve ( subAssetName ) ; - if ( Files . exists ( subAssetFile ) ) { + if ( ! Files . exists ( subAssetFile ) ) { L . log ( Level . INFO , STRING1 , subAssetFile ) ; subAsset . save ( subAssetFile ) ; }
Fixed incorrect file check
<nb> public abstract class BaseThirdEyeApplication < T extends Configuration > extends A LOGGER . error ( STRING0 , e ) ; } } - } , NUMBER0 , NUMBER1 , TimeUnit . SECONDS ) ; + } , NUMBER0 , NUMBER2 , TimeUnit . HOURS ) ; } SINGLE
Refresh collectionsCache and maxDataTimeCache periodically
<nb> public class DownloadRequester { private void download ( Context context , FeedFile item , FeedFile container , File dest , boolean overwriteIfExists , String username , String password , boolean deleteOnFailure , Bundle arguments ) { + final boolean partiallyDownloadedFileExists = item . getFile_url ( ) !...
Fixed file name generator
<nb> abstract class CodeCompletionHandlerBase implements CodeInsightActionHandler { SINGLE int hostStartOffset = injectedLanguageManager == null ? context . getStartOffset ( ) : injectedLanguageManager . injectedToHost ( oldFileCopy , TextRange . from ( context . getStartOffset ( ) , NUMBER0 ) ) . getStartOffset ...
correctly handle editor selection in completion
<nb> public abstract class AbstractCodeTransformationTest extends LightCodeInsightTes STRING0 + intentionAction . getClass ( ) + STRING1 + isApplicableExpected , isApplicableExpected == intentionAction . isAvailable ( getProject ( ) , getEditor ( ) , getFile ( ) ) ) ; + String intentionTextString = InTextDirect...
Add ability to test for expected intention text
<nb> public class RmdOutputPresenter implements @ handler public void onViewerPopout ( ) { - globalDisplay_ . showHtmlFile ( params_ . getOutputFile ( ) ) ; + if ( params_ . isShinyDocument ( ) ) + globalDisplay_ . openWindow ( params_ . getOutputUrl ( ) ) ; + else + globalDisplay_ . showHtmlFile ( para...
make open in browser do the right thing for Shiny docs
<nb> public class ReduceContract extends SingleInputContract < ReduceStub > COMMENT COMMENT COMMENT + COMMENT + public Builder ( Class < ? extends ReduceStub > udf ) { + this . udf = udf ; + this . keyClasses = new LinkedList < Class < ? extends Key > > ( ) ; + this . keyColumns = new LinkedList < Integ...
Add ReduceContract Builder ctor without key
<nb> public class PyAnnotatingVisitor implements Annotator { private Set < ? extends Class < ? extends PyAnnotator > > _annotators ; public PyAnnotatingVisitor ( ) { - this . _annotators = ( ( PythonLanguage ) PythonFileType . INSTANCE . getLanguage ( ) ) . getAnnotators ( ) ; + _annotators = ( ( PythonLangua...
delete unused exception class
<nb> public class TextArea extends JEditTextArea { protected void showSuggestion ( DefaultListModel defListModel , String subWord ) { if ( defListModel . size ( ) == NUMBER0 ) { + System . out . println ( STRING0 ) ; + hideSuggestion ( ) ; return ; } int position = getCaretPosition ( ) ;
hide list on no matches
<nb> public class XMPPServer { private void initialize ( ) throws FileNotFoundException { locateWildfire ( ) ; - name = JiveGlobals . getProperty ( STRING0 ) . toLowerCase ( ) ; - if ( name == null ) { - name = STRING1 ; - } + name = JiveGlobals . getProperty ( STRING0 , STRING1 ) . toLowerCase ( ) ; ...
Fixed possible NPE
<nb> public class PostgreSchema implements DBSSchema , DBPNamedObject2 , DBPSaveableObj schema . startsWith ( PostgreConstants . TEMP_SCHEMA_PREFIX ) ; } - @ property + SINGLE public Collection < ? extends DBSDataType > getDataTypes ( DBRProgressMonitor monitor ) throws DBException { List < PostgreDataTyp...
Remove data types from schema properties
<nb> public class SkinManagerActivator private static UIService uiService ; COMMENT - COMMENT - COMMENT + COMMENT COMMENT - private static final String DISABLED_PROP - = STRING0 ; + private static final String ENABLED_PROP + = STRING1 ; COMMENT COMMENT <nb> public class SkinManagerActivato...
Renames property to fit convention and by default hide skin entry in advanced menu
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class DlvDebugProcess extends DebugProcessImpl < RemoteVmConnection > breakpointHandlers = new XBreakpointHandler [ ] { new M...
reuse existing console
<nb> public class PythonLanguageLevelPusher implements FilePropertyPusher < LanguageLev } private static void setNoSizeLimitRecursive ( VirtualFile file ) { - file . putUserData ( SingleRootFileViewProvider . ourNoSizeLimitKey , Boolean . TRUE ) ; + SingleRootFileViewProvider . doNotCheckFileSizeLimit ( file ...
do not encode whole file content to bytes on reparse
<nb> public class PropertiesRepresentationTest extends RepresentationTestBase } @ test - @ suppresswarnings ( STRING0 ) public void shouldSerializeToMap ( ) { Map < String , Object > values = new HashMap < String , Object > ( ) ;
Removing unused variables
<nb> public class Player extends Character { if ( CAMERA_BOBBING ) { _defaultCamera . setBobbingRotationOffsetFactor ( calcBobbingOffset ( FLOAT0 , FLOAT1 , FLOAT2 ) ) ; - _defaultCamera . setBobbingVerticalOffsetFactor ( calcBobbingOffset ( ( float ) java . lang . Math . PI / FLOAT3 , FLOAT4 , FLOAT5 ) ) ; +...
Adjusts bobbing parameters
<nb> public class MethodAnalyzer { private static interface RegisterIterator { int getRegister ( ) ; boolean moveNext ( ) ; + int getCount ( ) ; } private boolean handleFilledNewArrayCommon ( AnalyzedInstruction analyzedInstruction , <nb> public class MethodAnalyzer { } return true ; } + + pub...
Add getCount method to RegisterIterator
<nb> import NAMESPACE ; public class HostBridge implements BundleActivator { - private BundleContext m_context = null ; + private BundleContext context = null ; public void start ( BundleContext context ) { - m_context = context ; + this . context = context ; } public void stop ( BundleContext...
Just renaming some hungarian ly named variable
<nb> public class BTreeMapJava { } - SINGLE public void verifyNode ( GroupSerializer keySerializer , Comparator comparator , GroupSerializer valueSerializer ) { int keysLen = keySerializer . valueArraySize ( keys ) ; <nb> public class BTreeMapJava { public void serialize ( @ notnull DataOutput2 out , ...
Remove obsolete TODO
<nb> final public class AndrolibResources { STRING0 ) ; } - resTable . addPackage ( pkgs [ NUMBER0 ] , false ) ; - return pkgs [ NUMBER0 ] ; + ResPackage pkg = pkgs [ NUMBER0 ] ; + if ( pkg . getId ( ) != id ) { + throw new AndrolibException ( STRING1 + + String . valueOf ( id ) + STRING2 + pkg . getI...
added check for loaded pkg id
<nb> public final class CacheBuilder < K , V > { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
discuss segment behavior in concurrencyLevel
<nb> import NAMESPACE ; COMMENT public interface GetTvShowById { - public interface Callback { + interface Callback { void onTvShowLoaded ( final TvShow tvShow ) ; void onTvShowNotFound ( ) ; <nb> import NAMESPACE ; COMMENT public interface GetTvShows { - public interface Callback { + interf...
Remove public modifier in interactors callback
<nb> public class HystrixObservableCollapserTest { @ test public void stressTestRequestCollapser ( ) throws Exception { - for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { + for ( int i = NUMBER0 ; i < NUMBER2 ; i ++ ) { init ( ) ; testTwoRequests ( ) ; cleanup ( ) ;
Reduce number of trials of observable collapser test
<nb> public class SubQueryTest extends AbstractQueryTest { assertEquals ( STRING0 , query . toString ( ) ) ; } + + @ test + public void In ( ) { + cat . in ( sub ( ) . from ( cat ) . list ( cat ) ) ; + } @ test public void InnerJoin ( ) {
added JPA tests
<nb> public abstract class ResultMessage extends Message . Response public static class SetKeyspace extends ResultMessage { - private final String keyspace ; + public final String keyspace ; public SetKeyspace ( String keyspace ) {
Fix variable visibility issue
<nb> public abstract class PassExecutorService implements Disposable { public static void log ( ProgressIndicator progressIndicator , TextEditorHighlightingPass pass , @ nonnls Object . . . info ) { if ( LOG . isDebugEnabled ( ) ) { - String docText = pass == null ? STRING0 : StringUtil . first ( pass . getDocu...
avoid blocking runReadAction in debug logging
<nb> public class IndicesResource extends RestResource { @ get @ timed @ path ( STRING0 ) - @ apioperation ( value = STRING1 ) + @ apioperation ( value = STRING2 ) @ produces ( MediaType . APPLICATION_JSON ) public BulkIndices bulk ( ) { return BulkIndices . create ( this . closed ( ) , this . reopened ...
Improve wording of method description
<nb> class InlineFunctions implements SpecializationAwareCompilerPass { public void addReference ( Reference ref ) { if ( references == null ) { - references = Maps . newHashMap ( ) ; + references = Maps . newLinkedHashMap ( ) ; } references . put ( ref . callNode , ref ) ; }
Remove non determinism in InlineFunctions
<nb> public final class ArrayReflection { COMMENT static public Object get ( Object array , int index ) { - ReflectionCache . instance . getArrayElement ( ReflectionCache . getType ( array . getClass ( ) ) , array , index ) ; - return array ; + return ReflectionCache . instance . getArrayElement ( Reflectio...
Fix ArrayReflection emulation
<nb> public class OWOWCache extends OAbstractWriteCache implements OWriteCache , OCach final ODirectMemoryPointer pointer = ODirectMemoryPointerFactory . instance ( ) . createPointer ( content ) ; dataPointer = new OCachePointer ( pointer , lastLsn , fileId , pageIndex ) ; - dataPointer . incrementReadersReferr...
Fixed memory leak in off heap memory
<nb> public class Wallet implements Serializable , BlockChainListener , PeerFilterProvi if ( Utils . isWindows ( ) ) { SINGLE File canonical = destFile . getCanonicalFile ( ) ; - canonical . delete ( ) ; + if ( ! canonical . delete ( ) ) + throw new IOException ( STRING0 ) ; if ( temp . renameTo ( canonic...
don t delete temp file if rename failed
<nb> static abstract class HostExpr implements Expr { } private static Class maybeClass ( Object form , boolean stringOk ) throws Exception { + if ( form instanceof Class ) + return ( Class ) form ; Class c = null ; if ( form instanceof Symbol ) {
fixed maybeClass when passed Class
<nb> public class SingleInspectionProfilePanel extends JPanel { } toolNode . isProperSetting = mySelectedProfile . isProperSetting ( key ) ; } + updateOptionsAndDescriptionPanel ( new TreePath ( toolNode . getPath ( ) ) ) ; } private void updateUpHierarchy ( final MyTreeNode node , final MyTreeNode parent...
restore enable disable options panel on toggle node
<nb> public class HiveSplitManager String tableType = tableColumns . get ( i ) . getType ( ) ; String partitionType = partitionColumns . get ( i ) . getType ( ) ; if ( ! tableType . equals ( partitionType ) ) { - throw new PrestoException ( HIVE_PARTITION_SCHEMA_MISMATCH , format ( - STRING0 , + throw new P...
Improve HIVE_PARTITION_SCHEMA_MISMATCH error message
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class ToolWindowHeadlessManagerImpl extends ToolWindowManagerEx { } public ContentManager getConte...
Fix stress tests
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AsyncConditions { COMMENT COMMENT COMMENT - COMMENT COMMENT + @ conditionblock public void evaluate ( Runnable block ) { try { block . run ( ) ;
make use of ConditionBlock in AsyncConditions
<nb> public final class RhinoUtils { versionToScope . put ( version , parentScope ) ; } else { - SINGLE NativeObject kotlin = ( NativeObject ) parentScope . get ( STRING0 ) ; + assert kotlin != null ; NativeObject modules = ( NativeObject ) kotlin . get ( STRING1 ) ; + assert modules != null ; + Strin...
save only stdlib module from run to run
<nb> public class MovieTools { } SINGLE AndroidUtils . executeAsyncTask ( - new TraktTask ( context , null ) . collectionAddMovie ( movieTmdbId ) + new TraktTask ( context ) . collectionAddMovie ( movieTmdbId ) ) ; } <nb> public class MovieTools { } SINGLE AndroidUtils . executeAsyncTask ( - n...
Use correct TraktTask constructor in MovieTools
<nb> public class DefaultHttpRequest extends Message implements HttpRequest { public String toString ( ) { return Objects . toStringHelper ( DefaultHttpRequest . class ) . omitNullValues ( ) + . add ( STRING0 , uri ) . add ( STRING1 , version ) . add ( STRING2 , queries ) . add ( STRING3 , method )
added uri to toString
<nb> public class ClearCaseRepository extends Repository { return null ; } - ret = new BufferedInputStream ( new FileInputStream ( tmp ) { + ret = new BufferedInputStream ( new FileInputStream ( tmp ) ) { public void close ( ) throws IOException { super . close ( ) ; <nb> public class ClearCaseReposit...
Fixed FindBugs warning ClearCaseRepository
<nb> public abstract class AntDomDirSet extends AntDomFilesProviderImpl { } if ( singleFile != null && singleFile . isDirectory ( ) ) { - Collections . singletonList ( singleFile ) ; + return Collections . singletonList ( singleFile ) ; } return Collections . emptyList ( ) ;
missing return added thanks FindBugs
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; COMMENT <nb> public abstract class AnimationAdapter } protected abstract Animator [ ] getAnimators ( View view ) ; + + @ override + public int getItemViewType ( int position ) { + retu...
Supports multiple viewTypes
<nb> public class ZenDiscovery extends AbstractLifecycleComponent < Discovery > implemen SINGLE private final boolean sendLeaveRequest ; - private final boolean blockClusterOnNoMaster ; - private final ElectMasterService electMaster ; <nb> public class ZenDiscovery extends AbstractLifecycleComponent <...
remove unused variable
<nb> public class IWindowManagerImpl implements IWindowManager { } @ override - public IDisplayMagnificationMediator getDisplayMagnificationMediator ( ) { + public void getWindowFrame ( IBinder token , Rect outFrame ) { SINGLE - return null ; } @ override - public void getWindowFrame ( IBinder tok...
Fixing the build
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMME...
Fix checkstyle warnings