<nb> public final class EpollSocketChannel extends AbstractEpollChannel implements So

 private boolean writeBytesMultiple (
 EpollChannelOutboundBuffer in , int msgCount , AddressEntry [ ] addresses ,
 - int addressCnt , int expectedWrittenBytes ) throws IOException {
 + int addressCnt , long expectedWrittenBytes ) throws IOException {
 boolean done = false ;
 long writtenBytes = NUMBER0 ;
 int offset = NUMBER0 ;
 <nb> public final class EpollSocketChannel extends AbstractEpollChannel implements So
 AddressEntry [ ] addresses = epollIn . memoryAddresses ( ) ;
 int addressesCnt = epollIn . addressCount ( ) ;
 if ( addressesCnt > NUMBER1 ) {
 - if ( ! writeBytesMultiple ( epollIn , msgCount , addresses , addressesCnt , epollIn . addressCount ( ) ) ) {
 + if ( ! writeBytesMultiple ( epollIn , msgCount , addresses , addressesCnt , epollIn . addressSize ( ) ) ) {
 SINGLE
 SINGLE
 break ;

Use the correct memoryAddress size when do a gathering write


<nb> public class SourceFormatter {

 public static void main ( String [ ] args ) {
 try {
 - _sourceFormatterHelper = new SourceFormatterHelper ( true ) ;
 + _sourceFormatterHelper = new SourceFormatterHelper ( false ) ;

 _sourceFormatterHelper . init ( ) ;


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class Caches {

 @ override
 public void clearCache ( ) {
 + SINGLE
 + LongMap . LongMapIterator < CacheItem > iter = items . longMapIterator ( ) ;
 + while ( iter . moveToNext ( ) ) {
 + CacheItem i = iter . value ( ) ;
 + if ( i != null )
 + i . clear ( ) ;
 + }
 +
 items . clear ( ) ;
 super . clearCache ( ) ;
 }

improve performance in soft weak ref cache with clearCache


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


<nb> public class Rectangle implements Serializable {
 this . height = height ;
 }

 + COMMENT
 + COMMENT
 + public void setPosition ( Vector2 position ) {
 + this . x = position . x ;
 + this . y = position . y ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setPosition ( float x , float y ) {
 + this . x = x ;
 + this . y = y ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class BackupServiceIT
 SINGLE
 backupService ( ) . doFullBackup ( STRING0 , NUMBER0 , backupDir . getAbsolutePath ( ) , true , new Config ( ) ,
 BackupClient . BIG_READ_TIMEOUT , false ) ;
 + fail ( STRING1 ) ;
 }
 catch ( RuntimeException ex )
 {


<nb> public class ThrottleRequestFilter implements RequestFilter {
 }

 public ThrottleRequestFilter ( int maxConnections , int maxWait ) {
 - this . maxWait = maxWait ;
 - available = new Semaphore ( maxConnections , true ) ;
 + this ( maxConnections , maxWait , true ) ;
 + }
 +
 + public ThrottleRequestFilter ( int maxConnections , int maxWait , boolean fair ) {
 + this . maxWait = maxWait ;
 + available = new Semaphore ( maxConnections , fair ) ;
 }

 COMMENT

Make the fairness semantics of the ThrottleRequestFilter configurable


<nb> public class ParseTreeMatch {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ParseTreeMatch {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 @ nullable
 <nb> public class ParseTreeMatch {
 return null ;
 }

 - return parseTrees . get ( NUMBER0 ) ; SINGLE
 + return parseTrees . get ( parseTrees . size ( ) - NUMBER1 ) ; SINGLE
 }

 COMMENT


<nb> public class ClassDefItem {
 out . annotate ( NUMBER0 , STRING0 , accessFlags ,
 Joiner . on ( STRING1 ) . join ( AccessFlags . getAccessFlagsForClass ( accessFlags ) ) ) ;

 - int superclassIndex = dexFile . readSmallUint ( out . getCursor ( ) ) ;
 + int superclassIndex = dexFile . readOptionalUint ( out . getCursor ( ) ) ;
 out . annotate ( NUMBER0 , STRING2 ,
 TypeIdItem . getOptionalReferenceAnnotation ( dexFile , superclassIndex ) ) ;

Fix issue with empty superclass when dumping a Ljava lang Object class


<nb> public class CapturingProcessHandler extends OSProcessHandler {
 if ( ! isProcessTerminating ( ) && ! isProcessTerminated ( ) ) {
 destroyProcess ( ) ;
 }
 + myOutput . setCancelled ( ) ;
 break ;
 }
 }
 <nb> public class ProcessOutput {
 private final StringBuilder myStderrBuilder = new StringBuilder ( ) ;
 private int myExitCode ;
 private boolean myTimeout ;
 + private boolean myCancelled ;

 public ProcessOutput ( ) {
 myExitCode = - NUMBER0 ; SINGLE
 <nb> public class ProcessOutput {
 }
 return true ;
 }
 +
 + public boolean isCancelled ( ) {
 + return myCancelled ;
 + }
 +
 + public void setCancelled ( ) {
 + myCancelled = true ;
 + }
 }


<nb> public class Container
 int order ;
 }

 - protected enum ContainerState
 + public enum ContainerState
 {
 CREATED ,
 STARTING ,
 <nb> public class Container
 return list ;
 }

 + public ContainerState getContainerState ( ) { return state ; }
 +
 }


<nb> public final class Mapper {
 public MappedWrapper [ ] extensionWrappers = new MappedWrapper [ NUMBER0 ] ;
 public int nesting = NUMBER0 ;

 - public ContextVersion ( String name , String path , int slashCount ,
 + public ContextVersion ( String version , String path , int slashCount ,
 Context context , WebResourceRoot resources ) {
 - super ( name , context ) ;
 + super ( version , context ) ;
 this . path = path ;
 this . slashCount = slashCount ;
 this . resources = resources ;

Rename constructor argument to align with actual usage


<nb> public class JettyHttpProducerGoogleAsynchronousTest extends CamelTestSupport {
 public void testGoogleFrontPageAsync ( ) throws Exception {
 MockEndpoint mock = getMockEndpoint ( STRING0 ) ;
 mock . expectedMessageCount ( NUMBER0 ) ;
 - mock . message ( NUMBER1 ) . outBody ( String . class ) . contains ( STRING1 ) ;
 + mock . message ( NUMBER1 ) . body ( String . class ) . contains ( STRING1 ) ;

 template . sendBody ( STRING2 , null ) ;


<nb> public class PostgresDatabase extends AbstractDatabase {
 COMMENT
 COMMENT
 private String [ ] reservedWords = new String [ ] {
 - STRING0 , STRING1 , STRING2
 + STRING0 , STRING1 , STRING2 , STRING3
 SINGLE
 SINGLE
 } ;


<nb> public abstract class TWAbsLayoutManager extends LayoutManager {
 fillFromScrapList ( scrapList , Direction . END ) ;
 }

 + protected void detachChild ( View child , Direction direction ) {
 + SINGLE
 + }
 +
 @ override
 public void onItemsAdded ( RecyclerView recyclerView , int positionStart , int itemCount ) {
 if ( positionStart < mFirstPosition ) {
 <nb> public abstract class TWAbsLayoutManager extends LayoutManager {

 protected abstract void measureChild ( View child ) ;
 protected abstract void layoutChild ( View child , Direction direction ) ;
 - protected abstract void detachChild ( View child , Direction direction ) ;

 protected abstract boolean canAddMoreViews ( Direction direction , int limit ) ;

core Make detachChild optional on TWAbsLayoutManager subclasses


<nb> public class HystrixContextFunc2 < T > implements Func2 < Scheduler , T , Subscription >
 SINGLE
 HystrixRequestContext . setContextOnCurrentThread ( parentThreadState ) ;
 SINGLE
 - return actual . call ( t1Holder . get ( ) , t2Holder . get ( ) ) ;
 + return actual . call ( new HystrixContextScheduler ( concurrencyStrategy , t1Holder . get ( ) ) , t2Holder . get ( ) ) ;
 } finally {
 SINGLE
 HystrixRequestContext . setContextOnCurrentThread ( existingState ) ;

HystrixContextScheduler was not wrapping the Inner Scheduler


<nb> public final class EpollSocketChannel extends AbstractEpollChannel implements So
 COMMENT
 COMMENT
 private int doReadBytes ( ByteBuf byteBuf ) throws Exception {
 - ByteBuffer buf = byteBuf . internalNioBuffer ( NUMBER0 , byteBuf . writableBytes ( ) ) ;
 + int writerIndex = byteBuf . writerIndex ( ) ;
 + ByteBuffer buf = byteBuf . internalNioBuffer ( writerIndex , byteBuf . writableBytes ( ) ) ;
 int localReadAmount = Native . read ( fd , buf , buf . position ( ) , buf . limit ( ) ) ;
 if ( localReadAmount > NUMBER0 ) {
 - byteBuf . writerIndex ( byteBuf . writerIndex ( ) + localReadAmount ) ;
 + byteBuf . writerIndex ( writerIndex + localReadAmount ) ;
 }
 return localReadAmount ;
 }

Use correct writerIndex when read for channel


<nb> public class RawActionTest {
 @ test
 public void testRawDownloadAction ( ) {
 HttpResponse response = HttpRequest . get ( STRING0 ) . send ( ) ;
 - assertEquals ( STRING1 , response . header ( STRING2 ) ) ;
 + assertEquals ( STRING3 , response . header ( STRING2 ) ) ;
 assertEquals ( STRING4 , response . bodyText ( ) . trim ( ) ) ;
 }


<nb> public class DiffPanelImpl implements DiffPanelEx , ContentChangeListener , TwoSid
 public void customize ( DiffToolbar toolbar ) {
 ActionManager actionManager = ActionManager . getInstance ( ) ;
 toolbar . addAction ( actionManager . getAction ( STRING0 ) ) ;
 + toolbar . addSeparator ( ) ;
 toolbar . addAction ( actionManager . getAction ( STRING1 ) ) ;
 toolbar . addAction ( getEditSourceAction ( ) ) ;
 toolbar . addSeparator ( ) ;

Add separator after IgnoreWhitespaces action on toolbar


<nb> public class PythonEnvUtil {
 }

 public static void addToEnv ( Map < String , String > envs , String key , String value ) {
 - if ( envs . containsKey ( key ) ) {
 - envs . put ( key , appendToPathEnvVar ( envs . get ( key ) , value ) ) ;
 - }
 - else {
 - envs . put ( key , value ) ;
 + if ( ! StringUtil . isEmpty ( value ) ) {
 + if ( envs . containsKey ( key ) ) {
 + envs . put ( key , appendToPathEnvVar ( envs . get ( key ) , value ) ) ;
 + }
 + else {
 + envs . put ( key , value ) ;
 + }
 }
 }

We shouldn t set pythonpath var when it is empty


<nb> public class SmartPointerManagerImpl extends SmartPointerManager implements Proj
 }

 private void fastenBeltsInSingleFile ( final PsiFile file ) {
 - final PsiDocumentManager documentManager = PsiDocumentManager . getInstance ( myProject ) ;
 - SINGLE
 - SINGLE
 -
 synchronized ( file ) {
 file . putUserData ( BELTS_ARE_FASTEN_KEY , Boolean . TRUE ) ;

 <nb> class SmartPsiElementPointerImpl < E extends PsiElement > implements SmartPointerEx
 TextRange range = anchor . getTextRange ( ) ;

 final PsiDocumentManager documentManager = PsiDocumentManager . getInstance ( myFile . getProject ( ) ) ;
 - myMarker = documentManager . getDocument ( myFile ) . createRangeMarker ( range . getStartOffset ( ) , range . getEndOffset ( ) , true ) ;
 + Document document = documentManager . getDocument ( myFile ) ;
 + LOG . assertTrue ( ! documentManager . isUncommited ( document ) ) ;
 + myMarker = document . createRangeMarker ( range . getStartOffset ( ) , range . getEndOffset ( ) , true ) ;

 mySyncStartOffset = range . getStartOffset ( ) ;
 mySyncEndOffset = range . getEndOffset ( ) ;


<nb> public class ClassFileLocatorForModuleTest {
 }

 @ test
 - @ javaversionrule.enforce ( value = NUMBER0 , sort = JavaVersionRule . Sort . AT_MOST )
 - public void testBootPathLegacy ( ) throws Exception {
 - ClassFileLocator classFileLocator = ClassFileLocator . ForModule . ofBootLayer ( ) ;
 - assertThat ( classFileLocator . locate ( Object . class . getName ( ) ) . isResolved ( ) , is ( false ) ) ;
 - assertThat ( classFileLocator . locate ( getClass ( ) . getName ( ) ) . isResolved ( ) , is ( false ) ) ;
 - }
 -
 - @ test
 @ javaversionrule.enforce ( NUMBER1 )
 public void testBootPath ( ) throws Exception {
 ClassFileLocator classFileLocator = ClassFileLocator . ForModule . ofBootLayer ( ) ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 @ suppresswarnings ( { STRING0 , STRING1 } )
 - SINGLE
 public class BTreeMap < K , V > extends AbstractMap < K , V >
 implements ConcurrentNavigableMap < K , V > , Bind . MapWithModificationListener < K , V > {

 <nb> public class BTreeMap < K , V > extends AbstractMap < K , V >
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


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

 import NAMESPACE ;


<nb> import NAMESPACE ;

 import NAMESPACE ;

 - public class BusinessOverdueStatusModelDao {
 + import NAMESPACE ;
 +
 + public class BusinessOverdueStatusModelDao extends EntityBase {
 private final String accountKey ;
 private final UUID bundleId ;
 private final String externalKey ;

make BusinessOverdueStatusModelDao extend EntityBase


<nb> public class GenericConnectionPage extends ConnectionPageAbstract implements ICo
 connectionInfo . setUserPassword ( passwordText . getText ( ) ) ;
 }
 super . saveSettings ( dataSource ) ;
 - if ( urlText != null ) {
 - connectionInfo . setUrl ( urlText . getText ( ) ) ;
 + if ( isCustom ) {
 + if ( urlText != null ) {
 + connectionInfo . setUrl ( urlText . getText ( ) ) ;
 + }
 + } else {
 + if ( urlText != null && connectionInfo . getUrl ( ) != null ) {
 + urlText . setText ( connectionInfo . getUrl ( ) ) ;
 + }
 }
 }


<nb> public abstract class JSONLexerBase implements JSONLexer , Closeable {

 int offset = NUMBER0 ;
 char chLocal = charAt ( bp + ( offset ++ ) ) ;
 +
 + final boolean negative = chLocal == STRING0 ;
 + if ( negative ) {
 + chLocal = charAt ( bp + ( offset ++ ) ) ;
 + }

 int value ;
 if ( chLocal >= STRING1 && chLocal <= STRING2 ) {
 <nb> public abstract class JSONLexerBase implements JSONLexer , Closeable {
 this . next ( ) ;
 matchStat = VALUE ;
 token = JSONToken . COMMA ;
 - return value ;
 + return negative ? - value : value ;
 } else {
 matchStat = NOT_MATCH ;
 - return value ;
 + return negative ? - value : value ;
 }
 }

bug fixed ArrayMapping negative int value


<nb> public class Page
 return getBlock ( channel ) . isNull ( position ) ;
 }

 + public void appendTo ( int position , PageBuilder pageBuilder )
 + {
 + for ( int channel = NUMBER0 ; channel < blocks . length ; channel ++ ) {
 + blocks [ channel ] . appendTo ( position , pageBuilder . getBlockBuilder ( channel ) ) ;
 + }
 + }
 +
 @ override
 public String toString ( )
 {


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> final class DefaultChannelPipeline implements ChannelPipeline {
 if ( m == null ) {
 break ;
 }
 -
 - if ( m instanceof ReferenceCounted ) {
 - ( ( ReferenceCounted ) m ) . release ( ) ;
 - }
 + BufUtil . release ( m ) ;
 logger . debug (
 STRING0 +
 STRING1 , m ) ;
 <nb> final class DefaultChannelPipeline implements ChannelPipeline {
 discardedMessages ++ ;
 }

 - if ( m instanceof ReferenceCounted ) {
 - ( ( ReferenceCounted ) m ) . release ( ) ;
 - }
 + BufUtil . release ( m ) ;
 }

 if ( discardedMessages != NUMBER0 ) {


<nb> final class Span implements DataPoints {
 final RowSeq rowseq = new RowSeq ( tsdb ) ;
 rowseq . setRow ( row ) ;
 if ( last_ts >= rowseq . timestamp ( NUMBER0 ) ) {
 - throw new IllegalArgumentException ( STRING0
 - + STRING1 + rows . get ( rows . size ( ) - NUMBER1 )
 - + STRING2 + rowseq ) ;
 + LOG . error ( STRING3 +
 + rows . get ( rows . size ( ) - NUMBER1 ) + STRING4 + rowseq ) ;
 + return ;
 }
 rows . add ( rowseq ) ;
 }

Ignore a RowSeq when it s added out of order to a Span


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class EhCacheBasedAclCacheTests extends TestCase {
 + SINGLE
 +
 AbstractXmlApplicationContext ctx ;

 SINGLE
 <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 ;
 import NAMESPACE ;

 COMMENT
 <nb> public class SQLiteJdbcExpert extends MysqlJdbcExpert {

 return true ;
 }
 +
 + public Pojo fetchPojoId ( Entity < ? > en , MappingField idField ) {
 + String autoSql = STRING0 ;
 + Pojo autoInfo = new SqlFieldMacro ( idField , autoSql ) ;
 + autoInfo . setEntity ( en ) ;
 + return autoInfo ;
 + }
 }


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 @ retention ( RetentionPolicy . RUNTIME )
 @ target ( { ElementType . TYPE , ElementType . METHOD , ElementType . FIELD , ElementType . PARAMETER } )


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public abstract class BinaryHttpResponseHandler extends AsyncHttpResponseHandler
 Log . e ( LOG_TAG , STRING0 ) ;
 }
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public BinaryHttpResponseHandler ( String [ ] allowedContentTypes , Looper looper ) {
 + super ( looper ) ;
 + if ( allowedContentTypes != null ) {
 + mAllowedContentTypes = allowedContentTypes ;
 + } else {
 + Log . e ( LOG_TAG , STRING0 ) ;
 + }
 + }

 @ override
 public abstract void onSuccess ( int statusCode , Header [ ] headers , byte [ ] binaryData ) ;

Added constructor that also takes a looper


<nb> public final class BluetoothSocket implements Closeable {
 } SINGLE
 ret = NUMBER0 ;
 } catch ( IOException e ) {
 + if ( mPfd != null ) {
 + try {
 + mPfd . close ( ) ;
 + } catch ( IOException e1 ) {
 + Log . e ( TAG , STRING0 + e1 ) ;
 + }
 + mPfd = null ;
 + }
 Log . e ( TAG , STRING1 + e ) ;
 return - NUMBER1 ;
 }

Close the base socket when bindListen fails


<nb> public class GroupTest {
 assertEquals ( NUMBER0 , employees3 . size ( ) ) ;

 employees3 . clear ( ) ;
 -
 - COMMENT
 +
 System . out . println ( STRING0 ) ;
 group . close ( ) ;

 <nb> public class GroupTest {
 group3 . close ( ) ;

 System . out . println ( STRING1 ) ;
 - COMMENT
 }

 }


<nb> public class GraphvizGrapher extends AbstractInjectorGrapher {
 @ override protected void newImplementationNode ( ImplementationNode node ) {
 NodeId nodeId = node . getId ( ) ;
 GraphvizNode gnode = new GraphvizNode ( nodeId ) ;
 - gnode . setStyle ( NodeStyle . INVISIBLE ) ;
 + gnode . setStyle ( NodeStyle . SOLID ) ;

 gnode . setHeaderBackgroundColor ( STRING0 ) ;
 gnode . setHeaderTextColor ( STRING1 ) ;
 <nb> public class GraphvizGrapher extends AbstractInjectorGrapher {
 @ override protected void newInstanceNode ( InstanceNode node ) {
 NodeId nodeId = node . getId ( ) ;
 GraphvizNode gnode = new GraphvizNode ( nodeId ) ;
 - gnode . setStyle ( NodeStyle . INVISIBLE ) ;
 + gnode . setStyle ( NodeStyle . SOLID ) ;

 gnode . setHeaderBackgroundColor ( STRING0 ) ;
 gnode . setHeaderTextColor ( STRING1 ) ;


<nb> public class TileEngineIron extends TileEngineWithInventory implements IFluidHan

 @ override
 public void overheat ( ) {
 + super . overheat ( ) ;
 SINGLE
 tankCoolant . setFluid ( null ) ;
 }

add missing super call as spotted by nulano


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

 -
 import static NAMESPACE ;
 + import static NAMESPACE ;

 public abstract class AbstractContentResponseHandler extends AbstractResponseHandler {
 private final HeaderDetector detector = new HeaderDetector ( ) ;
 <nb> public abstract class AbstractContentResponseHandler extends AbstractResponseHan
 ByteBuf buffer = Unpooled . buffer ( ) ;
 writeContentResponse ( context . getRequest ( ) , buffer ) ;
 response . content ( ) . writeBytes ( buffer ) ;
 - addHeader ( response , HttpHeaders . CONTENT_LENGTH , buffer . writerIndex ( ) ) ;
 + setContentLength ( response , response . content ( ) . writerIndex ( ) ) ;
 if ( ! detector . hasContentType ( response ) ) {
 addHeader ( response , HttpHeaders . CONTENT_TYPE , getContentType ( context . getRequest ( ) ) ) ;
 }

used set content length api rather set header directly


<nb> public class Vector2D {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Vector2D {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Vector2D {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Vector2D {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Vector2D {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Vector2D {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Vector2D {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Vector2D {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Removed some javadocs for nonexistant parameters in Vector2D methods


<nb> public class LogModel {
 }

 void addNotification ( Notification notification ) {
 - if ( notification . isImportant ( ) || NotificationsConfiguration . getSettings ( notification . getGroupId ( ) ) . getDisplayType ( ) != NotificationDisplayType . NONE ) {
 + NotificationDisplayType type = NotificationsConfiguration . getSettings ( notification . getGroupId ( ) ) . getDisplayType ( ) ;
 + if ( notification . isImportant ( ) || ( type != NotificationDisplayType . NONE && type != NotificationDisplayType . TOOL_WINDOW ) ) {
 synchronized ( myNotifications ) {
 myNotifications . add ( notification ) ;
 }

let toolwindow notifications not affect the ide notification icon color they spam too much


<nb> public class Canvas extends RelativeLayout {
 private void applyAlpha ( ) {
 Util . Assert ( mCurrentAlpha >= FLOAT0 && mCurrentAlpha <= FLOAT1 ) ;

 - int color = ( ( int ) ( NUMBER0 * mCurrentAlpha ) < < NUMBER1 ) ;
 + int color = ( ( int ) ( NUMBER2 * mCurrentAlpha ) < < NUMBER1 ) ;
 setBackgroundColor ( color ) ;

 if ( ! mEnabled || mCurrentAlpha == FLOAT0 ) {


<nb> public class ConsoleVisitorFilter implements PythonVisitorFilter {
 SINGLE
 if ( visitorClass == PyUnusedLocalInspection . class || visitorClass == PyUnboundLocalVariableInspection . class ||
 visitorClass == PyStatementEffectInspection . class || visitorClass == PySingleQuotedDocstringInspection . class ||
 - visitorClass == PyDocstringInspection . class ) {
 + visitorClass == PyDocstringInspection . class || visitorClass == PyMandatoryEncodingInspection . class ) {
 return false ;
 }

Disable Encoding not specified inspection in console


<nb> public class SecurityCheckProvider implements InjectableProvider < SecurityCheck ,
 }

 @ requiredargsconstructor
 - static class SecurityCheckInjectable < T > extends AbstractHttpContextInjectable < User > {
 + static class SecurityCheckInjectable extends AbstractHttpContextInjectable < User > {
 private static final String PREFIX = STRING0 ;

 private final HttpServletRequest request ;
 <nb> public class SecurityCheckProvider implements InjectableProvider < SecurityCheck ,

 @ override
 public Injectable < ? > getInjectable ( ComponentContext ic , SecurityCheck sc , Parameter c ) {
 - return new SecurityCheckInjectable < > ( request , userService , sc . value ( ) , sc . apiKeyAllowed ( ) ) ;
 + return new SecurityCheckInjectable ( request , userService , sc . value ( ) , sc . apiKeyAllowed ( ) ) ;
 }
 }


<nb> public class AndroidBinary extends AbstractBuildable implements
 } ) ;

 SINGLE
 - SINGLE
 Step obfuscateCommand = ProGuardObfuscateStep . create (
 proguardJarOverride ,
 generatedProGuardConfig ,


<nb> public abstract class ViewGroup extends View implements ViewParent , ViewManager
 mGroupFlags |= FLAG_CLIP_CHILDREN ;
 mGroupFlags |= FLAG_CLIP_TO_PADDING ;
 mGroupFlags |= FLAG_ANIMATION_DONE ;
 + mGroupFlags |= FLAG_ANIMATION_CACHE ;
 + mGroupFlags |= FLAG_ALWAYS_DRAWN_WITH_CACHE ;

 if ( mContext . getApplicationInfo ( ) . targetSdkVersion >= Build . VERSION_CODES . HONEYCOMB ) {
 mGroupFlags |= FLAG_SPLIT_MOTION_EVENTS ;


<nb> import NAMESPACE ;
 @ module
 public class AppModule {

 - Application application ;
 + private Application application ;

 public AppModule ( Application application ) {
 this . application = application ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class UnindexedFilesUpdater implements BackgroundableCacheUpdater {
 SINGLE
 final Set < String > rootsToIndex = provider . getRootsToIndex ( ) ;
 for ( String url : rootsToIndex ) {
 - final VirtualFile root = VfsUtil . findFileByURL ( VfsUtil . convertToURL ( url ) ) ;
 + final VirtualFile root = VirtualFileManager . getInstance ( ) . findFileByUrl ( url ) ;
 if ( visitedRoots . add ( root ) ) {
 iterateRecursively ( root , processor , indicator ) ;
 }


<nb> public class LocalIndexesActivity extends OsmandExpandableListActivity {
 } else if ( child . isCorrupted ( ) ) {
 viewName . setTextColor ( corruptedColor ) ;
 } else if ( child . isLoaded ( ) ) {
 - viewName . setTextColor ( okColor ) ;
 + SINGLE
 + SINGLE
 } else {
 viewName . setTextColor ( defaultColor ) ;
 }

try remove ambiguity dur to green as isLoaded color


<nb> public class Build {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Fixed a typo implying intents must and must not be explicit


<nb> public class JDBCSQLDialect extends BasicSQLDialect {
 functions . addAll ( allFunctions ) ;
 }
 catch ( Throwable e ) {
 - if ( e instanceof InvocationTargetException ) {
 - e = ( ( InvocationTargetException ) e ) . getTargetException ( ) ;
 - }
 log . error ( e ) ;
 }

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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SQLWordPartDetector extends SQLIdentifierDetector
 }

 String prevWord = document . get ( prevOffset , prevStartOffset - prevOffset ) ;
 - if ( syntaxManager . getDialect ( ) . getKeywordType ( prevWord ) == DBPKeywordType . KEYWORD &&
 - ! prevWord . equalsIgnoreCase ( STRING0 ) )
 - {
 + SQLDialect dialect = syntaxManager . getDialect ( ) ;
 + if ( dialect . isEntityQueryWord ( prevWord ) || dialect . isAttributeQueryWord ( prevWord ) ) {
 this . prevKeyWord = prevWord . toUpperCase ( ) ;
 break ;
 }

Autocomplete now checks only table column keywords and ignore all other


<nb> 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 ;


<nb> public class ConcurrentMapManager extends BaseManager {
 PutAllCallable callable = new PutAllCallable ( name , targetPairs ) ;
 DistributedTask < Boolean > dt = new DistributedTask < Boolean > ( callable , member ) ;
 lsFutures . add ( dt ) ;
 - node . factory . getExecutorService ( ) . execute ( dt ) ;
 + node . factory . getExecutorService ( STRING0 ) . execute ( dt ) ;
 }
 }
 for ( Future < Boolean > future : lsFutures ) {

putAll was using default Executor Service to put in parallel


<nb> public class MetricsRoutePolicy extends RoutePolicySupport {

 this . route = route ;
 try {
 - registry = route . getRouteContext ( ) . getCamelContext ( ) . hasServiceByType ( MetricsRegistryService . class ) ;
 + registry = route . getRouteContext ( ) . getCamelContext ( ) . hasService ( MetricsRegistryService . class ) ;
 if ( registry == null ) {
 registry = new MetricsRegistryService ( ) ;
 route . getRouteContext ( ) . getCamelContext ( ) . addService ( registry ) ;

camel metrics Add a route policy to expose route stats as codehale metrics


<nb> public class Texture2DHandler extends AssetExtractHandler {
 break ;

 case ARGB4444 :
 + case RGBA4444 :
 case RGB565 :
 case DXT1 :
 case DXT5 :
 <nb> public class Texture2DHandler extends AssetExtractHandler {
 header . ddspf . dwRGBBitCount = NUMBER0 ;
 break ;

 + case RGBA4444 :
 + header . ddspf . dwFlags = DDSPixelFormat . DDPF_RGBA ;
 + header . ddspf . dwRBitMask = NUMBER1 ;
 + header . ddspf . dwGBitMask = NUMBER2 ;
 + header . ddspf . dwBBitMask = NUMBER3 ;
 + header . ddspf . dwABitMask = NUMBER4 ;
 + header . ddspf . dwRGBBitCount = NUMBER0 ;
 + break ;
 +
 case RGB565 :
 header . ddspf . dwFlags = DDSPixelFormat . DDPF_RGB ;
 header . ddspf . dwRBitMask = NUMBER5 ;


<nb> public class HTML5VideoFullScreen extends HTML5VideoView
 SINGLE
 if ( mMediaController != null ) {
 mMediaController . setEnabled ( true ) ;
 + mMediaController . show ( ) ;
 }

 if ( mProgressView != null ) {
 <nb> public class HTML5VideoFullScreen extends HTML5VideoView
 return NUMBER0 ;
 }

 + @ override
 + public void showControllerInFullScreen ( ) {
 + mMediaController . show ( NUMBER0 ) ;
 + }
 +
 SINGLE
 private MediaPlayer . OnBufferingUpdateListener mBufferingUpdateListener =
 new MediaPlayer . OnBufferingUpdateListener ( ) {
 <nb> public class HTML5VideoView implements MediaPlayer . OnPreparedListener {
 return m_startWhenPrepared ;
 }

 + public void showControllerInFullScreen ( ) {
 + }
 +
 }
 <nb> class HTML5VideoViewProxy extends Handler
 }

 public static void end ( ) {
 + mHTML5VideoView . showControllerInFullScreen ( ) ;
 if ( mCurrentProxy != null ) {
 if ( isVideoSelfEnded )
 mCurrentProxy . dispatchOnEnded ( ) ;


<nb> public class CarrierConfigManager {
 public static final String KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL = STRING0 ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String KEY_EDITABLE_WFC_MODE_BOOL = STRING1 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class CarrierConfigManager {
 sDefaults . putBoolean ( KEY_EDITABLE_ENHANCED_4G_LTE_BOOL , true ) ;
 sDefaults . putBoolean ( KEY_HIDE_IMS_APN_BOOL , false ) ;
 sDefaults . putBoolean ( KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL , false ) ;
 + sDefaults . putBoolean ( KEY_EDITABLE_WFC_MODE_BOOL , true ) ;
 sDefaults . putInt ( KEY_CDMA_DTMF_TONE_DELAY_INT , NUMBER0 ) ;

 SINGLE

Add carrier config variable to support editable wfc mode


<nb> public class Account implements Serializable
 }
 while ( gotOne ) ;

 - SINGLE
 if ( newIdentities . size ( ) == NUMBER0 )
 {
 String name = prefs . getString ( mUuid + STRING0 , null ) ;


<nb> public class Views {
 injectionTargets . add ( erasedInjectionType ) ;
 }

 - for ( Map . Entry < TypeElement , Map < Integer , Set < InjectionPoint > > > injection
 + for ( Map . Entry < TypeElement , Map < Integer , Set < InjectionPoint > > > injection SINGLE
 : injectionsByClass . entrySet ( ) ) {
 TypeElement type = injection . getKey ( ) ;
 String targetType = type . getQualifiedName ( ) . toString ( ) ;

Prevent IntelliJ from causing checkstyle failures by not wrapping for each


<nb> public class ShiftReduceParser extends ParserGrammar implements Serializable {
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + public Set < String > knownStates ( ) {
 + return Collections . unmodifiableSet ( model . knownStates ) ;
 + }
 +
 @ override
 public boolean requiresTags ( ) {
 return true ;

Add a method for getting the known states from a model


<nb> public class ErrorReportValve
 if ( ( statusCode < NUMBER0 ) || ( response . getContentCount ( ) > NUMBER1 ) )
 return ;

 - Throwable rootCause = null ;
 -
 - if ( throwable != null ) {
 -
 - if ( throwable instanceof ServletException )
 - rootCause = ( ( ServletException ) throwable ) . getRootCause ( ) ;
 -
 - }
 -
 String message = RequestUtil . filter ( response . getMessage ( ) ) ;
 if ( message == null )
 message = STRING0 ;
 <nb> public class ErrorReportValve
 sb . append ( STRING1 ) ;

 int loops = NUMBER1 ;
 + Throwable rootCause = throwable . getCause ( ) ;
 while ( rootCause != null && ( loops < NUMBER2 ) ) {
 stackTrace = getPartialServletStackTrace ( rootCause ) ;
 sb . append ( STRING2 ) ;


<nb> public class DefaultServlet
 request . setAttribute ( STRING0 , Long . valueOf ( range . start ) ) ;
 request . setAttribute ( STRING1 , Long . valueOf ( range . end + NUMBER0 ) ) ;
 }
 - request . setAttribute ( STRING2 , this ) ;
 return true ;
 }
 return false ;


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

 - import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class SharedLibraryLoader {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public SharedLibraryLoader ( String nativesJar ) {


<nb> public enum BlockType {
 nonDataAttachments . put ( BlockID . WOODEN_PRESSURE_PLATE , PlayerDirection . DOWN ) ;
 SINGLE
 for ( int offset = NUMBER0 ; offset <= NUMBER1 ; offset += NUMBER1 ) {
 - addCardinals ( BlockID . STONE_BUTTON , offset + NUMBER2 , offset + NUMBER3 , offset + NUMBER4 , offset + NUMBER5 ) ;
 + addCardinals ( BlockID . STONE_BUTTON , offset + NUMBER5 , offset + NUMBER4 , offset + NUMBER3 , offset + NUMBER2 ) ;
 }
 nonDataAttachments . put ( BlockID . REED , PlayerDirection . DOWN ) ;
 nonDataAttachments . put ( BlockID . CAKE_BLOCK , PlayerDirection . DOWN ) ;
 <nb> public enum BlockType {
 nonDataAttachments . put ( BlockID . PUMPKIN_STEM , PlayerDirection . DOWN ) ;
 nonDataAttachments . put ( BlockID . MELON_STEM , PlayerDirection . DOWN ) ;
 SINGLE
 + dataAttachments . put ( attachmentKey ( BlockID . VINE , NUMBER0 ) , PlayerDirection . UP ) ;
 addCardinals ( BlockID . VINE , NUMBER4 , NUMBER2 , NUMBER5 , NUMBER1 ) ;
 SINGLE
 }

Apparently the wiki has wrong data values for the stone button


<nb> public class BinaryInspector {
 for ( City c : cities ) {
 int size = index . preloadStreets ( c , null ) ;
 List < Street > streets = new ArrayList < Street > ( c . getStreets ( ) ) ;
 - print ( MessageFormat . format ( STRING0 ,
 - new Object [ ] { c . getName ( lang ) , c . getId ( ) , streets . size ( ) , size } ) ) ;
 - if ( ! verbose . vstreets )
 - {
 + String cityDescription = ( j == BinaryMapAddressReaderAdapter . POSTCODES_TYPE ?
 + MessageFormat . format ( STRING1 , c . getName ( lang ) , streets . size ( ) , size ) :
 + MessageFormat . format ( STRING0 , c . getName ( lang ) , c . getId ( ) , streets . size ( ) , size ) ) ;
 + print ( cityDescription ) ;
 + if ( ! verbose . vstreets ) {
 println ( STRING2 ) ;
 continue ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ReaderPost {
 }
 }
 }
 -
 - SINGLE
 + SINGLE
 + SINGLE
 + if ( ! post . hasFeaturedImage ( ) && post . hasAttachments ( ) ) {
 + post . featuredImage = new ImageSizeMap ( post . attachmentsJson )
 + . getLargestImageUrl ( ReaderConstants . MIN_FEATURED_IMAGE_WIDTH ) ;
 + }
 + SINGLE
 SINGLE
 if ( ! post . hasFeaturedImage ( ) && post . hasText ( ) && post . text . contains ( STRING0 ) ) {
 post . featuredImage = new ReaderImageScanner ( post . text , post . isPrivate )

don t scan attachments when picking the featured image


<nb> import NAMESPACE ;

 public class ManagedProxyFactory {

 - public static final ManagedProxyFactory INSTANCE = new ManagedProxyFactory ( ) ;
 -
 public < T > T createProxy ( ModelElementState state , ModelManagedImplStructSchema < T > schema ) {
 try {
 Class < ? extends T > generatedClass = schema . getImplementationType ( ) ;

Remove unnecessary singleton instance of ManagedProxyFactory


<nb> public class DTree extends Iced {
 else min = split ;
 }
 }
 - if ( min == maxEx ) continue ; SINGLE
 + if ( DHistogram . equalsWithinOneSmallUlp ( min , maxEx ) ) continue ; SINGLE
 if ( h . _isInt > NUMBER0 && ! ( min + NUMBER1 < maxEx ) ) continue ; SINGLE
 if ( min > maxEx ) continue ; SINGLE
 assert min < maxEx && n > NUMBER1 : STRING0 + min + STRING1 + maxEx + STRING2 + n ;

Instead of using a perfect equality test for stopping future column


<nb> import NAMESPACE ;

 SINGLE

 - SINGLE
 -
 - SINGLE
 SINGLE
 SINGLE
 SINGLE
 <nb> public class PDFViewerPresenter implements IsWidget ,
 @ override
 public void onClick ( ClickEvent event )
 {
 - Debug . log ( STRING0 + PDFView . currentPage ( ) ) ;
 synctex_ . inverseSearch ( PdfLocation . create ( lastSuccessfulPdfPath_ ,
 PDFView . currentPage ( ) ,
 NUMBER0 , NUMBER0 , NUMBER1 , NUMBER1 ) ) ;


<nb> public class TestingTypeManager
 public Type getType ( TypeSignature signature )
 {
 for ( Type type : getTypes ( ) ) {
 - if ( signature . equals ( type . getTypeSignature ( ) ) ) {
 + if ( signature . getBase ( ) . equals ( type . getTypeSignature ( ) . getBase ( ) ) ) {
 return type ;
 }
 }


<nb> public class GeoBroker extends Plugin {
 this . gpsListener = null ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void onReset ( ) {
 + this . onDestroy ( ) ;
 + }
 +
 public JSONObject returnLocationJSON ( Location loc ) {
 JSONObject o = new JSONObject ( ) ;


<nb> public class MessageList
 }
 else if ( mQueryString != null )
 {
 - setTitle ( R . string . search_results + STRING0 + mQueryString ) ;
 + setTitle ( getString ( R . string . search_results ) + STRING0 + mQueryString ) ;
 }
 }


<nb> public final class TypeFactory
 int len = actualTypes . length ;
 for ( int i = NUMBER0 ; i < len ; ++ i ) {
 String name = vars [ i ] . getName ( ) ;
 - JavaType type = instance . _constructType ( actualTypes [ i ] , bindings ) ;
 + JavaType type = _constructType ( actualTypes [ i ] , bindings ) ;
 newBindings . addBinding ( name , type ) ;
 }
 }

remove accidental use of instance in TypeFactory


<nb> public final class MediaType {
 public static final MediaType RTF_UTF_8 = createConstantUtf8 ( APPLICATION_TYPE , STRING0 ) ;
 public static final MediaType SHOCKWAVE_FLASH = createConstant ( APPLICATION_TYPE ,
 STRING1 ) ;
 + public static final MediaType SKETCHUP = createConstant ( APPLICATION_TYPE , STRING2 ) ;
 public static final MediaType TAR = createConstant ( APPLICATION_TYPE , STRING3 ) ;
 public static final MediaType XHTML_UTF_8 = createConstantUtf8 ( APPLICATION_TYPE , STRING4 ) ;
 public static final MediaType ZIP = createConstant ( APPLICATION_TYPE , STRING5 ) ;
 <nb> public final class MediaType {
 . put ( POSTSCRIPT , POSTSCRIPT )
 . put ( RTF_UTF_8 , RTF_UTF_8 )
 . put ( SHOCKWAVE_FLASH , SHOCKWAVE_FLASH )
 + . put ( SKETCHUP , SKETCHUP )
 . put ( TAR , TAR )
 . put ( XHTML_UTF_8 , XHTML_UTF_8 )
 . put ( ZIP , ZIP )


<nb> public class SimpleSlide extends Slide {
 }

 public SimpleSlide build ( ) {
 - if ( background == NUMBER0 || title == NUMBER0 || layout == NUMBER0 )
 - throw new IllegalArgumentException ( STRING0 ) ;
 + if ( title == NUMBER0 || description == NUMBER0 || image == NUMBER0 || background == NUMBER0 )
 + throw new IllegalArgumentException ( STRING1 ) ;
 return new SimpleSlide ( this ) ;
 }
 }


<nb> public class HelpActivity extends OsmandActionBarActivity {
 @ override
 public boolean onCreateOptionsMenu ( Menu menu ) {
 createMenuItem ( menu , HOME , R . string . home ,
 - R . drawable . ic_action_home_light , R . drawable . ic_action_home_dark ,
 + R . drawable . ic_action_home_dark , R . drawable . ic_action_home_dark ,
 MenuItemCompat . SHOW_AS_ACTION_IF_ROOM ) ;
 createMenuItem ( menu , BACK , R . string . previous_button ,
 NUMBER0 , NUMBER0 , SINGLE
 <nb> public class HelpActivity extends OsmandActionBarActivity {
 NUMBER0 , NUMBER0 , SINGLE
 MenuItemCompat . SHOW_AS_ACTION_IF_ROOM ) ;
 createMenuItem ( menu , CLOSE , R . string . close ,
 - R . drawable . ic_action_ok_light , R . drawable . ic_action_ok_dark ,
 + R . drawable . ic_action_ok_dark , R . drawable . ic_action_ok_dark ,
 MenuItemCompat . SHOW_AS_ACTION_IF_ROOM ) ;
 return super . onCreateOptionsMenu ( menu ) ;
 }

Fixed HelpActivity icons for light theme


<nb> public final class ConnectionId {
 private final ServerId serverId ;
 private final int localValue ;
 private final Integer serverValue ;
 + private final String stringValue ;

 COMMENT
 COMMENT
 <nb> public final class ConnectionId {
 this . serverId = notNull ( STRING0 , serverId ) ;
 this . localValue = localValue ;
 this . serverValue = serverValue ;
 + if ( serverValue == null ) {
 + stringValue = format ( STRING1 , localValue ) ;
 + } else {
 + stringValue = format ( STRING2 , localValue , serverValue ) ;
 + }
 }

 COMMENT
 <nb> public final class ConnectionId {

 @ override
 public String toString ( ) {
 - if ( serverValue == null ) {
 - return format ( STRING1 , localValue ) ;
 - } else {
 - return format ( STRING2 , localValue , serverValue ) ;
 - }
 + return stringValue ;
 }
 }

Cached String value of ConnectionId to avoid cost of String format


<nb> public class MBeanUtils {
 SINGLE
 ObjectName db = new ObjectName (
 STRING0 + userDatabase ) ;
 - mserver . unregisterMBean ( db ) ;
 + if ( mserver . isRegistered ( db ) ) {
 + mserver . unregisterMBean ( db ) ;
 + }
 }
 }

Avoid Warning message at shutdown if GlobalResourceLifecacleListener isn t configured


<nb> public class IndicesServiceTests extends ESSingleNodeTestCase {
 listener . latch . await ( ) ;
 assertThat ( clusterService . state ( ) , not ( originalState ) ) ;
 assertNotNull ( clusterService . state ( ) . getMetaData ( ) . index ( alias ) ) ;
 -
 - SINGLE
 - indicesService . deleteIndex ( test . index ( ) , STRING0 ) ;
 }

 COMMENT

Fix test issue where index is explicitly deleted during cluster state update


<nb> public class XmlAttributeValueWrapper implements XmlAttributeValue , PsiNamedElem
 myWrappee . acceptChildren ( visitor ) ;
 }

 + @ notnull
 @ override
 public PsiElement copy ( ) {
 return myWrappee . copy ( ) ;
 <nb> public class XmlAttributeValueWrapper implements XmlAttributeValue , PsiNamedElem

 @ override
 public void checkAdd ( @ notnull PsiElement element ) throws IncorrectOperationException {
 + SINGLE
 myWrappee . checkAdd ( element ) ;
 }

 <nb> public class XmlAttributeValueWrapper implements XmlAttributeValue , PsiNamedElem

 @ override
 public void checkDelete ( ) throws IncorrectOperationException {
 + SINGLE
 myWrappee . checkDelete ( ) ;
 }

 <nb> public class XmlAttributeValueWrapper implements XmlAttributeValue , PsiNamedElem
 myWrappee . deleteChildRange ( first , last ) ;
 }

 + @ notnull
 @ override
 public PsiElement replace ( @ notnull PsiElement newElement ) throws IncorrectOperationException {
 return myWrappee . replace ( newElement ) ;

Add NotNull annotations to Android XML value wrapper


<nb> public interface ClaimStrategy
 }
 else
 {
 - for ( long i = expectedSequence + NUMBER0 ; i <= sequence ; i ++ )
 + for ( long i = expectedSequence + NUMBER0 ; i < sequence ; i ++ )
 {
 - pendingPublications . set ( ( int ) i & indexMask , i ) ;
 + pendingPublications . lazySet ( ( int ) i & indexMask , i ) ;
 }
 +
 + pendingPublications . set ( ( int ) sequence & indexMask , sequence ) ;
 }

 if ( csLock . compareAndSet ( NUMBER1 L , NUMBER2 ) )

only memory barrier pending publications at end of batch


<nb> public class Roster implements Cacheable {

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 - public Roster ( String username ) {
 + Roster ( String username ) {
 presenceManager = XMPPServer . getInstance ( ) . getPresenceManager ( ) ;
 rosterManager = XMPPServer . getInstance ( ) . getRosterManager ( ) ;
 sessionManager = SessionManager . getInstance ( ) ;

Modified constructor to be visible only to the package no longer public


<nb> public class TheTVDB {
 } ) ;
 episode . getChild ( STRING0 ) . setEndTextElementListener ( new EndTextElementListener ( ) {
 public void end ( String body ) {
 - long episodeAirTime = Utils . buildEpisodeAirtime ( body , show . airtime ) ;
 + long episodeAirTime = TimeTools
 + . parseEpisodeReleaseTime ( body , show . airtime , show . country ) ;
 values . put ( Episodes . FIRSTAIREDMS , episodeAirTime ) ;
 values . put ( Episodes . FIRSTAIRED , body . trim ( ) ) ;
 }

Parse episode time using the new TimeTools helper


<nb> public class ExtentEntityCopy implements EntityFunction {

 if ( ! transform . isIdentity ( ) ) {
 Location location = entity . getLocation ( ) ;
 - Vector newPosition = transform . apply ( location . toVector ( ) . subtract ( from ) ) ;
 + Vector pivot = from . round ( ) . add ( FLOAT0 , FLOAT0 , FLOAT0 ) ;
 + Vector newPosition = transform . apply ( location . toVector ( ) . subtract ( pivot ) ) ;
 Vector newDirection = transform . apply ( location . getDirection ( ) ) . subtract ( transform . apply ( Vector . ZERO ) ) . normalize ( ) ;
 - newLocation = new Location ( destination , newPosition . add ( to ) , newDirection ) ;
 + newLocation = new Location ( destination , newPosition . add ( to . round ( ) . add ( FLOAT0 , FLOAT0 , FLOAT0 ) ) , newDirection ) ;

 SINGLE
 state = transformNbtData ( state ) ;


<nb> public class RequestReplyExample {

 SINGLE
 SINGLE
 - from ( STRING0 )
 + from ( STRING1 )
 . filter ( header ( QuickfixjEndpoint . MESSAGE_TYPE_KEY ) . isEqualTo ( MsgType . ORDER_STATUS_REQUEST ) )
 + . to ( STRING2 )
 . bean ( new MarketOrderStatusService ( ) )
 . bean ( new QuickfixjMessageJsonPrinter ( ) ) ;

Modified the second route to demonstrate the problem


<nb> public class FlexboxLayout extends ViewGroup {
 switch ( flexDirection ) {
 case FLEX_DIRECTION_ROW : SINGLE
 case FLEX_DIRECTION_ROW_REVERSE :
 - calculatedMaxHeight = getSumOfCrossSize ( ) ;
 + calculatedMaxHeight = getSumOfCrossSize ( ) + getPaddingTop ( ) + getPaddingBottom ( ) ;
 calculatedMaxWidth = getLargestMainSize ( ) ;
 break ;
 case FLEX_DIRECTION_COLUMN : SINGLE
 case FLEX_DIRECTION_COLUMN_REVERSE :
 calculatedMaxHeight = getLargestMainSize ( ) ;
 - calculatedMaxWidth = getSumOfCrossSize ( ) ;
 + calculatedMaxWidth = getSumOfCrossSize ( ) + getPaddingLeft ( ) + getPaddingRight ( ) ;
 break ;
 default :
 throw new IllegalArgumentException ( STRING0 + flexDirection ) ;

Fix the issue paddings are not taken into account along the cross axis


<nb> public class RootsCache {

 @ override
 public void onChange ( boolean selfChange , Uri uri ) {
 + if ( uri == null ) {
 + Log . w ( TAG , STRING0 ) ;
 + return ;
 + }
 if ( DEBUG ) Log . d ( TAG , STRING1 + uri ) ;
 updateAuthorityAsync ( uri . getAuthority ( ) ) ;
 }

Handle null uris in content changed events


<nb> public final class SendTicketGrantingTicketAction extends AbstractAction {
 LOGGER . info ( STRING0
 + STRING1 ) ;
 } else {
 + LOGGER . debug ( STRING2 ) ;
 this . ticketGrantingTicketCookieGenerator . addCookie ( WebUtils . getHttpServletRequest ( context ) , WebUtils
 . getHttpServletResponse ( context ) , ticketGrantingTicketId ) ;
 }


<nb> public final class TvInputInfo implements Parcelable {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

update documentation of TvInputInfo getParentId


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


<nb> public final class ProjectViewImpl extends ProjectView implements JDOMExternaliz
 if ( isFlattenPackages ( myCurrentViewId ) ) {
 presentation . setText ( IdeBundle . message ( STRING0 ) ) ;
 presentation . setDescription ( IdeBundle . message ( STRING1 ) ) ;
 - presentation . setIcon ( HIDE_EMPTY_MIDDLE_PACKAGES_ICON ) ;
 }
 else {
 presentation . setText ( IdeBundle . message ( STRING2 ) ) ;
 presentation . setDescription ( IdeBundle . message ( STRING3 ) ) ;
 - presentation . setIcon ( COMPACT_EMPTY_MIDDLE_PACKAGES_ICON ) ;
 }
 }
 }

remove icon for hide empty middle packages


<nb> public class RequestCreatorTest {
 @ test public void fetchWithCache ( ) {
 when ( picasso . quickMemoryCacheCheck ( URI_KEY_1 ) ) . thenReturn ( bitmap ) ;
 new RequestCreator ( picasso , URI_1 , NUMBER0 ) . memoryPolicy ( MemoryPolicy . NO_CACHE ) . fetch ( ) ;
 - verify ( picasso ) . submit ( actionCaptor . capture ( ) ) ;
 verify ( picasso , never ( ) ) . enqueueAndSubmit ( any ( Action . class ) ) ;
 }

 @ test public void fetchWithMemoryPolicyNoCache ( ) {
 - when ( picasso . quickMemoryCacheCheck ( URI_KEY_1 ) ) . thenReturn ( bitmap ) ;
 new RequestCreator ( picasso , URI_1 , NUMBER0 ) . memoryPolicy ( MemoryPolicy . NO_CACHE ) . fetch ( ) ;
 + verify ( picasso , never ( ) ) . quickMemoryCacheCheck ( URI_KEY_1 ) ;
 verify ( picasso ) . submit ( actionCaptor . capture ( ) ) ;
 }


<nb> public class PersistentPathChildrenCacheTest {

 verify ( listener , atLeastOnce ( ) ) . nodesChanged ( cache ) ;

 - SINGLE
 - zk . stop ( ) ;
 -
 SINGLE
 final SettableFuture < Void > connectionLost = SettableFuture . create ( ) ;
 doAnswer ( new Answer < Object > ( ) {
 <nb> public class PersistentPathChildrenCacheTest {
 return null ;
 }
 } ) . when ( listener ) . connectionStateChanged ( any ( ConnectionState . class ) ) ;
 +
 + SINGLE
 + zk . stop ( ) ;
 connectionLost . get ( NUMBER0 , MINUTES ) ;

 SINGLE


<nb> public abstract class HazelcastTestSupport {
 public static final int ASSERT_TRUE_EVENTUALLY_TIMEOUT ;

 static {
 - SINGLE
 - String libPath = StringUtil . lowerCaseInternal ( System . getProperty ( STRING0 ) ) ;
 - if ( libPath . contains ( STRING1 ) || libPath . contains ( STRING2 ) ) {
 - setLogLevelWarn ( ) ;
 - }
 -
 System . setProperty ( STRING3 , STRING4 ) ;

 ASSERT_TRUE_EVENTUALLY_TIMEOUT = Integer . parseInt ( System . getProperty ( STRING5 , STRING6 ) ) ;

Reverted the logging nonsense in HazelcastTestSupport when I run a test in IntelliJ I want to see logging


<nb> public class GitBlit implements ServletContextListener {
 if ( r != null ) {
 updateConfiguration ( r , repository ) ;
 SINGLE
 - if ( ! StringUtils . isEmpty ( repository . defaultHead ) &&
 - ! repository . defaultHead . equals ( JGitUtils . getSymbolicHeadTarget ( r ) ) ) {
 + String currentHead = JGitUtils . getSymbolicHeadTarget ( r ) ;
 + if ( ! StringUtils . isEmpty ( repository . defaultHead ) &&
 + ! repository . defaultHead . equals ( currentHead ) ) {
 + logger . info ( MessageFormat . format ( STRING0 ,
 + repository . name , currentHead , repository . defaultHead ) ) ;
 JGitUtils . setSymbolicHeadTarget ( r , repository . defaultHead ) ;
 +
 + SINGLE
 + clearRepositoryCache ( repository . name ) ;
 }
 +
 + SINGLE
 r . close ( ) ;
 }
 }


<nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class OSMReaderHelperDoubleParse extends OSMReaderHelper {
 private static final int TOWER_NODE = - NUMBER0 ;
 private final Logger logger = LoggerFactory . getLogger ( getClass ( ) ) ;
 SINGLE
 - SINGLE
 + private BigLongIntMap osmIdToIndexMap ;
 SINGLE
 - private MyMapDB osmIdToIndexMap ;
 + SINGLE
 SINGLE
 SINGLE
 SINGLE
 <nb> public class OSMReaderHelperDoubleParse extends OSMReaderHelper {
 pillarLats = dir . findCreate ( STRING0 ) ;
 pillarLons = dir . findCreate ( STRING1 ) ;
 SINGLE
 - SINGLE
 + osmIdToIndexMap = new BigLongIntMap ( expectedNodes , EMPTY ) ;
 SINGLE
 - osmIdToIndexMap = new MyMapDB ( true ) ;
 + SINGLE
 }

 @ override


<nb> public final class LearnLibSvmClassifierAggregation
 public static void output ( LearnState state , BlockBuilder out )
 {
 Dataset dataset = new Dataset ( state . getLabels ( ) , state . getFeatureVectors ( ) ) ;
 - Model model = new ClassifierFeatureTransformer ( new SvmClassifier ( state . getParameters ( ) ) , new FeatureUnitNormalizer ( ) ) ;
 + Model model = new ClassifierFeatureTransformer ( new SvmClassifier ( state . getParameters ( ) ) , new FeatureUnitNormalizer ( ) ) ;
 model . train ( dataset ) ;
 ClassifierType . CLASSIFIER . writeSlice ( out , ModelUtils . serialize ( model ) ) ;
 }

Remove extra space in LearnLibSvmClassifierAggregation


<nb> public class MathUtils {
 return random . nextBoolean ( ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + static public final boolean randomBoolean ( int chance ) {
 + if ( chance < NUMBER0 ) {
 + throw new IllegalArgumentException ( STRING0 ) ;
 + } else if ( chance > NUMBER1 ) {
 + throw new IllegalArgumentException ( STRING1 ) ;
 + }
 + return MathUtils . random ( NUMBER2 , NUMBER0 ) <= chance ;
 + }
 +
 COMMENT
 static public final float random ( ) {
 return random . nextFloat ( ) ;


<nb> public class AndroidApkBuilder {
 continue ;
 }

 - if ( ! dstDir . mkdirs ( ) ) {
 + if ( ! dstDir . exists ( ) && ! dstDir . mkdirs ( ) ) {
 map . get ( ERROR ) . add ( STRING0 + FileUtil . toSystemDependentName ( dstDir . getPath ( ) ) ) ;
 continue ;
 }


<nb> public abstract class CommonXml implements XMLElementReader < List < ModelNode > > , XM
 Set < String > deploymentNames = deployments . keys ( ) ;
 if ( deploymentNames . size ( ) > NUMBER0 ) {
 for ( String deploymentName : deploymentNames ) {
 - final ModelNode depNode = deployments . get ( uniqueName ) ;
 + final ModelNode depNode = deployments . get ( deploymentName ) ;
 final boolean regEx = depNode . hasDefined ( REGULAR_EXPRESSION ) ? depNode . get ( REGULAR_EXPRESSION ) . asBoolean ( ) : false ;
 writer . writeStartElement ( Element . DEPLOYMENT . getLocalName ( ) ) ;
 writeAttribute ( writer , Attribute . NAME , deploymentName ) ;


<nb>
 COMMENT
 package 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 ;

 COMMENT
 <nb> public class AddUser extends AdHocCommand {
 }

 public boolean hasPermission ( JID requester ) {
 - return super . hasPermission ( requester ) && ! UserManager . getUserProvider ( ) . isReadOnly ( ) ;
 + return ( super . hasPermission ( requester ) || InternalComponentManager . getInstance ( ) . hasComponent ( requester ) )
 + && ! UserManager . getUserProvider ( ) . isReadOnly ( ) ;
 }
 }


<nb> public enum StandardErrorCode
 UNSUPPORTED_ISOLATION_LEVEL ( NUMBER0 ) ,
 INCOMPATIBLE_CLIENT ( NUMBER1 ) ,
 SUBQUERY_MULTIPLE_ROWS ( NUMBER2 ) ,
 +
 INTERNAL_ERROR ( NUMBER3 ) ,
 TOO_MANY_REQUESTS_FAILED ( NUMBER4 ) ,
 PAGE_TOO_LARGE ( NUMBER5 ) ,


<nb> final class DeadHostState {
 this . deadUntilNanos = System . nanoTime ( ) + MIN_CONNECTION_TIMEOUT_NANOS ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 DeadHostState ( DeadHostState previousDeadHostState ) {
 long timeoutNanos = ( long ) Math . min ( MIN_CONNECTION_TIMEOUT_NANOS * NUMBER0 * Math . pow ( NUMBER0 , previousDeadHostState . failedAttempts * FLOAT0 - NUMBER1 ) ,
 MAX_CONNECTION_TIMEOUT_NANOS ) ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 final class RequestLogger {

added comments to clarify RequestLogger and DeadHostState


<nb> package NAMESPACE ;

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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BatchResource {
 }

 public boolean isFile ( ) {
 - return ResourceUtils . isFile ( r ) ;
 + return Qualifiers . isFile ( r ) ;
 }

 public boolean isDir ( ) {
 - return ResourceUtils . isDirectory ( r ) ;
 + return Qualifiers . isDirectory ( r ) ;
 }

 public BatchResource setInputPath ( InputPath inputPath ) {


<nb>
 package NAMESPACE ;

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

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


<nb> public class AutoBuffer {
 return this ;
 }

 - AutoBuffer putAA1 ( byte [ ] [ ] ary ) {
 + public AutoBuffer putAA1 ( byte [ ] [ ] ary ) {
 _arys ++ ;
 long xy = putZA ( ary ) ;
 if ( xy == - NUMBER0 ) return this ;


<nb> class WindowStateAnimator {

 if ( w . mAttachedHidden || ! w . isReadyForDisplay ( ) ) {
 hide ( ) ;
 + SINGLE
 + if ( mService . mWallpaperTarget == mWin && mService . mLowerWallpaperTarget == null ) {
 + mAnimator . hideWallpapersLocked ( ) ;
 + mAnimator . mPendingLayoutChanges |= WindowManagerPolicy . FINISH_LAYOUT_REDO_WALLPAPER ;
 + }
 SINGLE
 SINGLE
 SINGLE

Hide wallpaper when wallpaper target gets hidden


<nb> public interface Bootstrap {
 private long startTime = Module . getStartTime ( ) ;

 public Configuration ( final ServerEnvironment serverEnvironment ) {
 - assert serverEnvironment == null : STRING0 ;
 + assert serverEnvironment != null : STRING0 ;
 this . serverEnvironment = serverEnvironment ;
 this . extensionRegistry = new ExtensionRegistry ( serverEnvironment . getLaunchType ( ) . getProcessType ( ) ) ;
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - abstract class SocialAutoConfigurerAdapter extends SocialConfigurerAdapter {
 + public abstract class SocialAutoConfigurerAdapter extends SocialConfigurerAdapter {

 @ override
 public void addConnectionFactories ( ConnectionFactoryConfigurer configurer ,
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - abstract class SocialProperties {
 + public abstract class SocialProperties {

 COMMENT
 COMMENT

Make SocialAutoConfigurerAdapter Properties public


<nb> public class FlickrPhotoGrid extends Fragment implements PhotoViewer {
 . asDrawable ( )
 . transition ( withCrossFade ( R . anim . fade_in , NUMBER0 ) )
 . apply ( diskCacheStrategyOf ( DiskCacheStrategy . DATA )
 + . centerCrop ( getActivity ( ) )
 . override ( Api . SQUARE_THUMB_SIZE , Api . SQUARE_THUMB_SIZE ) ) ;

 preloadRequest =

Fix thumbnail aspect ratio in FlickrPhotoGrid


<nb> public class TestFile extends File {

 public void assertHasChangedSince ( Snapshot snapshot ) {
 Snapshot now = snapshot ( ) ;
 + System . out . println ( STRING0 + snapshot ) ;
 + System . out . println ( STRING1 + now ) ;
 assertTrue ( now . modTime != snapshot . modTime || ! Arrays . equals ( now . hash , snapshot . hash ) ) ;
 }

 <nb> public class TestFile extends File {
 this . modTime = modTime ;
 this . hash = hash ;
 }
 +
 + public String toString ( ) {
 + return STRING2 +
 + STRING3 + modTime +
 + STRING4 + Arrays . toString ( hash ) +
 + STRING5 ;
 + }
 }
 }

Print out snapshot values for better analyzing why CacheProjectIntegrationTest caches compiled build script fails intermittently


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

 COMMENT
 COMMENT
 <nb> public class WebSocketProtocolHandshakeHandler implements HttpHandler {
 future . addNotifier ( new IoFuture . Notifier < WebSocketChannel , Object > ( ) {
 @ override
 public void notify ( final IoFuture < ? extends WebSocketChannel > ioFuture , final Object attachment ) {
 - try {
 - callback . onConnect ( exchange , ioFuture . get ( ) ) ;
 - } catch ( IOException e ) {
 - throw new RuntimeException ( e ) ;
 - } finally {
 - completionHandler . handleComplete ( ) ;
 - }
 + try {
 + callback . onConnect ( exchange , ioFuture . get ( ) ) ;
 + } catch ( IOException e ) {
 + SINGLE
 + IoUtils . safeClose ( exchange . getConnection ( ) ) ;
 + } finally {
 + completionHandler . handleComplete ( ) ;
 + }
 }
 } , null ) ;

Close the channel if an exception accours during the handshake


<nb> public class NavigationBarView extends LinearLayout {
 if ( DEBUG ) {
 Slog . d ( TAG , STRING0 + mDisplay . getRotation ( ) ) ;
 }
 +
 + setNavigationIconHints ( mNavigationIconHints , true ) ;
 }

 @ override

DO NOT MERGE Fix back button state issue


<nb> public class MultiPartInputStreamParser
 line = ( line == null ? line : line . trim ( ) ) ;
 }

 - if ( line == null )
 + if ( line == null || line . length ( ) == NUMBER0 )
 throw new IOException ( STRING0 ) ;

 SINGLE

MultiPartInputStream test initial part boundary incorrectly allows empty string


<nb> class JiveClassLoader extends URLClassLoader {
 COMMENT
 COMMENT
 JiveClassLoader ( ClassLoader parent , File libDir ) throws MalformedURLException {
 - super ( new URL [ ] { libDir . toURL ( ) } , parent ) ;
 + super ( new URL [ ] { libDir . toURI ( ) . toURL ( ) } , parent ) ;

 File [ ] jars = libDir . listFiles ( new FilenameFilter ( ) {
 public boolean accept ( File dir , String name ) {
 <nb> class JiveClassLoader extends URLClassLoader {

 for ( int i = NUMBER0 ; i < jars . length ; i ++ ) {
 if ( jars [ i ] . isFile ( ) ) {
 - addURL ( jars [ i ] . toURL ( ) ) ;
 + addURL ( jars [ i ] . toURI ( ) . toURL ( ) ) ;
 }
 }
 }


<nb> public class ProvisioningProfileStore implements RuleKeyAppendable {
 for ( Entry < String , NSObject > entry : entitlementsDict . entrySet ( ) ) {
 if ( ! ( entry . getKey ( ) . equals ( STRING0 ) ||
 entry . getKey ( ) . equals ( STRING1 ) ||
 + entry . getKey ( ) . equals ( STRING2 ) ||
 entry . getValue ( ) . equals ( profileEntitlements . get ( entry . getKey ( ) ) ) ) ) {
 match = false ;
 LOG . debug ( STRING3 + profile . getUUID ( ) +

Ignore associated domains when comparing entitlements


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

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

 <nb> import static NAMESPACE ;
 public class MemberAssigningJobProcessInformationImpl
 extends JobProcessInformationImpl {

 - private final ConcurrentMap < String , Integer > memberIds = new ConcurrentHashMap < String , Integer > ( ) ;
 -
 public MemberAssigningJobProcessInformationImpl ( int partitionCount , JobSupervisor supervisor ) {
 super ( partitionCount , supervisor ) ;
 }
 <nb> public class MemberAssigningJobProcessInformationImpl

 SINGLE
 if ( stateChange ( address , i , WAITING , this , configuration ) != null ) {
 - memberIds . put ( memberUuid , i ) ;
 return i ;
 }
 }

Removed unused map thanks for the tip to jerrinot


<nb> public class FarmWarDeployer extends ClusterListener
 StringManager . getManager ( Constants . Package ) ;

 COMMENT
 - protected boolean started = false ; SINGLE
 + protected boolean started = false ;

 protected final HashMap < String , FileMessageFactory > fileFactories =
 new HashMap < > ( ) ;


<nb> public class CandyJar {
 public int getCandies ( PokemonFamilyId family ) {
 if ( candies . containsKey ( family ) ) {
 return this . candies . get ( family ) ;
 - }
 - else {
 + } else {
 return NUMBER0 ;
 }
 -
 }
 }
 <nb> public class Pokemon {
 COMMENT
 COMMENT
 COMMENT
 - public double getIVRatio ( ) {
 + public double getIvRatio ( ) {
 return ( this . getIndividualAttack ( ) + this . getIndividualDefense ( ) + this . getIndividualStamina ( ) ) / FLOAT0 ;
 }


<nb> class InProcessGradleExecuter extends AbstractGradleExecuter {
 } else if ( failure instanceof LocationAwareException ) {
 causes . addAll ( ( ( LocationAwareException ) failure ) . getReportableCauses ( ) ) ;
 } else {
 - causes . add ( failure . getCause ( ) ) ;
 + causes . add ( failure ) ;
 }
 }

Add the failure exception itself not its cause when running in process tests


<nb> public class HtmlParsing {
 advance ( ) ;
 while ( true ) {
 final IElementType tt = token ( ) ;
 - if ( tt == XmlTokenType . XML_COMMENT_CHARACTERS || tt == XmlTokenType . XML_CHAR_ENTITY_REF || tt == XmlTokenType . XML_CONDITIONAL_COMMENT_START
 + if ( tt == XmlTokenType . XML_COMMENT_CHARACTERS || tt == XmlTokenType . XML_CONDITIONAL_COMMENT_START
 || tt == XmlTokenType . XML_CONDITIONAL_COMMENT_START_END || tt == XmlTokenType . XML_CONDITIONAL_COMMENT_END_START
 || tt == XmlTokenType . XML_CONDITIONAL_COMMENT_END ) {
 advance ( ) ;
 continue ;
 }
 + if ( tt == XmlTokenType . XML_ENTITY_REF_TOKEN || tt == XmlTokenType . XML_CHAR_ENTITY_REF ) {
 + parseReference ( ) ;
 + continue ;
 + }
 if ( tt == XmlTokenType . XML_BAD_CHARACTER ) {
 final PsiBuilder . Marker error = mark ( ) ;
 advance ( ) ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 @ configuration
 - @ conditionalonexpression ( STRING0 )
 + @ conditionalonexpression ( STRING1 )
 public class ManagementConfiguration implements ApplicationContextAware , DisposableBean ,
 ApplicationListener < ContextRefreshedEvent > {

 <nb> public class ManagementConfiguration implements ApplicationContextAware , Disposa
 @ autowired
 private ManagementServerProperties management = new ManagementServerProperties ( ) ;

 - @ conditionalonexpression ( STRING2 )
 + @ conditionalonexpression ( STRING3 )
 @ configuration
 @ import ( { VarzConfiguration . class , HealthzConfiguration . class ,
 ShutdownConfiguration . class , TraceConfiguration . class } )
 <nb> import NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> import NAMESPACE ;
 @ configurationproperties ( name = STRING4 , ignoreUnknownFields = false )
 public class ManagementServerProperties {

 + @ value ( STRING5 )
 private int port = NUMBER0 ;

 private InetAddress address ;

Make management port default to server port


<nb> public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer {
 public void onInit ( int status ) {
 if ( status != TextToSpeech . SUCCESS ) {
 internalClear ( ) ;
 - } else {
 + } else if ( mTts != null ) {
 switch ( mTts . isLanguageAvailable ( new Locale ( language ) ) )
 {
 case TextToSpeech . LANG_MISSING_DATA :

Fixed null pointer that can probably occur as result of race condition


<nb> public abstract class Camera {
 COMMENT
 COMMENT
 public void rotate ( float angle , float axisX , float axisY , float axisZ ) {
 - direction . rotate ( axisX , axisY , axisZ , angle ) ;
 - up . rotate ( axisX , axisY , axisZ , angle ) ;
 + direction . rotate ( angle , axisX , axisY , axisZ ) ;
 + up . rotate ( angle , axisX , axisY , axisZ ) ;
 }

 COMMENT


<nb> public class BlockLaserTable extends BlockBCTile_Neptune implements ILaserTarget
 }

 @ override
 - public void getSubBlocks ( Item item , CreativeTabs tab , List < ItemStack > list ) {
 - for ( EnumLaserTableType type : EnumLaserTableType . values ( ) ) {
 - list . add ( new ItemStack ( item , NUMBER0 , type . ordinal ( ) ) ) ;
 - }
 - }
 -
 - @ override
 public AxisAlignedBB getBoundingBox ( IBlockState state , IBlockAccess source , BlockPos pos ) {
 return AABB ;
 }


<nb> public class PhoneWindowManager implements WindowManagerPolicy {
 }

 private boolean wakeUp ( long wakeTime , boolean wakeInTheaterMode ) {
 - if ( ! wakeInTheaterMode && isTheaterModeEnabled ( ) ) {
 + final boolean theaterModeEnabled = isTheaterModeEnabled ( ) ;
 + if ( ! wakeInTheaterMode && theaterModeEnabled ) {
 return false ;
 }

 + if ( theaterModeEnabled ) {
 + Settings . Global . putInt ( mContext . getContentResolver ( ) ,
 + Settings . Global . THEATER_MODE_ON , NUMBER0 ) ;
 + }
 +
 mPowerManager . wakeUp ( wakeTime ) ;
 return true ;
 }

Turn off theater mode upon power button press


<nb> public class ConnectivityService extends IConnectivityManager . Stub {
 private void handleReleaseNetworkRequest ( NetworkRequest request , int callingUid ) {
 NetworkRequestInfo nri = mNetworkRequests . get ( request ) ;
 if ( nri != null ) {
 - if ( nri . mUid != callingUid ) {
 + if ( Process . SYSTEM_UID != callingUid && nri . mUid != callingUid ) {
 if ( DBG ) log ( STRING0 + request ) ;
 return ;
 }

Allow NetworkRequest release from the system process


<nb> public final class NativeSQLSerializer extends SQLSerializer {
 @ override
 protected void appendAsColumnName ( Path < ? > path , boolean precededByDot ) {
 if ( path . getAnnotatedElement ( ) . isAnnotationPresent ( Column . class ) ) {
 - SQLTemplates templates = getTemplates ( ) ;
 Column column = path . getAnnotatedElement ( ) . getAnnotation ( Column . class ) ;
 if ( ! column . name ( ) . isEmpty ( ) ) {
 - append ( templates . quoteIdentifier ( column . name ( ) , precededByDot ) ) ;
 + append ( getTemplates ( ) . quoteIdentifier ( column . name ( ) , precededByDot ) ) ;
 } else {
 super . appendAsColumnName ( path , precededByDot ) ;
 }


<nb> public class IdeStubIndexService extends StubIndexService {
 sink . occurrence ( JetFilePartClassIndex . INSTANCE . getKey ( ) , partFqName . asString ( ) ) ;
 }

 - SINGLE
 - JetFile jetFile = stub . getPsi ( ) ;
 - if ( jetFile != null ) {
 - JvmFileClassInfo fileClassInfo = JvmFileClassUtil . getFileClassInfoNoResolve ( jetFile ) ;
 - sink . occurrence ( JetFileFacadeFqNameIndex . INSTANCE . getKey ( ) , fileClassInfo . getFacadeClassFqName ( ) . asString ( ) ) ;
 - sink . occurrence ( JetFilePartClassIndex . INSTANCE . getKey ( ) , fileClassInfo . getFileClassFqName ( ) . asString ( ) ) ;
 - }
 -
 List < StringRef > partNames = ( ( KotlinFileStubForIde ) stub ) . getFacadePartSimpleNames ( ) ;
 if ( partNames != null ) {
 for ( StringRef partName : partNames ) {

Fix indexing files without top level members by mistake


<nb> public class BoundedOverheadBlockStore implements BlockStore {
 }

 public synchronized StoredBlock getChainHead ( ) throws BlockStoreException {
 - return get ( chainHead ) ;
 + StoredBlock head = get ( chainHead ) ;
 + if ( head == null )
 + throw new BlockStoreException ( STRING0 ) ;
 + return head ;
 }

 public synchronized void setChainHead ( StoredBlock chainHead ) throws BlockStoreException {

Throw BlockStoreException if the chain head doesn t seem to be in the store


<nb> public class BinopInstruction extends BranchingInstruction {
 }
 else if ( STRING0 . equals ( myOperationSign ) ) {
 memState . push ( getNonNullStringValue ( factory ) ) ;
 + setTrueReachable ( ) ; SINGLE
 + setFalseReachable ( ) ;
 }
 else {
 if ( PsiKeyword . INSTANCEOF . equals ( myOperationSign ) &&


<nb> public class WikipediaIndexHandler extends DefaultHandler {
 final SAXParserFactory factory = SAXParserFactory . newInstance ( ) ;
 final SAXParser saxParser = factory . newSAXParser ( ) ;
 WikipediaIndexHandler handler = new WikipediaIndexHandler ( FSDirectory . open ( new File (
 - SINGLE
 - STRING0 ) ) , Language . ENGLISH , NUMBER0 , NUMBER1 ) ;
 + STRING1 ) ) , Language . ENGLISH , NUMBER2 , NUMBER1 ) ;
 try {
 saxParser . parse ( new FileInputStream ( new File (
 - STRING2 ) ) , handler ) ;
 + STRING3 ) ) , handler ) ;
 } catch ( RuntimeException e ) {
 }
 handler . close ( ) ;


<nb> public class NetworkSender

 if ( to == null )
 {
 - msgLog . error ( STRING0 + channelClosed + STRING1 ) ;
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 return ;
 }

Removes log statement in NetoworkSender that spammed the log


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SequenceLockStressIT
 }
 for ( int [ ] record : data )
 {
 - for ( int i = NUMBER0 ; i < record . length ; i ++ )
 + for ( int value : record )
 {
 - sumB += record [ i ] ;
 - record [ i ] = NUMBER0 ;
 + sumB += value ;
 }
 + Arrays . fill ( record , NUMBER0 ) ;
 }
 lock . unlockExclusive ( ) ;
 if ( sumA != sumB )
 {
 - throw new AssertionError ( STRING0 ) ;
 + throw new AssertionError ( STRING1 + sumA + STRING2 + sumB ) ;
 }
 }
 }


<nb> public class Settings {
 }
 final List < ResolveInfo > resolveInfos = tempResolveInfos ;

 + if ( null == resolveInfos ) {
 + return ;
 + }
 for ( ResolveInfo resolveInfo : resolveInfos ) {
 if ( resolveInfo . activityInfo != null ) {
 String packageName = resolveInfo . activityInfo . packageName ;

Fixed a crash on resolveInfos null object


<nb> public class GridViewExampleActivity extends Activity implements AdapterView . OnI
 public void onItemClick ( AdapterView < ? > parent , View view , int position , long id ) {
 City modifiedCity = ( City ) mAdapter . getItem ( position ) ;

 - SINGLE
 + SINGLE
 City city = realm . where ( City . class ) . equalTo ( STRING0 , modifiedCity . getName ( ) ) . findFirst ( ) ;

 SINGLE


<nb> public interface Player extends HumanEntity , CommandSender , OfflinePlayer , Plugi
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Updated javadocs of Player setPlayerListName to reflect that the char limit is based on length without colours


<nb> public class ChatWindow

 SINGLE
 SINGLE
 - System . out . println ( STRING0 ) ;
 ServiceReference [ ] serRefs = null ;

 String osgiFilter = STRING1

Remove System out println used for debugging


<nb> public class FMLRelaunchLog
 }
 if ( lastIdx >= NUMBER0 )
 {
 + String rem = currentMessage . substring ( lastIdx + NUMBER1 ) ;
 currentMessage . setLength ( NUMBER0 ) ;
 + currentMessage . append ( rem ) ;
 }
 }
 }

Fix sysout with trailing messages after a newline


<nb> public class IconUtil {

 public static Icon getIcon ( final VirtualFile file , final int flags , final Project project ) {
 return IconDeferrer . getInstance ( ) . defer ( file . getIcon ( ) , new FileIconKey ( file , project , flags ) , new Function < FileIconKey , Icon > ( ) {
 - public Icon fun ( final FileIconKey fileIconKey ) {
 - Icon providersIcon = getProvidersIcon ( file , flags , project ) ;
 + public Icon fun ( final FileIconKey key ) {
 + VirtualFile file = key . getFile ( ) ;
 + int flags = key . getFlags ( ) ;
 + Project project = key . getProject ( ) ;

 + Icon providersIcon = getProvidersIcon ( file , flags , project ) ;
 Icon icon = providersIcon == null ? file . getIcon ( ) : providersIcon ;
 for ( FileIconPatcher patcher : getPatchers ( ) ) {
 icon = patcher . patchIcon ( icon , file , flags , project ) ;


<nb> public class MainActivity extends AppCompatActivity implements NavDrawerActivity
 if ( prefs . getBoolean ( PREF_IS_FIRST_LAUNCH , true ) ) {
 new Handler ( ) . postDelayed ( ( ) - > drawerLayout . openDrawer ( navDrawer ) , NUMBER0 ) ;

 + SINGLE
 + UserPreferences . setUpdateInterval ( NUMBER1 ) ;
 +
 SharedPreferences . Editor edit = prefs . edit ( ) ;
 edit . putBoolean ( PREF_IS_FIRST_LAUNCH , false ) ;
 edit . commit ( ) ;

Set default update interval for fresh installations


<nb> public class VariantJSONQuery extends VariantAbstractRPCQuery {

 SINGLE
 SINGLE
 - addParameter ( fieldName , beginToken , sr . getPosition ( ) , false , true ) ;
 + addParameter ( fieldName , beginToken , sr . getPosition ( ) - NUMBER0 , false , true ) ;

 SINGLE
 } else if ( Character . isDigit ( chr ) || chr == STRING0 ) {
 <nb> public class VariantJSONQuery extends VariantAbstractRPCQuery {
 sr . unreadLastCharacter ( ) ;
 SINGLE
 SINGLE
 - addParameter ( fieldName , beginToken , sr . getPosition ( ) , true , false ) ;
 + addParameter ( fieldName , beginToken , sr . getPosition ( ) - NUMBER0 , true , false ) ;

 } else if ( chr == BEGIN_OBJECT ) {
 sr . unreadLastCharacter ( ) ;


<nb> public class BuildCraftEnergy extends BuildCraftMod {
 double fuelFuelMultiplier = BuildCraftCore . mainConfiguration . get ( Configuration . CATEGORY_GENERAL , STRING0 , FLOAT0 , STRING1 ) . getDouble ( FLOAT0 ) ;
 BuildCraftCore . mainConfiguration . save ( ) ;

 - class BiomeIdException extends RuntimeException {
 -
 - public BiomeIdException ( String biome , int id ) {
 - super ( String . format ( STRING2 , id , biome ) ) ;
 - }
 - }
 -
 if ( oilDesertBiomeId > NUMBER0 ) {
 if ( BiomeGenBase . getBiomeGenArray ( ) [ oilDesertBiomeId ] != null ) {
 oilDesertBiomeId = findUnusedBiomeID ( STRING3 ) ;


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class LibrarySourcesConfigWithCaching extends LibrarySourcesConfig {
 protected JetFile getJetFileByVirtualFile ( VirtualFile file , String moduleName , PsiManager psiManager ) {
 JetFile jetFile ;
 try {
 - String text = new String ( file . contentsToByteArray ( false ) , file . getCharset ( ) ) ;
 + String text = StringUtil . convertLineSeparators ( new String ( file . contentsToByteArray ( false ) , file . getCharset ( ) ) ) ;
 jetFile = new JetPsiFactory ( getProject ( ) ) . createPhysicalFile ( file . getName ( ) , text ) ;
 }
 catch ( IOException e ) {

Fix line separators in JsLibrarySourceConfig


<nb> import NAMESPACE ;
 public class AnonymousCanBeMethodReferenceInspection extends BaseJavaBatchLocalInspectionTool {
 public static final Logger LOG = Logger . getInstance ( STRING0 + AnonymousCanBeMethodReferenceInspection . class . getName ( ) ) ;

 - public boolean reportNotAnnotatedInterfaces = false ;
 + public boolean reportNotAnnotatedInterfaces = true ;

 @ nls
 @ notnull


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public class HttpSessionEventPublisher implements HttpSessionListener {
 SINGLE

 private static final Log log = LogFactory . getLog ( HttpSessionEventPublisher . class ) ;

 - SINGLE
 -
 SINGLE

 ApplicationContext getContext ( ServletContext servletContext ) {


<nb> public class SgSyncAdapter extends AbstractThreadedSyncAdapter {
 }

 private static LastActivities getTraktLastActivity ( Context context ) {
 + Timber . d ( STRING0 ) ;
 +
 TraktV2 trakt = ServiceUtils . getTraktV2WithAuth ( context ) ;
 if ( trakt == null ) {
 return null ;

Add trakt sync activity fetch log message


<nb> public final class ByteBufferedChannelManager implements TransferEnvelopeDispatc
 }

 if ( LOG . isDebugEnabled ( ) ) {
 - System . out . println ( STRING0 + totalNumberOfBuffers ) ;
 - System . out . println ( STRING1 + totalNumberOfChannels ) ;
 + LOG . debug ( STRING0 + totalNumberOfBuffers ) ;
 + LOG . debug ( STRING1 + totalNumberOfChannels ) ;
 }

 if ( this . localBufferPoolOwner . isEmpty ( ) ) {

Changed debugging statement in ByteBufferedChannelManager


<nb> public class YouTrackRepository extends BaseRepositoryImpl {

 @ override
 protected int getFeatures ( ) {
 - return super . getFeatures ( ) | TIME_MANAGEMENT ;
 + return super . getFeatures ( ) | TIME_MANAGEMENT | STATE_UPDATING ;
 }

 public void setCustomStateNames ( Map < TaskState , String > customStateNames ) {

Add missing feature declaration in YouTrack repository


<nb> public final class AutoBuffer {
 }

 public AutoBuffer putJSON8 ( String name , long l ) { return putJSONStr ( name ) . put1 ( STRING0 ) . putJSON8 ( l ) ; }
 - AutoBuffer putJSONEnum ( String name , Enum e ) { return putJSONStr ( name ) . put1 ( STRING0 ) . putJSONEnum ( e ) ; }
 + public AutoBuffer putJSONEnum ( String name , Enum e ) { return putJSONStr ( name ) . put1 ( STRING0 ) . putJSONEnum ( e ) ; }

 public AutoBuffer putJSONA8 ( String name , long ary [ ] ) { return putJSONStr ( name ) . put1 ( STRING0 ) . putJSONA8 ( ary ) ; }
 AutoBuffer putJSONAA8 ( String name , long ary [ ] [ ] ) { return putJSONStr ( name ) . put1 ( STRING0 ) . putJSONAA8 ( ary ) ; }


<nb> public class ClusterMembers
 @ override
 public void failed ( InstanceId server )
 {
 - members . put ( server , getMember ( server ) . failed ( ) ) ;
 + if ( members . containsKey ( server ) )
 + members . put ( server , getMember ( server ) . failed ( ) ) ;
 }

 @ override
 public void alive ( InstanceId server )
 {
 - members . put ( server , getMember ( server ) . alive ( ) ) ;
 + if ( members . containsKey ( server ) )
 + members . put ( server , getMember ( server ) . alive ( ) ) ;
 }
 }
 }


<nb>
 package 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 ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class GrizzlyAsyncHttpProvider implements AsyncHttpProvider {
 nonSecure . addAll ( secure ) ;
 int idx = nonSecure . indexOfType ( SSLFilter . class ) ;
 nonSecure . remove ( idx ) ;
 - ProxyAwareConnectorHandler . Builder chBuilder =
 - ProxyAwareConnectorHandler . builder ( clientTransport ) ;
 final ConnectionPool pool ;
 if ( providerConfig != null ) {
 pool = ( ConnectionPool ) providerConfig . getProperty ( CONNECTION_POOL ) ;


<nb> public class MainFrame
 }
 else
 {
 - JPanel panel = new TransparentPanel ( new BorderLayout ( ) ) ;
 + JPanel panel = new TransparentPanel ( new BorderLayout ( NUMBER0 , NUMBER0 ) ) ;

 panel . setBorder ( BorderFactory . createEmptyBorder ( NUMBER1 , NUMBER0 , NUMBER1 , NUMBER0 ) ) ;

Adds some space between the search field and the photo in the contact list on Windows and Linux


<nb> public final class Settings {
 public static final String REQUIRE_PASSWORD_TO_DECRYPT = STRING0 ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class Settings {
 public static final String ENHANCED_4G_MODE_ENABLED = STRING1 ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String VT_IMS_ENABLED = STRING2 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class StandardHost
 @ override
 public void addChild ( Container child ) {

 + if ( child instanceof Lifecycle ) {
 + ( ( Lifecycle ) child ) . addLifecycleListener (
 + new MemoryLeakTrackingListener ( ) ) ;
 + }
 +
 if ( ! ( child instanceof Context ) )
 throw new IllegalArgumentException
 ( sm . getString ( STRING0 ) ) ;
 super . addChild ( child ) ;

 - if ( child instanceof Lifecycle ) {
 - ( ( Lifecycle ) child ) . addLifecycleListener (
 - new MemoryLeakTrackingListener ( ) ) ;
 - }
 }

Add listener before child is added else listener won t get called on first load


<nb> public class DeepLearning extends Job . ValidatedJob {
 score_validation_samples = cp . score_validation_samples ;
 shuffle_training_data = cp . shuffle_training_data ;
 force_load_balance = cp . force_load_balance ;
 + classification = cp . classification ;
 state = JobState . RUNNING ;
 return ;
 }

Set classification to the same value as the checkpoint


<nb> public class ErrorReporter implements Thread . UncaughtExceptionHandler {
 COMMENT
 COMMENT
 COMMENT
 - private void checkReportsOnApplicationStart ( ) {
 + public void checkReportsOnApplicationStart ( ) {

 SINGLE
 SINGLE

put ErrorReporter checkReportsOnApplicationStart back in the public API


<nb> public class CallParticipantPanel
 {
 if ( ! dialpadDialog . isVisible ( ) )
 {
 + dialpadDialog . setSize (
 + callManager . getMainFrame ( ) . getWidth ( ) - NUMBER0 ,
 + dialpadDialog . getHeight ( ) ) ;
 +
 dialpadDialog . setLocation (
 - callManager . getMainFrame ( ) . getX ( )
 - + ( callManager . getMainFrame ( ) . getWidth ( )
 - - dialpadDialog . getWidth ( ) ) / NUMBER1 ,
 + callManager . getMainFrame ( ) . getX ( ) + NUMBER2 ,
 getLocationOnScreen ( ) . y + getHeight ( ) ) ;

 dialpadDialog . setVisible ( true ) ;


<nb> public class ReleasedVersionDistributions {

 public List < GradleDistribution > getAll ( ) {
 if ( distributions == null ) {
 - distributions = CollectionUtils . collect ( getProperties ( ) . getProperty ( STRING0 ) . split ( STRING1 ) , new Transformer < GradleDistribution , String > ( ) {
 + List < String > versions = CollectionUtils . filter ( getProperties ( ) . getProperty ( STRING0 ) . split ( STRING1 ) , new Spec < String > ( ) {
 + @ override
 + public boolean isSatisfiedBy ( String version ) {
 + return ! version . contains ( STRING2 ) ;
 + }
 + } ) ;
 +
 + distributions = CollectionUtils . collect ( versions , new Transformer < GradleDistribution , String > ( ) {
 public GradleDistribution transform ( String version ) {
 return buildContext . distribution ( version ) ;
 }

Exclude milestone releases from cross version testing


<nb> public class PackageManagerService extends IPackageManager . Stub {
 boolean updatedSettings = false ;
 parseFlags |= PackageManager . INSTALL_REPLACE_EXISTING |
 PackageParser . PARSE_IS_SYSTEM ;
 + if ( ( deletedPackage . applicationInfo . flags & ApplicationInfo . FLAG_PRIVILEGED ) != NUMBER0 ) {
 + parseFlags |= PackageParser . PARSE_IS_PRIVILEGED ;
 + }
 String packageName = deletedPackage . packageName ;
 res . returnCode = PackageManager . INSTALL_FAILED_REPLACE_COULDNT_DELETE ;
 if ( packageName == null ) {

Make sure to propagate privileged status when upgrading an app


<nb> public class GCViewerGui extends JFrame {
 JCheckBoxMenuItem item = menuEntry . getValue ( ) ;
 item . setState ( preferences . getGcLineProperty ( menuEntry . getKey ( ) ) ) ;
 }
 - menuItemShowModelMetricsPanel . setState ( preferences . getBooleanProperty ( GCPreferences . SHOW_MODEL_METRICS_PANEL ) ) ;
 - menuItemAntiAlias . setSelected ( preferences . getBooleanProperty ( GCPreferences . ANTI_ALIAS ) ) ;
 }

 public void internalFrameDeactivated ( final InternalFrameEvent e ) {

fix handling of preferences for data panel and antialias


<nb> public class DRF extends SharedTreeModelBuilder {
 H2OCountedCompleter [ ] computers = new H2OCountedCompleter [ _ncols ] ;
 for ( int var = NUMBER0 ; var < _ncols ; var ++ ) {
 final int variable = var ;
 + SINGLE
 + SINGLE
 + SINGLE
 computers [ var ] = new H2OCountedCompleter ( ) {
 @ override public void compute2 ( ) {
 Frame wf = new Frame ( f ) ; SINGLE

Incorporated Spencer s comment about shuffling oob rows


<nb> public abstract class NanoHTTPD {
 COMMENT
 COMMENT
 public enum Method {
 - GET , PUT , POST , DELETE , HEAD ;
 + GET , PUT , POST , DELETE , HEAD , OPTIONS ;

 static Method lookup ( String method ) {
 for ( Method m : Method . values ( ) ) {


<nb> public class OFetchHelper {
 final Iterable < ? > linked ;
 if ( fieldValue instanceof ODocument )
 linked = new OMVRBTreeRIDSet ( ) . fromDocument ( ( ODocument ) fieldValue ) ;
 - else if ( fieldValue instanceof Collection < ? > || fieldValue instanceof ORidBag ) {
 + else if ( fieldValue instanceof Iterable < ? > || fieldValue instanceof ORidBag ) {
 linked = ( Iterable < OIdentifiable > ) fieldValue ;
 iContext . onBeforeCollection ( iRootRecord , fieldName , iUserObject , ( Iterable ) linked ) ;
 } else if ( fieldValue instanceof Map < ? , ? > ) {

maintain support for fieldValue of type OMultiCollectionIterator via Iterable interface


<nb> public enum ExceptionMessage {
 TEMP_BLOCK_ID_COMMITTED ( STRING0 ) ,
 TEMP_BLOCK_ID_EXISTS ( STRING1 ) ,

 - SINGLE
 + SINGLE
 + JOURNAL_WRITE_AFTER_CLOSE ( STRING2 ) ,
 UNEXPECETD_JOURNAL_ENTRY ( STRING3 ) ,
 + UNKNOWN_ENTRY_TYPE ( STRING4 ) ,
 +
 + SINGLE
 FILEID_MUST_BE_FILE ( STRING5 ) ,
 - JOURNAL_WRITE_AFTER_CLOSE ( STRING2 ) ,
 +
 + SINGLE
 RAW_TABLE_COLUMN_OVERRANGE ( STRING6 ) ,
 RAW_TABLE_ID_DOES_NOT_EXIST ( STRING7 ) ,
 RAW_TABLE_ID_DUPLICATED ( STRING8 ) ,
 RAW_TABLE_METADATA_OVERSIZED ( STRING9 ) ,
 RAW_TABLE_PATH_DOES_NOT_EXIST ( STRING10 ) ,
 - UNKNOWN_ENTRY_TYPE ( STRING4 ) ,

 SINGLE
 LINEAGE_INPUT_FILE_NOT_EXIST ( STRING11 ) ,

Rearrange raw table related messages in ExceptionMessage


<nb> public class IosHttpURLConnection extends HttpURLConnection {
 NSMutableURLRequest * request =
 [ NSMutableURLRequest requestWithURL : [ NSURL URLWithString : [ self - > url_ toExternalForm ] ] ] ;
 request . HTTPShouldHandleCookies = false ;
 - request . HTTPMethod = self - > method_ ;
 request . cachePolicy = self - > useCaches_ ?
 NSURLRequestUseProtocolCachePolicy : NSURLRequestReloadIgnoringLocalCacheData ;
 int readTimeout = [ self getReadTimeout ] ;
 <nb> public class IosHttpURLConnection extends HttpURLConnection {
 request . HTTPBody = [ ( NSDataOutputStream * ) self - > nativeRequestData_ data ] ;
 }
 }
 + request . HTTPMethod = self - > method_ ;

 __block NSError * error ;
 __block NSURLResponse * urlResponse ;

Fixed HTTP method when URLConnection setDoOutput true is called should be POST


<nb> final public class ConfigImplUtil {
 return a . equals ( b ) ;
 }

 - public static boolean isC0Control ( final char ch ) {
 - return isC0Control ( ( int ) ch ) ;
 - }
 -
 - public static boolean isC0Control ( int codepoint ) {
 + static boolean isC0Control ( int codepoint ) {
 return ( codepoint >= NUMBER0 && codepoint <= NUMBER1 ) ;
 }

Removed char version of isC0Control and made non public


<nb> public class PlotsToolbar extends Toolbar implements HasCustomizableToolbar
 exportMenu . addItem ( commands_ . savePlotAsPdf ( ) . createMenuItem ( false ) ) ;
 exportMenu . addSeparator ( ) ;
 exportMenu . addItem ( commands_ . copyPlotToClipboard ( ) . createMenuItem ( false ) ) ;
 + exportMenu . addSeparator ( ) ;
 + exportMenu . addItem ( commands_ . publishPlotToRPubs ( ) . createMenuItem ( false ) ) ;
 ToolbarButton exportButton = new ToolbarButton (
 STRING0 , StandardIcons . INSTANCE . export_menu ( ) ,
 exportMenu ) ;
 <nb> public class ViewerPane extends WorkbenchPane implements ViewerPresenter . Display
 exportMenu . addItem ( commands_ . viewerCopyToClipboard ( ) . createMenuItem ( false ) ) ;
 exportMenu . addSeparator ( ) ;
 exportMenu . addItem ( commands_ . viewerSaveAsWebPage ( ) . createMenuItem ( false ) ) ;
 + exportMenu . addSeparator ( ) ;
 + exportMenu . addItem ( commands_ . viewerPublishToRPubs ( ) . createMenuItem ( false ) ) ;

 exportButton_ = new ToolbarButton (
 STRING0 , StandardIcons . INSTANCE . export_menu ( ) ,


<nb> public class RmiRouteTest extends TestCase {
 }

 SINGLE
 - LocateRegistry . createRegistry ( NUMBER0 ) ;
 + LocateRegistry . createRegistry ( NUMBER1 ) ;

 SINGLE
 JndiContext context = new JndiContext ( ) ;
 <nb> public class RmiRouteTest extends TestCase {
 SINGLE
 camelContext . addRoutes ( new RouteBuilder ( ) {
 public void configure ( ) {
 - from ( STRING0 ) . to ( STRING1 ) ;
 + from ( STRING0 ) . to ( STRING2 ) ;

 SINGLE
 SINGLE
 - RmiEndpoint bye = ( RmiEndpoint ) endpoint ( STRING1 ) ;
 + RmiEndpoint bye = ( RmiEndpoint ) endpoint ( STRING2 ) ;
 bye . setRemoteInterfaces ( ISay . class ) ;
 from ( bye ) . to ( STRING3 ) ;
 }

Changing test port that conflicts on some systems


<nb> public class TestUtils {
 return ( int ) Math . round ( ( Double ) value ) ;
 } else if ( value instanceof Object [ ] ) {
 return injectDateInArray ( ( Object [ ] ) value ) ;
 - } else if ( value instanceof StringMap ) {
 - return injectDateInHashMap ( stringMapToHashMap ( ( StringMap ) value ) ) ;
 }
 return value ;
 }


<nb> public class Axis {
 private String name ;
 private int color = DEFAULT_AXIS_COLOR ;
 private int textSize = DEFAULT_AXIS_TEXT_SIZE_SP ;
 + private boolean isAutoGenerated = false ;
 private AxisValueFormatter formatter = new DefaultAxisValueFormatter ( ) ;

 public Axis ( ) {
 <nb> public class Axis {
 return this ;
 }

 + public boolean isAutoGenerated ( ) {
 + return isAutoGenerated ;
 + }
 +
 + public void setAutoGenerated ( boolean isAutoGenerated ) {
 + this . isAutoGenerated = isAutoGenerated ;
 + }
 +
 public AxisValueFormatter getFormatter ( ) {
 return formatter ;
 }


<nb> public final class TestTsdbQuery {
 HashMap < String , String > tags = new HashMap < String , String > ( NUMBER0 ) ;
 tags . put ( STRING0 , STRING1 ) ;
 long timestamp = NUMBER1 ;
 - tsdb . addPoint ( STRING2 , timestamp += NUMBER2 , ( long ) ( Long . MAX_VALUE - NUMBER3 ) , tags )
 + tsdb . addPoint ( STRING2 , timestamp += NUMBER2 , Long . MAX_VALUE - NUMBER3 , tags )
 . joinUninterruptibly ( ) ;
 - tsdb . addPoint ( STRING2 , timestamp += NUMBER2 , ( long ) ( Long . MAX_VALUE - NUMBER4 ) , tags )
 + tsdb . addPoint ( STRING2 , timestamp += NUMBER2 , Long . MAX_VALUE - NUMBER4 , tags )
 . joinUninterruptibly ( ) ;
 tsdb . addPoint ( STRING2 , timestamp += NUMBER2 , NUMBER5 , tags ) . joinUninterruptibly ( ) ;


<nb> public class MessagesModule extends AbsModule implements BusSubscriber {
 private final HashMap < String , ListEngine > customConversationEngines = new HashMap < > ( ) ;
 private final HashMap < Peer , ActorRef > conversationActors = new HashMap < > ( ) ;
 private final HashMap < Peer , ActorRef > conversationHistoryActors = new HashMap < > ( ) ;
 - private final HashMap < Peer , ConversationVM > conversationVMS = new HashMap < > ( ) ;

 private final SyncKeyValue cursorStorage ;


<nb> public class PeopleContainer extends LinearLayout {
 if ( peopleAsJSON ) {
 JSONObject person = PeopleContainer . createUserJson ( textView ) ;
 if ( person != null ) {
 + if ( person . optBoolean ( STRING0 ) ) SINGLE
 + continue ;
 String email = person . optString ( STRING1 ) ;
 Long id = person . optLong ( STRING2 , - NUMBER0 ) ;
 if ( ! TextUtils . isEmpty ( email ) && ! addedEmails . contains ( email ) ) {

Don t include list owner when parsing members on tag save


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class AbstractPollingMessageListenerContainer extends AbstractMe
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DefaultMessageListenerContainer extends AbstractPollingMessageListe
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class JmsAccessor implements InitializingBean {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> class Connection
 {
 final int nextIndex = nextPartitionIndex ( activeIndex ) ;
 logReader = logReaders [ nextIndex ] ;
 - if ( logReader . status ( ) != CLEAN )
 - {
 - return NUMBER0 ;
 - }
 -
 - ++ activeTermId ;
 - this . activeIndex = nextIndex ;
 logReader . seek ( NUMBER0 ) ;
 + ++ activeTermId ;
 + activeIndex = nextIndex ;
 }

 final int messagesRead = logReader . read ( dataHandler , fragmentCountLimit ) ;

Java Remove unnecessary check for term status on roll of connection


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;

 COMMENT
 COMMENT


<nb> public class EditorHyperlinkSupport {
 getHyperlinkInfo ( rangeHighlighterEx ) != null ;
 }
 } , processor ) ) ;
 - SINGLE
 list . addAll ( processor . getResults ( ) ) ;
 return list ;
 }
 <nb> public class EditorHyperlinkSupport {
 public static OccurenceNavigator . OccurenceInfo getNextOccurrence ( final Editor editor ,
 final int delta ,
 final Consumer < RangeHighlighter > action ) {
 - SINGLE
 final List < RangeHighlighter > ranges = getHyperlinks ( NUMBER0 , editor . getDocument ( ) . getTextLength ( ) , editor ) ;
 if ( ranges . isEmpty ( ) ) {
 return null ;


<nb>
 package NAMESPACE ;

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

 COMMENT
 COMMENT
 <nb> public class MongoLayerModule extends AbstractModule {

 bind ( Executor . class )
 . annotatedWith ( MongoDBLayer . class )
 - . toInstance ( ForkJoinPool . commonPool ( ) ) ;
 + . toInstance ( Executors . newCachedThreadPool ( ) ) ;

 }
 }

Changed MongoDBLayer pool to cached thread pool


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

 - interface HighlightingSession {
 + public interface HighlightingSession {
 @ notnull
 Project getProject ( ) ;
 +
 @ notnull
 PsiFile getPsiFile ( ) ;
 +
 Editor getEditor ( ) ;
 +
 @ notnull
 Document getDocument ( ) ;
 +
 @ notnull
 ProgressIndicator getProgressIndicator ( ) ;

 EditorColorsScheme getColorsScheme ( ) ;
 - }
 + }


<nb> package NAMESPACE ;

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

 + import NAMESPACE ;
 +
 public class JetPluginUtil {

 @ notnull
 public static String getPluginVersion ( ) {
 IdeaPluginDescriptor plugin = PluginManager . getPlugin ( PluginId . getId ( STRING0 ) ) ;
 - assert plugin != null : STRING1 ;
 + assert plugin != null : STRING2 + Arrays . toString ( PluginManagerCore . getPlugins ( ) ) ;
 return plugin . getVersion ( ) ;
 }

Clarified assertion which should be fixed on IDEA side


<nb> public class GrVariableImpl extends GroovyPsiElementImpl implements GrVariable {
 return null ;
 }

 - public void accept ( @ notnull PsiElementVisitor visitor ) {
 + COMMENT
 visitor . visitVariable ( this ) ;
 - }
 + COMMENT

 public String getName ( ) {
 return getNameIdentifierGroovy ( ) . getText ( ) ;


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

 COMMENT
 <nb> public class Utils {

 public static byte [ ] copyOf ( byte [ ] in , int length ) {
 byte [ ] out = new byte [ length ] ;
 - System . arraycopy ( in , NUMBER0 , out , NUMBER0 , length ) ;
 + System . arraycopy ( in , NUMBER0 , out , NUMBER0 , Math . min ( length , in . length ) ) ;
 + Arrays . copyOf ( in , NUMBER1 ) ;
 return out ;
 }
 }


<nb> public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput
 } catch ( Exception e ) {
 }
 }
 - out . println ( STRING0 ) ;
 - out . printf ( STRING1 , totalElements ) ;
 - out . println ( STRING2 ) ;
 + out . println ( STRING3 ) ;
 + out . printf ( STRING4 , totalElements ) ;
 + out . println ( STRING5 ) ;

 } else
 out . println ( STRING6 ) ;


<nb> public class AntPathMatcher implements PathMatcher {
 this . doubleWildcards ++ ;
 pos += NUMBER0 ;
 }
 - else if ( ! this . pattern . substring ( pos - NUMBER1 ) . equals ( STRING0 ) ) {
 + else if ( pos > NUMBER2 && ! this . pattern . substring ( pos - NUMBER1 ) . equals ( STRING0 ) ) {
 this . singleWildcards ++ ;
 pos ++ ;
 }
 <nb> public class AntPathMatcherTests {

 SINGLE
 assertEquals ( NUMBER1 , comparator . compare ( STRING1 , STRING2 ) ) ;
 +
 + SINGLE
 + assertEquals ( - NUMBER1 , comparator . compare ( STRING3 , STRING4 ) ) ;
 + assertEquals ( NUMBER1 , comparator . compare ( STRING4 , STRING3 ) ) ;
 }

 @ test

Fix exception in AntPathMatcher for leading


<nb> public class HeliosSoloIT {
 . image ( ALPINE )
 . port ( STRING0 , NUMBER0 , ports . localPort ( STRING0 ) )
 . command ( STRING1 , STRING2 ,
 - STRING3 +
 + STRING4 +
 STRING5 +
 STRING6 +
 STRING7 +


<nb> public class TaskListFragment extends ListFragment implements OnScrollListener ,
 if ( tagData != null ) {
 HashSet < String > tagsTransitory = new HashSet < String > ( ) ;
 tagsTransitory . add ( tagData . getValue ( TagData . NAME ) ) ;
 - empty . putTransitory ( STRING0 , tagsTransitory ) ;
 + empty . putTransitory ( STRING0 , tagsTransitory ) ; SINGLE
 }
 repeatControl . readFromTask ( empty ) ;
 gcalControl . readFromTask ( empty ) ;


<nb> public class CacheOffHeap {
 . transactionDisable ( )
 . make ( )
 . hashMapCreate ( STRING0 )
 - . expireStoreSize ( cacheSizeInGB ) SINGLE
 + . expireStoreSize ( cacheSizeInGB )
 . make ( ) ;

 SINGLE


<nb> public final class Crouton {
 imageParams . addRule ( RelativeLayout . CENTER_VERTICAL , RelativeLayout . TRUE ) ;
 return image ;
 }
 +
 + @ override
 + public String toString ( ) {
 + return STRING0 +
 + STRING1 + text +
 + STRING2 + style +
 + STRING3 + customView +
 + STRING4 + activity +
 + STRING5 + viewGroup +
 + STRING6 + croutonView +
 + STRING7 + inAnimation +
 + STRING8 + outAnimation +
 + STRING9 + lifecycleCallback +
 + STRING10 ;
 + }
 }


<nb> public abstract class LzoProtobufBlockPigStorage < M extends Message > extends LzoB
 protected ProtobufBlockWriter writer_ = null ;
 private int numRecordsPerBlock_ = NUMBER0 ;

 - public LzoProtobufBlockPigStorage ( int numRecordsPerBlock ) {
 - numRecordsPerBlock_ = numRecordsPerBlock ;
 - }
 -
 @ override
 public void bindTo ( OutputStream os ) throws IOException {
 super . bindTo ( os ) ;