<nb> class WindowStateAnimator {

 SINGLE
 if ( mTmpSize . width ( ) < NUMBER0 ) {
 - Slog . w ( TAG , STRING0 + w + STRING1 + mTmpSize . width ( ) ) ;
 + if ( ! mWin . mLayoutNeeded ) Slog . w ( TAG ,
 + STRING0 + w + STRING1 + mTmpSize . width ( ) ) ;
 mTmpSize . right = mTmpSize . left + NUMBER0 ;
 }
 if ( mTmpSize . height ( ) < NUMBER0 ) {
 - Slog . w ( TAG , STRING2 + w + STRING1 + mTmpSize . height ( ) ) ;
 + if ( ! mWin . mLayoutNeeded ) Slog . w ( TAG ,
 + STRING2 + w + STRING1 + mTmpSize . height ( ) ) ;
 mTmpSize . bottom = mTmpSize . top + NUMBER0 ;
 }

Don t log bad surface size before layout is done


<nb> import NAMESPACE ;
 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 class NewMailNotifications {
 private final NotificationController controller ;
 private final NotificationContentCreator contentCreator ;
 <nb> class WearNotifications extends BaseNotifications {
 int icon = R . drawable . ic_action_mark_as_read_dark ;
 String title = context . getString ( R . string . notification_action_mark_as_read ) ;

 -
 MessageReference messageReference = holder . content . messageReference ;
 int notificationId = holder . notificationId ;
 PendingIntent action = actionCreator . createMarkMessageAsReadPendingIntent ( messageReference , notificationId ) ;

Add a little bit of documentation on summary vs stacked notifications


<nb> public abstract class AbstractHttp11Processor < S > extends AbstractProcessor < S > {
 try {
 isReady . set ( getOutputBuffer ( ) . isReady ( ) ) ;
 } catch ( IOException e ) {
 - SINGLE
 - throw new IllegalStateException ( ) ;
 + getLog ( ) . debug ( STRING0 , e ) ;
 + error = true ;
 }
 } else if ( actionCode == ActionCode . NB_READ_INTEREST ) {
 registerForEvent ( true , false ) ;


<nb> public class ChunkedWriteHandler
 }

 @ override
 - public void read ( ChannelHandlerContext ctx ) {
 - ctx . read ( ) ;
 - }
 -
 - @ override
 public void write ( ChannelHandlerContext ctx , Object msg , ChannelPromise promise ) throws Exception {
 queue . add ( new PendingWrite ( msg , promise ) ) ;
 }
 <nb> public class ChunkedWriteHandler
 SINGLE
 doFlush ( ctx ) ;
 }
 + ctx . fireChannelWritabilityChanged ( ) ;
 }

 private void discard ( Throwable cause ) {

Propagate channelWritabilityChanged through the pipeline after flushing


<nb> public class OutputFormat
 {
 throw new WebApplicationException ( badRequest ( e ) ) ;
 }
 - throw new WebApplicationException ( serverError ( e ) ) ;
 + throw new WebApplicationException ( e , serverError ( e ) ) ;
 }
 finally
 {

Improve error logging when sending HTTP error response


<nb> public final class RoutingSlipDefinitionRenderer {

 public static void render ( StringBuilder buffer , ProcessorDefinition processor ) {
 RoutingSlipDefinition routingSlip = ( RoutingSlipDefinition ) processor ;
 - buffer . append ( STRING0 ) . append ( routingSlip . getShortName ( ) ) . append ( STRING1 ) . append ( routingSlip . getHeaderName ( ) )
 + buffer . append ( STRING0 ) . append ( routingSlip . getShortName ( ) ) . append ( STRING1 ) . append ( routingSlip . getExpression ( ) )
 . append ( STRING2 ) . append ( routingSlip . getUriDelimiter ( ) ) . append ( STRING3 ) ;
 }
 }


<nb> public class PyRequirement {
 @ notnull
 private List < String > parse ( @ nullable String s ) {
 SINGLE
 + if ( s == null ) {
 + return Collections . emptyList ( ) ;
 + }
 final Pattern COMPONENT_RE = Pattern . compile ( STRING0 ) ;
 final List < String > results = new ArrayList < String > ( ) ;
 final Matcher matcher = COMPONENT_RE . matcher ( s ) ;

Fixed NPE in version comparator inside PyRequirement


<nb> public abstract class AbstractJavaFxPackager {
 final File tempUnzippedArtifactOutput ;
 try {
 tempUnzippedArtifactOutput = FileUtil . createTempDirectory ( STRING0 , STRING1 ) ;
 - ZipUtil . extract ( new File ( zipPath ) , tempUnzippedArtifactOutput , null ) ;
 - copyLibraries ( zipPath , tempUnzippedArtifactOutput ) ;
 + final File artifactOutputFile = new File ( zipPath ) ;
 + ZipUtil . extract ( artifactOutputFile , tempUnzippedArtifactOutput , null ) ;
 + copyLibraries ( artifactOutputFile . getName ( ) , tempUnzippedArtifactOutput ) ;
 }
 catch ( IOException e ) {
 registerJavaFxPackagerError ( e ) ;


<nb> public class ModifierKeyDoubleClickHandler {
 resetState ( ) ;
 return false ;
 }
 - if ( ourOtherKeyWasPressed . get ( ) && Clock . getTime ( ) - ourLastTimePressed . get ( ) < NUMBER0 ) {
 + if ( myActionKeyCode == - NUMBER1 && ourOtherKeyWasPressed . get ( ) && Clock . getTime ( ) - ourLastTimePressed . get ( ) < NUMBER0 ) {
 resetState ( ) ;
 return false ;
 }

adding carets on double Ctrl arrows is not triggered sometimes


<nb> public abstract class ModificationStatement implements CQLStatement
 ColumnFamily updates = updateForKey ( key , clusteringPrefix , params ) ;
 ColumnFamily expected = buildConditions ( key , clusteringPrefix , params ) ;

 - ColumnFamily result = StorageProxy . cas ( keyspace ( ) , columnFamily ( ) , key , clusteringPrefix , expected , updates , options . getConsistency ( ) , options . getSerialConsistency ( ) ) ;
 + ColumnFamily result = StorageProxy . cas ( keyspace ( ) ,
 + columnFamily ( ) ,
 + key ,
 + clusteringPrefix ,
 + expected ,
 + updates ,
 + options . getSerialConsistency ( ) ,
 + options . getConsistency ( ) ) ;
 return new ResultMessage . Rows ( buildCasResultSet ( key , result ) ) ;
 }

Fix cas arguments order in MS executeWithCondition


<nb> public class DlvApi {
 public boolean goroutine ;
 SINGLE
 public List < String > variables ;
 + SINGLE
 + public Object hitCount ; SINGLE
 + SINGLE
 + public long totalHitCount ;
 }

 SINGLE


<nb> import NAMESPACE ;
 @ runwith ( Parameterized . class )
 public class IterationWithAllReducerITCase extends TestBase2 {

 - private static final String INPUT = STRING0 + STRING1 + STRING2 + STRING3 + STRING4 + STRING5 + STRING6 + STRING7 ;
 + private static final String INPUT = STRING0 + STRING0 + STRING0 + STRING0 + STRING0 + STRING0 + STRING0 + STRING0 ;
 private static final String EXPECTED = STRING0 ;

 protected String dataPath ;

Fix erroneous test case for AllReduce in iterations


<nb> public class RelOptHiveTable extends RelOptAbstractTable {
 if ( m_hiveTblMetadata . isPartitioned ( ) ) {
 if ( partitionList == null ) {
 try {
 - List < Partition > parts = Hive . get ( ) . getPartitions ( m_hiveTblMetadata ) ;
 + List < Partition > parts = new ArrayList < Partition > (
 + Hive . get ( ) . getAllPartitionsOf ( m_hiveTblMetadata ) ) ;
 List < Long > rowCounts = StatsUtils . getBasicStatForPartitions (
 m_hiveTblMetadata , parts , StatsSetupConst . ROW_COUNT ) ;
 m_rowCount = StatsUtils . getSumIgnoreNegatives ( rowCounts ) ;

Reading of partitioned table stats slows down explain Harish Butani via Gunther Hagleitner


<nb> public final class Main {

 SINGLE
 SINGLE
 - private static final ImmutableSet < String > DEFAULT_IGNORE_GLOBS = ImmutableSet . of ( STRING0 ) ;
 + private static final ImmutableSet < String > DEFAULT_IGNORE_GLOBS =
 + ImmutableSet . of ( STRING0 , STRING1 , STRING2 ) ;

 private static final Logger LOG = Logger . get ( Main . class ) ;

Add workspace data and scheme to the watchman ignore globs


<nb> public class InspectionResultsView extends JPanel implements Disposable , Occuren
 ( ( InspectionTreeNode ) path . getLastPathComponent ( ) ) . ignoreElement ( myExcludedInspectionTreeNodesManager ) ;
 }
 }
 - myTree . queueUpdate ( ) ;
 + if ( myGlobalInspectionContext . getUIOptions ( ) . FILTER_RESOLVED_ITEMS ) {
 + InspectionResultsView . this . update ( ) ;
 + } else {
 + myTree . queueUpdate ( ) ;
 + }
 }

 @ override

exclude action rebuild tree when filter excluded option is enabled


<nb> public abstract class AbstractDatabase implements Database {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected abstract List < SequenceDefinition > getSequences0 ( ) throws SQLException ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected abstract List < TableDefinition > getTables0 ( ) throws SQLException ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected abstract List < RoutineDefinition > getRoutines0 ( ) throws SQLException ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected abstract List < PackageDefinition > getPackages0 ( ) throws SQLException ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected abstract List < EnumDefinition > getEnums0 ( ) throws SQLException ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected abstract List < UDTDefinition > getUDTs0 ( ) throws SQLException ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected abstract List < ArrayDefinition > getArrays0 ( ) throws SQLException ;
 }


<nb> public class MetaContactChatSession
 sessionRenderer . setSelectedChatTransport ( chatTransport , false ) ;
 }

 - SINGLE
 + SINGLE
 + SINGLE
 if ( currentChatTransport == null )
 {
 - currentChatTransport = chatTransports . get ( NUMBER0 ) ;
 + for ( ChatTransport ct : chatTransports )
 + {
 + if ( ct . getStatus ( ) != null
 + && ct . getStatus ( ) . isOnline ( ) )
 + {
 + currentChatTransport = ct ;
 + break ;
 + }
 + }
 +
 + SINGLE
 + if ( currentChatTransport == null )
 + currentChatTransport = chatTransports . get ( NUMBER0 ) ;
 +
 sessionRenderer
 . setSelectedChatTransport ( currentChatTransport , false ) ;
 }

Chooses online chat transport when adding or updating chat transports


<nb> public class DnsResponseDecoder extends MessageToMessageDecoder < DatagramPacket >
 response . addQuestion ( decodeQuestion ( buf ) ) ;
 }
 if ( header . getResponseCode ( ) != NUMBER0 ) {
 - System . err . println ( STRING0
 - + response . getQuestions ( ) . get ( NUMBER0 ) . name ( ) + STRING1
 - + DnsResponseCode . valueOf ( header . getResponseCode ( ) ) ) ;
 + SINGLE
 + return response ;
 }
 for ( int i = NUMBER0 ; i < header . getReadAnswers ( ) ; i ++ ) {
 response . addAnswer ( decodeResource ( buf , allocator ) ) ;


<nb> public final class ProxyHandler implements HttpHandler {
 final XnioExecutor . Key key = exchange . getIoThread ( ) . executeAfter ( new Runnable ( ) {
 @ override
 public void run ( ) {
 - if ( exchange . isResponseStarted ( ) ) {
 - if ( exchange . getConnection ( ) . isOpen ( ) ) {
 - UndertowLogger . REQUEST_LOGGER . proxyRequestTimedOut ( exchange . getRequestURI ( ) ) ;
 - IoUtils . safeClose ( exchange . getConnection ( ) ) ;
 - }
 - } else {
 - exchange . setResponseCode ( NUMBER0 ) ;
 - exchange . endExchange ( ) ;
 - }
 ProxyConnection connectionAttachment = exchange . getAttachment ( CONNECTION ) ;
 if ( connectionAttachment != null ) {
 + SINGLE
 ClientConnection clientConnection = connectionAttachment . getConnection ( ) ;
 IoUtils . safeClose ( clientConnection ) ;
 + } else {
 + exchange . setResponseCode ( NUMBER0 ) ;
 + exchange . endExchange ( ) ;
 }
 }
 } , maxRequestTime , TimeUnit . MILLISECONDS ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

throw es CircuitBreakingException internally instead of the io crate one


<nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public abstract class DefaultMessageHandler implements BuilderMessageHandler {
 return ! ( element instanceof PsiIdentifier ) || processor . execute ( ( PsiIdentifier ) element ) ;
 }
 } ;
 - return helper . processElementsWithWord ( processor1 , searchScope , identifier , searchContext , true ) ;
 + return helper . processElementsWithWord ( processor1 , searchScope , identifier , searchContext , true , false ) ;
 }

 private void addUsages ( PsiField psiField , Collection < PsiElement > usages , final boolean ignoreAccessScope ) throws ProcessCanceledException {

do not search usages of removed constant fields in injected PSI


<nb>
 package NAMESPACE ;

 -
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;

 <nb> public class CategoryNode {

 public static CategoryNode createCategoryTreeFromDB ( int blogId ) {
 List < String > stringCategories = WordPress . wpDB . loadCategories ( blogId ) ;
 - SINGLE
 +
 + SINGLE
 SparseArray < CategoryNode > categoryMap = new SparseArray < CategoryNode > ( ) ;
 CategoryNode rootCategory = new CategoryNode ( - NUMBER0 , - NUMBER0 , STRING0 ) ;
 CategoryNode currentRootNode ;


<nb> public final class CFMetaData
 + STRING0
 + STRING1
 + STRING2
 + + STRING3
 + STRING4
 + STRING5 ) ;

 <nb> public class SystemTable

 private static void setupVersion ( )
 {
 - String req = STRING6 ;
 + String req = STRING7 ;
 IEndpointSnitch snitch = DatabaseDescriptor . getEndpointSnitch ( ) ;
 processInternal ( String . format ( req , LOCAL_CF ,
 LOCAL_KEY ,
 <nb> public class SystemTable
 QueryProcessor . CQL_VERSION . toString ( ) ,
 Constants . VERSION ,
 snitch . getDatacenter ( FBUtilities . getBroadcastAddress ( ) ) ,
 - snitch . getRack ( FBUtilities . getBroadcastAddress ( ) ) ) ) ;
 + snitch . getRack ( FBUtilities . getBroadcastAddress ( ) ) ,
 + DatabaseDescriptor . getPartitioner ( ) . getClass ( ) . getName ( ) ) ) ;
 }

 COMMENT

Add partitioner to local system table for clients sake


<nb> public class MainActivity extends Activity {
 protected void onCreate ( Bundle savedInstanceState ) {
 super . onCreate ( savedInstanceState ) ;
 setContentView ( R . layout . activity_main ) ;
 +
 + SINGLE
 +
 }


<nb> public abstract class ProxyConnection implements Connection
 SQL_ERRORS . add ( STRING0 ) ; SINGLE
 SQL_ERRORS . add ( STRING1 ) ; SINGLE
 SQL_ERRORS . add ( STRING2 ) ; SINGLE
 + SQL_ERRORS . add ( STRING3 ) ; SINGLE
 }

 protected ProxyConnection ( final PoolEntry poolEntry , final Connection connection , final FastList < Statement > openStatements , final ProxyLeakTask leakTask , final long now , final boolean isReadOnly , final boolean isAutoCommit ) {

exceeded maximum connect time to SQL_ERRORS


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 public class ShowStructureSettingsAction extends AnAction implements DumbAware {
 <nb> public class ShowStructureSettingsAction extends AnAction implements DumbAware {
 protected JComponent createSouthPanel ( ) {
 JComponent panel = super . createSouthPanel ( ) ;
 assert panel != null ;
 - panel . setBorder ( new CustomLineBorder ( Gray . _153 , NUMBER0 , NUMBER1 , NUMBER1 , NUMBER1 ) ) ;
 + CustomLineBorder line = new CustomLineBorder ( Gray . _153 , NUMBER0 , NUMBER1 , NUMBER1 , NUMBER1 ) ;
 + panel . setBorder ( new CompoundBorder ( line , new EmptyBorder ( NUMBER2 , NUMBER3 , NUMBER3 , NUMBER3 ) ) ) ;
 return panel ;
 }
 } . show ( ) ;


<nb> public class StatisticsModelImpl implements StatisticsModel {
 Element reportE = document . createElement ( STRING0 ) ;
 reportE . setAttribute ( STRING1 , entry . getKey ( ) . getName ( ) ) ;
 reportE . setAttribute ( STRING2 , entry . getValue ( ) ) ;
 - resultsE . appendChild ( reportE ) ;
 + reportsE . appendChild ( reportE ) ;
 }
 }
 modelE . appendChild ( reportsE ) ;


<nb> public class TransportClusterStatsAction extends TransportNodesOperationAction < C
 continue ;
 }
 for ( IndexShard indexShard : indexService ) {
 - logger . warn ( STRING0 + indexShard . shardId ( ) + STRING1 + indexShard . state ( ) ) ;
 if ( indexShard . routingEntry ( ) . active ( ) ) {
 SINGLE
 shardsStats . add ( new ShardStats ( indexShard , SHARD_STATS_FLAGS ) ) ;


<nb> public class DrawableCompat {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public static void setTint ( Drawable drawable , int tint ) {
 IMPL . setTint ( drawable , tint ) ;
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DrawableCompat {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class LL1Analyzer {
 {
 SINGLE
 ATNConfig c = new ATNConfig ( s , NUMBER0 , ctx ) ;
 - if ( lookBusy . contains ( c ) ) return ;
 - lookBusy . add ( c ) ;
 + if ( ! lookBusy . add ( c ) ) return ;

 if ( s instanceof RuleStopState ) {
 if ( ctx == null ) {
 <nb> public class ParserATNSimulator < Symbol > extends ATNSimulator {
 {
 if ( debug ) System . out . println ( STRING0 + config + STRING1 ) ;

 - if ( closureBusy . contains ( config ) ) return ; SINGLE
 - closureBusy . add ( config ) ;
 + if ( ! closureBusy . add ( config ) ) return ; SINGLE

 if ( config . state instanceof RuleStopState ) {
 SINGLE

Combine calls to Set contains and Set add


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public class MultiplexerPacketHandler {
 STRING0 ) ) ;
 sendErrorPacket ( route , PacketError . Condition . bad_request , extraError ) ;
 }
 - catch ( UnsupportedEncodingException e ) {
 + catch ( Exception e ) {
 Log . error ( STRING1 + route . getChildElement ( ) . asXML ( ) , e ) ;
 sendErrorPacket ( route , PacketError . Condition . internal_server_error , null ) ;
 }

Do not close CM connection when client performs invalid operation


<nb> public class MainActivity extends Activity implements
 startVpn ( ) ;
 }
 } else {
 - ApkUtils . uninstall ( MainActivity . this , STRING0 ) ;
 + if ( ApkUtils . isInstalled ( this , STRING0 ) ) {
 + new Thread ( new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + ApkUtils . uninstall ( MainActivity . this , STRING0 ) ;
 + }
 + } ) . start ( ) ;
 + }
 checkWifiRepeater ( ) ;
 checkPickAndPlay ( ) ;
 ConnectFreeInternetService . execute ( this ) ;


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;

 - import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;

 public class Class extends Node {
 <nb> public class Class extends Node {
 if ( baseType . isClassType ( ) ) {
 classType . addSuper ( baseType ) ;
 } else if ( baseType . isUnionType ( ) ) {
 - classType . addSuper ( baseType . asUnionType ( ) . types . iterator ( ) . next ( ) ) ;
 + for ( Type parent : baseType . asUnionType ( ) . types ) {
 + classType . addSuper ( parent ) ;
 + }
 } else {
 Analyzer . self . putProblem ( base , base + STRING0 ) ;
 }


<nb> public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
 memberAlive ( resp [ i ] . getSource ( ) ) ;
 }
 } catch ( ChannelException ce ) {
 - SINGLE
 + SINGLE
 FaultyMember [ ] faultyMembers = ce . getFaultyMembers ( ) ;
 for ( FaultyMember faultyMember : faultyMembers ) {
 memberDisappeared ( faultyMember . getMember ( ) ) ;


<nb> public class BareCommand extends ClasspathHandler {
 return meth ;
 }
 }
 +
 + SINGLE
 + meths = clazz . getMethods ( ) ;
 + for ( Method meth : meths ) {
 + if ( ( STRING0 + fieldName ) . toLowerCase ( ) . equals ( meth . getName ( ) . toLowerCase ( ) ) ) {
 + return meth ;
 + }
 + }
 +
 return null ;
 }

When mapping system properties to options also consider overridden methods as valid candidates


<nb> public class PathsFunctionalTest extends AbstractRestFunctionalTestBase
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 @ title ( STRING0 )
 @ test

removing graph doc will be superceeded by the graphviz generation


<nb> public class DefaultJarFile extends AbstractBuildableModelElement implements Jar
 private File file ;

 public DefaultJarFile ( ComponentSpecIdentifier identifier ) {
 - super ( identifier , DefaultJarFile . class ) ;
 + super ( identifier , JarFile . class ) ;
 }

 @ override


<nb> public class CircleImageView extends ImageView {
 setup ( ) ;
 }

 + @ override
 + public void setPadding ( int left , int top , int right , int bottom ) {
 + super . setPadding ( left , top , right , bottom ) ;
 + setup ( ) ;
 + }
 +
 + @ override
 + public void setPaddingRelative ( int start , int top , int end , int bottom ) {
 + super . setPaddingRelative ( start , top , end , bottom ) ;
 + setup ( ) ;
 + }
 +
 public int getBorderColor ( ) {
 return mBorderColor ;
 }

Handle programmatic change of padding properly


<nb> public class SAXUtils {
 throw new IllegalArgumentException ( STRING0 + pAttributeName ) ;
 }
 }
 +
 + public static String getAttribute ( final Attributes pAttributes , final String pAttributeName , final String pDefaultValue ) {
 + final String value = pAttributes . getValue ( STRING1 , pAttributeName ) ;
 + return ( value != null ) ? value : pDefaultValue ;
 + }
 +
 + public static String getAttributeOrThrow ( final Attributes pAttributes , final String pAttributeName ) {
 + final String value = pAttributes . getValue ( STRING1 , pAttributeName ) ;
 + if ( value != null ) {
 + return value ;
 + } else {
 + throw new IllegalArgumentException ( STRING0 + pAttributeName ) ;
 + }
 + }

 public static void appendAttribute ( final StringBuilder pStringBuilder , final String pName , final int pValue ) {
 appendAttribute ( pStringBuilder , pName , String . valueOf ( pValue ) ) ;

Added SAXUtils getAttribute SaxUtils getAttributeOrThrow for Strings before there was only one for ints


<nb> public class TestNode extends TomcatBaseTest {

 String result = res . toString ( ) ;

 - System . out . println ( result ) ;
 -
 Assert . assertTrue (
 result . indexOf ( STRING0 ) > NUMBER0 ) ;
 }


<nb> public class DomFileIndex extends ScalarIndexExtension < String > {
 }

 public PersistentEnumerator . DataDescriptor < String > getKeyDescriptor ( ) {
 - return EnumeratorStringDescriptor . INSTANCE ;
 + return new EnumeratorStringDescriptor ( ) ;
 }

 public FileBasedIndex . InputFilter getInputFilter ( ) {
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class EnumeratorStringDescriptor implements PersistentEnumerator . DataDescriptor < String > {
 - public static final EnumeratorStringDescriptor INSTANCE = new EnumeratorStringDescriptor ( ) ;
 private final byte [ ] buffer = IOUtil . allocReadWriteUTFBuffer ( ) ;

 public int getHashCode ( final String value ) {

don t use singleton for EnumeratorStringDescriptor because the object is stateful


<nb> class CursorImpl < R extends Record > implements Cursor < R > {
 @ override
 public final boolean hasNext ( ) {
 if ( hasNext == null ) {
 - next = fetch ( ) ;
 + next = fetchOne ( ) ;
 hasNext = ( next != null ) ;
 }

 <nb> class CursorImpl < R extends Record > implements Cursor < R > {
 @ override
 public final R next ( ) {
 if ( hasNext == null ) {
 - return fetch ( ) ;
 + return fetchOne ( ) ;
 }

 R result = next ;
 <nb> class CursorImpl < R extends Record > implements Cursor < R > {
 return result ;
 }

 - private final R fetch ( ) {
 + private final R fetchOne ( ) {
 R record = null ;

 try {


<nb> public class JCacheCustomInterceptorTests {
 COMMENT
 COMMENT
 COMMENT
 + @ suppresswarnings ( STRING0 )
 static class TestCacheInterceptor extends JCacheInterceptor {

 @ override

Suppress serial warning in JCacheCustomInterceptorTests


<nb> public class Tile {
 BitmapRecycler recycler = mBitmapRecyclerReference . get ( ) ;
 if ( recycler != null ) {
 recycler . recycleBitmap ( mBitmap ) ;
 - } else {
 - mBitmap . recycle ( ) ;
 }
 }
 mBitmap = null ;


<nb> public class EntityResponse < E extends RecordTemplate > extends RecordTemplate
 return getStatus ( GetMode . STRICT ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + @ deprecated
 public boolean hasErorr ( )
 {
 + return hasError ( ) ;
 + }
 +
 + public boolean hasError ( )
 + {
 return contains ( _errorField ) ;
 }


<nb> public class Constants {
 public static final String OS_VERSION = System . getProperty ( STRING0 ) ;
 public static final String JAVA_VENDOR = System . getProperty ( STRING1 ) ;
 public static final int VERSION_NODE = NUMBER0 ;
 - public static final int VERSION_EDGE = NUMBER0 ;
 + public static final int VERSION_EDGE = NUMBER1 ;
 public static final int VERSION_GEOMETRY = NUMBER0 ;
 public static final int VERSION_LOCATION_IDX = NUMBER0 ;
 COMMENT

increased edge version as encoding changed


<nb> public class AlarmInfo implements LocationPoint {
 if ( alarmInfo != null ) {
 alarmInfo . setLatLon ( loc . getLatitude ( ) , loc . getLongitude ( ) ) ;
 }
 - return null ;
 + return alarmInfo ;
 }

 public int updateDistanceAndGetPriority ( float time , float distance ) {

Revert fix of alarm info it doesn t work as expected


<nb> public class LanguageLevelProjectExtensionImpl extends LanguageLevelProjectExten
 }

 public void reloadProjectOnLanguageLevelChange ( final LanguageLevel languageLevel , final boolean forceReload ) {
 - if ( myProject . isOpen ( ) ) {
 + if ( myProject . isOpen ( ) && ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
 myReloadProjectRequest = new Runnable ( ) {
 public void run ( ) {
 if ( myProject . isDisposed ( ) ) return ;

do not request project reload if language level changed during a test


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;

 - import NAMESPACE ;
 -
 public final class RateLimitedFSDirectory extends Directory {
 private final FSDirectory delegate ;

 <nb> public final class RateLimitedFSDirectory extends Directory {
 private final StoreRateLimiting . Listener rateListener ;

 public RateLimitedFSDirectory ( FSDirectory wrapped , StoreRateLimiting . Provider rateLimitingProvider ,
 - StoreRateLimiting . Listener rateListener ) {
 + StoreRateLimiting . Listener rateListener ) {
 this . delegate = wrapped ;
 this . rateLimitingProvider = rateLimitingProvider ;
 this . rateListener = rateListener ;
 <nb> public final class RateLimitedFSDirectory extends Directory {
 private final StoreRateLimiting . Listener rateListener ;

 RateLimitedIndexOutput ( final RateLimiter rateLimiter , final StoreRateLimiting . Listener rateListener , final IndexOutput delegate ) {
 - SINGLE
 + SINGLE
 if ( delegate instanceof BufferedIndexOutput ) {
 bufferedDelegate = ( BufferedIndexOutput ) delegate ;
 this . delegate = delegate ;


<nb> public class ReactRootView extends SizeMonitoringFrameLayout implements RootView

 @ override
 public void requestDisallowInterceptTouchEvent ( boolean disallowIntercept ) {
 - SINGLE
 - SINGLE
 + SINGLE
 + SINGLE
 + if ( getParent ( ) != null ) {
 + getParent ( ) . requestDisallowInterceptTouchEvent ( disallowIntercept ) ;
 + }
 }

 @ override

Fix requestDisallowInterceptTouchEvent for nested react native views


<nb> public abstract class jOOQAbstractTest <
 }

 @ test
 + public void testWindowFunctions ( ) throws Exception {
 + new AggregateWindowFunctionTests ( this ) . testWindowFunctions ( ) ;
 + }
 +
 + @ test
 public void testStoredFunctions ( ) throws Exception {
 new RoutineAndUDTTests ( this ) . testStoredFunctions ( ) ;
 }
 <nb> public abstract class jOOQAbstractTest <
 }

 @ test
 - public void testWindowFunctions ( ) throws Exception {
 - new AggregateWindowFunctionTests ( this ) . testWindowFunctions ( ) ;
 - }
 -
 - @ test
 public void testPackage ( ) throws Exception {
 new RoutineAndUDTTests ( this ) . testPackage ( ) ;
 }


<nb> public class PhotoViewerActivity extends SherlockFragmentActivity implements OnP

 @ override
 public void onBackPressed ( ) {
 - if ( null != mFilterGroup && mFilterGroup . getVisibility ( ) == View . VISIBLE ) {
 + if ( null != mFilterGroup && mFilterGroup . isShowing ( ) ) {
 hideFiltersView ( ) ;
 } else {
 super . onBackPressed ( ) ;
 <nb> public class FiltersRadioGroup extends RadioGroup implements AnimationListener {
 startAnimation ( mSlideOutBottomAnim ) ;
 }
 }
 +
 + public boolean isShowing ( ) {
 + return getVisibility ( ) == View . VISIBLE && getAnimation ( ) != mSlideOutBottomAnim ;
 + }

 public void onAnimationEnd ( Animation animation ) {
 if ( animation == mSlideOutBottomAnim ) {

Fix Pressing back while filters are animating away


<nb> package NAMESPACE ;

 import NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class XMLRuleHandler extends DefaultHandler {
 tokenLevelCaseSet = true ;
 tokenLevelCaseSensitive = YES . equals ( attrs . getValue ( CASE_SENSITIVE ) ) ;
 } else {
 + tokenLevelCaseSensitive = false ;
 tokenLevelCaseSet = false ;
 }
 }

properly reset variable tokenLevelCaseSensitive


<nb> public class FtpPollingConsumerTest extends FtpServerTestSupport {
 @ test
 public void testPollingConsumer ( ) throws Exception {
 MockEndpoint result = getMockEndpoint ( STRING0 ) ;
 - result . expectedBodiesReceived ( NUMBER0 ) ;
 + result . expectedMessageCount ( NUMBER1 ) ;
 result . expectedFileExists ( FTP_ROOT_DIR + STRING1 ) ;
 result . expectedFileExists ( FTP_ROOT_DIR + STRING2 ) ;
 result . expectedFileExists ( FTP_ROOT_DIR + STRING3 ) ;
 - result . expectedFileExists ( FTP_ROOT_DIR + STRING4 ) ;
 - result . expectedFileExists ( FTP_ROOT_DIR + STRING5 ) ;

 PollingConsumer consumer = context . getEndpoint ( getFtpUrl ( ) ) . createPollingConsumer ( ) ;
 consumer . start ( ) ;
 <nb> public class FtpPollingConsumerTest extends FtpServerTestSupport {
 sendFile ( getFtpUrl ( ) , STRING6 , STRING7 ) ;
 sendFile ( getFtpUrl ( ) , STRING8 , STRING9 ) ;
 sendFile ( getFtpUrl ( ) , STRING10 , STRING11 ) ;
 - sendFile ( getFtpUrl ( ) , STRING12 , STRING13 ) ;
 - sendFile ( getFtpUrl ( ) , STRING14 , STRING15 ) ;
 }

 }


<nb> public class GoUnresolvedReferenceInspection extends GoInspectionBase {
 @ override
 public void visitImportString ( @ notnull GoImportString o ) {
 if ( o . getTextLength ( ) < NUMBER0 ) return ;
 + if ( STRING0 . equals ( o . getPath ( ) ) ) return ;
 PsiReference [ ] references = o . getReferences ( ) ;
 for ( final PsiReference reference : references ) {
 if ( reference instanceof FileReference ) {


<nb> public class Robolectric {
 return result ;
 }
 }
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public interface Anything {
 - }
 }
 <nb> public class RobolectricWiringTest {
 Class < ? > implementedClass = annotation . value ( ) ;
 String implementedClassName = implementedClass . getName ( ) ;

 - if ( implementedClassName . equals ( Robolectric . Anything . class . getName ( ) ) ||
 - implementedClassName . equals ( void . class . getName ( ) ) ) {
 + if ( implementedClassName . equals ( void . class . getName ( ) ) ) {
 return ;
 }

Remove deprecated Robolectric Anything interface


<nb> public class OServer {
 }

 for ( OServerPluginInfo h : getPlugins ( ) )
 - if ( h . getInstance ( ) . getClass ( ) . equals ( iPluginClass ) )
 + if ( h . getInstance ( ) != null && h . getInstance ( ) . getClass ( ) . equals ( iPluginClass ) )
 return ( RET ) h . getInstance ( ) ;

 return null ;

Fixed NPE on asking for a plugin configured but disabled


<nb> public class AlertsController extends AuthenticatedController {
 } catch ( IOException e ) {
 return status ( NUMBER0 , views . html . errors . error . render ( ApiClient . ERROR_MSG_IO , e , request ( ) ) ) ;
 } catch ( APIException e ) {
 - String message = STRING0 + e . getHttpCode ( ) + STRING1 ;
 - return status ( NUMBER0 , views . html . errors . error . render ( message , e , request ( ) ) ) ;
 + flash ( STRING2 , STRING3 + e . getMessage ( ) ) ;
 + return redirect ( routes . AlertsController . index ( streamId ) ) ;
 }
 }

Showing error flash instead of full error page when dummy alerting fails


<nb> final class BackStackRecord extends FragmentTransaction implements
 if ( op . removed != null ) {
 for ( int i = NUMBER0 ; i < op . removed . size ( ) ; i ++ ) {
 Fragment old = op . removed . get ( i ) ;
 - f . mImmediateActivity = mManager . mActivity ;
 + old . mImmediateActivity = mManager . mActivity ;
 mManager . addFragment ( old , false ) ;
 }
 }

Set activity for correct fragment when popping backstack


<nb> public class JarHandler implements FileSystemInterface {
 child . delete ( this ) ;
 }

 + root . markDirtyRecursively ( ) ;
 RefreshQueue . getInstance ( ) . refresh ( false , true , null , root ) ;
 }
 catch ( IOException e ) {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class EmittingRequestLogger implements RequestLogger
 return request . getRemoteAddr ( ) ;
 }

 + @ jsonproperty ( STRING0 )
 + public QueryStats getQueryStats ( )
 + {
 + return request . getQueryStats ( ) ;
 + }
 +
 @ override
 public boolean isSafeToBuffer ( )
 {


<nb> public class RDFBlueprintsHandler implements RDFHandler , Iterator < HadoopElement >
 for ( final String property : configuration . getStringCollection ( RDFInputFormat . HADOOP_GRAPH_INPUT_RDF_AS_PROPERTIES ) ) {
 this . asProperties . add ( property . trim ( ) ) ;
 }
 - this . parser = Rio . createParser ( formats . get ( configuration . get ( RDFInputFormat . HADOOP_GRAPH_INPUT_RDF_FORMAT ) ) ) ;
 +
 + String formatName = configuration . get ( RDFInputFormat . HADOOP_GRAPH_INPUT_RDF_FORMAT ) ;
 + if ( null == formatName ) {
 + throw new RuntimeException ( STRING0 + RDFInputFormat . HADOOP_GRAPH_INPUT_RDF_FORMAT ) ;
 + }
 + RDFFormat format = formats . get ( formatName ) ;
 + if ( null == format ) {
 + throw new RuntimeException ( STRING1 + formatName ) ;
 + }
 + this . parser = Rio . createParser ( format ) ;
 +
 this . parser . setRDFHandler ( this ) ;
 this . parser . setDatatypeHandling ( RDFParser . DatatypeHandling . IGNORE ) ;
 }

Added error handling for invalid RDF parameters Faunus Titan Hadoop


<nb> public class AtmosphereResponse extends HttpServletResponseWrapper {
 }
 } catch ( Exception ex ) {
 handleException ( ex ) ;
 + throw new RuntimeException ( ex ) ;
 }
 return this ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> final class RequestBuilder implements RequestInterceptor . RequestFacade {
 } else {
 Header header = new Header ( STRING0 , contentTypeHeader ) ;
 if ( headers == null ) {
 - headers = Arrays . asList ( header ) ;
 + headers = Collections . singletonList ( header ) ;
 } else {
 headers . add ( header ) ;
 }

Favor an immutable singleton list over immutable list view


<nb> class ProxyThread implements Runnable {

 SINGLE
 } catch ( HttpException e ) {
 - System . out . println ( STRING0 ) ;
 + SINGLE
 throw e ;
 } catch ( IOException e ) {
 msg . setResponseBody ( STRING1 + e . getLocalizedMessage ( ) ) ;
 <nb> class ProxyThread implements Runnable {
 httpOut . write ( msg . getResponseBody ( ) . getBytes ( ) ) ;
 httpOut . flush ( ) ;
 }
 -
 - System . out . println ( STRING2 + e . getLocalizedMessage ( ) ) ;
 +
 SINGLE
 }
 } SINGLE


<nb> public class RatpackWebContext implements WebContext {

 @ override
 public String getFullRequestURL ( ) {
 - return context . getRequest ( ) . getUri ( ) ;
 + final PublicAddress publicAddress = context . get ( PublicAddress . class ) ;
 + return publicAddress . getAddress ( context ) . toString ( ) + context . getRequest ( ) . getUri ( ) ;
 }

 public void sendResponse ( RequiresHttpAction action ) {

the getFullRequestUrl should return the scheme host port as well


<nb> public class SelectBox < T > extends Widget implements Disableable {
 setWidth ( SelectBox . this . getWidth ( ) ) ;
 setHeight ( height ) ;

 + validate ( ) ;
 scrollToCenter ( NUMBER0 , list . getHeight ( ) - getSelectedIndex ( ) * itemHeight - itemHeight / NUMBER1 , NUMBER0 , NUMBER0 ) ;
 updateVisualScroll ( ) ;

 <nb> public class UITest extends GdxTest {
 dropdown . setItems ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 ,
 STRING9 , STRING10 , STRING11 , STRING12 , STRING13 , STRING14 , STRING15 , STRING16 , STRING17 , STRING18 , STRING19 ,
 STRING20 , STRING21 , STRING22 , STRING23 , STRING24 , STRING25 , STRING26 , STRING27 ) ;
 + dropdown . setSelected ( STRING22 ) ;
 Image imageActor = new Image ( image2 ) ;
 ScrollPane scrollPane = new ScrollPane ( imageActor ) ;
 List list = new List ( skin ) ;


<nb> class ReplSyncFetcher extends AbstractExecutionThreadService {
 boolean delivered = false ;
 while ( ! delivered ) {
 try {
 - LOGGER . info ( STRING0 , nextOp ) ;
 + LOGGER . debug ( STRING0 , nextOp ) ;
 callback . deliver ( nextOp ) ;
 delivered = true ;
 opsReadCounter ++ ;

Changed a log statment from info to debug


<nb> public abstract class AbstractItem < Item extends AbstractItem < ? , ? > , VH extends R
 holder . itemView . setTag ( this ) ;
 }

 + @ override
 + public void unbindView ( VH holder ) {
 +
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TextEditingTarget implements
 String newCode = YamlFrontMatter . applyFrontMatter ( code , yaml ) ;
 if ( ! code . equals ( newCode ) )
 {
 - docDisplay_ . setCode ( code , true ) ;
 + docDisplay_ . setCode ( newCode , true ) ;
 updateRmdFormatList ( ) ;
 }
 }

apply new front matter correctly fix eclipse warnings


<nb> public abstract class AbstractClient implements Closeable {
 COMMENT
 COMMENT
 public synchronized void disconnect ( ) {
 - if ( mConnected ) {
 + beforeDisconnect ( ) ;
 + if ( mConnected && mProtocol != null ) {
 LOG . debug ( STRING0 , getServiceName ( ) , mMode , mAddress ) ;
 + mProtocol . getTransport ( ) . close ( ) ;
 mConnected = false ;
 }
 - try {
 - beforeDisconnect ( ) ;
 - if ( mProtocol != null ) {
 - mProtocol . getTransport ( ) . close ( ) ;
 - }
 - } finally {
 - afterDisconnect ( ) ;
 - }
 + afterDisconnect ( ) ;
 }

 COMMENT

Fixing a possible resource leak in AbstractClient


<nb> public class XValueChildrenList {
 public XValue getValue ( int i ) {
 return myValues . get ( i ) ;
 }
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - public boolean isAlreadySorted ( ) {
 - return false ;
 - }
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - public void setAlreadySorted ( boolean alreadySorted ) {
 - }
 - }
 + }


<nb> public class HumanoidRagdollPreset extends RagdollPreset {

 boneMap . put ( STRING0 , new JointPreset ( NUMBER0 , - FastMath . QUARTER_PI , FastMath . QUARTER_PI , - FastMath . QUARTER_PI , FastMath . QUARTER_PI , - FastMath . QUARTER_PI ) ) ;

 - boneMap . put ( STRING1 , new JointPreset ( FastMath . HALF_PI , - FastMath . QUARTER_PI , NUMBER0 , NUMBER0 , FastMath . PI , - FastMath . QUARTER_PI ) ) ;
 + boneMap . put ( STRING1 , new JointPreset ( FastMath . HALF_PI , - FastMath . QUARTER_PI , NUMBER0 , NUMBER0 , FastMath . HALF_PI , - FastMath . QUARTER_PI ) ) ;

 boneMap . put ( STRING2 , new JointPreset ( FastMath . HALF_PI , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ) ;


<nb> public class RoutePerformanceTest extends ContextTestSupport {

 long delta = System . nanoTime ( ) - start ;

 - LOG . debug ( STRING0 + delta + STRING1 ) ;
 - LOG . debug ( STRING0 + delta / NUMBER0 + STRING2 ) ;
 + LOG . info ( STRING0 + delta + STRING1 ) ;
 + LOG . info ( STRING0 + delta / NUMBER0 + STRING2 ) ;
 }

 @ override

Used Log info to print the output message


<nb> public class DynamicServerListLoadBalancer < T extends Server > extends
 this . serverListImpl = niwsServerList ;
 }

 - @ override
 - public void setPing ( IPing ping ) {
 - this . ping = ping ;
 - }
 -
 public ServerListFilter < T > getFilter ( ) {
 return filter ;
 }

Removed overriding of BaseLoadBalancer setPing from DynamicServerListLoadBalancer


<nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT
 public class DescriptorClientMain {

 - @ ejb
 private static AppClientSingletonRemote appClientSingletonRemote ;

 private static String envEntry ;

revert unintentional change to DescriptorClientMain


<nb> public abstract class PlaybackControlGlue {
 throw new IllegalStateException ( STRING0 ) ;
 }
 mFragment . setOnItemViewClickedListener ( mOnItemViewClickedListener ) ;
 - if ( mFragment . getInputEventListener ( ) != null ) {
 + if ( mFragment . getInputEventHandler ( ) != null ) {
 throw new IllegalStateException ( STRING1 ) ;
 }
 mFragment . setInputEventHandler ( mInputEventHandler ) ;
 <nb> public class PlaybackOverlayFragment extends DetailsFragment {
 COMMENT
 COMMENT
 COMMENT
 - public final InputEventHandler getInputEventListener ( ) {
 + public final InputEventHandler getInputEventHandler ( ) {
 return mInputEventHandler ;
 }

 <nb> public class PlaybackOverlaySupportFragment extends DetailsSupportFragment {
 COMMENT
 COMMENT
 COMMENT
 - public final InputEventHandler getInputEventListener ( ) {
 + public final InputEventHandler getInputEventHandler ( ) {
 return mInputEventHandler ;
 }

Rename getInputEventListener to getInputEventHandler


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public class UndoCommand
 change . redo ( editor , context ) ;
 }

 - editor . getCaretModel ( ) . moveToOffset ( endOffset ) ;
 + SINGLE
 + MotionGroup . moveCaret ( editor , context , endOffset ) ;
 }

 public void undo ( Editor editor , DataContext context )
 <nb> public class UndoCommand
 change . undo ( editor , context ) ;
 }

 - editor . getCaretModel ( ) . moveToOffset ( startOffset ) ;
 + SINGLE
 + MotionGroup . moveCaret ( editor , context , startOffset ) ;
 }

 public String toString ( )


<nb> public final class PathImpl implements Path
 private final Relationship [ ] path ;
 private final Node end ;

 - public PathImpl ( Node start , Relationship [ ] path , Node end )
 - {
 - this . start = start ;
 - this . path = path ;
 - this . end = end ;
 - }
 -
 private PathImpl ( Builder left , Builder right )
 {
 Node endNode = null ;


<nb> public class HttpConnection extends AbstractConnection implements Runnable , Http
 @ override
 protected void onCompleteSuccess ( )
 {
 - Callback cb = _callback ;
 - _info = null ;
 - _content = null ;
 - _lastContent = false ;
 releaseHeader ( ) ;
 - _callback = null ;
 + _callback . succeeded ( ) ;
 if ( _shutdownOut )
 getEndPoint ( ) . shutdownOutput ( ) ;
 - cb . succeeded ( ) ;
 }

 @ override
 public void onCompleteFailure ( final Throwable x )
 {
 - Callback cb = _callback ;
 - _info = null ;
 - _content = null ;
 - _lastContent = false ;
 releaseHeader ( ) ;
 - _callback = null ;
 + failedCallback ( _callback , x ) ;
 if ( _shutdownOut )
 getEndPoint ( ) . shutdownOutput ( ) ;
 - failedCallback ( cb , x ) ;
 }

 @ override

Removed unnecessary reset of fields from onCompleteSuccess and


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import static NAMESPACE ;

 public class TestEarlyStoppingSpark extends BaseSparkTest {

 - @ before
 - public void setUp ( ) {
 - CudaEnvironment . getInstance ( ) . getConfiguration ( ) . enableDebug ( true ) . allowMultiGPU ( true ) ;
 - }
 -
 @ test
 public void testEarlyStoppingIris ( ) {
 MultiLayerConfiguration conf = new NeuralNetConfiguration . Builder ( )


<nb> public final class DHistogram extends Iced {
 SINGLE
 int xbins = isInt == NUMBER0 ? nbins_cats : nbins ;
 if ( isInt > NUMBER1 && maxEx - min <= xbins ) {
 - assert ( ( long ) min ) == min ; SINGLE
 + assert ( ( long ) min ) == min : STRING0 + min + STRING1 + min + STRING2 ; SINGLE
 xbins = ( char ) ( ( long ) maxEx - ( long ) min ) ; SINGLE
 _step = FLOAT0 ; SINGLE
 } else {


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - @ beta
 @ gwtcompatible
 public abstract class Escaper {
 SINGLE
 <nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - @ beta
 @ gwtcompatible
 public final class UrlEscapers {
 private UrlEscapers ( ) { }

Remove Beta from Escaper and UrlEscapers


<nb> public final class Errors implements Serializable {
 } else {
 throw new AssertionError ( ) ;
 }
 + } else {
 + fmt . format ( STRING0 , convert ( dependency . getKey ( ) ) ) ;
 }
 - continue ;
 }

 fmt . format ( STRING1 , sourceToString ( source ) ) ;

Restoring a missing at statement in the Errors message


<nb> final class FragmentManagerImpl extends FragmentManager {
 throw new SuperNotCalledException ( STRING0 + f
 + STRING1 ) ;
 }
 + f . mSavedFragmentState = null ;
 + f . mSavedViewState = null ;
 }
 }
 } else if ( f . mState > newState ) {

Clear saved state after it is no longer needed


<nb> class NioDatagramWorker implements Runnable {
 } catch ( final AsynchronousCloseException e ) {
 SINGLE
 channel . currentWriteEvent = evt ;
 - channel . inWriteNowLoop = false ;
 } catch ( final Throwable t ) {
 channel . currentWriteEvent = null ;
 channel . inWriteNowLoop = false ;


<nb> public class MessageView extends FrameLayout {
 public final static int THUMBNAIL_SIZE = NUMBER0 ;

 public static Bitmap getThumbnail ( ContentResolver cr , Uri uri ) {
 - Log . e ( MessageView . class . getSimpleName ( ) , STRING0 + uri ) ;
 + SINGLE
 if ( IocVfs . isVfsScheme ( uri . getScheme ( ) ) ) {
 return IocVfs . getThumbnailVfs ( cr , uri ) ;
 }


<nb> public class RxPermissions {
 }
 list . add ( subject ) ;
 }
 +
 if ( ! unrequestedPermissions . isEmpty ( ) ) {
 - startShadowActivity ( permissions ) ;
 + startShadowActivity ( unrequestedPermissions . toArray ( new String [ ] { } ) ) ;
 }
 return Observable . concat ( Observable . from ( list ) ) ;
 }


<nb> public class DefaultResolvedConfigurationBuilder implements ResolvedConfiguratio
 }

 public ResolvedDependency newResolvedDependency ( ModuleVersionIdentifier id , String configurationName ) {
 + SINGLE
 + SINGLE
 + SINGLE
 DefaultResolvedDependency d = new DefaultResolvedDependency ( id , configurationName ) ;
 store . allDependencies . put ( d . getId ( ) , d ) ;
 return d ;


<nb> public class HyperLogLogOperators
 {
 return slice ;
 }
 +
 + @ scalaroperator ( CAST )
 + @ sqltype ( StandardTypes . HYPER_LOG_LOG )
 + public static Slice castFromVarbinary ( @ sqltype ( StandardTypes . VARBINARY ) Slice slice )
 + {
 + return slice ;
 + }
 }


<nb> public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler
 }

 if ( SimpMessageType . CONNECT . equals ( messageType ) ) {
 - logger . debug ( STRING0 + sessionId ) ;
 + logger . debug ( STRING0 + sessionId +
 + STRING1 + this . connectionHandlers . size ( ) ) ;
 headers . setLogin ( this . clientLogin ) ;
 headers . setPasscode ( this . clientPasscode ) ;
 if ( getVirtualHost ( ) != null ) {
 <nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SubProtocolWebSocketHandler
 @ override
 public void afterConnectionEstablished ( WebSocketSession session ) throws Exception {
 this . sessions . put ( session . getId ( ) , session ) ;
 + if ( logger . isDebugEnabled ( ) ) {
 + logger . debug ( STRING2 + session . getId ( ) +
 + STRING3 + this . sessions . size ( ) ) ;
 + }
 findProtocolHandler ( session ) . afterSessionStarted ( session , this . clientInboundChannel ) ;
 }

Add messages for number of active sessions connections


<nb> import NAMESPACE ;

 import NAMESPACE ;

 - class CoffeeApp implements Runnable {
 + public class CoffeeApp implements Runnable {
 @ inject CoffeeMaker coffeeMaker ;

 @ override public void run ( ) {

Need at least one public API for javadoc to run during release


<nb> public class RealmTest extends AndroidTestCase {
 return chars_array ;
 }

 - public void randomCharacters ( ) {
 + public void testRandomCharacters ( ) {
 List < String > chars_array = getRandomArray ( ) ;

 Random random = new Random ( ) ;
 <nb> public class RealmTest extends AndroidTestCase {
 }
 }

 - public void testRandomCharactersLoop ( ) {
 - for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
 - randomCharacters ( ) ;
 - }
 - }
 -
 public void testReferenceCounting ( ) {
 SINGLE
 try {


<nb> public class JobCollectContext implements ExecutionSubContext , RowUpstream , Exec

 shardQueryContext . addCallback ( new RemoveQueryContextCallback ( jobSearchContextId ) ) ;
 EngineSearcherDelegate searcherDelegate = acquireSearcher ( shardQueryContext . indexShard ( ) ) ;
 - shardQueryContext . searcher ( searcherDelegate ) ;
 + try {
 + shardQueryContext . searcher ( searcherDelegate ) ;
 + } catch ( Exception e ) {
 + SINGLE
 + shardQueryContext . close ( ) ;
 + throw e ;
 + }

 if ( collectNode . keepContextForFetcher ( ) ) {
 JobFetchShardContext shardFetchContext = new JobFetchShardContext (

close collect query context if exception occurs on collector instantiation


<nb> public class CoreMapNodePattern extends NodePattern < CoreMap > {
 return Collections . unmodifiableList ( annotationPatterns ) ;
 }

 - private static final Pattern LITERAL_PATTERN = Pattern . compile ( STRING0 ) ;
 + SINGLE
 + private static final Pattern LITERAL_PATTERN = Pattern . compile ( STRING1 ) ;
 public static NodePattern < String > newStringRegexPattern ( String regex , int flags ) {
 boolean isLiteral = ( ( flags & Pattern . LITERAL ) != NUMBER0 ) || LITERAL_PATTERN . matcher ( regex ) . matches ( ) ;
 if ( isLiteral ) {

Fix TextFileAnnotationSource to handle lines with eol correctly


<nb> public class VolumePanel extends Handler implements OnSeekBarChangeListener , Vie
 R . drawable . ic_audio_phone ,
 R . drawable . ic_audio_phone ,
 false ) ,
 + AlarmStream ( AudioManager . STREAM_ALARM ,
 + R . string . volume_alarm ,
 + R . drawable . ic_audio_alarm ,
 + R . drawable . ic_audio_alarm_mute ,
 + false ) ,
 MediaStream ( AudioManager . STREAM_MUSIC ,
 R . string . volume_icon_description_media ,
 R . drawable . ic_audio_vol ,
 <nb> public class VolumePanel extends Handler implements OnSeekBarChangeListener , Vie
 StreamResources . RingerStream ,
 StreamResources . VoiceStream ,
 StreamResources . MediaStream ,
 - StreamResources . NotificationStream
 + StreamResources . NotificationStream ,
 + StreamResources . AlarmStream
 } ;

 COMMENT

Add alarm volume to the list of volumes in the volume overlay


<nb> package NAMESPACE ;

 import NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MBeanFactory {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public MBeanFactory ( ) {

Allow Checkstyle s unused imports test to be used with the o a catalina mbeans package


<nb> package NAMESPACE ;
 public class Version {

 public static final int MAJOR = NUMBER0 ;
 - public static final int MINOR = NUMBER0 ;
 + public static final int MINOR = NUMBER1 ;
 }
 <nb> public class SilverGhostFacade {
 }
 }

 + if ( allClassNames . contains ( STRING0 ) ) {
 + return true ;
 + }
 +
 for ( String classEntry : allDexNames ) {
 if ( ! classEntry . startsWith ( STRING1 ) ) {
 return true ;


<nb>
 COMMENT
 COMMENT
 COMMENT
 -
 package NAMESPACE ;

 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class JDTCompiler extends org . apache . jasper . compiler . Compiler {


<nb> abstract class ASTBinOp extends ASTOp {
 if ( fr1 != null ) {
 if ( fr0 . numCols ( ) != fr1 . numCols ( ) ||
 fr0 . numRows ( ) != fr1 . numRows ( ) )
 - throw new IllegalArgumentException ( STRING0 + fr0 + STRING1 + fr1 ) ;
 + throw new IllegalArgumentException ( STRING2 + fr0 . numRows ( ) + STRING3 + fr0 . numCols ( ) + STRING4 + fr1 . numRows ( ) + STRING3 + fr1 . numCols ( ) ) ;
 fr = new Frame ( fr0 ) . add ( fr1 , true ) ;
 } else {
 fr = fr0 ;

improve IAE message when frames incompatible


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;


<nb> public class Message extends AbstractEntity {
 && message . getEncryption ( ) != Message . ENCRYPTION_PGP
 && this . getType ( ) == message . getType ( )
 && this . getEncryption ( ) == message . getEncryption ( )
 + && this . getCounterpart ( ) != null
 && this . getCounterpart ( ) . equals ( message . getCounterpart ( ) )
 && ( message . getTimeSent ( ) - this . getTimeSent ( ) ) <= ( Config . MESSAGE_MERGE_WINDOW * NUMBER0 ) && ( ( this
 . getStatus ( ) == message . getStatus ( ) || ( ( this . getStatus ( ) == Message . STATUS_SEND || this


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class AutoConfigureTestDatabaseWithNoDatabaseIntegrationTests {
 assertThat ( this . context ) . isNotNull ( ) ;
 }

 - @ springbootconfiguration
 + @ testconfiguration
 static class Config {

 }
 <nb> final class SpringBootConfigurationFinder {
 Set < BeanDefinition > components = this . scanner . findCandidateComponents ( source ) ;
 if ( ! components . isEmpty ( ) ) {
 Assert . state ( components . size ( ) == NUMBER0 ,
 - STRING0 ) ;
 + STRING1
 + + components ) ;
 return ClassUtils . resolveClassName (
 components . iterator ( ) . next ( ) . getBeanClassName ( ) , null ) ;
 }


<nb> public class Activity extends ContextThemeWrapper
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Clarify documentation about when Activity onCreateNavigateUpTaskStack


<nb> public class GitHistoryUtilsTest extends GitTest {
 assertEquals ( revisionNumber . getTimestamp ( ) , GitTestRevision . gitTimeStampToDate ( output [ NUMBER0 ] ) ) ;
 }

 - @ test
 + @ test ( enabled = false )
 public void testGetLastRevisionForExistingFile ( ) throws Exception {
 final ItemLatestState state = GitHistoryUtils . getLastRevision ( myProject , bfilePath ) ;
 assertTrue ( state . isItemExists ( ) ) ;
 <nb> public class GitHistoryUtilsTest extends GitTest {
 }

 SINGLE
 - SINGLE
 + @ test ( enabled = false )
 public void testGetLastRevisionForNonExistingFile ( ) throws Exception {
 myRepo . config ( STRING0 , STRING1 ) ;
 myRepo . config ( STRING2 , STRING3 ) ;
 <nb> public class GitHistoryUtilsTest extends GitTest {
 assertCommitsEqualToTestRevisions ( gitCommits , myRevisionsAfterRename ) ;
 COMMENT

 - @ test
 + @ test ( enabled = false )
 public void testHashesWithParents ( ) throws Exception {
 final int expectedSize = myRevisionsAfterRename . size ( ) ;


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 SINGLE
 <nb> public class LazyScriptClassMemberScope extends LazyClassMemberScope {
 super ( resolveSession , declarationProvider , thisClass , trace ) ;
 }

 + @ notnull
 + @ override
 + protected Collection < DeclarationDescriptor > computeExtraDescriptors ( ) {
 + return KotlinPackage . plus (
 + super . computeExtraDescriptors ( ) ,
 + getProperties ( Name . identifier ( ScriptDescriptor . LAST_EXPRESSION_VALUE_FIELD_NAME ) )
 + ) ;
 + }
 +
 @ override
 protected void getNonDeclaredProperties ( @ notnull Name name , @ notnull Set < VariableDescriptor > result ) {
 super . getNonDeclaredProperties ( name , result ) ;

Add rv property to getAllDescriptors in script classes


<nb> public class ContextCompat {
 COMMENT
 COMMENT
 COMMENT
 - public final File getNoBackupFilesDir ( Context context ) {
 + public static final File getNoBackupFilesDir ( Context context ) {
 final int version = Build . VERSION . SDK_INT ;
 if ( version >= NUMBER0 ) {
 return ContextCompatApi21 . getNoBackupFilesDir ( context ) ;

ContextCompat should be non instantiable all static methods


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 COMMENT
 COMMENT
 + @ documented
 @ retention ( RetentionPolicy . RUNTIME )
 public @ interface Nullable { }


<nb> public class PhoneWindow extends Window implements MenuBuilder . Callback {
 int bottom = ( int ) mOutsetBottom . getDimension ( metrics ) ;
 WindowInsets newInsets = insets . replaceSystemWindowInsets (
 insets . getSystemWindowInsetLeft ( ) , insets . getSystemWindowInsetTop ( ) ,
 - insets . getSystemWindowInsetRight ( ) ,
 - insets . getSystemWindowInsetBottom ( ) + bottom ) ;
 + insets . getSystemWindowInsetRight ( ) , bottom ) ;
 return super . dispatchApplyWindowInsets ( newInsets ) ;
 } else {
 return super . dispatchApplyWindowInsets ( insets ) ;

Fix double chin issue where bottom inset is applied twice


<nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 package NAMESPACE ;

 import NAMESPACE ;


<nb> public abstract class CacheOperation implements BasicOperation {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 @ override
 <nb> public class GenericMessageEndpointManager implements SmartLifecycle , Initializi
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void setAutoStartup ( boolean autoStartup ) {
 this . autoStartup = autoStartup ;


<nb> public class DeepLearningModel extends Model < DeepLearningModel , DeepLearningModel

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public enum Loss {
 Automatic , Quadratic , CrossEntropy , ModifiedHuber , Huber , Absolute , Quantile
 <nb> public abstract class Neurons {
 case ModifiedHuber :
 g = - NUMBER0 * _dist . negHalfGradient ( t , y ) * ( NUMBER1 - y ) * y ;
 break ;
 + case Quadratic :
 + g = ( y - t ) * ( FLOAT0 - y ) * y ;
 + break ;
 default :
 throw H2O . unimpl ( ) ;
 }
 <nb> public class TestCase {
 case STRING0 :
 dlParams . _loss = DeepLearningModel . DeepLearningParameters . Loss . Huber ;
 break ;
 + case STRING1 :
 + dlParams . _loss = DeepLearningModel . DeepLearningParameters . Loss . ModifiedHuber ;
 + break ;
 case STRING2 :
 dlParams . _loss = DeepLearningModel . DeepLearningParameters . Loss . Absolute ;
 break ;

Add back quadratic loss for DL DeepLearningIrisTest was using it


<nb> public class ProcessListUtil {
 String name = PathUtil . getFileName ( command ) ;
 String args = each . commandLine . substring ( command . length ( ) ) . trim ( ) ;

 - result . add ( new ProcessInfo ( each . pid , each . commandLine , name , args ) ) ;
 + result . add ( new ProcessInfo ( each . pid , each . commandLine , name , args , command ) ) ;
 }
 return result ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DataSourceNode extends OptimizerNode {
 candidate . updatePropertiesWithUniqueSets ( getUniqueFields ( ) ) ;

 final Costs costs = new Costs ( ) ;
 - if ( FileInputFormat . class . isAssignableFrom ( getPactContract ( ) . getFormatWrapper ( ) . getUserCodeObject ( ) . getClass ( ) ) &&
 + if ( FileInputFormat . class . isAssignableFrom ( getPactContract ( ) . getFormatWrapper ( ) . getUserCodeClass ( ) ) &&
 this . estimatedOutputSize >= NUMBER0 )
 {
 estimator . addFileInputCost ( this . estimatedOutputSize , costs ) ;


<nb> public final class UpdateChecker {
 final String pluginUrl = pluginElement . getAttributeValue ( STRING0 ) ;
 final String pluginVersion = pluginElement . getAttributeValue ( STRING1 ) ;

 + if ( pluginId == null ) {
 + LOG . info ( STRING2 ) ;
 + continue ;
 + }
 +
 + if ( pluginUrl == null ) {
 + LOG . info ( STRING3 ) ;
 + continue ;
 + }
 +
 ProgressManager . getInstance ( ) . runProcessWithProgressSynchronously ( new Runnable ( ) {
 public void run ( ) {
 try {

add log messages if updatePlugins xml is invalid


<nb> public class SslConnection extends AbstractConnection
 return super . getFillInterest ( ) ;
 }

 + @ override
 + public void setIdleTimeout ( long idleTimeout )
 + {
 + super . setIdleTimeout ( idleTimeout ) ;
 + getEndPoint ( ) . setIdleTimeout ( idleTimeout ) ;
 + }

 @ override
 protected WriteFlusher getWriteFlusher ( )

DecryptedEndPoint now delegates the set of the idle timeout to the underlying EndPoint


<nb> public class Shader {
 public boolean getLocalMatrix ( Matrix localM ) {
 if ( mLocalMatrix != null ) {
 localM . set ( mLocalMatrix ) ;
 - return true ;
 + return ! mLocalMatrix . isIdentity ( ) ;
 }
 return false ;
 }


<nb> import NAMESPACE ;
 public class UberTestCase extends TestCase {
 public static Test suite ( ) {
 TestSuite suite = new TestSuite ( ) ;
 + suite . addTestSuite ( AbstractClassAndInterfaceTest . class ) ;
 suite . addTestSuite ( AmbiguousInvocationTest . class ) ;
 suite . addTestSuite ( ArrayAutoboxingTest . class ) ;
 suite . addTestSuite ( ArrayParamMethodTest . class ) ;

added AbstractClassAndInterfaceTest to the suit


<nb> public class McastServiceImpl
 receivePacket . setPort ( port ) ;
 member . setCommand ( new byte [ NUMBER0 ] ) ;
 member . getData ( true , true ) ;
 - membership = new Membership ( member ) ;
 + if ( membership == null ) membership = new Membership ( member ) ;
 }

 protected void setupSocket ( ) throws IOException {

don t reset the membership during a recovery otherwise we lose all info on the surrounding members


<nb> public class ThriftClusterImpl implements Cluster {
 final CfDef def ;
 try {
 def = ThriftUtils . getThriftObjectFromProperties ( CfDef . class , props ) ;
 - System . out . println ( def ) ;
 } catch ( Exception e ) {
 throw new BadRequestException ( STRING0 , e ) ;
 }


<nb> public class AdminServiceMultiJVMTest extends AbstractAdminServiceFilterTest {
 }

 private Process startServerAsNewJVM ( int nodeId , String voldemortHome ) throws IOException {
 - String command = STRING0 + System . getProperty ( STRING1 )
 - + STRING2 + voldemortHome ;
 + String [ ] classpaths = System . getProperty ( STRING1 ) . split ( STRING3 ) ;
 + StringBuilder builder = new StringBuilder ( ) ;
 + for ( String path : classpaths ) {
 + builder . append ( new File ( path ) . getCanonicalPath ( ) ) ;
 + builder . append ( STRING3 ) ;
 + }
 + builder . deleteCharAt ( builder . length ( ) - NUMBER0 ) ;
 +
 + String command = STRING0 + builder . toString ( ) + STRING2
 + + voldemortHome ;
 System . out . println ( STRING4 + command ) ;
 Process process = Runtime . getRuntime ( ) . exec ( command ) ;
 waitForServerStart ( cluster . getNodeById ( nodeId ) ) ;

sanitize classpath string in AdminServerMultiJVM tests


<nb> public class ZLMIDlet extends MIDlet COMMENT {
 super ( ) ;
 }
 COMMENT
 + private boolean myStarted ;

 public void startApp ( ) {
 - new ZLJ2MELibrary ( ) . run ( this ) ;
 + if ( ! myStarted ) {
 + new ZLJ2MELibrary ( ) . run ( this ) ;
 + myStarted = true ;
 + }
 }

 public void destroyApp ( boolean destroy ) {


<nb> public class AprLifecycleListener
 protected static String SSLRandomSeed = STRING0 ;
 protected static boolean sslInitialized = false ;
 protected static boolean aprInitialized = false ;
 + @ deprecated
 protected static boolean sslAvailable = false ;
 protected static boolean aprAvailable = false ;
 protected static boolean fipsModeActive = false ;


<nb> public class Mappings {
 myDelta . mySourceFileToClasses . forEachEntry ( new TObjectObjectProcedure < File , Collection < ClassRepr > > ( ) {
 @ override
 public boolean execute ( File fileName , Collection < ClassRepr > classes ) {
 - newClasses . add ( new FileClasses ( fileName , classes ) ) ;
 + if ( myFilesToCompile == null || myFilesToCompile . contains ( fileName ) ) {
 + SINGLE
 + SINGLE
 + newClasses . add ( new FileClasses ( fileName , classes ) ) ;
 + }
 return true ;
 }
 } ) ;

processing only those sources that were actually compiled on this compilation round


<nb> public class SgSyncAdapter extends AbstractThreadedSyncAdapter {
 }

 public enum UpdateResult {
 - SUCCESS , INCOMPLETE ;
 + SUCCESS , INCOMPLETE
 }

 public enum UpdateType {
 <nb> public class FlagTask extends AsyncTask < Void , Integer , Integer > {

 SHOW_WATCHED ,

 - SHOW_COLLECTED ;
 + SHOW_COLLECTED
 }

 public static abstract class FlagTaskType {


<nb> public class ConsoleExecCommand extends AbstractFrameCommand {
 @ override
 protected void buildPayload ( Payload payload ) {
 super . buildPayload ( payload ) ;
 - payload . add ( myThreadId ) . add ( myFrameId ) . add ( STRING0 ) . add ( myExpression ) ;
 + payload . add ( STRING0 ) . add ( myExpression ) ;
 }

 @ override


<nb> public class FileGraphSource implements GraphSource {
 if ( newGraph != null ) {
 graph = newGraph ; SINGLE
 } else {
 - LOG . warn ( STRING0 ,
 - routerId ) ;
 + if ( force || graph == null ) {
 + LOG . warn ( STRING1 , routerId ) ;
 + graph = null ;
 + } else {
 + LOG . warn ( STRING2 , routerId ) ;
 + }
 }
 }
 if ( graph == null ) {


<nb> public class Update < ModelClass extends Model > implements Query {

 private final Class < ModelClass > mTable ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static < ModelClass extends Model > Update table ( Class < ModelClass > table ) {
 + return new Update ( table ) ;
 + }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public Update ( Class < ModelClass > table ) {
 mTable = table ;
 }


<nb> public class RadialSelectorView extends View {

 SINGLE
 mPaint . setAlpha ( NUMBER0 ) ;
 - mPaint . setStrokeWidth ( NUMBER1 ) ;
 + mPaint . setStrokeWidth ( NUMBER2 ) ;
 canvas . drawLine ( mXCenter , mYCenter , pointX , pointY , mPaint ) ;
 }


<nb> public class DatabaseHelper extends SQLiteOpenHelper {
 + STRING0 ) ;

 SINGLE
 - loadIntegerSetting ( stmt , Settings . System . SCREEN_OFF_TIMEOUT , NUMBER0 * NUMBER1 * NUMBER2 ) ;
 + loadSetting ( stmt , Settings . System . SCREEN_OFF_TIMEOUT ,
 + Integer . toString ( NUMBER0 * NUMBER1 * NUMBER2 ) ) ;
 } finally {
 if ( stmt != null ) stmt . close ( ) ;
 }


<nb> public class Users {
 private final Map < Long , UserInfo > mUsers ;
 private final TachyonConf mTachyonConf ;

 - public Users ( String userUfsFolder , TachyonConf tachyonConf ) {
 + public Users ( String userUfsFolder , TachyonConf tachyonConf ) {
 mUserUnderFSFolder = userUfsFolder ;
 mUsers = new HashMap < Long , UserInfo > ( ) ;
 mTachyonConf = tachyonConf ;
 <nb> public class TachyonConf {
 try {
 defaultProps . load ( defaultInputStream ) ;
 } catch ( IOException e ) {
 - throw new RuntimeException ( STRING0 ) ;
 + throw new RuntimeException ( STRING0 , e ) ;
 }
 + } else {
 + throw new RuntimeException ( STRING1 ) ;
 }

 SINGLE


<nb> public class SugarRecord < T > {
 }
 return toRet ;
 }
 +
 + public static < T extends SugarRecord < ? > > long count ( Class < ? > type ) {
 + return count ( type , null , null , null , null , null ) ;
 + }

 public static < T extends SugarRecord < ? > > long count ( Class < ? > type ,
 String whereClause , String [ ] whereArgs ) {

Add strict count overload to simplify interface


<nb> public class Wallet extends BaseTaggableObject implements Serializable , BlockCha
 }

 @ override
 - public synchronized void setTag ( String tag , ByteString value ) {
 + public void setTag ( String tag , ByteString value ) {
 super . setTag ( tag , value ) ;
 saveNow ( ) ;
 }


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 @ incubating
 public interface TaskFailureResult extends TaskOperationResult , FailureResult {
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ override
 - List < ? extends Failure > getFailures ( ) ;
 }
 <nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 @ incubating
 public interface TestFailureResult extends TestOperationResult , FailureResult {
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ override
 - List < ? extends Failure > getFailures ( ) ;
 -
 }


<nb> public class BlockWorker {
 mThriftServer = createThriftServer ( ) ;
 mWorkerNetAddress =
 new NetAddress ( BlockWorkerUtils . getWorkerAddress ( mTachyonConf ) . getAddress ( )
 - . getCanonicalHostName ( ) , thriftServerPort , mDataServer . getPort ( ) ) ;
 + . getHostAddress ( ) , thriftServerPort , mDataServer . getPort ( ) ) ;

 SINGLE
 int webPort = mTachyonConf . getInt ( Constants . WORKER_WEB_PORT , Constants . DEFAULT_WORKER_WEB_PORT ) ;

use raw ip instead of canonical hostname as worker address to fix spark locality issue


<nb> public class SvnExecutableChecker extends ExecutableValidator {
 }

 private boolean validateVersion ( @ notnull Version version ) {
 - if ( ! version . is ( NUMBER0 ) || version . lessThan ( NUMBER0 , NUMBER1 ) ) {
 + if ( version . lessThan ( NUMBER0 , NUMBER1 ) ) {
 setNotificationErrorDescription ( getOldExecutableMessage ( version ) ) ;
 return false ;
 }

Simplified svn executable validation logic removed explicit major version check


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> import static NAMESPACE ;

 public class PojoCodecTest {
 private PojoCodec pojoCodec ;
 - private BSONWriter bsonWriter = mock ( BSONWriter . class , Mockito . withSettings ( ) . verboseLogging ( ) ) ;
 + private BSONWriter bsonWriter = mock ( BSONWriter . class ) ;
 private PrimitiveCodecs primitiveCodecs = PrimitiveCodecs . createDefault ( ) ;

 @ before


<nb> public class UIUtil {

 @ suppresswarnings ( { STRING0 } )
 public static boolean isUnderAquaBasedLookAndFeel ( ) {
 - return SystemInfo . isMac && ( isUnderAquaLookAndFeel ( ) || isUnderDarcula ( ) ) ;
 + return SystemInfo . isMac && ( isUnderAquaLookAndFeel ( ) || isUnderDarcula ( ) || isUnderIntelliJLaF ( ) ) ;
 }

 @ suppresswarnings ( { STRING0 } )

add IntelliJ laf for aqua based lafs on mac


<nb> public interface OSGIConfig extends KillbillConfig {
 STRING0 +
 STRING1 +
 STRING2 +
 - SINGLE
 - STRING3 )
 + SINGLE
 + STRING4 +
 + SINGLE
 + STRING5 +
 + SINGLE
 + STRING6 +
 + SINGLE
 + STRING7 )
 public String getSystemBundleExportPackages ( ) ;

 SINGLE

add missing exports from the system bundle


<nb> public class Rule implements AttributeResolver {
 new AttributeDict ( AttributeDict . DictType . PREDEFINED_LEXER_RULE ) { {
 add ( new Attribute ( STRING0 ) ) ;
 add ( new Attribute ( STRING1 ) ) ;
 - add ( new Attribute ( STRING2 ) ) ;
 - add ( new Attribute ( STRING3 ) ) ;
 - add ( new Attribute ( STRING4 ) ) ;
 - add ( new Attribute ( STRING5 ) ) ;
 - add ( new Attribute ( STRING6 ) ) ;
 - add ( new Attribute ( STRING7 ) ) ;
 - add ( new Attribute ( STRING8 ) ) ;
 + add ( new Attribute ( STRING5 ) ) ;
 + add ( new Attribute ( STRING9 ) ) ;
 } } ;

 public static Set < String > validLexerCommands = new HashSet < String > ( ) { {

remove inappropriate attributes of lexer rules


<nb> public abstract class BaseRoundCornerProgressBar extends LinearLayout {

 private boolean isScreenMeasure ;
 private boolean isBackgroundLayourSet ;
 - private boolean isReverse ;
 + protected boolean isReverse ;

 @ suppresslint ( STRING0 )
 public BaseRoundCornerProgressBar ( Context context , AttributeSet attrs ) {


<nb> public class ThemeManager {

 holder . mPalette . init ( NUMBER0 , NUMBER1 , color - > {
 holder . mPalette . init ( getSwatch ( color ) . length , NUMBER1 , color2 - > {
 - setColor ( context , color2 ) ;
 + setActiveColor ( color2 ) ;
 + saveListener . onClick ( null ) ;
 dialog . dismiss ( ) ;
 } ) ;
 - holder . mPalette . drawPalette ( getSwatch ( color ) , mColor ) ;
 + holder . mPalette . drawPalette ( getSwatch ( color ) , getColor ( ) ) ;
 } ) ;
 - holder . mPalette . drawPalette ( PALETTE , getSwatchColor ( mColor ) ) ;
 + holder . mPalette . drawPalette ( PALETTE , getSwatchColor ( getColor ( ) ) ) ;

 SeekBar . OnSeekBarChangeListener seekListener = new SeekBar . OnSeekBarChangeListener ( ) {


<nb> public class ManagePackagesDialog extends DialogWrapper {
 RepoPackage repoPackage = ( RepoPackage ) value ;
 String name = repoPackage . getName ( ) ;
 if ( myCurrentlyInstalling . contains ( name ) ) {
 - name += STRING0 ;
 + final String colorCode = UIUtil . isUnderDarcula ( ) ? STRING1 : STRING2 ;
 + name = STRING3 + repoPackage . getName ( ) + STRING4 + colorCode + STRING5 ;
 }
 myNameLabel . setText ( name ) ;
 myRepositoryLabel . setText ( repoPackage . getRepoUrl ( ) ) ;

emphasize installing label by another color


<nb> public class GeoPointFieldMapperTests extends ESSingleNodeTestCase {

 boolean indexCreatedBefore22 = version . before ( Version . V_2_2_0 ) ;
 assertThat ( doc . rootDoc ( ) . getField ( STRING0 ) , notNullValue ( ) ) ;
 - final boolean stored = indexCreatedBefore22 == false ;
 + final boolean stored = false ;
 assertThat ( doc . rootDoc ( ) . getField ( STRING0 ) . fieldType ( ) . stored ( ) , is ( stored ) ) ;
 assertThat ( doc . rootDoc ( ) . getField ( STRING1 ) , notNullValue ( ) ) ;
 assertThat ( doc . rootDoc ( ) . getField ( STRING1 ) . fieldType ( ) . stored ( ) , is ( stored ) ) ;


<nb> abstract class ActivityTransitionCoordinator extends ResultReceiver {
 if ( getViewsTransition ( ) != null ) {
 getDecor ( ) . captureTransitioningViews ( mTransitioningViews ) ;
 mTransitioningViews . removeAll ( mSharedElements ) ;
 + Rect r = new Rect ( ) ;
 + for ( int i = mTransitioningViews . size ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) {
 + View view = mTransitioningViews . get ( i ) ;
 + if ( ! view . getGlobalVisibleRect ( r ) ) {
 + mTransitioningViews . remove ( i ) ;
 + }
 + }
 }
 setEpicenter ( ) ;
 }

Exclude views that aren t on screen from Activity Transitions


<nb> public abstract class ObjectCodec
 COMMENT

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 + @ deprecated
 public abstract JsonFactory getJsonFactory ( ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public JsonFactory getFactory ( ) {
 + return getJsonFactory ( ) ;
 + }
 }

Add getFactory as replacement for getJsonFactory in ObjectCodec


<nb> public class TitanCassandraInputFormat extends TitanInputFormat {

 private final ColumnFamilyInputFormat columnFamilyInputFormat = new ColumnFamilyInputFormat ( ) ;
 private FaunusTitanCassandraGraph graph ;
 - private boolean pathEnabled ;
 private Configuration config ;
 - private VertexQueryFilter vertexQuery ;

 @ override
 public List < InputSplit > getSplits ( final JobContext jobContext ) throws IOException , InterruptedException {
 <nb> public class TitanCassandraInputFormat extends TitanInputFormat {
 public void setConf ( final Configuration config ) {
 super . setConf ( config ) ;
 Setup setup = super . setupConfiguration ( config ) ;
 - this . graph = new FaunusTitanCassandraGraph ( setup . serializer , setup . types ) ;
 + this . graph = new FaunusTitanCassandraGraph ( setup . serializer , setup . types ) ;

 config . set ( STRING0 , config . get ( FAUNUS_GRAPH_INPUT_TITAN_STORAGE_KEYSPACE ) ) ;
 ConfigHelper . setInputColumnFamily ( config , ConfigHelper . getInputKeyspace ( config ) , Backend . EDGESTORE_NAME ) ;

removed unreferenced local variables that were overriding super variables and causing NullPointerExceptions


<nb> public class ModMetadata
 useDependencyInformation = Boolean . parseBoolean ( Strings . nullToEmpty ( ( String ) processedFields . get ( aStringBuilder ( STRING0 ) ) ) ) ;
 }

 - ModMetadata ( )
 + public ModMetadata ( )
 {
 }

Made empty constructor for ModMetadata public


<nb> public class HorizontalGridView extends BaseGridView {
 setRowHeight ( a ) ;
 setNumRows ( a . getInt ( R . styleable . lbHorizontalGridView_numberOfRows , NUMBER0 ) ) ;
 a . recycle ( ) ;
 - setWillNotDraw ( false ) ;
 + updateLayerType ( ) ;
 mTempPaint = new Paint ( ) ;
 mTempPaint . setXfermode ( new PorterDuffXfermode ( PorterDuff . Mode . DST_IN ) ) ;
 }
 <nb> public class HorizontalGridView extends BaseGridView {
 private void updateLayerType ( ) {
 if ( mFadingLowEdge || mFadingHighEdge ) {
 setLayerType ( View . LAYER_TYPE_HARDWARE , null ) ;
 + setWillNotDraw ( false ) ;
 } else {
 setLayerType ( View . LAYER_TYPE_NONE , null ) ;
 + setWillNotDraw ( true ) ;
 }
 }
 }


<nb> public class RopeJoint extends Joint {
 public float getMaxLength ( ) {
 return joint . getMaxLength ( ) ;
 }
 +
 + public void setMaxLength ( float maxLength ) {
 + joint . setMaxLength ( maxLength ) ;
 + }
 +
 }


<nb> public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc
 COMMENT
 @ override
 public boolean isPrivateBrowsingEnabled ( ) {
 - return getSettings ( ) . isPrivateBrowsingEnabled ( ) ;
 + WebSettingsClassic settings = getSettings ( ) ;
 + return ( settings != null ) ? settings . isPrivateBrowsingEnabled ( ) : false ;
 }

 private void startPrivateBrowsing ( ) {


<nb> public class ActivityShare extends Activity {

 SINGLE
 setContentView ( R . layout . sharelist ) ;
 - getWindow ( ) . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_STATE_ALWAYS_HIDDEN ) ;

 SINGLE
 if ( action . equals ( ACTION_TOGGLE ) ) {


<nb> public enum OGlobalConfiguration {

 SINGLE
 DISTRIBUTED_CRUD_TASK_SYNCH_TIMEOUT ( STRING0 ,
 - STRING1 , Integer . class , NUMBER0 ) ,
 + STRING1 , Integer . class , NUMBER1 ) ,

 DISTRIBUTED_COMMAND_TASK_SYNCH_TIMEOUT ( STRING2 ,
 - STRING3 , Integer . class , NUMBER2 ) ,
 + STRING3 , Integer . class , NUMBER3 ) ,

 DISTRIBUTED_DEPLOYDB_TASK_SYNCH_TIMEOUT ( STRING4 ,
 - STRING5 , Long . class , NUMBER4 ) ,
 + STRING5 , Long . class , NUMBER5 ) ,

 DISTRIBUTED_DEPLOYDB_TASK_COMPRESSION ( STRING6 ,
 STRING7 , Integer . class , NUMBER6 ) ,


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class ResultSetDataReceiver implements DBDDataReceiver {
 private boolean hasMoreData ;
 private boolean nextSegmentRead ;

 - Map < DBCAttributeMetaData , List < DBCException > > errors = new HashMap < DBCAttributeMetaData , List < DBCException > > ( ) ;
 + private Map < DBCAttributeMetaData , List < DBCException > > errors = new HashMap < DBCAttributeMetaData , List < DBCException > > ( ) ;
 private boolean updateMetaData ;

 ResultSetDataReceiver ( ResultSetViewer resultSetViewer )


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 import static NAMESPACE ;
 <nb> public class SortProcessorTests extends ESTestCase {
 Integer [ ] expectedResult = new Integer [ ] { NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , NUMBER7 , NUMBER8 , NUMBER9 , NUMBER10 } ;
 List < Integer > fieldValue = new ArrayList < > ( expectedResult . length ) ;
 fieldValue . addAll ( Arrays . asList ( expectedResult ) . subList ( NUMBER11 , expectedResult . length ) ) ;
 - Collections . shuffle ( fieldValue ) ;
 + Collections . shuffle ( fieldValue , random ( ) ) ;

 String fieldName = RandomDocumentPicks . addRandomField ( random ( ) , ingestDocument , fieldValue ) ;
 Processor processor = new SortProcessor ( randomAsciiOfLength ( NUMBER5 ) , fieldName , SortOrder . ASCENDING ) ;

TEST Use a reproducible source of randomness in shuffle


<nb> public class BSONBinaryWriter extends BSONWriter {
 }

 @ override
 - public void close ( ) {
 - }
 -
 - @ override
 public void writeStartArray ( ) {
 checkPreconditions ( STRING0 , State . VALUE ) ;

Removed close override that did nothing and did not call super close


<nb> public class TestLlapTaskSchedulerService {
 }
 }

 - @ test ( timeout = NUMBER0 )
 + SINGLE
 public void testNodeReEnabled ( ) throws InterruptedException {
 SINGLE
 TestTaskSchedulerServiceWrapper tsWrapper = new TestTaskSchedulerServiceWrapper ( NUMBER1 ) ;

disable the flaky TestLlapTaskSchedulerService test Sergey Shelukhin


<nb> public class AccessibilityManagerService extends IAccessibilityManager . Stub {
 UserState userState = getCurrentUserStateLocked ( ) ;
 SINGLE
 if ( userState . mUiAutomationService != null
 - && userState . mUiAutomationService . mServiceInterface != null
 && serviceClient != null
 + && userState . mUiAutomationService != null
 + && userState . mUiAutomationService . mServiceInterface != null
 && userState . mUiAutomationService . mServiceInterface . asBinder ( )
 == serviceClient . asBinder ( ) ) {
 userState . mUiAutomationService . binderDied ( ) ;

Fixing a NPE in accessibility manager service


<nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 -
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;

 + @ ignore
 public class H2BatooTest extends AbstractJPASuite {

 public static class JPA extends JPABase { }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;


<nb> public class MobileCompositeProvider implements ProjectCustomizer . CompositeCateg
 private class SavePropsListener implements ActionListener {

 private String extensionName = STRING0 ;
 - private String extensionVersion = STRING1 ;
 + private String extensionVersion = STRING2 ;
 private String [ ] extensionDependencies = new String [ ] { STRING3 , STRING4 } ;
 private ProjectExtensionManager manager = new ProjectExtensionManager ( extensionName , extensionVersion , extensionDependencies ) ;
 private ProjectExtensionProperties properties ;


<nb> public class HdfsFileInputStreamIntegrationTest {
 Assert . assertTrue ( BufferUtils . equalIncreasingByteArray ( FILE_LEN , buf ) ) ;
 Assert . assertEquals ( NUMBER0 , mUfsInputStream . getPos ( ) ) ;

 + buf = new byte [ FILE_LEN - NUMBER1 ] ;
 Arrays . fill ( buf , ( byte ) NUMBER0 ) ;
 length = mInMemInputStream . read ( NUMBER1 , buf , NUMBER0 , FILE_LEN - NUMBER1 ) ;
 Assert . assertEquals ( FILE_LEN - NUMBER1 , length ) ;


<nb> public class BroadcasterFuture < E > implements Future {
 } else {
 latch = null ;
 }
 - this . listeners = listeners ;
 + this . listeners = ( listeners == null ? new CopyOnWriteArrayList < BroadcasterListener > ( ) : listeners ) ;
 }

 COMMENT


<nb> public class RestfulGraphDatabase {
 @ path ( PATH_NODE_PROPERTY )
 public Response setNodeProperty ( @ pathparam ( STRING0 ) long nodeId , @ pathparam ( STRING1 ) String key , String body ) {
 try {
 - System . out . println ( STRING2 ) ;
 server . setNodeProperty ( nodeId , key , input . readValue ( body ) ) ;
 } catch ( BadInputException e ) {
 return output . badRequest ( e ) ;


<nb> public class StatsSinglePostDetailsActivity extends ActionBarActivity
 private void setMainViewsLabel ( String dateFormatted , int totals ) {
 mStatsViewsLabel . setText ( getString ( R . string . stats_views ) + STRING0
 + dateFormatted ) ;
 - mStatsViewsTotals . setText ( String . valueOf ( totals ) ) ;
 + mStatsViewsTotals . setText ( FormatUtils . formatDecimal ( totals ) ) ;
 }

Fix an issue on the main Total label that wasn t correctly formatted


<nb> public enum MethodManifestation implements ModifierContributor . ForMethod {
 COMMENT
 COMMENT
 COMMENT
 - FINAL_NATIVE ( Opcodes . ACC_FINAL | Opcodes . ACC_NATIVE ) ;
 + FINAL_NATIVE ( Opcodes . ACC_FINAL | Opcodes . ACC_NATIVE ) ,
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + BRIDGE ( Opcodes . ACC_BRIDGE ) ;

 COMMENT
 COMMENT
 <nb> public class MethodManifestationTest extends AbstractModifierContributorTest {
 public static Collection < Object [ ] > data ( ) {
 return Arrays . asList ( new Object [ ] [ ] {
 { MethodManifestation . PLAIN , NUMBER0 } ,
 + { MethodManifestation . NATIVE , Opcodes . ACC_NATIVE } ,
 { MethodManifestation . ABSTRACT , Opcodes . ACC_ABSTRACT } ,
 { MethodManifestation . FINAL , Opcodes . ACC_FINAL } ,
 { MethodManifestation . FINAL_NATIVE , Opcodes . ACC_FINAL | Opcodes . ACC_NATIVE } ,
 + { MethodManifestation . BRIDGE , Opcodes . ACC_BRIDGE }
 } ) ;
 }
 }


<nb> public final class FileUtils {
 COMMENT
 COMMENT
 public static void move ( String srcPath , String dstPath ) throws IOException {
 + long start = System . currentTimeMillis ( ) ;
 Files . move ( new File ( srcPath ) , new File ( dstPath ) ) ;
 + long end = System . currentTimeMillis ( ) ;
 + LOG . info ( STRING0 , srcPath , dstPath , end - start ) ;
 }

 COMMENT


<nb> public class Orient extends OListenerManger < OOrientListener > {
 shutdownHook . cancel ( ) ;
 shutdownHook = null ;
 }
 + }
 +
 + public void removeSignalHandler ( ) {
 if ( signalHandler != null ) {
 signalHandler . cancel ( ) ;
 signalHandler = null ;

Allow signal handler to be uninstalled separately from the shutdown hook


<nb> public class NetworkController extends BroadcastReceiver {
 @ override
 public void onServiceStateChanged ( ServiceState state ) {
 if ( DEBUG ) {
 - Log . d ( TAG , STRING0 + state . getState ( ) ) ;
 + Log . d ( TAG , STRING1 + state . getVoiceRegState ( )
 + + STRING2 + state . getDataRegState ( ) ) ;
 }
 mServiceState = state ;
 updateTelephonySignalStrength ( ) ;
 <nb> public class NetworkController extends BroadcastReceiver {

 private boolean hasService ( ) {
 if ( mServiceState != null ) {
 - switch ( mServiceState . getState ( ) ) {
 - case ServiceState . STATE_OUT_OF_SERVICE :
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + switch ( mServiceState . getVoiceRegState ( ) ) {
 case ServiceState . STATE_POWER_OFF :
 return false ;
 + case ServiceState . STATE_OUT_OF_SERVICE :
 + case ServiceState . STATE_EMERGENCY_ONLY :
 + return mServiceState . getDataRegState ( ) == ServiceState . STATE_IN_SERVICE ;
 default :
 return true ;
 }

Display signal strength on data only SIMs


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class HttpHeaders implements MultiValueMap < String , String > , Serializable
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 + @ deprecated
 public long getIfNotModifiedSince ( ) {
 + return getIfModifiedSince ( ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public long getIfModifiedSince ( ) {
 return getFirstDate ( IF_MODIFIED_SINCE ) ;
 }


<nb> public abstract class Event implements Serializable {
 PLAYER_BUCKET_FILL ( Category . PLAYER ) ,

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + PLAYER_INVENTORY ( Category . PLAYER ) ,
 + COMMENT
 COMMENT
 COMMENT

 <nb> public class PlayerInventoryEvent extends PlayerEvent {
 protected Inventory inventory ;

 public PlayerInventoryEvent ( final Player player , final Inventory inventory ) {
 - super ( Type . PLAYER_INTERACT , player ) ;
 + super ( Type . PLAYER_INVENTORY , player ) ;
 this . inventory = inventory ;
 }


<nb> public class BoomMenuButton extends FrameLayout
 COMMENT
 COMMENT
 private ViewGroup createAnimationLayout ( ) {
 - ViewGroup rootView = ( ViewGroup ) ( ( Activity ) mContext ) . getWindow ( ) . getDecorView ( ) ;
 + ViewGroup rootView = ( ViewGroup ) scanForActivity ( mContext ) . getWindow ( ) . getDecorView ( ) ;
 LinearLayout animLayout = new LinearLayout ( mContext ) ;
 LinearLayout . LayoutParams layoutParams = new LinearLayout . LayoutParams (
 LinearLayout . LayoutParams . MATCH_PARENT ,
 <nb> public class BoomMenuButton extends FrameLayout
 return boomMenuButton ;
 }
 }
 +
 + private static Activity scanForActivity ( Context cont ) {
 + if ( cont == null )
 + return null ;
 + else if ( cont instanceof Activity )
 + return ( Activity ) cont ;
 + else if ( cont instanceof ContextWrapper )
 + return scanForActivity ( ( ( ContextWrapper ) cont ) . getBaseContext ( ) ) ;
 +
 + return null ;
 + }
 }


<nb> public class StackUtil {
 } else {
 SINGLE
 IInventory inv = Utils . getInventory ( inventory ) ;
 - System . out . println ( STRING0 ) ;
 + SINGLE

 for ( int j = NUMBER0 ; j < inv . getSizeInventory ( ) ; ++ j )
 if ( tryAdding ( inv , j , add , true ) ) {
 <nb> public class BlockGenericPipe extends BlockContainer implements ITextureProvider
 if ( pipe != null ) {
 return pipe . getConstructor ( int . class ) . newInstance ( key ) ;
 } else {
 - System . err . printf ( STRING1 + key + STRING2 ) ;
 + System . err . printf ( STRING3 + key + STRING2 ) ;
 }

 } catch ( Throwable t ) {

Prefixed unknown pipe message with BuidCraft and removed Added to generic inventory println


<nb> public class FloatingSearchView extends FrameLayout {
 this . mIsFocused = savedState . isFocused ;

 setSuggestionItemTextSize ( savedState . suggestionTextSize ) ;
 - setSearchHint ( savedState . searchHint ) ;
 - setVoiceSearchHint ( savedState . voiceSearchHint ) ;
 setDismissOnOutsideClick ( savedState . dismissOnOutsideClick ) ;
 setShowOverflowMenu ( savedState . showOverFlowMenu ) ;
 setShowSearchKey ( savedState . showSearchKey ) ;
 - setShowVoiceInput ( savedState . showVoiceInput ) ;
 setShowHintWhenNotFocused ( savedState . showHintWhenNotFocused ) ;
 setLeftActionMode ( savedState . leftMode ) ;
 + setSearchHint ( savedState . searchHint ) ;
 + setShowVoiceInput ( savedState . showVoiceInput ) ;
 + setVoiceSearchHint ( savedState . voiceSearchHint ) ;

 if ( this . mIsFocused ) {


<nb> public abstract class XMPPConnection {
 }

 void callConnectionClosedOnErrorListener ( Exception e ) {
 + LOGGER . log ( Level . WARNING , STRING0 , e ) ;
 for ( ConnectionListener listener : getConnectionListeners ( ) ) {
 try {
 listener . connectionClosedOnError ( e ) ;


<nb> public abstract class OrientBaseGraph implements IndexableGraph , MetaGraph < OData
 this . openOrCreate ( ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + public void drop ( ) {
 + getRawGraph ( ) . drop ( ) ;
 + }
 +
 @ suppresswarnings ( STRING0 )
 public < T extends Element > Index < T > createIndex ( final String indexName , final Class < T > indexClass ,
 final Parameter . . . indexParameters ) {


<nb> public class ChainingPrincipalResolver implements PrincipalResolver {

 @ override
 public boolean supports ( final Credential credential ) {
 - return this . chain . size ( ) > NUMBER0 && this . chain . get ( NUMBER0 ) . supports ( credential ) ;
 + return this . chain . get ( NUMBER0 ) . supports ( credential ) ;
 }

 COMMENT

Remove redundant size check per code review


<nb> import static NAMESPACE ;
 import static NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import static NAMESPACE ;
 COMMENT
 public class SearchSourceBuilder {

 + public static enum Order {
 + ASC ,
 + DESC
 + }
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SearchSourceBuilder {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public SearchSourceBuilder sort ( String name , Order order ) {
 + boolean reverse = false ;
 + if ( name . equals ( STRING0 ) ) {
 + if ( order == Order . ASC ) {
 + reverse = true ;
 + }
 + } else {
 + if ( order == Order . DESC ) {
 + reverse = true ;
 + }
 + }
 + return sort ( name , null , reverse ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class TvView extends ViewGroup {

 @ override
 public void onContentBlocked ( Session session , TvContentRating rating ) {
 + if ( this != mSessionCallback ) {
 + return ;
 + }
 if ( DEBUG ) {
 Log . d ( TAG , STRING0 ) ;
 }
 <nb> public class TvView extends ViewGroup {

 @ override
 public void onLayoutSurface ( Session session , int left , int top , int right , int bottom ) {
 + if ( this != mSessionCallback ) {
 + return ;
 + }
 if ( DEBUG ) {
 Log . d ( TAG , STRING1 + left + STRING2 + top + STRING3
 + right + STRING4 + bottom + STRING5 ) ;

Add missing checks for the current session callback


<nb> public abstract class ProxyConnection implements Connection
 LOGGER . warn ( STRING0 ,
 poolEntry . getPoolName ( ) , delegate , sqlState , sqle . getErrorCode ( ) , sqle ) ;
 leakTask . cancel ( ) ;
 - delegate = ClosedConnection . CLOSED_CONNECTION ;
 poolEntry . evict ( STRING1 ) ;
 + delegate = ClosedConnection . CLOSED_CONNECTION ;
 }
 else {
 final SQLException nse = sqle . getNextException ( ) ;

Don t reassign delegate until after eviction


<nb> public class MersenneRandom extends Random {
 }

 @ override
 - public double nextStandNormalDistrDouble ( ) {
 + public double nextGaussian ( ) {
 return mersenne . nextGaussian ( ) ;
 }


<nb> public abstract class PathToken {
 }
 }
 ctx . addResult ( evalPath , propertyVal ) ;
 + } else {
 + if ( ctx . options ( ) . contains ( Option . DEFAULT_PATH_LEAF_TO_NULL ) ) {
 + ctx . addResult ( evalPath , null ) ;
 + }
 }
 }
 }

Fixed issue with DEFAULT_PATH_LEAF_TO_NULL and multiple properties


<nb> import NAMESPACE ;
 @ threadsafe
 public final class LoginModuleConfiguration extends Configuration {

 - private static final Map < String , String > EMPTY_JAAS_OPTIONS = new HashMap < String , String > ( ) ;
 + private static final Map < String , String > EMPTY_JAAS_OPTIONS = new HashMap < > ( ) ;

 COMMENT
 private static final AppConfigurationEntry OS_SPECIFIC_LOGIN =

SMALLFIX Removed explicit parameter type in LoginModuleConfiguration


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class CoreModuleManagerTest extends UsefulTestCase {
 - public void testLoadingModules ( ) throws IOException , JDOMException , InvalidDataException {
 + public void _testLoadingModules ( ) throws IOException , JDOMException , InvalidDataException {
 CoreApplicationEnvironment appEnv = new CoreApplicationEnvironment ( getTestRootDisposable ( ) ) ;
 new ProjectModel . InitApplicationEnvironment ( appEnv ) ;


<nb> public abstract class ODatabaseRecordAbstract extends ODatabaseWrapperAbstract < O

 try {
 final boolean wasNew = rid . isNew ( ) ;
 + if ( wasNew && rid . clusterId == - NUMBER0 && iClusterName != null )
 + SINGLE
 + rid . clusterId = getClusterIdByName ( iClusterName ) ;

 SINGLE
 byte [ ] stream = iRecord . toStream ( ) ;
 <nb> public class SQLCreateVertexAndEdgeTest {
 new OCommandSQL ( STRING0 + v3 . getIdentity ( ) + STRING1 + v5 . getIdentity ( ) + STRING2 ) )
 . execute ( ) ;
 Assert . assertEquals ( e5 . getClassName ( ) , STRING3 ) ;
 - SINGLE
 + Assert . assertEquals ( e5 . getIdentity ( ) . getClusterId ( ) , database . getDefaultClusterId ( ) ) ;

 SINGLE
 SINGLE

Fixed a bug on assigning custom cluster to new records


<nb> public class AppLauncher {
 serverSocket . setReuseAddress ( true ) ;
 log ( STRING0 + localPort ) ;
 clientSocket = serverSocket . accept ( ) ;
 + clientSocket . setTcpNoDelay ( true ) ;
 log ( STRING1 ) ;
 }

disable Nagle when forwarding messages from the debug server to decrease latency


<nb> public final class MultiSelectManager implements View . OnKeyListener {

 @ override
 public void onChanged ( ) {
 - SINGLE
 - mSelection . clear ( ) ;
 mModelIds = mAdapter . getModelIds ( ) ;
 +
 + SINGLE
 + mSelection . cancelProvisionalSelection ( ) ;
 + mSelection . intersect ( mModelIds ) ;
 }

 @ override

Don t clear the selection when directory contents change


<nb> import static NAMESPACE ;
 import static NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;

 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 public class CypherPluginFunctionalTest extends AbstractRestFunctionalTestBase
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public abstract class ClassLoaderAwareAsyncCall extends AsyncCall {
 ClassLoader current = Thread . currentThread ( ) . getContextClassLoader ( ) ;
 try {
 Thread . currentThread ( ) . setContextClassLoader ( classLoader ) ;
 - call ( ) ;
 + super . run ( ) ;
 } finally {
 if ( current != null ) {
 Thread . currentThread ( ) . setContextClassLoader ( current ) ;

ClassLoaderAwareCaller wasn t setting threadContext


<nb> public class RequestServer extends NanoHTTPD {
 Request . addToNavbar ( registerRequest ( new JProfile ( ) ) , STRING0 , STRING1 ) ;
 Request . addToNavbar ( registerRequest ( new JStack ( ) ) , STRING2 , STRING1 ) ;
 Request . addToNavbar ( registerRequest ( new NetworkTest ( ) ) , STRING3 , STRING1 ) ;
 + Request . addToNavbar ( registerRequest ( new IOStatus ( ) ) , STRING4 , STRING1 ) ;
 + Request . addToNavbar ( registerRequest ( new Timeline ( ) ) , STRING5 , STRING1 ) ;
 + Request . addToNavbar ( registerRequest ( new UDPDropTest ( ) ) , STRING6 , STRING1 ) ;
 + Request . addToNavbar ( registerRequest ( new TaskStatus ( ) ) , STRING7 , STRING1 ) ;
 Request . addToNavbar ( registerRequest ( new Shutdown ( ) ) , STRING8 , STRING1 ) ;

 SINGLE


<nb> public class LambdaCanBeMethodReferenceInspection extends BaseJavaBatchLocalInsp
 super . visitLambdaExpression ( expression ) ;
 if ( PsiUtil . getLanguageLevel ( expression ) . isAtLeast ( LanguageLevel . JDK_1_8 ) ) {
 final PsiElement body = expression . getBody ( ) ;
 - final PsiCallExpression callExpression = canBeMethodReferenceProblem ( body , expression . getParameterList ( ) . getParameters ( ) , expression . getFunctionalInterfaceType ( ) ) ;
 - if ( callExpression != null ) {
 - holder . registerProblem ( callExpression ,
 - STRING0 ,
 - ProblemHighlightType . GENERIC_ERROR_OR_WARNING , new ReplaceWithMethodRefFix ( ) ) ;
 + final PsiType functionalInterfaceType = expression . getFunctionalInterfaceType ( ) ;
 + if ( functionalInterfaceType != null ) {
 + final PsiCallExpression callExpression = canBeMethodReferenceProblem ( body , expression . getParameterList ( ) . getParameters ( ) , functionalInterfaceType ) ;
 + if ( callExpression != null ) {
 + holder . registerProblem ( callExpression ,
 + STRING0 ,
 + ProblemHighlightType . GENERIC_ERROR_OR_WARNING , new ReplaceWithMethodRefFix ( ) ) ;
 + }
 }
 }
 }


<nb> public class UIServiceImpl

 return chatWindowManager . getSelectedChat ( ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public String getCurrentPhoneNumber ( )
 + {
 + return mainFrame . getCurrentPhoneNumber ( ) ;
 + }

 COMMENT
 COMMENT
 <nb> public class MainFrame
 return accountStatusPanel ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public String getCurrentPhoneNumber ( )
 + {
 + return mainCallPanel . getPhoneNumberComboText ( ) ;
 + }
 +
 private class MainContentPane extends JPanel
 {
 public MainContentPane ( )
 <nb> public interface UIService
 public Chat getCurrentChat ( ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public String getCurrentPhoneNumber ( ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Introduce a new method in the UIService that allows plugins to obtain the phone number entered in the call field


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class UIPrefsAccessor extends Prefs

 public PrefValue < Boolean > useDataImport ( )
 {
 - return bool ( STRING0 , false ) ;
 + return bool ( STRING0 , true ) ;
 }

 public static final String PDF_PREVIEW_NONE = STRING1 ;

enable new data imports csv spss and excel


<nb> public class IrcStack
 }

 connectSynchronized ( ) ;
 +
 + SINGLE
 + SINGLE
 + SINGLE
 }
 }