diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class UnilateralSortMerger < E > implements Sorter < E > { COMMENT COMMENT COMMENT - protected static final int MIN_NUM_SORT_MEM_SEGMENTS = NUMBER0 ; + protected static final int MIN_NUM_SORT_MEM_SEGMENTS = NUMBER1 ; SINGLE SINGLE
Reduce minimum memory threshold for sorter
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractClient implements Closeable { return rpc . call ( ) ; } catch ( ThriftIOException e ) { throw new IOException ( e ) ; + }...
Avoid retrying unrecoverable alluxio exceptions
<nb> import NAMESPACE ; import NAMESPACE ; public class DanmakuSurfaceView extends SurfaceView implements SurfaceHolder . Callback , - View . OnClickListener , View . OnLongClickListener { + View . OnClickListener { public static final String TAG = STRING0 ;
Remove useless method
<nb> public class SearchView extends LinearLayout implements CollapsibleActionView { + Integer . toHexString ( System . identityHashCode ( this ) ) + STRING0 + isIconified + STRING1 ; } + + public static final Parcelable . Creator < SavedState > CREATOR = + new Parcelable . Creator < SavedState > ( ) { + ...
Fix crash when restoring SearchView
<nb> public class Install { private File getAndVerifyDistributionRoot ( File localZipFile , String distributionSha256Sum , File distDir , String distributionDescription ) throws Exception { - SINGLE + SINGLE if ( distributionSha256Sum != null ) { - logger . log ( STRING0 + localZipFile . getName ( ) ) ; ...
Dont delete cached gradle and better description in getAndVerifyDistributionRoot
<nb> public final class ViewRootImpl implements ViewParent , final int surfaceGenerationId = mSurface . getGenerationId ( ) ; relayoutResult = relayoutWindow ( params , viewVisibility , insetsPending ) ; + mWindowsAnimating |= + ( relayoutResult & WindowManagerGlobal . RELAYOUT_RES_ANIMATING ) != NUMBER0 ; ...
Stop jank from window animations overlapping activity animations
<nb> public class NumberProgressBar extends View { return mUnreachedBarHeight ; } - - public void setProgressTextSize ( float TextSize ) { this . mTextSize = TextSize ; mTextPaint . setTextSize ( mTextSize ) ; <nb> public class NumberProgressBar extends View { invalidate ( ) ; } + public void ...
Added set height methods
<nb> public final class InternalTestCluster extends TestCluster { } } } - builder . put ( STRING0 , random . nextBoolean ( ) ) ; if ( random . nextInt ( NUMBER0 ) == NUMBER1 ) { builder . put ( EsExecutors . PROCESSORS , NUMBER2 + random . nextInt ( AbstractRandomizedTest . TESTS_PROCESSORS ) ) ; } else {
TEST Remove unused plugin isolation leftover
<nb> public final class CFMetaData } @ override - public boolean equals ( Object obj ) - { - if ( ! ( obj instanceof SpeculativeRetry ) ) - return false ; - SpeculativeRetry rhs = ( SpeculativeRetry ) obj ; - return Objects . equal ( type , rhs . type ) && Objects . equal ( value , rhs . value ) ; -...
r m equals override
<nb> public final class Scope implements Comparable , Serializable static Scope getInstance ( String aScopeName ) { SINGLE - String scopeName = aScopeName . toLowerCase ( ) ; + final String scopeName = aScopeName . trim ( ) . toLowerCase ( ) ; final Scope retVal = ( Scope ) NAME_TO_SCOPE . get ( scopeName...
fixed bug with handling surrounding whitespace with the Scope option
<nb> public class ResumableAsyncHandler < T > implements AsyncHandler < T > { } RequestBuilder builder = new RequestBuilder ( request ) ; - builder . setHeader ( STRING0 , STRING1 + byteTransferred . get ( ) + STRING2 ) ; + if ( byteTransferred . get ( ) != NUMBER0 ) { + builder . setHeader ( STRING0 , STRI...
Small optimization do not set the Range value when there is no bytes transferred
<nb> public class ValidationTests extends EvaluationTestCase { } @ test - public void testLoadWithTooManySlashes ( ) throws Exception { - String error = - STRING0 - + STRING1 ; - - checkError ( error , STRING2 ) ; - checkError ( error , STRING3 ) ; - checkError ( error , STRING4 ) ; - checkError...
Removed ValidationTests testLoadWithTooManySlashes since it was an inferior copy of ParserTest testLoadDoubleSlashBuild and ParserTest testLoadDoubleSlashSkylark
<nb> public class Packetizer { public Packetizer ( ) { - packetSize = NUMBER0 ; + packetSize = NUMBER1 ; supportedInputFormats = new AudioFormat [ ] { new AudioFormat (
Fix a problem with some hardware devices
<nb> package NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public class DefaultHttpRequest extends DefaultHttpMessage implements HttpReques public String getUri ( ) { return uri ; } + + @ override + public String toString ( ) { + return getMethod ( ) . toString ( ) + STRING0 + getUri ( ) + ST...
Added toString to DefaultHttpRequest Response
<nb> public class DocumentPreprocessor implements Iterable < List < HasWord > > { boolean printSentenceLengths = PropertiesUtils . getBool ( options , STRING0 , false ) ; String xmlElementDelimiter = options . getProperty ( STRING1 , null ) ; DocType docType = xmlElementDelimiter == null ? DocType . Plain : DocTy...
Fix option test there shouldn t be a hyphen in the key
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - public class HeliosSoloIT { + public class HeliosSoloServiceDiscoveryIT { @ rule public HeliosDeploymentResource solo = new HeliosDeploymentResource ( <nb> public class HeliosSoloIT { @ test - public void solo...
Rename HeliosSoloIT to reflect that it s about service discovery
<nb> public class DroidGap extends PhonegapActivity { SINGLE if ( this . ctx . splashscreen != NUMBER0 ) { this . ctx . splashscreen = NUMBER0 ; - view . setPictureListener ( new PictureListener ( ) { + appView . setPictureListener ( new PictureListener ( ) { public void onNewPicture ( WebView viewtwo , Pic...
Disable picture listener once event has occurred
<nb> public class NeuralNetIrisTest extends TestUtil { int epochs = NUMBER0 ; Vec [ ] data = Utils . remove ( _train . vecs ( ) , _train . vecs ( ) . length - NUMBER1 ) ; Vec labels = _train . vecs ( ) [ _train . vecs ( ) . length - NUMBER1 ] ; - labels . asEnum ( ) ; VecsInput input = new VecsInput ( data , ...
Removed unnecessary asEnum in NN test
<nb> public class AsmClassGenerator extends ClassGenerator { SINGLE SINGLE doConvertAndCast ( returnType , expression , false , true , false ) ; - helper . unbox ( returnType ) ; } if ( compileStack . hasFinallyBlocks ( ) ) { - int returnValueIdx = compileStack . defineTemporaryVariable ( STRING0 , return...
corrects autoboxing when returning values
<nb> public class BinaryMapIndexWriter { protected StreetIndex createStreetAndBuildings ( Street street , LatLon l , String postcodeFilter ) throws IOException { - checkPeekState ( CITY_INDEX_INIT , POSTCODES_INDEX_INIT ) ; - boolean inCity = state . peek ( ) == CITY_INDEX_INIT ; + checkPeekState ( CITY_IND...
fix small issues
<nb> public class Redisson implements RedissonClient { } @ override - public RLiveObjectService getLiveObjectService ( CodecProvider ProviderCodec ) { - return new RedissonLiveObjectService ( this , liveObjectClassCache , new DefaultCodecProvider ( ) ) ; + public RLiveObjectService getLiveObjectService ( Co...
fixed a wrong reference for codec provider in Redisson
<nb> public class OFileSource extends OAbstractSource { OLogManager . instance ( ) . error ( this , STRING0 , e , fileName ) ; } + log ( OETLProcessor . LOG_LEVELS . DEBUG , STRING1 + path ) ; + final long startTime = System . currentTimeMillis ( ) ; }
added logging on file source
<nb> public class DataStructures { private static Integer [ ] unsorted = null ; private static String string = null ; private static boolean debug = false ; - private static boolean debugTime = true ; + private static boolean debugTime = false ; public static void main ( String [ ] args ) {
Added a ms tag to the debug time system out
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public interface AgentBuilder { ByteBuddy byteBuddy , ClassFileLocator classFileLocator , MethodNameTransformer methodNameTransformer ...
Replace agent builder ignore matcher with latent matcher
<nb> class AcceptorExecutor < ID , T > { TaskHolder < ID , T > previousTask = pendingTasks . put ( taskHolder . getId ( ) , taskHolder ) ; if ( previousTask == null ) { processingOrder . add ( taskHolder . getId ( ) ) ; + } else { + overriddenTasks ++ ; } } <nb> class TrafficShaper { } long now = ...
Fix bug in traffic shaper
<nb> public class JPASQLBase { } @ test + @ excludein ( Target . HSQLDB ) public void No_From ( ) { assertNotNull ( query ( ) . singleResult ( DateExpression . currentDate ( ) ) ) ; }
Exclude NoFrom test from hsqldb
<nb> public abstract class AbstractHaTest otherKeys . add ( key ) ; } } - System . out . println ( STRING0 + otherKeys ) ; count = otherKeys . size ( ) ; for ( String key : node . getPropertyKeys ( ) ) <nb> public abstract class AbstractHaTest setExpectedResults ( NUMBER0 , NUMBER1 , NUMBER1 , NUMBER1...
Removed some System outs
<nb> public interface ServerStoredGroupListener COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public void groupCreated ( ServerStoredGroupEvent evt ) ; <nb> public interface ServerStoredGroupListener COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public void ...
Added a groupResolved method and fixed javadoc conflicts
<nb> public final class DefaultIndex extends SonarIndex { COMMENT COMMENT public Resource addResource ( Resource resource ) { - getOrAddBucket ( resource ) ; - return resource ; + Bucket bucket = getOrAddBucket ( resource ) ; + return bucket != null ? bucket . getResource ( ) : null ; } public Resou...
sensorContext saveResource must set the effective key
<nb> public class StorageExporter { private static final String ROOT_ELEMENT = STRING0 ; private static final String VERSION_ATTRIBUTE = STRING1 ; + private static final String GLOBAL_ELEMENT = STRING2 ; private static final String SETTINGS_ELEMENT = STRING3 ; private static final String ACCOUNTS_ELEMENT = ...
Rename settings tag to global for global settings export
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LineStatusTracker { } } + @ notnull + @ test...
add InnerRanges verification in tests
<nb> public class StackExchangeApi extends DefaultApi20 { private static final String AUTHORIZE_URL = STRING0 ; - private StackExchangeApi ( ) { + protected StackExchangeApi ( ) { } private static class InstanceHolder {
Make API extendable
<nb> public final class WorldRendererImpl implements WorldRenderer { renderGraph . addNode ( toneMappingNode , STRING0 ) ; renderGraph . addNode ( bloomPassesNode , STRING1 ) ; renderGraph . addNode ( blurPassesNode , STRING2 ) ; - renderGraph . addNode ( finalPostProcessingNode , STRING3 ) ; - if ( renderi...
Made it so that in VR mode the overlay still appears o nthe monitor window
<nb> public class Sign extends DefaultTask implements SignatureSpec { } COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT - @ input public boolean getRequired ( ) { return required ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + @ input public boolean isRequired ( )...
Move JavaDocs from getRequired to isRequired
<nb> public class PluginManager { SINGLE addUrl ( urls , STRING0 + user . replace ( STRING1 , STRING2 ) + STRING3 + repo + STRING3 + version + STRING3 + repo + STRING4 + version + STRING5 ) ; SINGLE - addUrl ( urls , STRING6 + user + STRING3 + repo + STRING7 + version + STRING5 ) ; + addUrl ( urls , STRING6 +...
Fix github download link when using specific version
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - class EventTrigger { + public class EventTrigger { COMMENT COMMENT
Changed EventTrigger class visibility to public
<nb> public class LifecycleTest extends ActivityTestsBase { runLaunchpad ( LaunchpadActivity . LIFECYCLE_SCREEN ) ; } - @ largetest + SINGLE + SINGLE public void testDialog ( ) throws Exception { mIntent = mTopIntent ; runLaunchpad ( LaunchpadActivity . LIFECYCLE_DIALOG ) ;
Remove flaky test LifecycleTest testDialog from large continuous suite
<nb> public abstract class FileInputFormat implements InputFormat < FileInputSplit > private final long timeout ; - private FSDataInputStream fdis = null ; + private volatile FSDataInputStream fdis = null ; - private Throwable error = null ; + private volatile Throwable error = null ; public InputSp...
Fixed data race problem in FileInputFormat
<nb> COMMENT COMMENT COMMENT - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import static NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - public class TestUtf8 { SINGLE
Move the unit test to the same package as the class it is testing
<nb> public class SingleJvmWithNettyTest extends SingleJvmTest assertEquals ( node , getSlave ( NUMBER0 ) . index ( ) . forNodes ( index ) . get ( key , value ) . getSingle ( ) . getId ( ) ) ; assertEquals ( node , getSlave ( NUMBER1 ) . index ( ) . forNodes ( index ) . get ( key , value ) . getSingle ( ) . getId...
Closes OtherThreadExecutor in tests
<nb> public class PyPackageManagerImpl extends PyPackageManager { boolean hasSetuptools = false ; boolean hasPip = false ; try { - hasSetuptools = findPackage ( SETUPTOOLS , false ) != null ; + hasSetuptools = findPackage ( PACKAGE_SETUPTOOLS , false ) != null ; } catch ( PyExternalProcessException ignore...
Fixed package names in checking for installed pip and setuptools
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
fixed checkstyle violation
<nb> public class SlidingLayer extends FrameLayout { if ( mOnScrollListener != null ) { - int scroll = NUMBER0 ; - if ( mScreenSide == STICK_TO_TOP || mScreenSide == STICK_TO_BOTTOM ) { + int scroll ; + if ( allowedDirection ( ) == VERTICAL ) { scroll = getHeight ( ) - Math . abs ( y ) ; - } else if (...
Apply new method to other parts of the code
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + SINGLE + SINGLE COMMENT COMMENT COMMENT @ incubating public interface ComponentSpecIdentifier extends Named { + + SINGLE + SINGLE + SINGLE String getProjectPath ( ) ; }
Raise some questions on ComponentSpecIdentifier
<nb> public abstract class ODatabaseRecordAbstract extends ODatabaseWrapperAbstract < O if ( isNew ) SINGLE iRecord . onBeforeIdentityChanged ( rid ) ; - else if ( stream . length == NUMBER0 ) + else if ( stream == null || stream . length == NUMBER0 ) SINGLE return ;
Fixed bug on record save reported by Stefan in ML
<nb> public class PyCharmEduInitialConfigurator { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , - STRING7 ) ; + STRING7 , STRING8 ) ; public static class First {
removed SaveAs action from EDU
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT ...
Fixed documentation error in Client Server Bootstrap
<nb> public abstract class AndroidLintInspectionBase extends GlobalInspectionTool { return true ; } + @ override + public boolean isSuppressAll ( ) { + return false ; + } + @ notnull @ override public String getName ( ) {
Implement new method isSuppressAll
<nb> public class BatchExtensionDictionnary { return result ; } - private Phase . Name evaluatePhase ( Object extension ) { + private static Phase . Name evaluatePhase ( Object extension ) { Object extensionToEvaluate ; if ( extension instanceof SensorWrapper ) { extensionToEvaluate = ( ( SensorWrapper ...
Fix some quality flaws
<nb> public final class TimelineSnapshot implements SINGLE break ; case ack : + case nack : case fetchack : case ackack : case exec :
handle new nack packet in timeline
<nb> public class MapActivity extends AccessibleActivity implements DownloadEvents , int h = dm . heightPixels - statusBarHeight ; mapView = new OsmandMapTileView ( this , w , h ) ; - if ( app . getAppInitializer ( ) . checkAppVersionChanged ( this ) ) { + if ( app . getAppInitializer ( ) . checkAppVersionCha...
Fix first usage dialog
<nb> public class SimpleSampleActivity extends Activity { private PhotoViewAttacher mAttacher ; + private Toast mCurrentToast ; + @ override public void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; <nb> public class SimpleSampleActivity extends Activity { float ...
Cancel the displayed toast if we need to display another
<nb> public class OrthographicCamera extends Camera { private Vector3 calculateDirection ( float angle ) { Matrix4 transform = new Matrix4 ( ) ; Vector3 dir = new Vector3 ( - NUMBER0 , NUMBER1 , NUMBER0 ) . nor ( ) ; - float rotAngle = ( float ) Math . toDegrees ( Math . asin ( Math . tan ( Math . toRadians ( a...
Removed unused var
<nb> public abstract class AbstractUsageCheck private String mIgnoreFormat ; COMMENT - COMMENT + COMMENT COMMENT public AbstractUsageCheck ( ) { <nb> public abstract class AbstractUsageCheck public void visitToken ( DetailAST aAST ) { if ( mustCheckReferenceCount ( aAST ) ) { - final DetailAST...
removed redunant type cast fixed javadoc typo
<nb> public class ThreadWithAttributes extends Thread { COMMENT COMMENT public final Hashtable getAttributes ( Object control ) { + if ( this . control != control ) return null ; return attributes ; } }
Add missing access check
<nb> abstract class ConfigurationClassUtils { if ( metadata . isInterface ( ) ) { return false ; } + + SINGLE for ( String indicator : candidateIndicators ) { if ( metadata . isAnnotated ( indicator ) ) { return true ; } } - return metadata . hasAnnotatedMethods ( Bean . class . getName ( ) ) ; ...
Lite configuration candidate check defensively handles method introspection failure
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT + COMMENT COMMENT public class RealmR...
Updated RealmResults JavaDoc
<nb> public class ActivityMain extends Activity implements OnItemSelectedListener , Co else holder . row . setBackgroundColor ( Color . TRANSPARENT ) ; - SINGLE - SINGLE - holder . imgIcon . setVisibility ( View . GONE ) ; - SINGLE holder . imgIcon . setOnClickListener ( new View . OnClickListener ( )...
Set app icon invisible
<nb> public class FilePathImpl implements FilePath { @ notnull public static FilePath createNonLocal ( String path , final boolean directory ) { path = path . replace ( STRING0 , File . separatorChar ) ; - SINGLE + SINGLE if ( ! ourFileStringConstructorInitialized ) { ourFileStringConstructorInitialized =...
Fixed issue reference in comments
<nb> public abstract class InsertBaseTest extends AbstractBaseTest { } @ test - public void insertBatch2 ( ) { + public void insertBatch_with_subquery ( ) { SQLInsertClause insert = insert ( survey ) . columns ( survey . id , survey . name ) . select ( sq ( ) . from ( survey2 ) . list ( survey2 . id . a...
renamed test method
<nb> public final class z_T4JInternalParseUtil { public static Date getDate ( String name , String format ) throws TwitterException { SimpleDateFormat sdf = formatMap . get ( ) . get ( format ) ; if ( null == sdf ) { - sdf = new SimpleDateFormat ( format ) ; + sdf = new SimpleDateFormat ( format , Locale . US...
Fix bug with SimpleDateFormat when the default locale is not US
<nb> import NAMESPACE ; public class TerminalNodeImpl implements TerminalNode { public Token symbol ; public ParseTree parent ; - COMMENT - public int s ; + public TerminalNodeImpl ( Token symbol ) { this . symbol = symbol ; } @ override
Remove unused field
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - final class WSSubsys...
extend AbstractWriteAttributeHandler instead of ReloadRequiredWriteAttributeHandler
<nb> public abstract class OMVRBTreePersistent < K , V > extends OMVRBTree < K , V > implemen public OMVRBTreePersistent ( String iClusterName , final OStreamSerializer iKeySerializer , final OStreamSerializer iValueSerializer ) { SINGLE - super ( NUMBER0 , FLOAT0 ) ; + super ( OGlobalConfiguration . MVRBTREE...
Fixed bug on getting the global cfg for tree node size
<nb> public class JsonLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSett @ override public CommonCodeStyleSettings getDefaultCommonSettings ( ) { CommonCodeStyleSettings commonSettings = new CommonCodeStyleSettings ( JsonLanguage . INSTANCE ) ; + CommonCodeStyleSettings . IndentOptions indentOption...
Correctly initialize language specific settings
<nb> public class UsbDeviceManager { } private void updateUsbNotification ( ) { - if ( mNotificationManager == null || ! mUseUsbNotification ) return ; + if ( mNotificationManager == null || ! mUseUsbNotification + || ( STRING0 . equals ( SystemProperties . get ( STRING1 ) ) ) ) return ; int id = NUMBER0 ...
allow devs to turn off charging notifications
<nb> public class TemplateRenderingServerErrorHandler implements ServerErrorHandler { response . status ( NUMBER0 ) ; } + response . contentType ( STRING0 ) ; final ByteBuf byteBuf = byteBufAllocator . buffer ( ) ; renderer . renderError ( byteBuf , model ) . onError ( new Action < Throwable > ( ) { @ ove...
setting the content type on server error responses
<nb> public class EditorNotificationsImpl extends EditorNotifications { file . putUserData ( CURRENT_UPDATES , new WeakReference < ProgressIndicator > ( indicator ) ) ; if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { - task . performInReadAction ( indicator ) ; + ReadTask . Continuation ...
restore EditorNotifications in test mode
<nb> public class JsonTreeNode { COMMENT COMMENT public enum ElementType { - SINGLE + COMMENT + COMMENT + COMMENT VALUE , - SINGLE + COMMENT + COMMENT + COMMENT KEY_VALUE_PAIR , - SINGLE + COMMENT + COMMENT + COMMENT ARRAY , - SINGLE + COMMENT + COMMENT + COMMENT OBJECT , ...
Make some inline comments multilne
<nb> public class IssueCountersDecoratorTest { @ test public void should_be_depended_upon_metric ( ) { - assertThat ( decorator . generatesIssuesMetrics ( ) ) . hasSize ( NUMBER0 ) ; + assertThat ( decorator . generatesIssuesMetrics ( ) ) . hasSize ( NUMBER1 ) ; } @ test
Fix unit test
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class BuildoutCfgColorsPage implements ColorSettingsPage , InspectionColorSettingsPage { + public class BuildoutCfgColorsPage implements...
remove bogus InspectionColorSettingsPage declarations
<nb> public class ConnectivityService extends IConnectivityManager . Stub { timeOutMs = CheckMp . MAX_TIMEOUT_MS ; } + SINGLE + if ( ! isNetworkSupported ( ConnectivityManager . TYPE_MOBILE ) + || ! isNetworkSupported ( ConnectivityManager . TYPE_MOBILE_HIPRI ) ) { + log ( STRING0 ) ; + if ( resultRecei...
Fix NPE if mobile is not supported in checkMobileProvisioning
<nb> import NAMESPACE ; public class AuthUiActivity extends AppCompatActivity { + private static final String TAG = STRING0 ; + private static final String UNCHANGED_CONFIG_VALUE = STRING1 ; private static final String GOOGLE_TOS_URL = <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE...
Fix bug in welcome back activity
<nb> public final class ViewRootImpl implements ViewParent , boolean cancelDraw = mAttachInfo . mTreeObserver . dispatchOnPreDraw ( ) || ! isViewVisible ; - if ( ! cancelDraw ) { + if ( ! cancelDraw && ! newSurface ) { if ( mPendingTransitions != null && mPendingTransitions . size ( ) > NUMBER0 ) { for ( ...
Revert Start drawing immediately
<nb> public class WebExtension implements Extension { protected static final PathElement VALVE_PATH = PathElement . pathElement ( Constants . VALVE ) ; protected static final PathElement FILE_PATH = PathElement . pathElement ( Constants . SETTING , Constants . FILE ) ; - protected static final PathElement FILE_...
Removed unused FILE_ALIAS
<nb> public class TestLuceneIndex assertThat ( index . query ( STRING0 ) , contains ( rel1 , rel2 ) ) ; assertThat ( index . query ( STRING0 , null , endNode1 ) , contains ( rel1 ) ) ; assertThat ( index . query ( STRING0 , startNode , endNode2 ) , contains ( rel2 ) ) ; + assertThat ( index . query ( null , sta...
Added one more assertion regarding querying for relationships
<nb> public class ListView extends AbsListView { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ListView extends AbsListView { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT ...
Fix logic inversion in ListView Javadoc
<nb> public class TestScenarioSelector { BigDecimal sum = BigDecimal . ZERO ; for ( MeasuredOperationList operation : lastRun . getScenarios ( ) ) { for ( Amount < Duration > duration : operation . getTotalTime ( ) ) { - sum = sum . add ( duration . getValue ( ) ) ; + sum = sum . add ( duration . toUnits ( Du...
Fix performance test runtime estimation
<nb> final class Initializer { MembersInjectorImpl < T > membersInjector = ( MembersInjectorImpl < T > ) pendingMembersInjectors . remove ( instance ) ; Preconditions . checkState ( membersInjector != null , - STRING0 + instance + STRING1 + key ) ; + STRING2 , instance , key ) ; SINGLE SINGLE <nb> fin...
Defer building of error messages for
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class SemaphoreUpdater { + public class SemaphoreUpdater implements TaskC...
Add TaskComponent to SemaphoreUpdater and Semaphores
<nb> public class IccUtils { int colorNumber = data [ valueIndex ++ ] & NUMBER0 ; int clutOffset = ( ( data [ valueIndex ++ ] & NUMBER0 ) < < NUMBER1 ) | ( data [ valueIndex ++ ] & NUMBER0 ) ; - length = length - NUMBER2 ; int [ ] colorIndexArray = getCLUT ( data , clutOffset , colorNumber ) ; if ( true =...
Removing unnecessary computation
<nb> public class JCVideoView extends FrameLayout implements View . OnClickListener , Se } else if ( CURRENT_STATE == CURRENT_STATE_NORMAL ) { ivStart . setVisibility ( View . VISIBLE ) ; ivThumb . setVisibility ( View . VISIBLE ) ; + llBottomControl . setVisibility ( View . INVISIBLE ) ; updateStartImage ( )...
set state invisible controller
<nb> public class FragmentActivity extends Activity implements SupportActivity { mSupportMenu . setShowsActionItemText ( textEnabled ) ; if ( ( mWindowFlags & WINDOW_FLAG_INDETERMINANTE_PROGRESS ) == WINDOW_FLAG_INDETERMINANTE_PROGRESS ) { - ( ( ActionBarImpl ) mActionBar ) . setProgressBarIndeterminateVisibili...
Don t automatically show ProgressBar when the Activity starts
<nb> public class WebsocketGtfsRealtimeUpdater implements GraphUpdater { SINGLE SINGLE SINGLE - AsyncHttpClient client = new AsyncHttpClient ( ) ; - WebSocketListener listener = new Listener ( ) ; - WebSocketUpgradeHandler handler = new WebSocketUpgradeHandler . Builder ( ) - . addWebSocketListener ( list...
Fix AsyncHttpClient scope
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class OChannelBinaryAsynchClient extends OChannelBinary { } catch ( InterruptedException e ) { Thread . currentThread ( ) . interrupt ( ) ; - + throw OException...
Managed the interrupted exception to skip the retry logic
<nb> public class UserColorNameManager implements TwidereConstants { public static String decideDisplayName ( @ nonnull final String nickname , final String name , final String screenName , final boolean nameFirst ) { if ( ! isEmpty ( nickname ) ) return nickname ; - return nameFirst && isEmpty ( name ) ? name ...
fixed display name
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; public class TestsOutputConsolePrinter implements Printer , Disposable { <nb> public class TestsOutputConsolePrinter implements Printer , Disposable { my...
restore console output after selection
<nb> final public class AndrolibResources { public static boolean sKeepBroken = false ; public static String sFrameworkFolder = null ; - private final static Logger LOGGER = Logger - . getLogger ( AndrolibResources . class . getName ( ) ) ; + private final static Logger LOGGER = Logger . getLogger ( Androli...
skip cs fixes
<nb> public class ThumbnailUtils { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ThumbnailUtils { bitmap = BitmapFactory . decodeFileDescriptor ( fd , null , options ) ; } catch ( IOException ex ) { Log . e ( TAG , STRING0 , ex ) ; + } catch ( OutOfMemor...
Handle OutOfMemoryError when decoding images in ThumbnailUtils
<nb> public final class BsonArray extends BsonValue implements List < BsonValue > , Seria COMMENT COMMENT COMMENT - public BsonArray ( final List < BsonValue > values ) { + public BsonArray ( final List < ? extends BsonValue > values ) { this . values = new ArrayList < BsonValue > ( values ) ; }
Loosened up BsonArray constructor generic type
<nb> public class LinearLayoutManager extends RecyclerView . LayoutManager { int extraForStart ; int extraForEnd ; final int extra = getExtraLayoutSpace ( state ) ; - boolean before = state . getTargetScrollPosition ( ) < mAnchorInfo . mPosition ; - if ( before == mShouldReverseLayout ) { + SINGLE + boole...
Prefer laying out extra children at the end
<nb> public class WorldEdit { if ( data == - NUMBER0 ) { SINGLE SINGLE try { - data = typeAndData . length > NUMBER0 ? Integer . parseInt ( typeAndData [ NUMBER0 ] ) : ( allowNoData ? - NUMBER0 : NUMBER1 ) ; + data = ( typeAndData . length > NUMBER0 && typeAndData [ NUMBER0 ] . length ( ) > NUMBER1 ) ? Intege...
Handle empty damage values in WorldEdit getBlock
<nb> public class TestUniqueness extends TraversalTestBase count ++ ; paths . next ( ) ; } + assertEquals ( STRING0 , NUMBER0 , count ) ; COMMENT COMMENT COMMENT
adding missing assertion
<nb> public final class IdeMouseEventDispatcher { return false ; } + SINGLE + if ( ! KeymapManagerImpl . ourKeymapManagerInitialized ) { + return false ; + } + MouseShortcut shortcut = new MouseShortcut ( e . getButton ( ) , e . getModifiersEx ( ) , e . getClickCount ( ) ) ; fillActionsList ( compon...
avoid cyclic component initialization error in case of dialogs shown because of component initialization failure
<nb> public class FrameCreator extends H2O . H2OCountedCompleter { for ( int i = NUMBER0 ; i < _createFrame . factors ; ++ i ) { _domain [ c ] [ i ] = UUID . randomUUID ( ) . toString ( ) . subSequence ( NUMBER0 , NUMBER1 ) . toString ( ) ; SINGLE - while ( _domain [ c ] [ i ] . matches ( STRING0 ) ) { + whil...
Also exclude factors that contain lower case UUIDs that look like they
<nb> public interface Server { COMMENT COMMENT public PluginCommand getPluginCommand ( String name ) ; + + COMMENT + COMMENT + COMMENT + public void savePlayers ( ) ; } <nb> public interface World { COMMENT NETHER } + + COMMENT + COMMENT + COMMENT + public void save ( ) ; }
Add World save and Server savePlayers
<nb> public class StandardSession throws Exception { if ( context instanceof StandardContext ) { - SINGLE ( ( StandardContext ) context ) . fireContainerEvent ( type , data ) ; } }
As per kkolinko s comment remove old comment
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + @ ignore ( STRING0 ) public class Neo4jShellConsoleSessionTest implements SessionFactory ...
Ignored test since corresponding fix in community broke the build
<nb> public class SslHandler extends FrameDecoder { try { for ( ; ; ) { synchronized ( handshakeLock ) { - if ( engine . isOutboundDone ( ) ) { - break ; - } result = engine . wrap ( EMPTY_BUFFER , outNetBuf ) ; }
Removed unnecessary sanity check
<nb> package NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT + @ incubating public interface BuildTask { COMMENT <nb> package NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT + @ incubating pub...
Added some missing Incubating annotations