<nb> public class IndexingMemoryBufferController extends AbstractComponent {

 this . indexingBuffer = indexingBuffer ;
 this . minShardIndexBufferSize = componentSettings . getAsBytesSize ( STRING0 , new ByteSizeValue ( NUMBER0 , ByteSizeUnit . MB ) ) ;
 + SINGLE
 this . maxShardIndexBufferSize = componentSettings . getAsBytesSize ( STRING1 , new ByteSizeValue ( NUMBER1 , ByteSizeUnit . MB ) ) ;

 logger . debug ( STRING2 , this . indexingBuffer , this . minShardIndexBufferSize , this . maxShardIndexBufferSize ) ;


<nb> public class AttributeRangeBuilder implements CategoryBuilder {
 }

 public String getName ( ) {
 - return NbBundle . getMessage ( AttributeRangeBuilder . class , STRING0 ) ;
 + return column . getTitle ( ) + STRING1 + NbBundle . getMessage ( AttributeRangeBuilder . class , STRING0 ) ;
 }

 private void refreshRange ( ) {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 @ runasclient
 public class SimpleWebTestCase {

 - private static final Logger log = Logger . getLogger ( SimpleWebTestCase . class ) ;
 -
 @ deployment ( name = STRING0 )
 public static Archive < ? > deployment ( ) {
 WebArchive war = ShrinkWrap . create ( WebArchive . class , STRING1 ) ;


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

 + import NAMESPACE ;
 +
 public class AzureTestUtils {
 COMMENT
 COMMENT
 <nb> public class AzureTestUtils {
 SINGLE
 try {
 if ( Strings . hasText ( System . getProperty ( STRING0 ) ) ) {
 - settings . loadFromPath ( PathUtils . get ( ( System . getProperty ( STRING0 ) ) ) ) ;
 + try {
 + settings . loadFromPath ( PathUtils . get ( ( System . getProperty ( STRING0 ) ) ) ) ;
 + } catch ( IOException e ) {
 + throw new IllegalArgumentException ( STRING1 , e ) ;
 + }
 } else {
 throw new IllegalStateException ( STRING2 +
 STRING3 ) ;

Fix uncaught checked exception in AzureTestUtils


<nb> public class UpdateCopyrightAction extends AnAction {
 }
 }
 else if ( files != null && FileUtil . areFiles ( files ) ) {
 + boolean copyrightEnabled = false ;
 for ( VirtualFile vfile : files ) {
 - final PsiFile file = PsiManager . getInstance ( project ) . findFile ( vfile ) ;
 - if ( file == null || ! FileTypeUtil . getInstance ( ) . isSupportedFile ( file . getVirtualFile ( ) ) ) {
 - presentation . setEnabled ( false ) ;
 - return ;
 + if ( FileTypeUtil . getInstance ( ) . isSupportedFile ( vfile ) ) {
 + copyrightEnabled = true ;
 + break ;
 }
 }
 + if ( ! copyrightEnabled ) {
 + presentation . setEnabled ( false ) ;
 + return ;
 + }

 }
 else if ( ( files == null || files . length != NUMBER0 ) &&

enable update copyright action if at least one file should have copyright notice


<nb> public class MathJax
 {
 ChunkOutputWidget cow = lwToPlwMap_ . get ( widget ) ;
 if ( cow == null )
 + {
 + onExpansionCompleted . execute ( false ) ;
 return ;
 + }

 cow . setExpansionState ( ChunkOutputWidget . EXPANDED , onExpansionCompleted ) ;
 }

ensure callback executed in unexpected case


<nb> class WiredAccessoryObserver extends UEventObserver {
 SINGLE
 SINGLE
 SINGLE
 - for ( int i = NUMBER0 ; i <= MAX_AUDIO_PORTS ; i ++ ) {
 + for ( int i = NUMBER0 ; i < MAX_AUDIO_PORTS ; i ++ ) {
 startObserving ( uEventInfo [ i ] [ NUMBER0 ] ) ;
 }
 init ( ) ; SINGLE
 <nb> class WiredAccessoryObserver extends UEventObserver {
 int newState = mHeadsetState ;
 mPrevHeadsetState = mHeadsetState ;

 - for ( int i = NUMBER0 ; i <= MAX_AUDIO_PORTS ; i ++ ) {
 + for ( int i = NUMBER0 ; i < MAX_AUDIO_PORTS ; i ++ ) {
 try {
 FileReader file = new FileReader ( uEventInfo [ i ] [ NUMBER1 ] ) ;
 int len = file . read ( buffer , NUMBER0 , NUMBER2 ) ;


<nb> public interface TagTechnology {
 COMMENT
 COMMENT
 COMMENT
 - public static final int MIFRARE_CLASSIC_NDEF = NUMBER0 ;
 + public static final int MIFARE_CLASSIC_NDEF = NUMBER0 ;

 COMMENT
 COMMENT
 COMMENT
 - public static final int MIFRARE_ULTRALIGHT = NUMBER1 ;
 + public static final int MIFARE_ULTRALIGHT = NUMBER1 ;

 COMMENT
 COMMENT
 COMMENT
 - public static final int MIFRARE_DESFIRE = NUMBER2 ;
 + public static final int MIFARE_DESFIRE = NUMBER2 ;

 COMMENT
 COMMENT


<nb> public class Stats
 private final AtomicBuffer labelsBuffer ;
 private final AtomicBuffer valuesBuffer ;
 private final StatsOutput output ;
 - private final CountersManager countersManager ;

 private static final int NUM_BASE_STATS = NUMBER0 ;

 <nb> public class Stats

 labelsBuffer = CncFileDescriptor . createCounterLabelsBuffer ( cncByteBuffer , metaDataBuffer ) ;
 valuesBuffer = CncFileDescriptor . createCounterValuesBuffer ( cncByteBuffer , metaDataBuffer ) ;
 -
 - countersManager = new CountersManager ( labelsBuffer , valuesBuffer ) ;
 }

 public void collectStats ( ) throws Exception


<nb> public abstract class LagartoParserEngine {

 if ( enableConditionalComments == false ) {
 if ( isDownlevelHidden ) {
 - visitor . comment ( input . subSequence ( start , end ) ) ;
 + SINGLE
 + visitor . comment ( input . subSequence ( start + NUMBER0 , end - NUMBER1 ) ) ;
 } else {
 error ( STRING0 ) ;
 }

Made the parseCCEnd method behave the same as the parseCommentOrConditionalComment method when the enableConditionalComments flag is disabled


<nb> public class DrawerBuilder {
 handleShowOnFirstLaunch ( ) ;

 SINGLE
 - if ( ! mAppended ) {
 + if ( ! mAppended && mGenerateMiniDrawer ) {
 SINGLE
 mMiniDrawer = new MiniDrawer ( ) . withDrawer ( result ) . withAccountHeader ( mAccountHeader ) ;
 }

only generate the MiniDrawer if the generation is enabled


<nb> public class Radio extends ClusterEntity {
 . expect ( Http . Status . ACCEPTED )
 . execute ( ) ;

 - SINGLE
 - return new InputLaunchResponse ( ) ;
 } catch ( APIException e ) {
 log . error ( STRING0 + title , e ) ;
 } catch ( IOException e ) {

Removing dirty hack to fix failing input launch on radio


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

 - import NAMESPACE ;
 -
 public class SessionInfo extends JavaScriptObject
 {
 protected SessionInfo ( )
 <nb> package 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 LineTableView extends CellTable < ChunkOrLine > implements Display
 super . setSelected ( object , selected ) ;
 }

 + @ suppresswarnings ( STRING0 )
 public boolean isEnabled ( )
 {
 return enabled_ ;
 <nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public final class CommonTestUtils {

 SINGLE
 SINGLE
 - private static File sAlluxioTestDirectory = createTestingDirectory ( ) ;
 + public static final File ALLUXIO_TEST_DIRECTORY = createTestingDirectory ( ) ;

 COMMENT
 COMMENT
 <nb> public final class CommonTestUtils {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - public static synchronized File getAlluxioTestDirectory ( ) {
 - return sAlluxioTestDirectory ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class CommonTestUtils {
 COMMENT
 COMMENT
 public static File createTemporaryDirectory ( String prefix ) {
 - File file = new File ( getAlluxioTestDirectory ( ) , prefix + STRING0 + UUID . randomUUID ( ) ) ;
 + File file = new File ( ALLUXIO_TEST_DIRECTORY , prefix + STRING0 + UUID . randomUUID ( ) ) ;
 try {
 file . createNewFile ( ) ;
 } catch ( IOException e ) {

Use a constant for alluxio test directory


<nb> public class DataHeaderFlyweight extends HeaderFlyweight
 COMMENT
 public static final short END_FLAG = NUMBER0 ;

 - COMMENT
 - public static final short RETRANSMIT_FLAG = NUMBER1 ;
 -
 COMMENT
 public static final short BEGIN_AND_END_FLAGS = BEGIN_FLAG | END_FLAG ;


<nb> public class SelectionModelImpl implements SelectionModel , PrioritizedDocumentLi
 int start = myEditor . logicalPositionToOffset ( lineStart ) ;
 int end = myEditor . logicalPositionToOffset ( nextLineStart ) ;

 - myEditor . getCaretModel ( ) . moveToOffset ( start ) ;
 + SINGLE
 myEditor . getScrollingModel ( ) . scrollToCaret ( ScrollType . RELATIVE ) ;
 myEditor . getSelectionModel ( ) . removeSelection ( ) ;
 myEditor . getSelectionModel ( ) . setSelection ( start , end ) ;


<nb> public class CoreLabel extends ArrayCoreMap implements Label , HasWord , HasTag , H

 public static final String MAP_FORMAT = STRING0 ;

 + public static final String WORD_FORMAT = STRING1 ;
 +
 @ override
 public String toString ( ) {
 return toString ( DEFAULT_FORMAT ) ;
 <nb> public class CoreLabel extends ArrayCoreMap implements Label , HasWord , HasTag , H
 if ( ! map2 . isEmpty ( ) ) {
 buf . append ( map2 ) ;
 }
 - } else if ( format . equals ( STRING1 ) ) {
 + } else if ( format . equals ( WORD_FORMAT ) ) {
 + SINGLE
 buf . append ( word ( ) ) ;
 } else if ( format . equals ( STRING2 ) ) {
 buf . append ( this . get ( CoreAnnotations . TextAnnotation . class ) ) ;


<nb> public class OpenStreetMapGraphBuilderImpl implements GraphBuilder {
 street . setWheelchairAccessible ( false ) ;
 }

 - Coordinate [ ] coordinates = { from . getCoordinate ( ) , to . getCoordinate ( ) } ;
 - Float sequence = new PackedCoordinateSequence . Float ( coordinates , NUMBER0 ) ;
 - LineString lineString = _geometryFactory . createLineString ( sequence ) ;
 -
 - street . setGeometry ( lineString ) ;
 -
 return street ;
 }


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 +
 public class SctpTestUtil {
 SINGLE
 public final static String LOOP_BACK = STRING0 ;
 <nb> public class SctpTestUtil {
 public static boolean isSctpSupported ( ) {
 String os = System . getProperty ( STRING1 ) . toLowerCase ( Locale . UK ) ;
 if ( os . equals ( STRING2 ) || os . equals ( STRING3 ) || os . equals ( STRING4 ) || os . equals ( STRING5 ) ) {
 + try {
 + SctpChannel . open ( ) ;
 + } catch ( IOException e ) {
 + SINGLE
 + } catch ( UnsupportedOperationException e ) {
 + SINGLE
 + SINGLE
 + System . out . print ( STRING6 + e . getMessage ( ) ) ;
 + return false ;
 +
 + }
 +
 return true ;
 }
 return false ;

Also handle the case of missing shared lib for sctp


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ channelpipelinecoverage ( STRING0 )
 public class Base64Encoder extends OneToOneEncoder {

 private final boolean breakLines ;


<nb> public class ETC1Util {
 int encodedImageSize = ETC1 . getEncodedDataSize ( width , height ) ;
 ByteBuffer compressedImage = ByteBuffer . allocateDirect ( encodedImageSize ) .
 order ( ByteOrder . nativeOrder ( ) ) ;
 - ETC1 . encodeImage ( input , width , height , NUMBER0 , stride , compressedImage ) ;
 + ETC1 . encodeImage ( input , width , height , pixelSize , stride , compressedImage ) ;
 return new ETC1Texture ( width , height , compressedImage ) ;
 }

Properly passing an unused variable through


<nb> public abstract class BaseQueryTestCase < QB extends AbstractQueryBuilder < QB > > ext
 COMMENT
 protected final void assertLuceneQuery ( QB queryBuilder , Query query , QueryParseContext context ) {
 if ( queryBuilder . queryName ( ) != null ) {
 - Query namedQuery = context . copyNamedFilters ( ) . get ( queryBuilder . queryName ( ) ) ;
 + Query namedQuery = context . copyNamedQueries ( ) . get ( queryBuilder . queryName ( ) ) ;
 assertThat ( namedQuery , equalTo ( query ) ) ;
 }
 }


<nb> public class DaemonClientInputForwarder implements Stoppable {

 private final Lock lifecycleLock = new ReentrantLock ( ) ;
 private boolean started ;
 - private boolean stopped ;

 private final InputStream inputStream ;
 private final BuildClientMetaData clientMetadata ;
 <nb> public class DaemonClientInputForwarder implements Stoppable {
 public void stop ( ) {
 lifecycleLock . lock ( ) ;
 try {
 - if ( ! stopped ) {
 + if ( started ) {
 LOGGER . debug ( STRING0 ) ;
 - forwarder . stop ( ) ;
 - stopped = true ;
 + try {
 + forwarder . stop ( ) ;
 + } finally {
 + forwarder = null ;
 + started = false ;
 + }
 }
 } finally {
 lifecycleLock . unlock ( ) ;

Fixed NPE when DeamonClientInputForwarder is stopped before it is started eg on failure to write command to daemon


<nb> public class ColoredProcessHandler extends OSProcessHandler {
 }

 private Key getCurrentOutputAttributes ( final Key outputType ) {
 + if ( outputType == ProcessOutputTypes . STDERR ) {
 + return outputType ;
 + }
 return myCurrentColor != null ? myCurrentColor : outputType ;
 }


<nb> public class DeodexUtil {

 public MethodIdItem lookupVirtualMethod ( ClassPath . ClassDef classDef , int methodIndex ) {
 String method = classDef . getVirtualMethod ( methodIndex ) ;
 + if ( method == null ) {
 + return null ;
 + }

 Matcher m = shortMethodPattern . matcher ( method ) ;
 if ( ! m . matches ( ) ) {

Fix a NPE when looking up a non existant method


<nb> public final class TvContract {
 public static final String COLUMN_LOCKED = STRING0 ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class TvContract {
 public static final String COLUMN_APP_LINK_ICON_URI = STRING1 ;

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class TvContract {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class TvContract {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add more description to the poster art and thumbnail columns


<nb> class DockObserver extends UEventObserver {
 SINGLE
 SINGLE
 if ( mStatusBarManager != null ) {
 - mStatusBarManager . disable ( enabled
 + long ident = Binder . clearCallingIdentity ( ) ;
 + mStatusBarManager . disable ( enabled
 ? StatusBarManager . DISABLE_NOTIFICATION_TICKER
 : StatusBarManager . DISABLE_NONE ) ;
 + Binder . restoreCallingIdentity ( ident ) ;
 }
 }

Fix permission exception thrown on exit car mode


<nb> public class MediaConductor extends Agent
 heartbeatTimer = newTimeout ( HEARTBEAT_TIMEOUT_MS , TimeUnit . MILLISECONDS , this : : onHeartbeatCheck ) ;

 conductorByteBuffers = ctx . conductorByteBuffers ( ) ;
 - final ByteBuffer toMediaDriver = conductorByteBuffers . toMediaDriver ( ) ;
 - final ByteBuffer toClient = conductorByteBuffers . toClient ( ) ;
 - toMediaDriverBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( toMediaDriver ) ) ;
 - toClientBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( toClient ) ) ;
 + toMediaDriverBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( conductorByteBuffers . toMediaDriver ( ) ) ) ;
 + toClientBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( conductorByteBuffers . toClient ( ) ) ) ;
 }

 public ControlFrameHandler frameHandler ( final UdpDestination destination )


<nb> class AppWidgetService extends IAppWidgetService . Stub
 IRemoteViewsAdapterConnection . Stub . asInterface ( mConnectionCb ) ;
 try {
 cb . onServiceConnected ( service ) ;
 - } catch ( RemoteException e ) {
 + } catch ( Exception e ) {
 e . printStackTrace ( ) ;
 }
 }
 <nb> class AppWidgetService extends IAppWidgetService . Stub
 IRemoteViewsAdapterConnection . Stub . asInterface ( mConnectionCb ) ;
 try {
 cb . onServiceDisconnected ( ) ;
 - } catch ( RemoteException e ) {
 + } catch ( Exception e ) {
 e . printStackTrace ( ) ;
 }
 }
 <nb> class AppWidgetService extends IAppWidgetService . Stub
 IRemoteViewsFactory . Stub . asInterface ( service ) ;
 try {
 cb . onDestroy ( intent ) ;
 - } catch ( RemoteException e ) {
 + } catch ( Exception e ) {
 e . printStackTrace ( ) ;
 }
 mContext . unbindService ( this ) ;

Catching all Exceptions when calling through to RemoteViewsFactory


<nb> public class ModelMetricsBinomial extends ModelMetricsSupervised {

 SINGLE
 final double eps = FLOAT0 ;
 - if ( iact == NUMBER0 ) {
 - _logloss -= Math . log ( NUMBER1 - Math . min ( NUMBER1 - eps , ds [ NUMBER0 ] ) ) ;
 - } else {
 - _logloss -= Math . log ( Math . max ( eps , ds [ NUMBER1 ] ) ) ;
 - }
 + _logloss -= Math . log ( Math . max ( eps , Math . min ( NUMBER1 - eps , ds [ iact + NUMBER1 ] ) ) ) ;

 _count ++ ;
 return ds ; SINGLE

Fix logloss computation for binomial models


<nb> import NAMESPACE ;
 import NAMESPACE ;

 @ runwith ( JUnit4TestRunner . class )
 - @ ignore ( STRING0 )
 public class CamelQuickFixTest extends AbstractFeatureTest {

 public static final String COMPONENT = STRING1 ;


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

 - @ suppresswarnings ( STRING0 )
 public class XWifiManager extends XHook {
 private Methods mMethod ;


<nb> public class NeoStoreXaDataSource extends XaDataSource

 public void close ( )
 {
 - neoStore . flushAll ( ) ;
 + if ( ! readOnly )
 + {
 + neoStore . flushAll ( ) ;
 + }
 xaContainer . close ( ) ;
 if ( logApplied )
 {
 <nb> public class XaLogicalLog
 private void fixCleanKill ( String fileName ) throws IOException
 {
 File file = new File ( fileName ) ;
 - if ( ! keepLogs && ! file . delete ( ) )
 + if ( ! keepLogs )
 {
 - throw new IllegalStateException (
 - STRING0 +
 - fileName ) ;
 + if ( ! file . delete ( ) )
 + {
 + throw new IllegalStateException (
 + STRING0 +
 + fileName ) ;
 + }
 }
 else
 {

Fixed problem with flushAll call when in read only mode


<nb> public class FileUtilsTest {
 File storageDir = new File ( mTestFolder . getRoot ( ) , STRING0 ) ;
 File blockFile = new File ( storageDir , STRING1 ) ;

 - SINGLE
 + SINGLE
 FileUtils . createBlockPath ( blockFile . getAbsolutePath ( ) ) ;
 Assert . assertTrue ( FileUtils . exists ( storageDir . getAbsolutePath ( ) ) ) ;
 Assert . assertEquals (


<nb> import NAMESPACE ;

 import NAMESPACE ;

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

 public class TestWebappClassLoaderExecutorMemoryLeak extends TomcatBaseTest {

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

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

 public class TestWebappClassLoaderThreadLocalMemoryLeak extends TomcatBaseTest {

 <nb> public class TestWebappClassLoaderThreadLocalMemoryLeak extends TomcatBaseTest {
 }

 static class ThreadScopedHolder {
 - private final static ThreadLocal < List < MyCounter > > threadLocal =
 + private static final ThreadLocal < List < MyCounter > > threadLocal =
 new ThreadLocal < List < MyCounter > > ( ) ;

 public static void saveInHolder ( List < MyCounter > o ) {

Fix checkstyle warnings I missed earlier


<nb> public class GoogleContactsQuery
 @ override
 protected void run ( )
 {
 - GoogleContactsServiceImpl service = ( GoogleContactsServiceImpl )
 + GoogleContactsServiceImpl service =
 GoogleContactsActivator . getGoogleContactsService ( ) ;
 gQuery = new GoogleQuery ( query ) ;

 <nb> public class JmfDeviceDetector
 SINGLE
 boolean fmjVideoAvailable = isFMJVideoAvailable ( ) ;

 + COMMENT
 + COMMENT
 try
 {
 if ( fmjVideoAvailable )
 <nb> public class JmfDeviceDetector
 exc ) ;
 fmjVideoAvailable = false ;
 }
 + COMMENT

 if ( OSUtils . IS_MAC ) SINGLE
 {


<nb> final class Tracer {
 static void clearCurrentThreadTrace ( ) { }

 long stop ( ) {
 - return System . currentTimeMillis ( ) + start ;
 + return System . currentTimeMillis ( ) - start ;
 }
 }


<nb> public class FolderMessageList extends ExpandableListActivity

 private void onToggleSortAscending ( )
 {
 - sortAscending = ! sortAscending ;
 - MessagingController . getInstance ( getApplication ( ) ) . setSortAscending ( sortType , sortAscending ) ;
 + MessagingController . getInstance ( getApplication ( ) ) . setSortAscending ( sortType , ! sortAscending ) ;
 +
 + sortAscending = MessagingController . getInstance ( getApplication ( ) ) . isSortAscending ( sortType ) ;
 + sortDateAscending = MessagingController . getInstance ( getApplication ( ) ) . isSortAscending ( SORT_TYPE . SORT_DATE ) ;
 +
 reSort ( ) ;
 }

Fix reverse sorting when in sort by date mode


<nb> public class MsOutlookAddrBookContactSourceService

 static
 {
 - System . loadLibrary ( STRING0 ) ;
 + try
 + {
 + System . loadLibrary ( STRING0 ) ;
 + }
 + catch ( Throwable ex )
 + {
 + logger . error ( STRING1 , ex ) ;
 + throw new RuntimeException ( ex ) ;
 + }

 COMMENT
 COMMENT

Log exception if the Outlook Native Lib cannot be loaded


<nb> public class Drawer {
 return this . mDrawer . mDrawerLayout ;
 }

 - public FrameLayout getSlider ( ) {
 - if ( mSliderView == null ) {
 - mSliderView = ( FrameLayout ) this . mDrawer . mDrawerLayout . findViewById ( R . id . slider_layout ) ;
 + public void openDrawer ( ) {
 + if ( mDrawer . mDrawerLayout != null && mDrawer . mSliderLayout != null ) {
 + mDrawer . mDrawerLayout . openDrawer ( mDrawer . mSliderLayout ) ;
 }
 - return mSliderView ;
 + }
 +
 + public void closeDrawer ( ) {
 + if ( mDrawer . mDrawerLayout != null ) {
 + mDrawer . mDrawerLayout . closeDrawers ( ) ;
 + }
 + }
 +
 public LinearLayout getSlider ( ) {
 return mDrawer . mSliderLayout ;
 }

implement functions to open and close a drawer


<nb> public class IconTextView extends TextView {
 }

 private void init ( ) {
 - Iconify . addIcons ( this ) ;
 + if ( ! isInEditMode ( ) )
 + Iconify . addIcons ( this ) ;
 + else
 + this . setText ( STRING0 ) ;
 }

 @ override


<nb> public enum PropertyKey {
 SINGLE
 SINGLE
 UNDERFS_ADDRESS ( Name . UNDERFS_ADDRESS , STRING0 ) ,
 - UNDERFS_GCS_OWNER_ID_TO_USERNAME_MAPPING ( Name . UNDERFS_GCS_OWNER_ID_TO_USERNAME_MAPPING , null ) ,
 + UNDERFS_GCS_OWNER_ID_TO_USERNAME_MAPPING ( Name . UNDERFS_GCS_OWNER_ID_TO_USERNAME_MAPPING , STRING1 ) ,
 UNDERFS_GLUSTERFS_IMPL ( Name . UNDERFS_GLUSTERFS_IMPL ,
 STRING2 ) ,
 UNDERFS_GLUSTERFS_MOUNTS ( Name . UNDERFS_GLUSTERFS_MOUNTS , null ) ,
 <nb> public enum PropertyKey {
 UNDERFS_S3_ENDPOINT ( Name . UNDERFS_S3_ENDPOINT , null ) ,
 UNDERFS_S3_ENDPOINT_HTTP_PORT ( Name . UNDERFS_S3_ENDPOINT_HTTP_PORT , null ) ,
 UNDERFS_S3_ENDPOINT_HTTPS_PORT ( Name . UNDERFS_S3_ENDPOINT_HTTPS_PORT , null ) ,
 - UNDERFS_S3_OWNER_ID_TO_USERNAME_MAPPING ( Name . UNDERFS_S3_OWNER_ID_TO_USERNAME_MAPPING , null ) ,
 + UNDERFS_S3_OWNER_ID_TO_USERNAME_MAPPING ( Name . UNDERFS_S3_OWNER_ID_TO_USERNAME_MAPPING , STRING1 ) ,
 UNDERFS_S3_PROXY_HOST ( Name . UNDERFS_S3_PROXY_HOST , null ) ,
 UNDERFS_S3_PROXY_HTTPS_ONLY ( Name . UNDERFS_S3_PROXY_HTTPS_ONLY , true ) ,
 UNDERFS_S3_PROXY_PORT ( Name . UNDERFS_S3_PROXY_PORT , null ) ,

Make the default mapping config to empty


<nb> public class StatusTransformer {
 writer . print ( formatTime ( new Long ( result [ NUMBER0 ] / NUMBER1 ) , true ) ) ;
 writer . print ( STRING0 ) ;
 } else if ( mode == NUMBER2 ) {
 + SINGLE
 }
 }

 <nb> public class StatusTransformer {
 }

 ObjectName queryManager = new ObjectName
 - ( objectName . getDomain ( ) + STRING1 + contextName
 + ( objectName . getDomain ( ) + STRING2 + contextName
 + STRING3 + hostName + STRING4 ) ;
 Set < ObjectName > managersON =
 mBeanServer . queryNames ( queryManager , null ) ;


<nb> public class View implements Drawable . Callback2 , KeyEvent . Callback , Accessibilit
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public void setSystemUiVisibility ( int visibility ) {
 - if ( visibility != mSystemUiVisibility ) {
 - mSystemUiVisibility = visibility ;
 - if ( mParent != null && mAttachInfo != null && ! mAttachInfo . mRecomputeGlobalAttributes ) {
 - mParent . recomputeViewAttributes ( this ) ;
 - }
 + mSystemUiVisibility = visibility ;
 + if ( mParent != null && mAttachInfo != null && ! mAttachInfo . mRecomputeGlobalAttributes ) {
 + mParent . recomputeViewAttributes ( this ) ;
 }
 }

Allow views to setSystemUiVisibility with the same value and have it work


<nb> public class XmlParser implements ContentHandler {
 COMMENT
 COMMENT
 protected Node createNode ( Node parent , Object name , Map attributes ) {
 - return new Node ( parent , name , attributes , new NodeList ( ) ) ;
 + return new Node ( parent , name , attributes ) ;
 }

 COMMENT

Allow subclasses of XmlParser to customize creation of new Nodes


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class DefaultWayPropertySetSource implements WayPropertySetSource {

 COMMENT
 <nb> public class DefaultWayPropertySetSource implements WayPropertySetSource {
 createNames ( props , STRING0 , STRING1 ) ;
 createNames ( props , STRING2 , STRING1 ) ;
 createNames ( props , STRING3 , STRING4 ) ;
 + createNames ( props , STRING5 , STRING6 ) ;
 createNames ( props , STRING7 , STRING8 ) ;
 createNames ( props , STRING9 , STRING10 ) ;
 createNames ( props , STRING11 , STRING12 ) ;

ReBasing Dave s changes Alley Formatting


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class MessageDispatchInterceptor extends ChannelInterceptorBase implements Runnable {
 + public class MessageDispatchInterceptor extends ChannelInterceptorBase {

 private static final Log log = LogFactory . getLog ( MessageDispatchInterceptor . class ) ;
 protected static final StringManager sm =
 <nb> public class MessageDispatchInterceptor extends ChannelInterceptorBase implement
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - @ override
 - public void run ( ) {
 - while ( run ) {
 - LinkObject link = removeFromQueue ( ) ;
 - if ( link == null ) continue ; SINGLE
 - while ( link != null && run ) {
 - link = sendAsyncData ( link ) ;
 - }
 - }
 - }
 -
 -
 protected LinkObject sendAsyncData ( LinkObject link ) {
 ChannelMessage msg = link . data ( ) ;
 Member [ ] destination = link . getDestination ( ) ;


<nb> public class EnumTriangles implements PlanAssembler , PlanAssemblerDescription {
 target . setField ( NUMBER0 , rdfObj ) ;
 target . setField ( NUMBER1 , rdfSubj ) ;
 }
 -
 - System . out . println ( target . getField ( NUMBER0 , PactString . class ) . getValue ( ) + STRING0 + target . getField ( NUMBER1 , PactString . class ) . getValue ( ) ) ;

 return true ;
 }

removed System out print statement from EnumTriangles example job


<nb> public class OSQLFunctionGremlin extends OSQLFunctionAbstract {
 db = ( OGraphDatabase ) currentDb ;
 else {
 db = new OGraphDatabase ( currentDb . getURL ( ) ) ;
 + currentDb . close ( ) ;
 ODatabaseRecordThreadLocal . INSTANCE . set ( db ) ;
 }

Fixed bug found by Adolfo on Gremlin function on remote connections


<nb> package NAMESPACE ;
 public abstract class WorkloadPlugin {
 private volatile VoldemortWrapper db ;

 - public WorkloadPlugin ( ) {
 - }
 -
 - protected VoldemortWrapper getDb ( ) {
 - return db ;
 - }
 -
 - protected void setDb ( VoldemortWrapper db ) {
 + public void setDb ( VoldemortWrapper db ) {
 this . db = db ;
 }


<nb> public class GroovyBlockGenerator implements GroovyElementTypes {
 for ( ASTNode childNode : children ) {
 if ( childNode . getTextRange ( ) . getLength ( ) > NUMBER0 ) {
 final Indent indent = GroovyIndentProcessor . getChildIndent ( myBlock , childNode ) ;
 - if ( myAlignment != null ) {
 - myAlignmentProvider . addPair ( myNode , childNode , false ) ;
 - }
 subBlocks . add ( new GroovyBlock ( childNode , indent , myWrap , mySettings , myGroovySettings , myAlignmentProvider ) ) ;
 }
 }


<nb> public class HttpDestination implements Destination , AutoCloseable , Dumpable
 SINGLE
 SINGLE
 SINGLE
 - newConnection ( new ProxyPromise < Connection > ( promise )
 + newConnection ( new ProxyPromise ( promise )
 {
 @ override
 public void succeeded ( Connection connection )


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

 import NAMESPACE ;
 <nb> public class EpisodeDetailsActivity extends BaseActivity {
 @ override
 public void onBackPressed ( ) {
 super . onBackPressed ( ) ;
 - if ( ! AndroidUtils . isJellyBeanOrHigher ( ) ) {
 - overridePendingTransition ( R . anim . fragment_slide_right_enter ,
 - R . anim . fragment_slide_right_exit ) ;
 - }
 + overridePendingTransition ( R . anim . fragment_slide_right_enter ,
 + R . anim . fragment_slide_right_exit ) ;
 }

 public static class EpisodePagerAdapter extends FragmentStatePagerAdapter {

Use old back animation for episode details


<nb> public class MapControlsLayer extends OsmandMapLayer {
 private static final int SHOW_ZOOM_LEVEL_MSG_ID = OsmAndConstants . UI_HANDLER_MAP_CONTROLS + NUMBER0 ;
 private static final int SHOW_ZOOM_BUTTON_MSG_ID = OsmAndConstants . UI_HANDLER_MAP_CONTROLS + NUMBER1 ;
 private static final int SHOW_ZOOM_LEVEL_DELAY = NUMBER2 ;
 - private static final int SHOW_ZOOM_LEVEL_BUTTON_DELAY = NUMBER3 ;
 + private static final int SHOW_ZOOM_LEVEL_BUTTON_DELAY = NUMBER4 ;

 private OsmandMapTileView view ;
 <nb> public class MapControlsLayer extends OsmandMapLayer {
 }

 } ) ;
 - msg . what = SHOW_ZOOM_LEVEL_BUTTON_DELAY ;
 + msg . what = SHOW_ZOOM_BUTTON_MSG_ID ;
 showUIHandler . sendMessageDelayed ( msg , SHOW_ZOOM_LEVEL_BUTTON_DELAY ) ;
 }


<nb>
 package NAMESPACE ;

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

 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Job < T extends Keyed > extends Keyed {
 COMMENT
 COMMENT
 COMMENT
 - protected static class Progress extends Iced {
 + public static class Progress extends Iced {
 private final long _work ;
 private long _worked ;
 private boolean _done ;


<nb> package NAMESPACE ;

 import NAMESPACE ;

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

 + import NAMESPACE ;
 import NAMESPACE ;

 public class TripUpdateGraphWriterRunnable implements GraphWriterRunnable {


<nb> public class JBUI {
 return FLOAT0 ;
 }

 - final int size = Fonts . label ( ) . getSize ( ) ;
 + int size = - NUMBER0 ;
 + try {
 + if ( SystemInfo . isWindows ) {
 + size = ( Integer ) Toolkit . getDefaultToolkit ( ) . getDesktopProperty ( STRING0 ) ;
 + }
 + } catch ( Exception e ) { SINGLE
 + }
 + if ( size == - NUMBER0 ) {
 + size = Fonts . label ( ) . getSize ( ) ;
 + }
 if ( size <= NUMBER1 ) return FLOAT0 ;
 if ( size <= NUMBER2 ) return FLOAT1 ;
 if ( size <= NUMBER3 ) return FLOAT2 ;

use desktop property to properly initialize scaling on Windows


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

 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 public class ConfigValidationTest extends BaseCheckTestSupport {
 -
 - static ConfigurationBuilder builder ;
 -
 - @ beforeclass
 - public static void setConfigurationBuilder ( ) throws CheckstyleException , IOException {
 - builder = new ConfigurationBuilder ( new File ( STRING0 ) ) ;
 - }
 -
 @ test
 public void testGoogleChecks ( ) throws IOException , Exception {
 + ConfigurationBuilder builder = new ConfigurationBuilder ( new File ( STRING0 ) ) ;
 final Configuration checkerConfig = builder . config ;
 final Checker c = new Checker ( ) ;
 c . setModuleClassLoader ( Thread . currentThread ( ) . getContextClassLoader ( ) ) ;


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class FlexAdapter extends LexerBase {
 myTokenType = myFlex . advance ( ) ;
 }
 catch ( IOException e ) { COMMENT }
 + catch ( Error e ) {
 + SINGLE
 + final Error error = new Error ( myFlex . getClass ( ) . getName ( ) + STRING0 + e . getMessage ( ) ) ;
 + error . setStackTrace ( e . getStackTrace ( ) ) ;
 + throw error ;
 + }
 }
 }


<nb> public class HttpConnectionTest {
 echoTestServer . stop ( ) ;
 file . delete ( ) ;

 - assertEquals ( STRING0 , sb . toString ( ) ) ;
 + assertEquals ( STRING1 , StringUtil . substring ( sb . toString ( ) , NUMBER0 , - NUMBER1 ) ) ;
 }

 }


<nb> public class Tomcat {
 return sw ;
 }

 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void init ( ) throws LifecycleException {
 + getServer ( ) ;
 + getConnector ( ) ;
 + server . init ( ) ;
 + }
 +

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public void start ( ) throws LifecycleException {
 <nb> public class Tomcat {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public void stop ( ) throws LifecycleException {
 <nb> public class Tomcat {
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void destroy ( ) throws LifecycleException {
 + getServer ( ) ;
 + server . destroy ( ) ;
 + SINGLE
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;

 <nb> import NAMESPACE ;
 public abstract class BaseFilterBuilder implements FilterBuilder {

 @ override
 + public String toString ( ) {
 + try {
 + XContentBuilder builder = XContentFactory . jsonBuilder ( ) ;
 + builder . prettyPrint ( ) ;
 + toXContent ( builder , EMPTY_PARAMS ) ;
 + return builder . string ( ) ;
 + } catch ( Exception e ) {
 + throw new QueryBuilderException ( STRING0 , e ) ;
 + }
 + }
 +
 + @ override
 public XContentBuilder toXContent ( XContentBuilder builder , Params params ) throws IOException {
 builder . startObject ( ) ;
 doXContent ( builder , params ) ;
 <nb> public abstract class BaseFilterBuilder implements FilterBuilder {
 }

 protected abstract void doXContent ( XContentBuilder builder , Params params ) throws IOException ;
 - }
 + }


<nb>
 package NAMESPACE ;

 - public class UnexpectedRequestMatcher implements RequestMatcher {
 + public final class UnexpectedRequestMatcher implements RequestMatcher {
 @ override
 public boolean match ( final Request request ) {
 return true ;

added missing final to unexpected request matcher


<nb> import NAMESPACE ;
 public class FromFtpSetNamesWithMultiDirectoriesTest extends FtpServerTestSupport {

 private String getFtpUrl ( ) {
 - return STRING0 + getPort ( ) + STRING1 ;
 + return STRING0 + getPort ( ) + STRING2 ;
 }

 @ override

speed up a test which fails some time on slow CI servers


<nb> public class CircuitBreakerServiceTests extends ElasticsearchIntegrationTest {

 private String randomRidiculouslySmallLimit ( ) {
 SINGLE
 - return randomFrom ( Arrays . asList ( STRING0 , STRING1 , ( FLOAT0 / JvmInfo . jvmInfo ( ) . getMem ( ) . getHeapMax ( ) . bytes ( ) ) + STRING2 ) ) ;
 + return randomFrom ( Arrays . asList ( STRING0 , STRING1 ) ) ;
 + SINGLE
 }

 @ test

TEST Fix CircuitBreakerServiceTests from failing due to rounding errors


<nb> public class FileObserverService extends Service {
 continue ;

 String path = c . getString ( c . getColumnIndex ( ProviderTableMeta . FILE_STORAGE_PATH ) ) ;
 + if ( path == null || path . length ( ) <= NUMBER0 )
 + continue ;
 OwnCloudFileObserver observer =
 new OwnCloudFileObserver ( path ,
 account ,

Fixed crash in initialization of FileObserverService


<nb> public class WifiEnterpriseConfig implements Parcelable {
 public String toString ( ) {
 StringBuffer sb = new StringBuffer ( ) ;
 for ( String key : mFields . keySet ( ) ) {
 - sb . append ( key ) . append ( STRING0 ) . append ( mFields . get ( key ) ) . append ( STRING1 ) ;
 + SINGLE
 + String value = ( key == PASSWORD_KEY ) ? STRING2 : mFields . get ( key ) ;
 + sb . append ( key ) . append ( STRING0 ) . append ( value ) . append ( STRING1 ) ;
 }
 return sb . toString ( ) ;
 }


<nb> public interface ConfigList extends List < ConfigValue > , ConfigValue {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 @ override
 List < Object > unwrapped ( ) ;

Add return tag to ConfigList unwrapped javadoc


<nb> import NAMESPACE ;

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

 import NAMESPACE ;
 <nb> public class SmackAndroid {
 private BroadcastReceiver mConnectivityChangedReceiver = new BroadcastReceiver ( ) {
 @ override
 public void onReceive ( Context context , Intent intent ) {
 - LOGGER . fine ( STRING0 ) ;
 + LOGGER . fine ( STRING1 ) ;
 ResolverConfig . refresh ( ) ;
 + Lookup . refreshDefault ( ) ;
 }
 } ;

Also call Lookup refreshDefault in SmackAndroid


<nb> public class CapturingProcessHandler extends OSProcessHandler {

 public ProcessOutput runProcess ( ) {
 startNotify ( ) ;
 + afterStart ( ) ;
 +
 if ( waitFor ( ) ) {
 myOutput . setExitCode ( getProcess ( ) . exitValue ( ) ) ;
 }
 <nb> public class CapturingProcessHandler extends OSProcessHandler {
 }
 else {
 startNotify ( ) ;
 + afterStart ( ) ;
 +
 if ( waitFor ( timeoutInMilliseconds ) ) {
 myOutput . setExitCode ( getProcess ( ) . exitValue ( ) ) ;
 }
 <nb> public class CapturingProcessHandler extends OSProcessHandler {
 }
 }

 + protected void afterStart ( ) {
 + }
 +
 @ override
 public Charset getCharset ( ) {
 if ( myCharset != null ) {

hangup at compiler launch is fixed review CR OC


<nb> public class Camera {
 native_setup ( new WeakReference < Camera > ( this ) , cameraId ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + Camera ( ) {
 + }
 +
 protected void finalize ( ) {
 release ( ) ;
 }
 <nb> public class Camera {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static Parameters getEmptyParameters ( ) {
 + Camera camera = new Camera ( ) ;
 + return camera . new Parameters ( ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 public class Size {

Add a method to get empty camera parameters


<nb> public class SocketSslEchoTest extends AbstractSocketTest {
 renegoFuture = clientSslHandler . renegotiate ( ) ;
 logStats ( STRING0 ) ;
 assertThat ( renegoFuture , is ( not ( sameInstance ( clientHandshakeFuture ) ) ) ) ;
 - assertThat ( renegoFuture . isDone ( ) , is ( false ) ) ;
 }
 }

Fix sporadic assertion failure in SocketSslEchoTest


<nb> public class KMeans2RandomTest extends TestUtil {
 String dataset = datasets [ i ] ;
 Key file = NFSFileVec . make ( find_test_file ( dataset ) ) ;
 Frame frame = ParseDataset2 . parse ( Key . make ( ) , new Key [ ] { file } ) ;
 - Key vfile = NFSFileVec . make ( find_test_file ( dataset ) ) ;
 - Frame vframe = ParseDataset2 . parse ( Key . make ( ) , new Key [ ] { vfile } ) ;

 try {
 for ( int clusters : new int [ ] { NUMBER0 , NUMBER1 } ) {
 <nb> public class KMeans2RandomTest extends TestUtil {
 }
 } finally {
 frame . delete ( ) ;
 - vframe . delete ( ) ;
 }
 }
 Log . info ( STRING0 ) ;


<nb> public abstract class SquidDatabase {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add some clarifying docs to prepareStatement


<nb> public final class BluetoothLeScanner {

 private static final String TAG = STRING0 ;
 private static final boolean DBG = true ;
 + private static final boolean VDBG = false ;

 private final IBluetoothManager mBluetoothManager ;
 private final Handler mHandler ;
 <nb> public final class BluetoothLeScanner {
 COMMENT
 @ override
 public void onScanResult ( final ScanResult scanResult ) {
 - if ( DBG ) Log . d ( TAG , STRING1 + scanResult . toString ( ) ) ;
 + if ( VDBG ) Log . d ( TAG , STRING1 + scanResult . toString ( ) ) ;

 SINGLE
 synchronized ( this ) {
 <nb> public final class BluetoothLeScanner {

 @ override
 public void onFoundOrLost ( final boolean onFound , final ScanResult scanResult ) {
 - if ( DBG ) {
 + if ( VDBG ) {
 Log . d ( TAG , STRING2 + onFound +
 STRING3 + scanResult . toString ( ) ) ;
 }

Remove spammy log information for BLE scan


<nb> public abstract class AbstractFramedChannel < C extends AbstractFramedChannel < C , R
 }

 void notifyFrameReadComplete ( AbstractFramedStreamSourceChannel < C , R , S > channel ) {
 - synchronized ( AbstractFramedChannel . this ) {
 - if ( isLastFrameReceived ( ) ) {
 - safeClose ( AbstractFramedChannel . this . channel . getSourceChannel ( ) ) ;
 - }
 - }
 +
 }

 void notifyClosed ( AbstractFramedStreamSourceChannel < C , R , S > channel ) {
 <nb> public class WebSockets {
 if ( callback != null ) {
 callback . complete ( wsChannel , context ) ;
 }
 - if ( type == WebSocketFrameType . CLOSE && wsChannel . isCloseFrameReceived ( ) ) {
 - IoUtils . safeClose ( wsChannel ) ;
 - }
 }

 private static void setupTimeout ( final StreamSinkFrameChannel channel , long timeoutmillis ) {


<nb> public class MainController implements Choreographer . FrameCallback {
 Bubble nextBubble = mBubbles . lastElement ( ) ;
 mBadge . attach ( nextBubble ) ;
 if ( mMode == Mode . ContentView ) {
 - mContentViewRoot . switchContent ( nextBubble . getContentView ( ) ) ;
 + SINGLE
 + mContentViewRoot . hide ( ) ;
 } else {
 nextBubble . setExactPos ( bubble . getXPos ( ) , bubble . getYPos ( ) ) ;
 }
 <nb> public class MainController implements Choreographer . FrameCallback {
 @ override
 public void onCloseClicked ( Bubble sender ) {
 destroyBubble ( sender ) ;
 + if ( mBubbles . size ( ) > NUMBER0 ) {
 + switchState ( mAnimateToModeViewState ) ;
 + }
 }

 @ override

Fix fox incorrect bubble layout when using close button to close bubbles in the middle of the content row


<nb> public interface Chain {
 default Chain onlyIf ( Predicate < ? super Context > test , Class < ? extends Handler > handler ) {
 return all ( Handlers . onlyIf ( test , getRegistry ( ) . get ( handler ) ) ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + default Chain notFound ( ) {
 + return all ( Handlers . notFound ( ) ) ;
 + }
 +
 }


<nb> public class WebView extends AbsoluteLayout
 public void onNewPicture ( WebView view , Picture picture ) ;
 }

 - public static class HitTestResult {
 + SINGLE
 + public COMMENT class HitTestResult {
 COMMENT
 COMMENT
 COMMENT


<nb> public class PackageManagerService extends IPackageManager . Stub {
 ? ( UPDATE_PERMISSIONS_REPLACE_PKG | UPDATE_PERMISSIONS_REPLACE_ALL )
 : NUMBER0 ) ) ;

 + SINGLE
 + SINGLE
 + if ( ! mRestoredSettings && ! onlyCore ) {
 + mSettings . readDefaultPreferredAppsLPw ( this , NUMBER0 ) ;
 + }
 +
 SINGLE
 mSettings . writeLPr ( ) ;

 <nb> final class Settings {
 mReadMessages . append ( STRING0 ) ;
 PackageManagerService . reportSettingsProblem ( Log . INFO ,
 STRING1 ) ;
 - if ( ! onlyCore ) {
 - readDefaultPreferredAppsLPw ( service , NUMBER0 ) ;
 - }
 mInternalSdkPlatform = mExternalSdkPlatform = sdkVersion ;
 return false ;
 }

Fix bug in initializing preferred activities


<nb> public class TestClientCredentialsProvider {
 }
 SINGLE
 String header = responseHeaders . getFirst ( STRING0 ) ;
 - assertTrue ( STRING1 + header , header . contains ( STRING2 ) ) ;
 + assertTrue ( STRING1 + header , header . contains ( STRING3 ) ) ;
 assertEquals ( HttpStatus . UNAUTHORIZED , responseStatus ) ;
 }

 <nb> public class TestClientCredentialsProvider {
 }
 SINGLE
 String header = responseHeaders . getFirst ( STRING0 ) ;
 - assertTrue ( STRING1 + header , header . contains ( STRING2 ) ) ;
 + assertTrue ( STRING1 + header , header . contains ( STRING3 ) ) ;
 assertEquals ( HttpStatus . UNAUTHORIZED , responseStatus ) ;
 }


<nb> final class PaintersHelper implements Painter . Listener {
 Graphics2D gg = scaled . createGraphics ( ) ;
 gg . setRenderingHint ( RenderingHints . KEY_INTERPOLATION ,
 RenderingHints . VALUE_INTERPOLATION_BILINEAR ) ;
 + gg . setComposite ( AlphaComposite . Src ) ;
 gg . drawImage ( image , NUMBER0 , NUMBER0 , sw , sh , null ) ;
 gg . dispose ( ) ;
 }
 <nb> final class PaintersHelper implements Painter . Listener {
 if ( scaled == null ) {
 scaled = createImage ( g , w , h ) ;
 }
 - Graphics gg = scaled . getGraphics ( ) ;
 + Graphics2D gg = scaled . createGraphics ( ) ;
 + gg . setComposite ( AlphaComposite . Src ) ;
 gg . drawImage ( image , NUMBER0 , NUMBER0 , null ) ;
 gg . dispose ( ) ;
 }

preserve original image transparency IJ logo in Darcula


<nb> public class NotificationStackScrollLayout extends ViewGroup
 COMMENT
 COMMENT
 private boolean generateRemoveAnimation ( View child ) {
 + if ( mAddedHeadsUpChildren . contains ( child ) ) {
 + removeChildFromHeadsUpChangeAnimations ( child ) ;
 + mAddedHeadsUpChildren . remove ( child ) ;
 + return false ;
 + }
 if ( mIsExpanded && mAnimationsEnabled && ! isChildInInvisibleGroup ( child ) ) {
 - if ( ! mChildrenToAddAnimated . contains ( child ) && ! mAddedHeadsUpChildren . contains ( child ) ) {
 + if ( ! mChildrenToAddAnimated . contains ( child ) ) {
 SINGLE
 mChildrenToRemoveAnimated . add ( child ) ;
 mNeedsAnimation = true ;
 <nb> public class NotificationStackScrollLayout extends ViewGroup
 } else {
 mChildrenToAddAnimated . remove ( child ) ;
 mFromMoreCardAdditions . remove ( child ) ;
 - boolean remove = mAddedHeadsUpChildren . remove ( child ) ;
 - if ( remove ) {
 - removeChildFromHeadsUpChangeAnimations ( child ) ;
 - }
 return false ;
 }
 }


<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 static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public class IndicesStoreIntegrationTests extends ElasticsearchIntegrationTest {
 shardIds [ i ] = shardRouting . getId ( ) ;
 i ++ ;
 }
 + SINGLE
 + SINGLE
 + client ( ) . admin ( ) . cluster ( ) . prepareUpdateSettings ( ) . setTransientSettings ( settingsBuilder ( ) . put ( EnableAllocationDecider . CLUSTER_ROUTING_REBALANCE_ENABLE , EnableAllocationDecider . Rebalance . NONE ) ) . get ( ) ;
 internalCluster ( ) . getInstance ( ClusterService . class , node_2 ) . submitStateUpdateTask ( STRING0 , Priority . IMMEDIATE , new ClusterStateUpdateTask ( ) {
 @ override
 public ClusterState execute ( ClusterState currentState ) throws Exception {


<nb> public class EventBus

 public void register ( Object target )
 {
 + if ( listeners . containsKey ( target ) )
 + {
 + return ;
 + }
 +
 Set < ? extends Class < ? > > supers = TypeToken . of ( target . getClass ( ) ) . getTypes ( ) . rawTypes ( ) ;
 for ( Method method : target . getClass ( ) . getMethods ( ) )
 {

Ignore registration of a object that is already registered


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public final class InodeFileTests {
 Assert . assertFalse ( inode1 . equals ( inode3 ) ) ;
 }

 + @ test
 + public void getIdTest ( ) {
 + InodeFile inode1 = createInodeFile ( NUMBER0 ) ;
 + Assert . assertEquals ( createBlockId ( NUMBER0 ) , inode1 . getId ( ) ) ;
 + }
 +
 + private long createBlockId ( long containerId ) {
 + return BlockId . createBlockId ( containerId , BlockId . getMaxSequenceNumber ( ) ) ;
 + }
 +
 private static InodeFile createInodeFile ( long id ) {
 return new InodeFile ( STRING0 + id , id , NUMBER0 , Constants . KB , System . currentTimeMillis ( ) ) ;
 }


<nb> public class Way extends Entity {
 }
 return nodeIds . get ( nodeIds . size ( ) - NUMBER0 ) ;
 }
 +
 + public Node getFirstNode ( ) {
 + if ( nodes == null || nodes . size ( ) == NUMBER1 ) {
 + return null ;
 + }
 + return nodes . get ( NUMBER1 ) ;
 + }
 +
 + public Node getLastNode ( ) {
 + if ( nodes == null || nodes . size ( ) == NUMBER1 ) {
 + return null ;
 + }
 + return nodes . get ( nodes . size ( ) - NUMBER0 ) ;
 + }

 public void addNode ( Node n ) {
 if ( nodeIds == null ) {


<nb> public class SessionManager extends BasicModule {
 COMMENT
 public Session getBestRoute ( JID recipient ) {
 SINGLE
 - if ( ! serverName . equals ( recipient . getDomain ( ) ) ) {
 + if ( serverName == null || ! serverName . equals ( recipient . getDomain ( ) ) ) {
 return null ;
 }
 ClientSession session = null ;
 <nb> public class SessionManager extends BasicModule {
 }

 public void stop ( ) {
 + Log . debug ( STRING0 ) ;
 serverName = null ;
 if ( JiveGlobals . getBooleanProperty ( STRING1 ) ) {
 sendServerMessage ( null , LocaleUtils . getLocalizedString ( STRING2 ) ) ;

Added sanity check to getBestRoute when shutting down server


<nb> public abstract class TabbedLanguageCodeStylePanel extends CodeStyleAbstractPane

 @ override
 protected int getRightMargin ( ) {
 - return getSettings ( ) . RIGHT_MARGIN ;
 + return myProvider . getRightMargin ( LanguageCodeStyleSettingsProvider . SettingsType . INDENT_SETTINGS ) ;
 }

 @ override

Fix a problem with JSPX code style settings preview as discussed with D Avdeev


<nb> public class MergeInnerDifferences {
 }

 @ nullable
 - public List < TextRange > getLeft ( ) {
 - return myLeft ;
 - }
 -
 - @ nullable
 - public List < TextRange > getBase ( ) {
 - return myBase ;
 - }
 -
 - @ nullable
 - public List < TextRange > getRight ( ) {
 - return myRight ;
 - }
 -
 - @ nullable
 public List < TextRange > get ( @ notnull ThreeSide side ) {
 return side . select ( myLeft , myBase , myRight ) ;
 }


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


<nb> public class BuckClient {
 synchronized ( syncObject ) {
 mLastActionTime = ( new Date ( ) ) . getTime ( ) ;
 }
 - } catch ( Throwable t ) {
 - LOG . error ( STRING0 ) ;
 + } catch ( Exception e ) {
 + LOG . error ( STRING1 + e ) ;
 }
 }
 }

Buck plugin show the exception when we get a ping exception


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DefaultCompositeContextBuilder implements CompositeContextBuilder {
 participantStartParam . setIncludedBuilds ( Collections . < File > emptyList ( ) ) ;

 participantStartParam . setConfigureOnDemand ( false ) ;
 - if ( participantStartParam . getLogLevel ( ) == LogLevel . LIFECYCLE ) {
 - participantStartParam . setLogLevel ( LogLevel . WARN ) ;
 - LOGGER . lifecycle ( STRING0 + participant . getProjectDir ( ) ) ;
 - }
 + LOGGER . lifecycle ( STRING0 + participant . getProjectDir ( ) ) ;

 GradleLauncher gradleLauncher = createGradleLauncher ( participantStartParam , requestContext , gradleLauncherFactory ) ;

Don t override the logging level for included builds


<nb> public class JSONOutputterTest extends TestCase {
 STRING0 +
 STRING1 +
 STRING2 +
 - STRING3 +
 STRING4 +
 STRING5 +
 STRING6 +
 <nb> public class JSONOutputterTest extends TestCase {
 STRING7 +
 STRING1 +
 STRING8 +
 - STRING3 +
 STRING4 +
 STRING5 +
 STRING6 +


<nb> public class LocationManagerService extends ILocationManager . Stub {
 gpsProvider . disable ( ) ;
 }

 - FlpHardwareProvider flpHardwareProvider = FlpHardwareProvider . getInstance ( mContext ) ;
 - if ( FlpHardwareProvider . isSupported ( ) && flpHardwareProvider != null ) {
 + SINGLE
 + SINGLE
 + if ( FlpHardwareProvider . isSupported ( ) ) {
 + FlpHardwareProvider flpHardwareProvider = FlpHardwareProvider . getInstance ( mContext ) ;
 flpHardwareProvider . cleanup ( ) ;
 }
 }

Fix exception while shutting down FLP HW


<nb> public class Settings {
 }

 public boolean useDarkTheme ( ) {
 + return false ;
 + }
 +
 + public boolean useColoredProgressIndicator ( ) {
 return true ;
 }

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

 + import NAMESPACE ;
 +
 public class ProgressIndicatorDrawable extends Drawable {

 private final RectF mBounds = new RectF ( ) ;
 <nb> public class ProgressIndicatorDrawable extends Drawable {
 }

 public void setColor ( Integer rgb ) {
 + if ( Settings . get ( ) . useColoredProgressIndicator ( ) == false ) {
 + rgb = Settings . get ( ) . getThemedDefaultProgressColor ( ) ;
 + }
 +
 mColor = rgb ;
 mPaint . setColor ( rgb ) ;
 invalidateSelf ( ) ;

Add setting for using colored progress indicator


<nb> public abstract class GenericPathService implements PathService {
 return _indexService . getClosestVertex ( location , place . name , options ) ;
 }
 }
 - throw new UnsupportedOperationException ( STRING0 ) ;
 - SINGLE
 + SINGLE
 + return _graphService . getGraph ( ) . getVertex ( place . place ) ;
 }

 @ override


<nb> public class Frame extends Lockable < Frame > {
 _keys = Arrays . copyOf ( _keys , ncols + N ) ;
 _vecs = Arrays . copyOf ( _vecs , ncols + N ) ;
 for ( int i = NUMBER0 ; i < N ; ++ i ) {
 - _names [ ncols + i ] = names [ i ] ;
 + _names [ ncols + i ] = tmpnames [ i ] ;
 _keys [ ncols + i ] = vecs [ i ] . _key ;
 _vecs [ ncols + i ] = vecs [ i ] ;
 }


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


<nb> public class DeploymentOverlayHandler extends CommandHandlerWithHelp {
 if ( path . length ( ) == NUMBER0 ) {
 throw new CommandFormatException ( STRING0 + pair + STRING1 ) ;
 }
 + String originalPath = path ;
 path = pathCompleter . translatePath ( path ) ;
 final File f = new File ( path ) ;
 if ( ! f . exists ( ) ) {
 - throw new CommandFormatException ( STRING2 + f . getAbsolutePath ( ) + STRING3 + pathCompleter + STRING4 + Util . isWindows ( ) ) ;
 + throw new CommandFormatException ( STRING2 + f . getAbsolutePath ( ) + STRING3 + originalPath + STRING3 + path ) ;
 }
 contentPaths [ i ] = f ;
 }

temporarily added more debugging info to the error message


<nb> public abstract class ProcessorDefinition < Type extends ProcessorDefinition > exte
 SINGLE
 channel . initChannel ( this , routeContext ) ;

 + ProcessorDefinition defn = ( ProcessorDefinition ) this ;
 +
 SINGLE
 - if ( this instanceof TryDefinition || this instanceof CatchDefinition || this instanceof FinallyDefinition ) {
 + if ( defn instanceof TryDefinition || defn instanceof CatchDefinition || defn instanceof FinallyDefinition ) {
 SINGLE
 return channel ;
 } else {
 <nb> public abstract class ProcessorDefinition < Type extends ProcessorDefinition > exte
 SINGLE
 SINGLE
 SINGLE
 - if ( this instanceof TryDefinition ) {
 + ProcessorDefinition defn = ( ProcessorDefinition ) this ;
 + if ( defn instanceof TryDefinition ) {
 popBlock ( ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FindDialog extends DialogWrapper {
 if ( component instanceof EditorTextField ) {
 final Document document = ( ( EditorTextField ) component ) . getDocument ( ) ;
 if ( document != null ) {
 - PsiDocumentManager . getInstance ( myProject ) . commitDocument ( document ) ;
 + TransactionGuard . submitTransaction ( ( ) - > PsiDocumentManager . getInstance ( myProject ) . commitDocument ( document ) ) ;
 }
 }


<nb> import NAMESPACE ;

 import NAMESPACE ;

 - COMMENT
 - COMMENT
 - COMMENT
 class ResponseBuffers implements Closeable {
 private final ReplyHeader replyHeader ;
 private final ByteBuf bodyByteBuffer ;


<nb> public final class MediaSession {
 if ( TextUtils . isEmpty ( tag ) ) {
 throw new IllegalArgumentException ( STRING0 ) ;
 }
 - mCbStub = new CallbackStub ( ) ;
 + mCbStub = new CallbackStub ( this ) ;
 MediaSessionManager manager = ( MediaSessionManager ) context
 . getSystemService ( Context . MEDIA_SESSION_SERVICE ) ;
 try {
 <nb> public final class MediaSession {
 public static class CallbackStub extends ISessionCallback . Stub {
 private WeakReference < MediaSession > mMediaSession ;

 - public void setMediaSession ( MediaSession session ) {
 + public CallbackStub ( MediaSession session ) {
 mMediaSession = new WeakReference < MediaSession > ( session ) ;
 }

Fix crash when calling MediaSession callback


<nb> public final class AnnotationUseStyleCheck extends Check
 COMMENT
 private TrailingArrayComma mComma = TrailingArrayComma . NEVER ;

 - COMMENT
 + COMMENT
 private ClosingParens mParens = ClosingParens . NEVER ;

 COMMENT
 <nb> public final class MissingOverrideCheck extends Check
 private static final Pattern MATCH_INHERITDOC =
 Utils . createPattern ( STRING0 ) ;

 - COMMENT
 + COMMENT
 private boolean mJavaFiveCompatibility ;

 COMMENT
 <nb> final class ChecksumInfo

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 private void sort ( )
 <nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class OneStatementPerLineCheckInput {
 COMMENT

Fixed javadoc issues strange that project checker didn t catch it during verify phase


<nb> public abstract class Chart < T extends ChartData < ? extends IDataSet < ? extends Ent
 int xIndex = highlight . getXIndex ( ) ;
 int dataSetIndex = highlight . getDataSetIndex ( ) ;

 - float deltaX = mXAxis . mAxisRange ;
 + float deltaX = mXAxis != null
 + ? mXAxis . mAxisRange
 + : ( ( mData == null ? FLOAT0 : mData . getXValCount ( ) ) - FLOAT1 ) ;

 if ( xIndex <= deltaX && xIndex <= deltaX * mAnimator . getPhaseX ( ) ) {

Fixed a null exception when using markers with pie chart


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

 + import NAMESPACE ;

 COMMENT
 <nb> public class ConvolutionLayer extends BaseLayer {
 public INDArray calculateDelta ( INDArray epsilon ) {
 INDArray z = preOutput ( true ) ;
 INDArray activationDerivative = Nd4j . getExecutioner ( ) . execAndReturn ( Nd4j . getOpFactory ( ) . createTransform ( conf ( ) . getActivationFunction ( ) , z ) . derivative ( ) ) ;
 - return epsilon . mmul ( activationDerivative ) ;
 + if ( ! Arrays . equals ( z . shape ( ) , activationDerivative . shape ( ) ) )
 + throw new IllegalStateException ( STRING0 ) ;
 + return z . muli ( activationDerivative ) ;

 }


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

 import static NAMESPACE ;
 -
 + import static NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class ClassCompletionVerifier extends ClassCodeVisitorSupport implements Opcodes {
 + public class ClassCompletionVerifier extends ClassCodeVisitorSupport {

 private ClassNode currentClass ;
 private SourceUnit source ;

change recently added implements in static import


<nb> public class SMTestRunnerResultsForm extends TestResultsPanel
 fireOnTestingFinished ( ) ;

 if ( testsRoot . isEmptySuite ( ) &&
 - ! testsRoot . isInterrupted ( ) &&
 + testsRoot . isTestsReporterAttached ( ) &&
 myConsoleProperties instanceof SMTRunnerConsoleProperties &&
 ( ( SMTRunnerConsoleProperties ) myConsoleProperties ) . fixEmptySuite ( ) ) {
 return ;

hide suggestions to start with another module if tests were interrupted during search for tests phase


<nb> public class DruidSQLPanel extends DruidPanel {
 {
 add ( STRING0 ) ;
 add ( STRING1 ) ;
 - add ( STRING2 ) ;
 + add ( STRING3 ) ;
 add ( STRING4 ) ;
 add ( STRING5 ) ;
 add ( STRING6 ) ;
 add ( STRING7 ) ;
 add ( STRING8 ) ;
 add ( STRING9 ) ;
 + add ( STRING10 ) ;
 add ( STRING11 ) ;
 add ( STRING12 ) ;
 add ( STRING13 ) ;

modify the column names of druid sql panel


<nb> public class ProjectStructureConfigurable extends BaseConfigurable implements Se
 myToolbarComponent = toolbar . getComponent ( ) ;
 if ( Registry . is ( STRING0 ) ) {
 left . setBackground ( UIUtil . getSidePanelColor ( ) ) ;
 - } else {
 - left . add ( myToolbarComponent , BorderLayout . NORTH ) ;
 + myToolbarComponent . setBackground ( UIUtil . getSidePanelColor ( ) ) ;
 }
 + left . add ( myToolbarComponent , BorderLayout . NORTH ) ;
 left . add ( mySidePanel , BorderLayout . CENTER ) ;

 mySplitter . setFirstComponent ( left ) ;


<nb> import NAMESPACE ;
 public final class Native implements Version {

 public static final String DEFAULT_ENCODING = STRING0 ;
 - static final boolean DEBUG_LOAD = Boolean . getBoolean ( STRING1 ) ;
 - static final boolean DEBUG_JNA_LOAD = Boolean . getBoolean ( STRING2 ) ;
 + public static boolean DEBUG_LOAD = Boolean . getBoolean ( STRING1 ) ;
 + public static boolean DEBUG_JNA_LOAD = Boolean . getBoolean ( STRING2 ) ;

 SINGLE
 static String jnidispatchPath = null ;

Make native debug flags toggleable at runtime


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class DebuggerSessionTabBase implements DebuggerLogConsoleManage
 ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) {
 @ override
 public void run ( ) {
 - ProjectUtil . focusProjectWindow ( getProject ( ) , Registry . is ( STRING0 ) ) ;
 + boolean focusWnd = Registry . is ( STRING0 ) ;
 + ProjectUtil . focusProjectWindow ( getProject ( ) , focusWnd ) ;
 + if ( ! focusWnd ) {
 + AppIcon . getInstance ( ) . requestAttention ( true ) ;
 + }
 }
 } ) ;
 }

debugger session tab make app icon bounce if set up no to focus project window


<nb> public abstract class ByteToMessageDecoder extends ChannelInboundHandlerAdapter
 }
 }

 - protected void callDecode ( ChannelHandlerContext ctx , ByteBuf in , RecyclableArrayList out ) {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + protected void callDecode ( ChannelHandlerContext ctx , ByteBuf in , List < Object > out ) {
 try {
 while ( in . isReadable ( ) ) {
 int outSize = out . size ( ) ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class ReplayingDecoder < S > extends ByteToMessageDecoder {
 }

 @ override
 - protected void callDecode ( ChannelHandlerContext ctx , ByteBuf in , RecyclableArrayList out ) {
 + protected void callDecode ( ChannelHandlerContext ctx , ByteBuf in , List < Object > out ) {
 replayable . setCumulation ( in ) ;
 try {
 while ( in . isReadable ( ) ) {

Hide RecyclableArrayList from sub classes


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class StudyToolWindow extends SimpleToolWindowPanel implements DataProvid
 STRING0 + font . getSize ( ) + STRING1 ;
 ( ( HTMLDocument ) taskTextPane . getDocument ( ) ) . getStyleSheet ( ) . addRule ( bodyRule ) ;
 taskTextPane . setEditable ( false ) ;
 - taskTextPane . setBackground ( EditorColorsManager . getInstance ( ) . getGlobalScheme ( ) . getDefaultBackground ( ) ) ;
 + if ( ! UIUtil . isUnderDarcula ( ) ) {
 + taskTextPane . setBackground ( EditorColorsManager . getInstance ( ) . getGlobalScheme ( ) . getDefaultBackground ( ) ) ;
 + }
 taskTextPane . setBorder ( new EmptyBorder ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 ) ) ;
 return taskTextPane ;
 }

do not change task description tool window background in darcula


<nb> public class LinuxPlatform extends DefaultPlatform {
 ( ! javaVendor . contains ( STRING0 ) && ! javaVendor . contains ( STRING1 ) ) ||
 javaVM == null || ! javaVM . contains ( STRING2 ) ) {
 Messages . showWarning ( STRING3 ,
 - STRING4 +
 - STRING5 +
 + STRING6 +
 + STRING7 +
 STRING8 +
 STRING9 +
 STRING10 +
 - STRING11 , null ) ;
 + STRING12 , null ) ;
 }

 SINGLE


<nb> public final class XContentBuilder implements BytesStream , Releasable {
 generator . writeNull ( ) ;
 return ;
 }
 + assert false == value instanceof TimeValue : STRING0 ;
 Class < ? > type = value . getClass ( ) ;
 Writer writer = MAP . get ( type ) ;
 if ( writer != null ) {

Don t allow XContentBuilder writeValue TimeValue


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class IgnitedLocationSupport {

 return providers ;
 }
 +
 + public static boolean isFromGps ( Location location ) {
 + return location . getProvider ( ) . equals ( LocationManager . GPS_PROVIDER ) ;
 + }
 +
 + public static boolean isFromNetwork ( Location location ) {
 + return location . getProvider ( ) . equals ( LocationManager . NETWORK_PROVIDER ) ;
 + }
 +
 + public static boolean isGpsProviderEnabled ( Context context ) {
 + return getEnabledProviders ( context . getApplicationContext ( ) ) . contains (
 + LocationManager . GPS_PROVIDER ) ;
 + }
 +
 + public static boolean isNetworkProviderEnabled ( Context context ) {
 + return getEnabledProviders ( context . getApplicationContext ( ) ) . contains (
 + LocationManager . NETWORK_PROVIDER ) ;
 + }
 }

Added some helper methods to IgnitedLocationSupport class


<nb> public class SwingHelper {
 TextComponentAccessor . TEXT_FIELD_WHOLE_TEXT ) ;
 }

 - private static < T extends JComponent > void doInstall ( @ nullable Project project ,
 + public static < T extends JComponent > void doInstall ( @ nullable Project project ,
 @ notnull ComponentWithBrowseButton < T > componentWithBrowseButton ,
 @ notnull JTextField textField ,
 @ notnull String browseDialogTitle ,

have caching service for keeping recalculating known node js interpreters and their versions


<nb> public abstract class InstanceRegistry implements LeaseManager < InstanceInfo > ,
 }
 app . addInstance ( decorateInstanceInfo ( lease ) ) ;
 }
 + Applications allAppsInLocalRegion = getApplications ( false ) ;
 +
 for ( RemoteRegionRegistry remoteRegistry : this . remoteRegionRegistryList ) {
 Applications applications = remoteRegistry
 . getApplicationDeltas ( ) ;
 for ( Application application : applications
 . getRegisteredApplications ( ) ) {
 - Application appInLocalRegistry = apps
 + Application appInLocalRegistry = allAppsInLocalRegion
 . getRegisteredApplications ( application . getName ( ) ) ;
 if ( appInLocalRegistry == null ) {
 apps . addApplication ( application ) ;

Fixes the scenario where the deltas don t work in the case of interactions with a remote region registry


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


<nb> public class IndexIO
 }

 Set < String > colSet = Sets . newTreeSet ( ) ;
 - colSet . addAll ( Lists . newArrayList ( index . getAvailableDimensions ( ) ) ) ;
 - colSet . addAll ( Lists . newArrayList ( index . getAvailableMetrics ( ) ) ) ;
 + for ( String dimension : index . getAvailableDimensions ( ) ) {
 + colSet . add ( dimension . toLowerCase ( ) ) ;
 + }
 + for ( String metric : index . getAvailableMetrics ( ) ) {
 + colSet . add ( metric . toLowerCase ( ) ) ;
 + }

 String [ ] cols = colSet . toArray ( new String [ colSet . size ( ) ] ) ;

Fix bug with loading old indexes that might have mixed case column names


<nb> class IRFactory {
 }

 Node processYield ( YieldExpressionTree tree ) {
 - Node yield = new Node ( Token . YIELD ) ;
 + Node yield = newNode ( Token . YIELD ) ;
 if ( tree . expression != null ) {
 yield . addChildToBack ( transform ( tree . expression ) ) ;
 }

Properly set the source file name on YIELD nodes


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;

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

 COMMENT
 <nb> public class TimeRetentionStrategy implements RetentionStrategy {
 }
 try {
 TimeUnit segmentTimeUnit = segmentZKMetadata . getTimeUnit ( ) ;
 + if ( segmentTimeUnit == null ) {
 + return false ;
 + }
 long endsMills = segmentTimeUnit . toMillis ( segmentZKMetadata . getEndTime ( ) ) ;
 Duration segmentTimeUntilNow = new Duration ( endsMills , System . currentTimeMillis ( ) ) ;
 if ( _retentionDuration . isShorterThan ( segmentTimeUntilNow ) ) {

making sure that we skip retention strategy if time column is null


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class RestoreUpdateTree implements ProjectComponent , JDOMExternalizable {
 if ( myUpdateInfo != null && ! myUpdateInfo . isEmpty ( ) && ProjectReloadState . getInstance ( myProject ) . isAfterAutomaticReload ( ) ) {
 ActionInfo actionInfo = myUpdateInfo . getActionInfo ( ) ;
 if ( actionInfo != null ) {
 - ProjectLevelVcsManagerEx . getInstanceEx ( myProject ) . showUpdateProjectInfo ( myUpdateInfo . getFileInformation ( ) , VcsBundle . message ( STRING0 ) , actionInfo ) ;
 + ProjectLevelVcsManagerEx . getInstanceEx ( myProject ) . showUpdateProjectInfo ( myUpdateInfo . getFileInformation ( ) ,
 + VcsBundle . message ( STRING0 ) , actionInfo ) ;
 + CommittedChangesCache . getInstance ( myProject ) . refreshIncomingChangesAsync ( ) ;
 }
 myUpdateInfo = null ;
 }

refresh incoming changes after update and project reload


<nb> public class XmppConnection extends ImConnection implements CallbackHandler
 {

 private final static String TAG = STRING0 ;
 + private final static boolean DEBUG_ENABLED = false ;
 +
 private XmppContactList mContactListManager ;
 private Contact mUser ;

 <nb> public class XmppConnection extends ImConnection implements CallbackHandler

 }

 - mConfig . setDebuggerEnabled ( true ) ;
 + mConfig . setDebuggerEnabled ( DEBUG_ENABLED ) ;
 mConfig . setSASLAuthenticationEnabled ( useSASL ) ;

turned off xmpp low level debugging by default


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

 -
 - @ websocket ( maxTextMessageSize = NUMBER0 * NUMBER1 )
 + SINGLE
 + @ websocket ( maxTextMessageSize = NUMBER2 * NUMBER1 * NUMBER1 )
 public class BuckSocket {
 private final CountDownLatch closeLatch ;


<nb> public class HttpProducer extends DefaultProducer {
 }
 }

 + SINGLE
 + if ( method . getHostConfiguration ( ) . getHost ( ) == null ) {
 + throw new IllegalArgumentException ( STRING0 + url
 + + STRING1 + getEndpoint ( ) ) ;
 + }
 +
 return method ;
 }

 <nb> public class HttpProducer extends DefaultProducer {
 queryString = getEndpoint ( ) . getHttpUri ( ) . getRawQuery ( ) ;
 }

 + if ( uri . getScheme ( ) == null || uri . getHost ( ) == null ) {
 + throw new IllegalArgumentException ( STRING0 + uri
 + + STRING1 + getEndpoint ( ) ) ;
 + }
 +
 StringBuilder builder = new StringBuilder ( uri . getScheme ( ) ) . append ( STRING2 ) . append ( uri . getHost ( ) ) ;

 if ( uri . getPort ( ) != - NUMBER0 ) {

Improved error message if bridging endpoints and end user have not enabled the bridgeEndpoint option


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class HistoryCompletionManager implements KeyDownPreviewHandler ,
 dismiss ( ) ;
 }
 } ) ;
 +
 + popup_ . addCloseHandler ( new CloseHandler < PopupPanel > ( ) {
 +
 + @ override
 + public void onClose ( CloseEvent < PopupPanel > event )
 + {
 + popup_ = null ;
 + }
 +
 + } ) ;
 }
 } ) ;
 }
 <nb> public class HistoryPopupPanel extends ThemedPopupPanel
 {
 public HistoryPopupPanel ( String [ ] entries )
 {
 + super ( true ) ;
 list_ = new CompletionList < String > ( entries , NUMBER0 , false , true ) ;
 setWidget ( list_ ) ;
 }


<nb> public class WebMvcConfigurationSupportTests {

 @ responsestatus ( value = HttpStatus . BAD_REQUEST , reason = STRING0 )
 + @ suppresswarnings ( STRING1 )
 public static class UserAlreadyExistsException extends RuntimeException {
 }


<nb> public class GitPane extends WorkbenchPane implements Display
 final ToolbarPopupMenu menu = new ToolbarPopupMenu ( ) ;

 menu . addItem ( commands_ . vcsDiff ( ) . createMenuItem ( false ) ) ;
 - menu . addSeparator ( ) ;
 menu . addItem ( commands_ . vcsRevert ( ) . createMenuItem ( false ) ) ;
 - menu . addItem ( commands_ . vcsCommit ( ) . createMenuItem ( false ) ) ;
 menu . addSeparator ( ) ;
 menu . addItem ( commands_ . vcsOpen ( ) . createMenuItem ( false ) ) ;

remove commit from git pane context menu


<nb> public class SlidingUpPanelLayout extends ViewGroup {

 @ override
 public void computeScroll ( ) {
 - if ( mDragHelper . continueSettling ( true ) ) {
 + if ( mDragHelper != null && mDragHelper . continueSettling ( true ) ) {
 if ( ! isSlidingEnabled ( ) ) {
 mDragHelper . abort ( ) ;
 return ;


<nb> public class OProfilerData {
 currentValue = ( ( Double ) currentValue ) . doubleValue ( ) + ( ( Double ) otherValue ) . doubleValue ( ) ;
 else if ( currentValue instanceof Boolean )
 currentValue = otherValue ;
 + else if ( currentValue instanceof String )
 + currentValue = otherValue ;
 else
 - OLogManager . instance ( ) . warn ( this , STRING0 , entry . getKey ( ) ,
 - entry . getValue ( ) ) ;
 + OLogManager . instance ( ) . warn ( this , STRING1 ,
 + currentValue , entry . getKey ( ) , entry . getValue ( ) ) ;
 }

 hooks . put ( entry . getKey ( ) , currentValue ) ;


<nb> public class JettyWebAppContext extends WebAppContext

 - private static final String DEFAULT_CONTAINER_INCLUDE_JAR_PATTERN = STRING0 ;
 + private static final String DEFAULT_CONTAINER_INCLUDE_JAR_PATTERN = STRING1 ;
 private static final String WEB_INF_CLASSES_PREFIX = STRING2 ;
 private static final String WEB_INF_LIB_PREFIX = STRING3 ;

Scan tlds for apache jasper standard taglib with jetty maven plugin


<nb> public class BuildCheckpoints {
 public void notifyNewBestBlock ( StoredBlock block ) throws VerificationException {
 int height = block . getHeight ( ) ;
 if ( height % params . getInterval ( ) == NUMBER0 && block . getHeader ( ) . getTimeSeconds ( ) <= timeAgo ) {
 - System . out . println ( String . format ( STRING0 ,
 - block . getHeader ( ) . getHash ( ) , block . getHeight ( ) ) ) ;
 + System . out . println ( String . format ( STRING1 ,
 + block . getHeader ( ) . getHash ( ) , block . getHeight ( ) , Utils . dateTimeFormat ( block . getHeader ( ) . getTime ( ) ) ) ) ;
 checkpoints . put ( height , block ) ;
 }
 }


<nb> public class WifiConfiguration implements Parcelable {
 return mHasEverConnected ;
 }

 - private NetworkSelectionStatus ( ) {
 + public NetworkSelectionStatus ( ) {
 SINGLE
 mHasEverConnected = false ;
 } ;
 <nb> public class WifiConfiguration implements Parcelable {
 COMMENT
 COMMENT
 COMMENT
 - private final NetworkSelectionStatus mNetworkSelectionStatus = new NetworkSelectionStatus ( ) ;
 + private NetworkSelectionStatus mNetworkSelectionStatus = new NetworkSelectionStatus ( ) ;

 COMMENT
 COMMENT
 <nb> public class WifiConfiguration implements Parcelable {
 public NetworkSelectionStatus getNetworkSelectionStatus ( ) {
 return mNetworkSelectionStatus ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setNetworkSelectionStatus ( NetworkSelectionStatus status ) {
 + mNetworkSelectionStatus = status ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class JBTerminalPanel extends TerminalPanel {
 protected BufferedImage createBufferedImage ( int width , int height ) {
 return UIUtil . createImage ( width , height , BufferedImage . TYPE_INT_ARGB ) ;
 }
 +
 + @ override
 + protected void drawImage ( Graphics2D g , BufferedImage image ) {
 + UIUtil . drawImage ( g , image , null , NUMBER0 , NUMBER0 ) ;
 + }

 public String getFontName ( ) {
 List < String > fonts = myColorScheme . getConsoleFontPreferences ( ) . getEffectiveFontFamilies ( ) ;


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SourceWindow implements LastSourceDocClosedHandler ,
 public void onReadyToQuit ( boolean saveChanges )
 {
 markReadyToClose ( ) ;
 - WindowEx . get ( ) . close ( ) ;
 +
 + SINGLE
 + SINGLE
 + Scheduler . get ( ) . scheduleDeferred (
 + new Scheduler . ScheduledCommand ( )
 + {
 + @ override
 + public void execute ( )
 + {
 + WindowEx . get ( ) . close ( ) ;
 + }
 + } ) ;
 }
 } ;

on Qt it can take two clicks to close a source window


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public interface ConfigAttribute {


<nb> public class TypeCheckTest extends CompilerTypeTestCase {
 STRING0 ) ;
 }

 + public void testDataPropertyOnInterface4 ( ) throws Exception {
 + testTypes ( STRING1 +
 + STRING2 +
 + STRING3 +
 + STRING4 +
 + STRING5 +
 + STRING6 ,
 + STRING7 +
 + STRING8 +
 + STRING9 +
 + STRING0 ) ;
 + }
 +
 public void testWarnDataPropertyOnInterface3 ( ) throws Exception {
 testTypes ( STRING10 +
 STRING11 ,


<nb> public class OWALPageChangesPortion implements OWALChanges {
 } else
 try {
 System . arraycopy ( chunk , chunkOffset , data , read , rl ) ;
 - } catch ( Exception e ) {
 + } catch ( RuntimeException e ) {
 OLogManager . instance ( ) . error ( this ,
 STRING0 + chunk . length + STRING1 + chunkOffset + STRING2
 + data . length + STRING3 + read + STRING4 + rl , e ) ;


<nb> public class TxManager extends AbstractTransactionManager
 fc . write ( buf ) ;
 fc . force ( true ) ;
 fc . close ( ) ;
 + msgLog . logMessage ( STRING0 + newFileName , true ) ;
 }

 void setTmNotOk ( Throwable cause )

Added logging to mark which active txlog has been set


<nb> import NAMESPACE ;
 public interface BuildOperationProcessor {
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Improving javadoc comment to mention thread safety of worker


<nb> public final class WebViewCore {
 int x = msg . arg1 ;
 int y = msg . arg2 ;
 if ( ! nativeSelectWordAt ( mNativeClass , x , y ) ) {
 - mWebView . mPrivateHandler . obtainMessage ( WebViewClassic . SHOW_CARET_HANDLE )
 + mWebViewClassic . mPrivateHandler . obtainMessage ( WebViewClassic . SHOW_CARET_HANDLE )
 . sendToTarget ( ) ;
 }
 break ;


<nb> public final class GtasksSyncService {
 GtasksInvoker invoker = new GtasksInvoker ( gtasksPreferenceService . getToken ( ) ) ;
 if ( op instanceof TaskPushOp ) {
 TaskPushOp taskPush = ( TaskPushOp ) op ;
 - pushTaskOnSave ( taskPush . model , taskPush . model . getSetValues ( ) , invoker , true ) ;
 + pushTaskOnSave ( taskPush . model , taskPush . model . getMergedValues ( ) , invoker , true ) ;
 } else if ( op instanceof MoveOp ) {
 MoveOp move = ( MoveOp ) op ;
 pushMetadataOnSave ( move . metadata , invoker ) ;
 <nb> public class QuickAddBar extends LinearLayout {
 }

 Flags . set ( Flags . ACTFM_SUPPRESS_SYNC ) ;
 - Flags . set ( Flags . GTASKS_SUPPRESS_SYNC ) ;
 + if ( deadlineControl . isDeadlineSet ( ) ) SINGLE
 + Flags . set ( Flags . GTASKS_SUPPRESS_SYNC ) ;
 Task task = TaskService . createWithValues ( fragment . getFilter ( ) . valuesForNewTasks , title ,
 taskService , metadataService ) ;


<nb> public final class GenericRecommenderIRStatsEvaluator implements RecommenderIRSt
 idealizedGain += discount ;
 }
 }
 - nDCG . addDatum ( cumulativeGain / idealizedGain ) ;
 + if ( idealizedGain > FLOAT0 ) {
 + nDCG . addDatum ( cumulativeGain / idealizedGain ) ;
 + }

 SINGLE
 numUsersRecommendedFor ++ ;

Prevent NaN in corner case of nDCG calculation


<nb>

 package NAMESPACE ;

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

 @ runwith ( Parameterized . class )
 + @ sdksuppress ( minSdkVersion = Build . VERSION_CODES . LOLLIPOP )
 public class StaggeredGridLayoutManagerCacheTest extends BaseStaggeredGridLayoutManagerTest {

 final Config mConfig ;

Fix StaggaredGridLayoutManagerCacheTest to avoid older versions


<nb> public class NeoStore extends AbstractStore
 private RelationshipStore relStore ;
 private RelationshipTypeStore relTypeStore ;
 private final LastCommittedTxIdSetter lastCommittedTxIdSetter ;
 + private boolean isStarted ;

 private final int REL_GRAB_SIZE ;

 <nb> public class NeoStore extends AbstractStore
 }
 setRecord ( NUMBER0 , txId ) ;
 SINGLE
 - if ( lastCommittedTxIdSetter != null && txId == getLastCommittedTx ( ) + NUMBER1 )
 + if ( isStarted && lastCommittedTxIdSetter != null && txId == getLastCommittedTx ( ) + NUMBER1 )
 {
 lastCommittedTxIdSetter . setLastCommittedTxId ( txId ) ;
 }
 <nb> public class NeoStore extends AbstractStore
 relStore . makeStoreOk ( ) ;
 nodeStore . makeStoreOk ( ) ;
 super . makeStoreOk ( ) ;
 + isStarted = true ;
 }

 -
 public void rebuildIdGenerators ( )
 {
 relTypeStore . rebuildIdGenerators ( ) ;

Fix to distunguish between recovery and HA apply log


<nb> public class DiagnosticGroups {
 CheckJSDocStyle . MISSING_JSDOC ,
 CheckJSDocStyle . EXTERNS_FILES_SHOULD_BE_ANNOTATED ,
 CheckJSDocStyle . INCORRECT_PARAM_NAME ,
 + CheckJSDocStyle . INVALID_SUPPRESS ,
 CheckJSDocStyle . MIXED_PARAM_JSDOC_STYLES ,
 CheckJSDocStyle . MUST_BE_PRIVATE ,
 CheckJSDocStyle . OPTIONAL_PARAM_NOT_MARKED_OPTIONAL ,

Add INVALID_SUPPRESS to lint checks so it will be reported at the correct level


<nb> public class ModelBuildingAdapter extends BuildAdapter {

 @ override
 public void projectsEvaluated ( Gradle gradle ) {
 - if ( configurer != null ) {
 - configurer . configure ( ( GradleInternal ) gradle ) ;
 - }
 + configurer . configure ( ( GradleInternal ) gradle ) ;
 builder . buildAll ( ( GradleInternal ) gradle ) ;
 }


<nb> public class TileLaser extends TileBuildCraft implements IPowerReceptor {
 }

 protected void findTable ( ) {
 - System . out . println ( STRING0 ) ;
 int meta = worldObj . getBlockMetadata ( xCoord , yCoord , zCoord ) ;

 int minX = xCoord - NUMBER0 ;


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

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class StoreSwapper {
 Cluster cluster = new ClusterMapper ( ) . readCluster ( new StringReader ( clusterStr ) ) ;
 ExecutorService executor = Executors . newFixedThreadPool ( NUMBER0 ) ;
 HttpConnectionManager manager = new MultiThreadedHttpConnectionManager ( ) ;
 +
 + int numConnections = cluster . getNumberOfNodes ( ) + NUMBER1 ;
 + manager . getParams ( ) . setMaxTotalConnections ( numConnections ) ;
 + manager . getParams ( ) . setMaxConnectionsPerHost ( HostConfiguration . ANY_HOST_CONFIGURATION ,
 + numConnections ) ;
 HttpClient client = new HttpClient ( manager ) ;
 + client . getParams ( ) . setParameter ( STRING0 , NUMBER1 * NUMBER2 * NUMBER2 * NUMBER3 ) ;
 +
 StoreSwapper swapper = new StoreSwapper ( cluster , executor , client , mgmtPath , filePath ) ;
 swapper . swapStoreData ( storeName ) ;
 logger . info ( STRING1 ) ;


<nb> public class ChunkSampleSource implements SampleSource , SampleSourceReader , Load
 boolean haveSamples = ! sampleQueue . isEmpty ( ) ;
 BaseMediaChunk currentChunk = mediaChunks . getFirst ( ) ;
 while ( haveSamples && mediaChunks . size ( ) > NUMBER0
 - && mediaChunks . get ( NUMBER0 ) . getFirstSampleIndex ( ) == sampleQueue . getReadIndex ( ) ) {
 + && mediaChunks . get ( NUMBER0 ) . getFirstSampleIndex ( ) <= sampleQueue . getReadIndex ( ) ) {
 mediaChunks . removeFirst ( ) ;
 currentChunk = mediaChunks . getFirst ( ) ;
 }


<nb> public class EventsLogger implements AtmosphereResourceEventListener {
 public EventsLogger ( ) {
 }

 - @ override
 public void onSuspend ( final AtmosphereResourceEvent < HttpServletRequest , HttpServletResponse > event ) {
 System . out . println ( STRING0 + event ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 <nb> class ServerConnection extends ConnectionBase {
 private boolean channelPaused ;
 private boolean paused ;
 private boolean sentCheck ;
 - private final Queue < Object > pending = new LinkedList < > ( ) ;
 + private final Queue < Object > pending = new ArrayDeque < > ( NUMBER0 ) ;
 private final String serverOrigin ;
 private final DefaultHttpServer server ;
 private ChannelFuture lastWriteFuture ;

Replace LinkedList with ArrayDeque for constant time size operation


<nb> public final class OAuth2AuthorizationServerConfigurer extends
 TokenStoreUserApprovalHandler userApprovalHandler = new TokenStoreUserApprovalHandler ( ) ;
 userApprovalHandler . setTokenStore ( tokenStore ( ) ) ;
 userApprovalHandler . setClientDetailsService ( clientDetails ( ) ) ;
 + userApprovalHandler . setRequestFactory ( new DefaultOAuth2RequestFactory ( clientDetailsService ( ) ) ) ;
 + this . userApprovalHandler = userApprovalHandler ;
 }
 return this . userApprovalHandler ;
 }
 <nb> import NAMESPACE
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public class AuthorizationServerConfigurationTests {
 public void run ( ) {
 assertNotNull ( context . getBean ( STRING0 , ClientDetailsService . class ) . loadClientByClientId (
 STRING1 ) ) ;
 + assertNotNull ( ReflectionTestUtils . getField ( context . getBean ( AuthorizationEndpoint . class ) , STRING2 ) ) ;
 }

 }

Add user approval handler to default configuration


<nb> public class ParameterizedNamesTest {
 @ runwith ( Parameterized . class )
 public static class ParametrizedWithSpecialCharsInName {

 - @ suppresswarnings ( STRING0 )
 public ParametrizedWithSpecialCharsInName ( String s ) {
 }


<nb> public class TextField extends Widget {
 invalidateHierarchy ( ) ;
 }

 + COMMENT
 public void setPasswordCharacter ( char passwordCharacter ) {
 this . passwordCharacter = passwordCharacter ;
 + updateDisplayText ( ) ;
 }

 COMMENT
 <nb> public class TextField extends Widget {
 COMMENT
 public void setPasswordMode ( boolean passwordMode ) {
 this . passwordMode = passwordMode ;
 + updateDisplayText ( ) ;
 }

 public void setBlinkTime ( float blinkTime ) {

Update display text immediately after password character or password


<nb> public abstract class InstanceRegistry implements LeaseManager < InstanceInfo > ,
 if ( leaseToRenew == null ) {
 RENEW_NOT_FOUND . increment ( isReplication ) ;
 logger . warn ( STRING0
 - + appName + STRING1 + id ) ;
 + + appName + STRING1 + id ) ;
 return false ;
 } else {
 InstanceInfo instanceInfo = leaseToRenew . getHolder ( ) ;
 <nb> public abstract class InstanceRegistry implements LeaseManager < InstanceInfo > ,
 InstanceStatus overriddenInstanceStatus = this
 . getOverriddenInstanceStatus ( instanceInfo ,
 leaseToRenew , isReplication ) ;
 - SINGLE
 - SINGLE
 + if ( overriddenInstanceStatus == InstanceStatus . UNKNOWN ) {
 + logger . info ( STRING2
 + + STRING3 , instanceInfo . getId ( ) ) ;
 + RENEW_NOT_FOUND . increment ( isReplication ) ;
 + return false ;
 + }
 if ( ! instanceInfo . getStatus ( ) . equals ( overriddenInstanceStatus ) ) {
 Object [ ] args = { instanceInfo . getStatus ( ) . name ( ) ,
 instanceInfo . getOverriddenStatus ( ) . name ( ) ,

Require re registration when instance status is UNKNOWN after


<nb> public class AtmosphereServlet extends AbstractAsyncServlet implements CometProc
 public static final String WRITE_HEADERS = AtmosphereResource . class . getName ( ) + STRING0 + STRING1 ;

 public final static String WEBSOCKET_PROCESSOR = WebSocketProcessor . class . getName ( ) ;
 - public final static String WEBSOCKET_CONTENT_TYPE = STRING2 ;
 - public final static String WEBSOCKET_METHOD = STRING3 ;
 - public final static String WEBSOCKET_IDLETIME = STRING4 ;
 - public final static String WEBSOCKET_BUFFER_SIZE = STRING5 ;
 - public static final String WEBSOCKET_PATH_DELIMITER = STRING6 ;
 + public final static String WEBSOCKET_CONTENT_TYPE = STRING7 ;
 + public final static String WEBSOCKET_METHOD = STRING8 ;
 + public final static String WEBSOCKET_IDLETIME = STRING9 ;
 + public final static String WEBSOCKET_BUFFER_SIZE = STRING10 ;
 + public static final String WEBSOCKET_PATH_DELIMITER = STRING11 ;

 private final ArrayList < String > possibleAtmosphereHandlersCandidate = new ArrayList < String > ( ) ;
 private final HashMap < String , String > initParams = new HashMap < String , String > ( ) ;


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

 import NAMESPACE ;
 <nb> import NAMESPACE ;
 @ repositoryrestresource ( collectionResourceRel = STRING0 , path = STRING1 )
 interface CityRepository extends PagingAndSortingRepository < City , Long > {

 - Page < City > findByNameContainingAndCountryContainingAllIgnoringCase ( String name ,
 - String country , Pageable pageable ) ;
 + Page < City > findByNameContainingAndCountryContainingAllIgnoringCase (
 + @ param ( STRING2 ) String name , @ param ( STRING3 ) String country ,
 + Pageable pageable ) ;

 - City findByNameAndCountryAllIgnoringCase ( String name , String country ) ;
 + City findByNameAndCountryAllIgnoringCase ( @ param ( STRING2 ) String name ,
 + @ param ( STRING3 ) String country ) ;

 }

Add missing Param annotations to CityRepository in Data REST sample


<nb> public class ParametrizedTest {

 @ test
 public void parametrizedTest ( ) {
 - System . out . println ( STRING0 + number ) ;
 + System . out . print ( String . format ( STRING1 , number ) ) ;
 }

 }

Fix an inconsistency of line separator in RunWithAnnotationIntegrationTest


<nb> public class CollisionShapeFactory {
 COMMENT
 COMMENT
 private static BoxCollisionShape createSingleBoxShape ( Spatial spatial , Spatial parent ) {
 - spatial . setModelBound ( new BoundingBox ( ) ) ;
 SINGLE
 BoxCollisionShape shape = new BoxCollisionShape (
 ( ( BoundingBox ) spatial . getWorldBound ( ) ) . getExtent ( new Vector3f ( ) ) ) ;

remove setting of bounding box from CollisionShapeFactory


<nb> public interface SearchEngine {
 }

 Result search ( String query , int page ) ;
 +
 + Result suggestionList ( String query ) ;
 }
 <nb> public class YoutubeSearchEngine implements SearchEngine {
 }
 return result ;
 }
 +
 + @ override
 + public Result suggestionList ( String query ) {
 +
 + SINGLE
 +
 + Uri . Builder builder = new Uri . Builder ( ) ;
 + builder . scheme ( STRING0 )
 + . authority ( STRING1 )
 + . appendPath ( STRING2 )
 + . appendPath ( STRING3 )
 + . appendQueryParameter ( STRING4 , STRING5 )
 + . appendQueryParameter ( STRING6 , STRING7 )
 + . appendQueryParameter ( STRING8 , query ) ;
 + String url = builder . build ( ) . toString ( ) ;
 +
 + return null ;
 + }
 +
 }

Added interface method in SearchEngine class for fetch search suggestion list


<nb> public class PathParamITest extends WithJetty {
 }

 @ test public void
 + canSetNamedPathParameterDefinedAsLastPathParamInPathAndConjWithAnUnnamedPathParam ( ) {
 + given ( ) .
 + pathParam ( STRING0 , STRING1 ) .
 + when ( ) .
 + get ( STRING2 , STRING3 ) .
 + then ( ) .
 + statusCode ( NUMBER0 ) .
 + body ( STRING4 , equalTo ( STRING3 ) ) .
 + body ( STRING0 , equalTo ( STRING1 ) ) .
 + body ( STRING5 , equalTo ( STRING6 ) ) ;
 + }
 +
 + @ test public void
 named_path_parameters_have_precedence_over_unnamed_path_parameters ( ) {
 given ( ) .
 pathParam ( STRING7 , STRING8 ) .


<nb> public class AppPoller {
 case ACTION_POLL_CURRENT_APP : {
 mHandler . removeMessages ( ACTION_POLL_CURRENT_APP ) ;

 + if ( MainController . get ( ) == null ) {
 + Log . d ( TAG , STRING0 ) ;
 + break ;
 + }
 +
 ActivityManager am = ( ActivityManager ) mContext . getSystemService ( Activity . ACTIVITY_SERVICE ) ;
 ComponentName componentName = am . getRunningTasks ( NUMBER0 ) . get ( NUMBER1 ) . topActivity ;
 String currentAppFlatComponentName = componentName . flattenToShortString ( ) ;
 <nb> public class MainController implements Choreographer . FrameCallback {
 SINGLE
 sInstance . mCanvas . destroy ( ) ;
 sInstance . mChoreographer . removeFrameCallback ( sInstance ) ;
 + sInstance . endAppPolling ( ) ;
 sInstance = null ;
 }

Ensure AppPoller finishes as MainController is destoryed


<nb> public abstract class AbstractProcessorLight implements Processor {
 state = dispatch ( status ) ;
 } else if ( state == SocketState . ASYNC_END ) {
 state = dispatch ( status ) ;
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 if ( state == SocketState . OPEN ) {
 SINGLE
 SINGLE


<nb> public class DBPortTest extends TestCase {
 }

 @ test
 + @ suppresswarnings ( STRING0 )
 public void testOpenFailure ( ) throws UnknownHostException {
 final MongoOptions options = new MongoOptions ( ) ;
 options . autoConnectRetry = true ;

Suppressing deprecation warning in a test


<nb> public class GSSAPIAuthenticationTest extends DatabaseTestCase {
 @ test
 public void testSuccessfulAuthentication ( ) {
 assumeTrue ( ! Fixture . getCredentialList ( ) . isEmpty ( ) && Fixture . getCredentialList ( ) . get ( NUMBER0 ) . getMechanism ( ) . equals ( GSSAPI ) ) ;
 +
 + SINGLE
 + for ( final String property : System . getProperties ( ) . stringPropertyNames ( ) ) {
 + if ( property . startsWith ( STRING0 ) ) {
 + System . out . println ( property + STRING1 + System . getProperty ( property ) ) ;
 + }
 + }
 +
 collection . insert ( new Document ( ) ) ;
 assertEquals ( NUMBER1 , collection . find ( ) . count ( ) ) ;
 }

Adding some debugging output for GSSAPI testing on Jenkins


<nb> public class StickyListHeadersListView extends FrameLayout {

 @ override
 public void onClick ( View v ) {
 - mOnHeaderClickListener . onHeaderClick ( StickyListHeadersListView . this , mHeader , mHeaderPosition ,
 - mHeaderId , true ) ;
 + if ( mOnHeaderClickListener != null )
 + mOnHeaderClickListener . onHeaderClick ( StickyListHeadersListView . this , mHeader , mHeaderPosition ,
 + mHeaderId , true ) ;
 }
 } ) ;
 }

Fixed NPE when no OnHeaderClickListener set


<nb> public class InvokeAppWorker extends SwingWorker < Void , Void > {
 }
 if ( msg . getRequestBody ( ) != null ) {
 postdata = msg . getRequestBody ( ) . toString ( ) ;
 - postdata . replaceAll ( STRING0 , STRING1 ) ;
 + postdata = postdata . replaceAll ( STRING0 , STRING1 ) ;
 }
 Vector < String > cookies = msg . getRequestHeader ( ) . getHeaders ( HttpHeader . COOKIE ) ;
 if ( cookies != null && cookies . size ( ) > NUMBER0 ) {

Fixed stupid mistake of not assigning result of a replaceAll


<nb> public abstract class Editor extends JFrame implements RunnerListener {
 if ( pos + prefixLen > length ) {
 commented = false ;
 } else {
 - SINGLE
 - String begin = textarea . getText ( pos , NUMBER0 ) ;
 - SINGLE
 + SINGLE
 + String begin = textarea . getText ( pos , prefixLen ) ;
 + System . out . println ( STRING0 + begin + STRING1 ) ;
 commented = begin . equals ( prefix ) ;
 }
 }

fixed uncommenting for prefixes other than java js in editor


<nb> public class EventDispatcher implements LifecycleEventListener {

 private Event [ ] mEventsToDispatch = new Event [ NUMBER0 ] ;
 private int mEventsToDispatchSize = NUMBER1 ;
 - private @ nullable RCTEventEmitter mRCTEventEmitter ;
 + private volatile @ nullable RCTEventEmitter mRCTEventEmitter ;
 private final ScheduleDispatchFrameCallback mCurrentFrameCallback ;
 private short mNextEventTypeId = NUMBER1 ;
 private volatile boolean mHasDispatchScheduled = false ;


<nb> public final class Settings {
 STRING0 ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String SETUP_PREPAID_DATA_SERVICE_URL =
 + STRING1 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 public static final String [ ] SETTINGS_TO_BACKUP = {

Add prepaid data services URL to Secure Settings


<nb> public class MethodAnalyzer {
 SINGLE
 if ( MethodUtil . isConstructor ( method ) ) {
 setPostRegisterTypeAndPropagateChanges ( startOfMethod , thisRegister ,
 - RegisterType . getRegisterType ( RegisterType . UNINIT ,
 + RegisterType . getRegisterType ( RegisterType . UNINIT_THIS ,
 classPath . getClass ( method . getDefiningClass ( ) ) ) ) ;
 } else {
 setPostRegisterTypeAndPropagateChanges ( startOfMethod , thisRegister ,

Use the correct register category for the uninitialized this reference


<nb> public class Account implements BaseAccount {
 }
 String oldHost = uri . getHost ( ) ;
 int oldPort = uri . getPort ( ) ;
 + if ( oldPort == - NUMBER0 ) {
 + SINGLE
 + return ;
 + }
 if ( ! newHost . equals ( oldHost ) || newPort != oldPort ) {
 LocalKeyStore localKeyStore = LocalKeyStore . getInstance ( context ) ;
 localKeyStore . deleteCertificate ( oldHost , oldPort ) ;
 <nb> public class LocalKeyStore {
 private static LocalKeyStore sInstance ;

 - public static LocalKeyStore getInstance ( Context context ) {
 + public synchronized static LocalKeyStore getInstance ( Context context ) {
 if ( sInstance == null ) {
 sInstance = new LocalKeyStore ( context ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class RendererBuilderTest {
 }

 @ test public void shouldAddDescendantPrototypesByConstructionAndConfigureBindingByClass ( ) {
 - RendererBuilder < Object > rendererBuilder = new RendererBuilder < Object > ( Arrays . asList ( new StringRenderer ( ) , new IntegerRenderer ( ) ) ) ;
 + RendererBuilder < Object > rendererBuilder =
 + new RendererBuilder < Object > ( Arrays . asList ( new StringRenderer ( ) , new IntegerRenderer ( ) ) ) ;

 rendererBuilder . bind ( String . class , StringRenderer . class ) ;
 rendererBuilder . bind ( Integer . class , IntegerRenderer . class ) ;


<nb> public class ArrayComparisonFailure extends AssertionError {

 private List < Integer > fIndices = new ArrayList < Integer > ( ) ;
 private final String fMessage ;
 - private final AssertionError fCause ;

 COMMENT
 COMMENT
 <nb> public class ArrayComparisonFailure extends AssertionError {
 COMMENT
 public ArrayComparisonFailure ( String message , AssertionError cause , int index ) {
 fMessage = message ;
 - fCause = cause ;
 + initCause ( cause ) ;
 addDimension ( index ) ;
 }

 <nb> public class ArrayComparisonFailure extends AssertionError {
 sb . append ( STRING0 ) ;
 }
 sb . append ( STRING1 ) ;
 - sb . append ( fCause . getMessage ( ) ) ;
 + sb . append ( getCause ( ) . getMessage ( ) ) ;
 return sb . toString ( ) ;
 }


<nb> public class IndicesClusterStateService extends AbstractLifecycleComponent < Indic
 SINGLE
 final DiscoveryNode sourceNode = nodes . get ( shardRouting . relocatingNodeId ( ) ) ;
 try {
 - SINGLE
 + SINGLE
 + SINGLE
 final StartRecoveryRequest request = new StartRecoveryRequest ( indexShard . shardId ( ) , sourceNode , nodes . localNode ( ) , false , indexShard . store ( ) . list ( ) ) ;
 recoveryTarget . startRecovery ( request , false , new PeerRecoveryListener ( request , shardRouting , indexService ) ) ;
 } catch ( Exception e ) {

add a comment on why we don t mark as relocated when relcoating primaries


<nb> public class BiomeDictionary
 if ( t . name ( ) . equals ( name ) )
 return t ;
 }
 - return EnumHelper . addEnum ( Type . class , name , new Class [ ] { Type [ ] . class } , new Object [ ] { subTypes } ) ;
 + Type ret = EnumHelper . addEnum ( Type . class , name , new Class [ ] { Type [ ] . class } , new Object [ ] { subTypes } ) ;
 + if ( ret . ordinal ( ) >= typeInfoList . length )
 + {
 + typeInfoList = Arrays . copyOf ( typeInfoList , ret . ordinal ( ) ) ;
 + }
 + return ret ;
 }
 }


<nb> public class Generator
 COMMENT
 public static final int OVERHEAD = NUMBER0 ;

 - private final WebSocketPolicy policy ;
 + @ suppresswarnings ( STRING0 )
 + private final WebSocketPolicy policy ; SINGLE
 private final ByteBufferPool bufferPool ;
 private boolean validating ;