diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public final class BitMatrix { } COMMENT + COMMENT + COMMENT + public void clear ( ) { + int max = bits . length ; + for ( int i = NUMBER0 ; i < max ; i ++ ) { + bits [ i ] = NUMBER0 ; + } + } + + COMMENT COMMENT COMMENT COMMENT
Added a clear method to BitMatrix
<nb> COMMENT package NAMESPACE ; + @ functionalinterface public interface WebServerWatcher { COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ functionalinterface public interface CeTaskResult { COMMENT COMMENT <nb> public final class ComputationStepExecutor { } } ...
add FunctionalInterface where applicable
<nb> public class RandomUtils { COMMENT COMMENT COMMENT - public static boolean shuffle ( int [ ] intArray , int shuffleCount ) { + public static int [ ] shuffle ( int [ ] intArray , int shuffleCount ) { int length ; if ( intArray == null || shuffleCount < NUMBER0 || ( length = intArray . length ) < shuff...
modify shuffle int
<nb> class NioWorker implements Runnable { assert selector != null && selector . isOpen ( ) ; started = true ; - registerTaskQueue . offer ( registerTask ) ; + boolean offered = registerTaskQueue . offer ( registerTask ) ; + assert offered ; } if ( wakenUp . compareAndSet ( false , true ) ) { <nb> c...
Fixed find bugs warnings
<nb> public class SignInFragment extends AbstractFragment implements TextWatcher { protected void toggleSignInMode ( ) { if ( mUrlButtonLayout . getVisibility ( ) == View . VISIBLE ) { configureMagicLinkUI ( ) ; - mSelfHosted = false ; } else { showSelfHostedSignInForm ( ) ; - mSelfHosted = true ; } ...
Removing a double call for selfhosted true and moving setting selfhosted false to configureMagicLinkUI
<nb> public abstract class BaseAdapterDecorator extends BaseAdapter { mDecoratedBaseAdapter . unregisterDataSetObserver ( observer ) ; } + public BaseAdapter getDecoratedBaseAdapter ( ) { + return mDecoratedBaseAdapter ; + } } <nb> public abstract class AnimationAdapter extends BaseAdapterDecorator { ...
Added reset function to AnimationAdapter
<nb> public class NioEndpoint extends AbstractEndpoint { cancelledKey ( key , SocketStatus . TIMEOUT ) ; } } else if ( ka . isAsync ( ) || ka . getComet ( ) ) { - SINGLE - if ( ! ka . isAsync ( ) || ka . getTimeout ( ) > NUMBER0 ) { + if ( close ) { + key . interestOps ( NUMBER0 ) ; + ka . interestOps (...
Fix hopefully persistent failure of Comet unit test for connector stop when the END event is not received
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT
Routing table doesn t show it but it looks like firewall was the only issue
<nb> public final class MediaStore { public static final String LANGUAGE = STRING0 ; COMMENT - COMMENT + COMMENT COMMENT COMMENT public static final String LATITUDE = STRING1 ; COMMENT - COMMENT + COMMENT COMMENT COMMENT public static final String LONGITUDE = STRING2 ; COMMENT - COMM...
Fix incorrect javadoc
<nb> class UpdateInfoDialog extends AbstractUpdateDialog { } else { for ( ButtonInfo info : buttons ) { - if ( ! info . isDownload ( ) ) { + if ( ! info . isDownload ( ) || myPatch == null ) { actions . add ( new ButtonAction ( info ) ) ; } }
bring back download button when there s no patch
<nb> public abstract class ORecordAbstract < T > implements ORecord < T > , ORecordInternal < if ( database == null ) throw new ODatabaseException ( STRING0 ) ; - if ( database . load ( this ) == null ) - throw new ORecordNotFoundException ( STRING1 + getIdentity ( ) + STRING2 ) ; + try { + if ( database ...
Errors on loading records now raise all a ORecordNotFoundException
<nb> public class MemoryUtils { if ( value instanceof Collection ) { ArrayMemory result = new ArrayMemory ( ) ; for ( Object el : ( Collection ) value ) - result . add ( valueOf ( value ) ) ; + result . add ( valueOf ( el ) ) ; return result ; } else if ( value instanceof Map ) { <nb> public class Mem...
Fix small bug
<nb> import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class DecorView extends FrameLayout implements RootViewSurfaceTaker , Wind if ( StackId . hasWindowShadow ( ...
Prevent pinned stack from having extra elevation
<nb> class BitmapTextPage extends Geometry { return clone ; } + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + void assemble ( Letters quads ) { pageQuads . clear ( ) ; quads . rewind ( ) ;
Adding a comment about the strange shared fields in BitmapTextPage
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - class FailingBindScopingVisitor implements com . google . inject . Binding . ScopingVisitor < Void > { + class FailingBindScopingVisitor...
Moving visitors out of Binding so they don t show up in the main com google inject package core Javadocs
<nb> public class SubQueryTest extends AbstractQueryTest { public void ListProjection ( ) { assertToString ( STRING0 , sub ( ) . from ( cat ) . list ( cat ) ) ; } - + + @ test + public void ListContains ( ) { + assertToString ( STRING1 , sub ( ) . from ( cat ) . list ( cat ) . contains ( cat1 ) ) ; + ...
improved subquery tests
<nb> public class StreamManager implements StreamManagerMBean COMMENT public static RateLimiter getRateLimiter ( ) { - double currentThroughput = ( ( double ) DatabaseDescriptor . getStreamThroughputOutboundMegabitsPerSec ( ) ) * NUMBER0 * NUMBER0 ; + double currentThroughput = ( ( double ) DatabaseDescriptor...
update the streaming throttle bytes to bits
<nb> public class RecyclerView extends ViewGroup implements ScrollingView , NestedScro COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public final long getItemId ( ) {
Remove a duplicate the in RecylerView documentation
<nb> public class AccountSettingsFragment extends PreferenceFragment implements OnPre mWebAddressPreference = ( EditTextPreferenceWithValidation ) findPreference ( getString ( R . string . pref_key_web_address ) ) ; mLanguagePreference = ( DetailListPreference ) findPreference ( getString ( R . string . pref_key_la...
Fixed input types for email web address preference
<nb> public class IncomingCall extends Event { public static final String EVENT = STRING0 ; private long callId ; + private int uid ; - public IncomingCall ( long callId ) { + public IncomingCall ( long callId , int uid ) { this . callId = callId ; + this . uid = uid ; } public long getCall ( ) ...
incoming call event add uid
<nb> public final class IntegrationTestUtils { long start = System . currentTimeMillis ( ) ; FileSystemWorker worker = TachyonWorkerPrivateAccess . getFileSystemWorker ( localTachyonClusterResource . get ( ) . getWorker ( ) ) ; - FileDataManager fileDataManager = FileSystemWorkerPrivateAccess . getFileSystemWor...
Fix method name
<nb> public class TachyonFileSystemIntegrationTest { public void mkdirTest ( ) throws IOException , TException { String uniqPath = PathUtils . uniqPath ( ) ; for ( int k = NUMBER0 ; k < NUMBER1 ; k ++ ) { - Assert . assertTrue ( sTfs . mkdirs ( new TachyonURI ( uniqPath + k ) ) ) ; - Assert . assertTrue ( sTf...
Fix TachyonFileSystemIntegrationTest java
<nb> public class SqliteAndroidDatabaseType extends BaseSqliteDatabaseType implements } @ override + public String getDatabaseName ( ) { + return STRING0 ; + } + + @ override protected void appendDateType ( StringBuilder sb , int fieldWidth ) { SINGLE appendDateStringType ( sb , fieldWidth ) ;
Added database name to some exceptions in the database type hierarchy
<nb> import NAMESPACE ; COMMENT public class MetaRegistry extends MetaDataRegistrar { private static final List < MyBinding > ourBindings = new CopyOnWriteArrayList < MyBinding > ( ) ; - private static boolean ourContributorsLoaded = false ; + private static volatile boolean ourContributorsLoaded = false ; ...
fixed race condition by all
<nb> public final class CGIServlet extends HttpServlet { COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class CGIServlet extends HttpServlet { cgiEnv . getEnvironment ( ) , cgiEnv . getWorkingDirectory ( ) , cgiEnv . getParameters ( ) ) ; - SINGLE + if ( STRING0 . eq...
Remove unnecessary comment
<nb> public class ReaderPostListFragment extends Fragment mTags . clear ( ) ; mTags . addAll ( tagList ) ; if ( mFilterCriteriaLoaderListener != null ) + SINGLE mFilterCriteriaLoaderListener . onFilterCriteriasLoaded ( ( List ) mTags ) ; } } <nb> public class ReaderUpdateService extends Service { @ ov...
Suppress unchecked warning in ReaderPostListFragment
<nb> package NAMESPACE ; COMMENT public class NightlyBuildID { - public static final String BUILD_ID = STRING0 ; + public static final String BUILD_ID = STRING1 ; }
ignore potential project files from jb
<nb> public class TableViewBase implements IRowsetBase { COMMENT COMMENT public boolean isEmpty ( ) { - return nativeSize ( nativePtr ) != NUMBER0 ; + return size ( ) == NUMBER0 ; } COMMENT <nb> public class TableViewBase implements IRowsetBase { COMMENT COMMENT COMMENT - public long size ( ) ...
Fixed bug in isEmpty method of a View
<nb> public class ReloadHandler extends BaseOperationCommand { try { Thread . sleep ( NUMBER0 ) ; } catch ( InterruptedException e ) { + throw new CommandLineException ( STRING0 , e ) ; } try { cliClient . ensureConnected ( ctx . getConfig ( ) . getConnectionTimeout ( ) + NUMBER1 ) ; <nb> public class C...
don t ignore interruptions while pausing before reconnecting
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
add license header
<nb> import NAMESPACE ; Tests the URL connection . Not enabled by default , so tests don ' t require network connection . COMMENT - SINGLE + @ ignore SINGLE public class UrlConnectTest { private static String echoURL = STRING0 ; <nb> public class UrlConnectTest { assertEquals ( actualDocText , unlim...
got ignore annotation back
<nb> public class TestDataSchema STRING0 , STRING1 } , + SINGLE + { + STRING2 + + STRING3 + + STRING4 + + STRING5 + + STRING6 + + STRING7 + + STRING8 + + STRING9 + + STRING0 , + STRING10 + } , } ; boolean debug = false ;
add test case for include schema does not exist
<nb> public class Dashboard extends Activity { id = WordPress . currentBlog . getId ( ) ; titleBar = ( WPTitleBar ) findViewById ( R . id . dashboardActionBar ) ; titleBar . isHome = true ; - titleBar . showDashboard ( ) ; + titleBar . showDashboard ( NUMBER0 ) ; titleBar . setOnBlogChangedListener ( new ...
Missed this file in last commit
<nb> public class LzoTextDelimited extends TextDelimited { super ( fields , delimiter , quote , types , safe ) ; } + public LzoTextDelimited ( Fields fields , boolean skipHeader , boolean writeHeader , String delimiter , + boolean strict , String quote , Class [ ] types , boolean safe ) { + super ( fields ,...
Add LzoTextDelimited constructor that exposes the strict boolean
<nb> public class PooledDataSource implements DataSource { dataSource = new UnpooledDataSource ( ) ; } + public PooledDataSource ( UnpooledDataSource dataSource ) { + this . dataSource = dataSource ; + } + public PooledDataSource ( String driver , String url , String username , String password ) { dat...
allow arbitrary unpooled source
<nb> public class GTFSPatternHopFactory { Stop s0 = st0 . getStop ( ) ; Stop s1 = st1 . getStop ( ) ; + if ( st0 . getPickupType ( ) == NUMBER0 ) { + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + continue ; + } + Trip fromExemplar = fromInterlineTrip . tripPattern . exemplar ; Trip...
do not create interline dwells in cases where the transit agency probably does not intend them
<nb> public class DiskThresholdDeciderTests extends ElasticsearchAllocationTestCase { fail ( STRING0 ) ; } catch ( IllegalArgumentException e ) { assertThat ( STRING1 + e . getMessage ( ) , - e . getMessage ( ) . contains ( STRING2 ) , equalTo ( true ) ) ; + e . getMessage ( ) . contains ( STRING3 ) , equalTo...
TEST Fix incorrect message in DiskThresholdDeciderTests
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - - import NAMESPACE ; COMMENT COMMENT
fixed cs issue with unused imports
<nb> public class TextContentSelectorTest { public void testDownload ( ) { String s = new HttpClientDownloader ( ) . download ( STRING0 , STRING1 ) . smartContent ( ) . text ( ) . toString ( ) ; - Assert . assertNotNull ( text ) ; + Assert . assertNotNull ( s ) ; } }
fix compile error
<nb> public class AntlrParserPlugin extends ASTHelper implements ParserPlugin , Groovy return ternaryExpression ( node ) ; case OPTIONAL_ARG : - return binaryExpression ( Types . NAVIGATE , node ) ; - case DOT : return dotExpression ( node ) ; <nb> public class AntlrParserPlugin extends ASTHelper impl...
Support the optional path operator
<nb> public class PySdkUtil { } return processHandler . runProcess ( timeout ) ; } - catch ( IOException ex ) { + catch ( final IOException ex ) { LOG . warn ( ex ) ; - return failure_output ; + return new ProcessOutput ( ) { + @ override + public String getStderr ( ) { + String err = super . getS...
Pass exception to stderr
<nb> public class PhotonUtils { return imageUrl + query ; } + SINGLE + SINGLE + if ( imageUrl . contains ( STRING0 ) ) { + return imageUrl + query ; + } + SINGLE if ( UrlUtils . isHttps ( imageUrl ) ) { return STRING1 + imageUrl . substring ( schemePos + NUMBER0 , imageUrl . length ( ) ) + query...
Fix the url within PhotonUtils
<nb> public class ServerClusterRemoteDocumentTest extends AbstractServerClusterTest { final static int SERVERS = NUMBER0 ; public String getDatabaseName ( ) { - return STRING0 ; + return STRING1 ; } @ test <nb> public class ServerRemoteDocumentTest extends AbstractServerClusterTest { final static in...
Fixed distributed test cases
<nb> public class XmppConnectionService extends Service { sendUnsentMessages ( conversation ) ; } } else { - if ( contact . getPresences ( ) . size ( ) >= NUMBER0 ) { - if ( conversation . hasValidOtrSession ( ) ) { - String otrResource = conversation . getOtrSession ( ) . getSessionID ( ) . getUserID ( ) ;...
don t close otr session on every presence change
<nb> public abstract class AbstractTicketRegistry implements TicketRegistry , TicketRe COMMENT protected final Logger logger = LoggerFactory . getLogger ( getClass ( ) ) ; - @ value ( STRING0 ) + @ value ( STRING1 ) private boolean cleanerEnabled ; @ value ( STRING2 )
Enable the cleaner by default
<nb> public class BigTableWriter extends SSTableWriter private long beforeAppend ( DecoratedKey decoratedKey ) { assert decoratedKey != null : STRING0 ; SINGLE - SINGLE - SINGLE + if ( lastWrittenKey != null && lastWrittenKey . compareTo ( decoratedKey ) >= NUMBER0 ) + throw new RuntimeException ( STRING1...
Uncomment mistakenly commented sanity check
<nb> public class PhotoUploadService extends Service implements Handler . Callback { Log . d ( LOG_TAG , STRING0 + mInputLength + STRING1 + mTotalBytesRead ) ; } - mUpload . setUploadProgress ( Math . round ( mTotalBytesRead / mInputLength * NUMBER0 f ) ) ; + mUpload . setUploadProgress ( Math . round ( ( mTo...
Fix Upload Progress Calculation
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te SINGLE final View transientView = mRecycler . getTransientStateView ( position ) ; if ( transientView != null ) { - final View updatedView = mAdapter . getView ( position , transientView , this ) ; - if ( updatedView != t...
Check item type before re binding transient state views
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ;
Missing modifications in test
<nb> public class EphemeralFileSystemAbstraction implements FileSystemAbstraction } } } - return ByteBuffer . allocate ( ( sizeIndex < SIZES . length ) ? SIZES [ sizeIndex ] - : ( ( sizeIndex - SIZES . length + NUMBER0 ) * - SIZES [ SIZES . length - NUMBER0 ] ) ) ; + return ByteBuffer . allocateDirect ( (...
Revert When a file is expanded pool the previously used buffer
<nb> public abstract class AbstractSimpleTransportTestCase extends ESTestCase { } @ testlogging ( STRING0 ) + SINGLE + @ awaitsfix ( bugUrl = STRING1 ) public void testConcurrentSendRespondAndDisconnect ( ) throws BrokenBarrierException , InterruptedException { Set < Exception > sendingErrors = Concurrent...
await fix testConcurrentSendRespondAndDisconnect
<nb> class TransactionSubsystemRemove extends ReloadRequiredRemoveStepHandler { COMMENT COMMENT COMMENT - SINGLE + @ override protected boolean removeChildRecursively ( PathElement child ) { return ! TransactionExtension . LOG_STORE_PATH . equals ( child ) ; }
Declare the override now that the overridden method is integrated from core
<nb> public class LexerEditorHighlighter extends DocumentAdapter implements EditorHig CharSequence text = document . getCharsSequence ( ) ; int oldStartOffset = e . getOffset ( ) ; - final int oldStartIndex = mySegments . findSegmentIndex ( oldStartOffset ) ; + final int oldStartIndex = Math . max ( NUMBER0 ,...
Possible token merging lead to incorrect update fixed
<nb> public class ActivityApp extends ActivityBase { @ override public long getGroupId ( int groupPosition ) { - return groupPosition ; + return groupPosition * NUMBER0 ; } private class GroupViewHolder { <nb> public class ActivityApp extends ActivityBase { @ override public long getChildId ( in...
Guarantee unique group child IDs
<nb> public class ZeppelinRestApiTest extends AbstractTestRestApi { assertThat ( get , isAllowed ( ) ) ; Map < String , Object > resp = gson . fromJson ( get . getResponseBodyAsString ( ) , new TypeToken < Map < String , Object > > ( ) { } . getType ( ) ) ; Map < String , Object > body = ( Map < String , Object >...
update rest api test
<nb> public class Graph < T > { n = tNode ; if ( ! visited . contains ( n ) ) break ; } - DFS ( n , visited , sorted ) ; + if ( n != null ) { SINGLE + DFS ( n , visited , sorted ) ; + } } return sorted ; }
avoid potential null ptr deref Coverity
<nb> public class ManagedModelCreationRuleDefinitionHandler extends AbstractModelCrea throw new InvalidModelRuleDeclarationException ( ruleDefinition . getDescriptor ( ) , STRING0 ) ; } - String description = String . format ( STRING1 ) ; if ( modelSchema . getKind ( ) == ModelSchema . Kind . UNMANAGED ) { ...
Construct exception message only if the exception will be thrown
<nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix javadoc link
<nb> public final class InternalTestCluster extends TestCluster { public static String clusterName ( String prefix , String childVMId , long clusterSeed ) { StringBuilder builder = new StringBuilder ( prefix ) ; - builder . append ( STRING0 ) . append ( NetworkUtils . getLocalAddress ( ) . getHostName ( ) ) ; ...
TEST use a default host name if localAddress is not available
<nb> - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Move test that is not failing any more
<nb> public class OperationSetBasicInstantMessagingYahooImpl SINGLE SINGLE - SINGLE - SINGLE - SINGLE SINGLE formattedMessage = formattedMessage . replaceAll ( STRING0 ,
remove pointless TODO comment
<nb> public class DateHistogramTests extends ElasticsearchIntegrationTest { if ( frequently ( ) ) { boundsMinKey = baseKey . minusDays ( addedBucketsLeft * interval ) ; } else { - boundsMinKey = baseKey . plus ( addedBucketsLeft * interval ) ; + boundsMinKey = baseKey . plusDays ( addedBucketsLeft * interval ...
TEST Fix typo in DateHistogramTests that fails the test since it expects dates to be rounded by day
<nb> public class ParserAnnotator implements Annotator { props . getProperty ( annotatorName + STRING0 , STRING1 ) ) ; os . append ( annotatorName + STRING2 + props . getProperty ( annotatorName + STRING3 , props . getProperty ( STRING4 , STRING5 ) ) ) ; - os . append ( annotatorName + STRING6 + - props . get...
Correctly get the binary trees property for the signature
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public interface ConfiguredBundle < T > { + public interface ConfiguredBundle < T extends Configuration > { COMMENT COMMENT COMMENT <nb> public interface ConfiguredBundle < T > { COMMENT COMMENT COMMENT - void initialize ( Bootstrap < T > boots...
Added wildcard parameter
<nb> public class Amount < Q > implements Comparable < Amount < Q > > { if ( obj == null || obj . getClass ( ) != getClass ( ) ) { return false ; } - Amount < Q > other = ( Amount < Q > ) obj ; + @ suppresswarnings ( STRING0 ) + Amount < Q > other = ( Amount ) obj ; return compareTo ( other ) == NUMBER0 ;...
fixed unsafe warning
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class DefaultResourceLoader implements ResourceLoader { } COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT public ClassLoader getClassLoader ( ) { - return this . classLoader ; +...
avoid NPE in PathMatchingResourcePatternResolver when initialized with null ClassLoader
<nb> abstract class BaseActivity extends ListActivity { protected static final int RESULT_DONT_INVALIDATE_VIEWS = NUMBER0 ; protected static final int RESULT_DO_INVALIDATE_VIEWS = NUMBER1 ; + static BooksDatabase DatabaseInstance ; static Library LibraryInstance ; protected final ZLResource myResource = Z...
added a database instance field in BaseActivity
<nb> public class UpgradeReallyOldIndexTest extends ElasticsearchIntegrationTest { . put ( STRING0 , STRING1 ) SINGLE . put ( InternalNode . HTTP_ENABLED , true ) . build ( ) ) ; + ensureGreen ( STRING2 ) ; assertIndexSanity ( ) ;
Tweaking upgrade test to improve reliability
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class Security { Path processed = Files . createTempFile ( null , null ) ; try ( OutputStream output = new BufferedOutputStream ( Files . newOutputStream (...
Buffer this inputstream out of paranoia
<nb> public class LoggingHandler extends ChannelDuplexHandler { } } - private static void appendHexDump ( StringBuilder dump , ByteBuf buf ) { + COMMENT + COMMENT + COMMENT + COMMENT + protected static void appendHexDump ( StringBuilder dump , ByteBuf buf ) { dump . append ( NEWLINE + STRING0 + ...
Make LoggingHandler appendHexDump
<nb> public class ApplicationPidFileWriter implements COMMENT COMMENT COMMENT - private static interface Property { + private interface Property { String getValue ( SpringApplicationEvent event ) ;
Remove unecessary modifier
<nb> public class MethodDefinition { writer . write ( STRING0 ) ; - for ( MethodItem methodItem : getMethodItems ( ) ) { + List < MethodItem > methodItems = getMethodItems ( ) ; + int size = methodItems . size ( ) ; + for ( int i = NUMBER0 ; i < size ; i ++ ) { + MethodItem methodItem = methodItems . ge...
Use a for instead of foreach loop when iterating over MethodItems
<nb> public class GLMBasicTestRegression extends TestUtil { _prostateTrain = parse_test_file ( STRING0 ) ; _airlines = parse_test_file ( STRING1 ) ; Vec v = _airlines . remove ( STRING2 ) ; - _airlines . add ( STRING2 , v . makeCopy ( null ) ) ; + Vec v2 = v . makeCopy ( null ) ; + _airlines . add ( STRING2...
fixed glm test
<nb> public abstract class DrawerActivity extends ToolbarActivity { return ( ( NavigationView ) findViewById ( R . id . nav_view ) ) . getHeaderView ( NUMBER0 ) . findViewById ( id ) ; } - SINGLE public void restart ( ) { Intent i = new Intent ( this , FileDisplayActivity . class ) ; i . addFlags ( Intent...
added single top flag
<nb> public class TestCommand extends AbstractCommandRunner < TestCommandOptions > { getBuckEventBus ( ) , options . getTargetDeviceOptional ( ) , getCommandRunnerParams ( ) . getPlatform ( ) ) ; - int exitCode = BuildCommand . executeBuildAndPrintAnyFailuresToConsole ( build , console ) ; + int exitCode = NU...
Fix buck test thread pool leak
<nb> COMMENT package NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPAC...
An instance will now create a cluster only after contacting all instances
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ChooseByNamePopup extends ChooseByNameBase implements ChooseByNameP final JLayeredPane layeredPane = myTextField . getRootPan...
reduced gap between name and list in choose by name popup
<nb> public interface OperationSetServerStoredContactInfo COMMENT COMMENT COMMENT - public Iterator getDetailsAndDescendants ( Contact contat , Class detailClass ) ; + public Iterator getDetailsAndDescendants ( Contact contact , Class detailClass ) ; COMMENT COMMENT <nb> public interface OperationSetS...
Added Implementations to OperationsSetWebAccountRegistration and OperationsSetWebContactInfo
<nb> public class VoiceRouter { if ( currentStatus == STATUS_UNKNOWN ) { SINGLE - SINGLE if ( ( playGoAheadDist == - NUMBER0 ) || ( dist > PREPARE_LONG_DISTANCE ) ) { playGoAheadDist = dist - NUMBER1 ; } - SINGLE - if ( dist > PREPARE_LONG_DISTANCE + NUMBER2 ) { - SINGLE - nextStatusAfter ( STATUS...
remove obsolete code
<nb> public class WrappedValues { public Throwable getThrowable ( ) { return throwable ; } + + @ override + public String toString ( ) { + return throwable . toString ( ) ; + } } private WrappedValues ( ) {
Proper toString for wrapped throwables
<nb> class PackageManagerShellCommand extends ShellCommand { pw . println ( STRING0 ) ; pw . println ( STRING1 ) ; pw . println ( STRING2 ) ; - pw . println ( STRING3 ) ; + pw . println ( STRING4 ) ; pw . println ( STRING5 ) ; pw . println ( STRING6 ) ; pw . println ( STRING7 ) ; pw . println ( STRING...
Fix cmd package compile help message
<nb> public class MapActivityActions implements DialogProvider { } } ) . reg ( ) ; - optionsMenuHelper . item ( R . string . show_point_options ) + optionsMenuHelper . item ( R . string . settings_activity ) . icons ( R . drawable . ic_action_settings_dark , R . drawable . ic_action_settings_light ) . lis...
update db name
<nb> public class MaterialListPreference extends ListPreference { int preselect = findIndexOfValue ( getValue ( ) ) ; mBuilder = new MaterialDialog . Builder ( context ) - . title ( getTitle ( ) ) + . title ( getDialogTitle ( ) ) . icon ( getDialogIcon ( ) ) . negativeText ( getNegativeButtonText ( ) ) ...
Fixed list preference not using dialogTitle
<nb> public class Stage extends InputAdapter implements Disposable { public void draw ( ) { viewport . update ( ) ; - Camera camera = viewport . getCamera ( ) ; - camera . update ( ) ; if ( ! root . isVisible ( ) ) return ; - batch . setProjectionMatrix ( camera . combined ) ; + batch . setProjectionMat...
Don t update camera twice
<nb> public class DefaultVariableTypes implements Serializable , VariableTypes { return type ; } } - throw new ActivitiException ( STRING0 + value ) ; + throw new ActivitiException ( STRING1 + value ) ; } public int getTypeIndex ( VariableType type ) {
Improved exception message
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , COMMENT @ callsuper protected boolean verifyDrawable ( Drawable who ) { - return who == mBackground || ( mScrollCache != null && mScrollCache . scrollBar == who ) - || ( mForegroundInfo != null && mForegroundInfo . mDrawable == who ...
Don t verify the scrollbar drawable
<nb> public class VrManagerService extends SystemService implements EnabledComponentC @ override public void onBootPhase ( int phase ) { - if ( phase == SystemService . PHASE_THIRD_PARTY_APPS_CAN_START ) { + if ( phase == SystemService . PHASE_SYSTEM_SERVICES_READY ) { synchronized ( mLock ) { Looper loop...
Move setup to earlier boot phase
<nb> public class GitUnstashDialog extends DialogWrapper { private StashInfo myStashInfo ; public UnstashConflictResolver ( Project project , StashInfo stashInfo ) { - super ( project , true , new UnstashMergeDialogCustomizer ( stashInfo ) , STRING0 , STRING1 ) ; + super ( project , true , new UnstashMergeDia...
Git Fixed message in notification
<nb> public class SourceShim extends Composite @ override public void onEnsureVisibleSourceWindow ( EnsureVisibleSourceWindowEvent e ) { - fireEvent ( new EnsureVisibleEvent ( ) ) ; - fireEvent ( new EnsureHeightEvent ( EnsureHeightEvent . NORMAL ) ) ; + if ( source_ . getView ( ) . getTabCount ( ) > NUMBER...
prevent profiler from creating tabs during resize
<nb> public class ProviderMethod < T > implements Provider < T > { public void configure ( Binder binder ) { if ( scopeAnnotation != null ) { - binder . bind ( key ) . toProvider ( this ) . in ( scopeAnnotation ) ; + binder . withSource ( method ) . bind ( key ) . toProvider ( this ) . in ( scopeAnnotation ) ...
Restoring a missing
<nb> public class BasicUtils { } public static boolean judgeNotNull ( List list ) { - return list != null && list . size ( ) > NUMBER0 ? true : false ; + SINGLE + return judgeNotNull ( list , null ) ; + } + + public static boolean judgeNotNull ( List list , List . . . lists ) { + boolean flag = true...
add judgeNotNull List List
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - abstract class AbstractCodecEmbedder < T > implements CodecEmbedder < T > { + public abstract class AbstractCodecEmbedder < T > implements CodecEmbedder < T > { private final Channel channel ; private final ChannelPipeline pipeline ; <nb> abstract clas...
Made AbstractCodecEmbedder public
<nb> public class ColumnDefinition extends BaseDefinition { if ( isPackagePrivate ) { columnAccess = new PackagePrivateAccess ( processorManager . getElements ( ) . getPackageOf ( element ) . toString ( ) , - baseTableDefinition . databaseDefinition . classSeparator , baseTableDefinition . elementClassName . si...
got correct class reference next need to generate the helper class
<nb> static final class TransientArrayMap extends ATransientMap { return len / NUMBER0 ; } - IPersistentMap doPersistent ( ) { - return new PersistentArrayMap ( Arrays . copyOf ( array , len ) ) ; + IPersistentMap doPersistent ( ) { + Object [ ] a = new Object [ len ] ; + System . arraycopy ( array , NU...
replace copyOf with arrayCopy
<nb> public class JDBCNumberValueHandler extends JDBCAbstractValueHandler implements } break ; case java . sql . Types . SMALLINT : - value = resultSet . getShort ( index ) ; + SINGLE + value = resultSet . getInt ( index ) ; break ; case java . sql . Types . TINYINT : + SINGLE value = resultSet . ge...
Unsigned numeric fetch fix
<nb> public abstract class IndexRangeSummary { public abstract int calculationTookMs ( ) ; @ jsoncreator - public static IndexRangeSummary create ( @ jsonproperty ( STRING0 ) String indexName , + public static IndexRangeSummary create ( @ jsonproperty ( STRING1 ) String indexName , @ nullable @ jsonproperty...
Also fix field name in JsonCreator of IndexRangeSummary
<nb> public class UserController extends BaseUiController < UserController . UserUi , } @ override - public String doBackgroundCall ( ) { + public Response doBackgroundCall ( ) { mTraktClient . setAuthentication ( mUsername , mPassword ) ; - return mTraktClient . accountService ( ) . test ( ) . status ; ...
Fix crash when logging in
<nb> import static NAMESPACE import static NAMESPACE ; import static NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT public class StunServerDescriptor + implements Serializable { COMMENT COMMENT
Makes StunServerDescriptor serializable required for Android
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class StaticImportMemberFix < T extends PsiMember > implements Inte @ override public boolean isAvailable ( @ notnull Pr...
disable static imports for code fragments
<nb> public class UltimateRecyclerView extends FrameLayout { protected int [ ] defaultSwipeToDismissColors = null ; public int showLoadMoreItemNum = NUMBER0 ; - VerticalSwipeRefreshLayout mSwipeRefreshLayout ; + public VerticalSwipeRefreshLayout mSwipeRefreshLayout ; SINGLE private static final int SCRO...
make mSwipeRefreshLayout to public