<nb> public final class SNDefWizardIterator implements WizardDescriptor . Instantiating

 SINGLE
 FileObject tplSnd = Templates . getTemplate ( wizard ) ;
 - FileObject tplShd = tplSnd . getParent ( ) . getChildren ( ) [ NUMBER0 ] ;
 + FileObject tplShd = tplSnd . getParent ( ) . getChildren ( ) [ NUMBER1 ] ;

 DataObject templateSnd = DataObject . find ( tplSnd ) ;
 DataObject templateShd = DataObject . find ( tplShd ) ;

Fixed an issue where the shader cide template was not generated properly when creating a shader node definition


<nb> public class VirtualFilePropertyEvent extends VirtualFileEvent {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 @ notnull
 public String getPropertyName ( ) {


<nb> public abstract class NotificationListenerService extends Service {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public boolean matchesInterruptionFilter ( ) {
 return mMatchesInterruptionFilter ;

Add a returns clause to the matchesInterruptionFilter javadoc


<nb> abstract public class ReconConfig implements Jsonizable {
 mode = STRING0 + mode ;
 }

 + SINGLE
 List < Class < ? extends ReconConfig > > classes = s_opNameToClass . get ( mode ) ;
 if ( classes != null && classes . size ( ) > NUMBER0 ) {
 Class < ? extends ReconConfig > klass = classes . get ( classes . size ( ) - NUMBER1 ) ;


<nb> public class ClassLoaderLogManager extends LogManager {
 }
 }

 - SINGLE
 - SINGLE
 + SINGLE
 + SINGLE
 int dotIndex = loggerName . lastIndexOf ( STRING0 ) ;
 while ( dotIndex >= NUMBER0 ) {
 final String parentName = loggerName . substring ( NUMBER0 , dotIndex ) ;
 - if ( getProperty ( parentName + STRING1 ) != null ) {
 - Logger . getLogger ( parentName ) ;
 - break ;
 - }
 + Logger . getLogger ( parentName ) ;
 dotIndex = loggerName . lastIndexOf ( STRING0 , dotIndex - NUMBER1 ) ;
 }

When adding a logger its better to always add the parent loggers all the way up the chain


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 @ jsonsubtypes.type ( name = Query . TIMESERIES , value = TimeseriesQuery . class ) ,
 @ jsonsubtypes.type ( name = Query . SEARCH , value = SearchQuery . class ) ,
 @ jsonsubtypes.type ( name = Query . TIME_BOUNDARY , value = TimeBoundaryQuery . class ) ,
 - @ jsonsubtypes.type ( name = STRING0 , value = GroupByQuery . class )
 + @ jsonsubtypes.type ( name = STRING0 , value = GroupByQuery . class ) ,
 + @ jsonsubtypes.type ( name = STRING1 , value = SegmentMetadataQuery . class )
 } )
 public interface Query < T >
 {


<nb> public class CompilerUIConfigurable implements SearchableConfigurable , Configura
 controls . put ( Setting . RESOURCE_PATTERNS ,
 ContainerUtilRt . < JComponent > newArrayList ( myResourcePatternsLabel , myResourcePatternsField , myPatternLegendLabel ) ) ;
 controls . put ( Setting . CLEAR_OUTPUT_DIR_ON_REBUILD , Collections . < JComponent > singleton ( myCbClearOutputDirectory ) ) ;
 - controls . put ( Setting . ADD_NOT_NULL_ASSERTIONS , Collections . < JComponent > singleton ( myCbAutoShowFirstError ) ) ;
 + controls . put ( Setting . ADD_NOT_NULL_ASSERTIONS , Collections . < JComponent > singleton ( myCbAssertNotNull ) ) ;
 controls . put ( Setting . AUTO_SHOW_FIRST_ERROR_IN_EDITOR , Collections . < JComponent > singleton ( myCbAutoShowFirstError ) ) ;
 controls . put ( Setting . EXTERNAL_BUILD , ContainerUtilRt . < JComponent > newArrayList ( myCbUseExternalBuild ) ) ;
 controls . put ( Setting . AUTO_MAKE , ContainerUtilRt . < JComponent > newArrayList ( myCbEnableAutomake , myEnableAutomakeLegendLabel ) ) ;

Provide extension point for managing available settings


<nb> public class HiveMetadata
 hiveBucketHandle . getColumns ( ) . stream ( )
 . map ( HiveColumnHandle : : getHiveType )
 . collect ( Collectors . toList ( ) ) ) ;
 - List < String > partitionColumns = hivePartitionResult . getPartitionColumns ( ) . stream ( )
 + List < String > partitionColumns = hiveBucketHandle . getColumns ( ) . stream ( )
 . map ( HiveColumnHandle : : getName )
 . collect ( Collectors . toList ( ) ) ;
 return Optional . of ( new ConnectorNewTableLayout ( partitioningHandle , partitionColumns ) ) ;
 <nb> public class ClassLoaderSafeConnectorMetadata
 }

 @ override
 + public Optional < ConnectorNewTableLayout > getInsertLayout ( ConnectorSession session , ConnectorTableHandle tableHandle )
 + {
 + try ( ThreadContextClassLoader ignored = new ThreadContextClassLoader ( classLoader ) ) {
 + return delegate . getInsertLayout ( session , tableHandle ) ;
 + }
 + }
 +
 + @ override
 public List < String > listSchemaNames ( ConnectorSession session )
 {
 try ( ThreadContextClassLoader ignored = new ThreadContextClassLoader ( classLoader ) ) {

Fix bug where hive bucket execution is not honored


<nb> public class StandardEngine extends ContainerBase implements Engine {
 if ( defaultAccessLog == null ) {
 SINGLE
 Context context = ( Context ) host . findChild ( STRING0 ) ;
 - defaultAccessLog = context . getAccessLog ( ) ;
 + if ( context != null ) {
 + defaultAccessLog = context . getAccessLog ( ) ;
 + }

 if ( defaultAccessLog == null ) {
 defaultAccessLog = new NoopAccessLog ( ) ;


<nb> public class ColibriIQProvider
 }
 break ;
 }
 -
 - case XmlPullParser . TEXT :
 - {
 - SINGLE
 - break ;
 - }
 }
 }
 }
 <nb> public class ColibriIQProvider
 }
 break ;
 }
 -
 - case XmlPullParser . TEXT :
 - {
 - SINGLE
 - break ;
 - }
 }
 }
 }
 <nb> public class ColibriIQProvider
 }
 break ;
 }
 -
 - case XmlPullParser . TEXT :
 - {
 - SINGLE
 - break ;
 - }
 }
 }
 }

Removes unused case statements from ColibriIQ parsing code


<nb> public class Observable < T > {
 subscriber = new SafeSubscriber < T > ( subscriber ) ;
 }

 - SINGLE
 + SINGLE
 + SINGLE
 try {
 SINGLE
 hook . onSubscribeStart ( observable , observable . onSubscribe ) . call ( subscriber ) ;

Fix typo in a comment inside Observable subscribe


<nb> public class HighlyAvailableGraphDatabase extends InternalAbstractGraphDatabase
 {
 for ( MemberIsAvailable member : item . getCurrentAvailableMembers ( ) )
 {
 - if ( member . getRole ( ) . equals ( HighAvailabilityModeSwitcher . MASTER ) || member . getRole ( ) . equals ( HighAvailabilityModeSwitcher . SLAVE ) )
 + if ( member . getRoleUri ( ) . getScheme ( ) . equals ( STRING0 ) )
 {
 if ( HighAvailabilityModeSwitcher . getServerId ( member . getRoleUri ( ) ) ==
 - config . get ( HaSettings . server_id ) )
 + config . get ( HaSettings . server_id ) )
 {
 msgLog . error ( String . format ( STRING1 ,
 member . getRoleUri ( ) , config . get ( HaSettings . server_id ) ) ) ;

More appropriate check for URI when joining a cluster verifying uniqueness of server ids


<nb> public class MessagingController implements Runnable

 localFolder . open ( OpenMode . READ_WRITE ) ;

 - int localMessages = localFolder . getMessageCount ( ) ;
 - if ( localMessages > NUMBER0 )
 + if ( localFolder . getMessageCount ( ) > NUMBER0 )
 {
 return true ;
 }


<nb> public class ExpandWar {
 }

 SINGLE
 - docBase . mkdir ( ) ;
 + if ( ! docBase . mkdir ( ) && ! docBase . isDirectory ( ) )
 + throw new IOException ( sm . getString ( STRING0 , docBase ) ) ;

 SINGLE
 String canonicalDocBasePrefix = docBase . getCanonicalPath ( ) ;

Added check of return value for docBase mkdir


<nb> package NAMESPACE ;

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


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class GitFileAnnotation implements FileAnnotation {
 + private final static Logger LOG = Logger . getInstance ( STRING0 ) ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class GitFileAnnotation implements FileAnnotation {
 COMMENT
 private void fireAnnotationChanged ( ) {
 myListeners . getMulticaster ( ) . onAnnotationChanged ( ) ;
 + LOG . debug ( STRING1 , new Throwable ( ) ) ;
 }

 COMMENT


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

 import NAMESPACE ;
 <nb> public class NEDGraphBuilderImpl implements GraphBuilder {
 if ( ee . getElevationProfile ( ) != null ) {
 COMMENT
 }
 + Vertex fromv = ee . getFromVertex ( ) ;
 + if ( fromv instanceof StreetVertex ) {
 + StreetVertex sv = ( ( StreetVertex ) fromv ) ;
 + if ( ! sv . getPermission ( ) . allows ( StreetTraversalPermission . BICYCLE ) ) {
 + COMMENT
 + return ;
 + }
 + }
 Geometry g = ee . getGeometry ( ) ;
 Coordinate [ ] coords = g . getCoordinates ( ) ;

do not compute elevation for non bikeable trails


<nb> import NAMESPACE ;
 public class EntityBeanHomeRemoveByHandleInterceptorFactory implements InterceptorFactory {
 public static final EntityBeanHomeRemoveByHandleInterceptorFactory INSTANCE = new EntityBeanHomeRemoveByHandleInterceptorFactory ( ) ;

 - public Interceptor create ( InterceptorFactoryContext context ) {
 + public Interceptor create ( final InterceptorFactoryContext context ) {
 return new AbstractEJBInterceptor ( ) {
 - public Object processInvocation ( InterceptorContext interceptorContext ) throws Exception {
 - EJBHandle handle = null ;
 + public Object processInvocation ( final InterceptorContext interceptorContext ) throws Exception {
 + final EJBHandle handle = ( EJBHandle ) interceptorContext . getParameters ( ) [ NUMBER0 ] ;
 handle . getEJBObject ( ) . remove ( ) ;
 return null ;
 }


<nb> public class AggregationTest extends TestBase {
 getDs ( ) . save ( new User ( STRING0 , format . parse ( STRING1 ) , STRING2 , STRING3 ) ,
 new User ( STRING4 , format . parse ( STRING5 ) , STRING6 , STRING2 , STRING7 ) ) ;

 - AggregationOptions options = AggregationOptions . builder ( )
 - . outputMode ( AggregationOptions . OutputMode . CURSOR )
 - . build ( ) ;
 MorphiaIterator < User , User > aggregate = getDs ( ) . < User , User > createAggregation ( User . class )
 . project ( projection ( STRING8 ) . suppress ( ) , projection ( STRING9 ) , projection ( STRING10 ) ,
 projection ( STRING11 ) )
 . unwind ( STRING11 )
 - . aggregate ( User . class , options ) ;
 + . aggregate ( User . class ) ;
 int count = NUMBER0 ;
 while ( aggregate . hasNext ( ) ) {
 User user = aggregate . next ( ) ;


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class MessageHelper {
 ownerKey = collectionKey ;
 }
 else {
 - ownerKey = session . getPersistenceContext ( )
 - . getEntry ( collection . getOwner ( ) ) . getId ( ) ;
 + Object collectionOwner = collection == null ? null : collection . getOwner ( ) ;
 + EntityEntry entry = collectionOwner == null ? null : session . getPersistenceContext ( ) . getEntry ( collectionOwner ) ;
 + ownerKey = entry == null ? null : entry . getId ( ) ;
 }
 s . append ( ownerIdentifierType . toLoggableString (
 ownerKey , session . getFactory ( ) ) ) ;

Prevent NPE when running with log on trace level


<nb> public class BlockingOperatorToIterator {
 }

 private Notification < ? extends T > take ( ) {
 - return notifications . poll ( ) ;
 + try {
 + return notifications . take ( ) ;
 + } catch ( InterruptedException e ) {
 + throw Exceptions . propagate ( e ) ;
 + }
 }

 @ override


<nb> public class NotificationServiceImpl extends PersistedServiceImpl implements Not

 @ override
 public boolean fixed ( Notification notification ) {
 - return destroy ( notification ) > NUMBER0 ;
 + return fixed ( notification . getType ( ) , null ) ;
 }

 @ override

Fixing wrong usage of destroy method in fixed method


<nb> public class TimeSeriesResource

 String dimensionKey = ( timeSeriesUri . startsWith ( STRING0 ) ) ? ( STRING1 + entry . getKey ( ) . toString ( ) + STRING2 ) : ( STRING3 ) ;

 + String label = ( ratio . isInfinite ( ) ) ? ( String . format ( STRING4 , metricName , dimensionKey ) )
 + : ( String . format ( STRING5 , ratio , metricName , dimensionKey ) ) ;
 +
 flotSeries . add ( new FlotTimeSeries (
 metricName ,
 - String . format ( STRING5 , ratio , metricName , dimensionKey ) ,
 + label ,
 QueryUtils . convertDimensionKey ( starTree . getConfig ( ) . getDimensions ( ) , entry . getKey ( ) ) ,
 data ,
 adjustedStartMillis ,

Make representation of divide by zero metric values on the dashboard uniform


<nb> public class KnownElementWeigher extends ProximityWeigher {
 if ( element instanceof PsiClass ) {
 @ nonnls final String qname = ( ( PsiClass ) element ) . getQualifiedName ( ) ;
 if ( qname != null ) {
 + if ( qname . startsWith ( STRING0 ) ) return NUMBER0 ;
 + if ( qname . startsWith ( STRING1 ) ) return NUMBER1 ;
 if ( qname . startsWith ( STRING2 ) ) return NUMBER2 ;
 if ( qname . startsWith ( STRING3 ) ) return NUMBER3 ;
 if ( qname . startsWith ( STRING4 ) ) return - NUMBER3 ;


<nb> public final class Globals {

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public static final String MBEAN_REGISTRY_ATTR =
 - STRING0 ;
 -
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public static final String MBEAN_SERVER_ATTR =
 - STRING1 ;
 -
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class Globals {

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public static final String TOMCAT_CONNECTOR_ATTR_PREFIX =
 - STRING2 ;
 -
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class HttpRequest {
 COMMENT
 COMMENT
 void onProgress ( int transferred , int total ) ;
 +
 + ProgressCallback DEFAULT = new ProgressCallback ( ) {
 + public void onProgress ( int totalWritten , int total ) {
 + }
 + } ;
 }

 COMMENT
 <nb> public class HttpRequest {
 } . call ( ) ;
 }

 - private static final ProgressCallback NULL_PROGRESS_CALLBACK = new ProgressCallback ( ) {
 - public void onProgress ( int totalWritten , int total ) { }
 - } ;
 -
 - private ProgressCallback progress = NULL_PROGRESS_CALLBACK ;
 + private ProgressCallback progress = ProgressCallback . DEFAULT ;

 COMMENT
 COMMENT
 <nb> public class HttpRequest {
 COMMENT
 public HttpRequest progress ( final ProgressCallback callback ) {
 if ( callback == null )
 - progress = NULL_PROGRESS_CALLBACK ;
 + progress = ProgressCallback . DEFAULT ;
 else
 progress = callback ;
 return this ;

Move null progress callback into interface


<nb> public class TaskAdapter extends CursorAdapter implements Filterable {
 SINGLE
 addListeners ( view ) ;

 - SINGLE
 - bindView ( view , context , cursor ) ;
 -
 return view ;
 }


<nb> public class JsonObjectDecoder extends ByteToMessageDecoder {
 COMMENT
 COMMENT
 COMMENT
 + @ suppresswarnings ( STRING0 )
 protected ByteBuf extractObject ( ChannelHandlerContext ctx , ByteBuf buffer , int index , int length ) {
 return buffer . slice ( index , length ) . retain ( ) ;
 }

Fix an inspector warning in JsonObjectDecoder


<nb> public class Vec extends Iced {
 boolean _isInt = true ;

 @ override public void postGlobal ( ) {
 - System . out . println ( STRING0 ) ;
 final RollupStats rs = this ;
 _fr . vecs ( ) [ NUMBER0 ] . setRollupStats ( rs ) ;
 SINGLE

Just removed dbg print I left in by accident


<nb> public class InternalApis {
 public static RequestMatcher context ( final String context ) {
 return match ( uri ( context + STRING0 ) ) ;
 }
 +
 + private InternalApis ( ) { }
 }

added missing private constructor for internal api


<nb> public class Servlet30CometSupport extends AsynchronousProcessor {
 try {
 asyncContext . complete ( ) ;
 } catch ( IllegalStateException ex ) {
 - SINGLE
 - logger . trace ( STRING0 , ex ) ;
 + SINGLE
 + try {
 + logger . trace ( STRING0 , ex ) ;
 + } catch ( Exception ex2 ) { } ;
 }
 }
 }
 <nb> public class JavaScriptProtocol extends AtmosphereInterceptorAdapter {
 return this ;
 }

 + public boolean enforceAtmosphereVersion ( ) {
 + return enforceAtmosphereVersion ;
 + }
 +
 + public JavaScriptProtocol enforceAtmosphereVersion ( boolean enforceAtmosphereVersion ) {
 + this . enforceAtmosphereVersion = enforceAtmosphereVersion ;
 + return this ;
 + }
 +
 @ override
 public String toString ( ) {
 return STRING1 ;

Fix Jetty exception on close expose attribute


<nb>
 package NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - class ViewNameResolver {
 + public class ViewNameResolver {
 public String getViewNameFromLayoutTag ( String tagName ) {
 StringBuilder nameBuilder = new StringBuilder ( ) ;

Fix the compilation error in Validator plugin


<nb> public class SpringApplicationContextLoader extends AbstractContextLoader {
 throws Exception {
 assertValidAnnotations ( config . getTestClass ( ) ) ;
 SpringApplication application = getSpringApplication ( ) ;
 + application . setRegisterShutdownHook ( false ) ;
 application . setMainApplicationClass ( config . getTestClass ( ) ) ;
 application . setSources ( getSources ( config ) ) ;
 ConfigurableEnvironment environment = new StandardEnvironment ( ) ;

Set registerShutdownHook to false for tests


<nb> public abstract class TvInputService extends Service {
 public void onSetMain ( boolean isMain ) {
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public abstract boolean onSetSurface ( Surface surface ) ;

 COMMENT

Include documentation for a null surface in TvInputService Session onSetSurface


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class AccessTokenAuthenticator extends AuthenticatingRealm {
 if ( log . isDebugEnabled ( ) ) {
 log . debug ( STRING0 , user ) ;
 }
 + try {
 + accessToken . touch ( ) ;
 + } catch ( ValidationException e ) {
 + log . warn ( STRING1 , e ) ;
 + }
 return new SimpleAccount ( user . getName ( ) , null , STRING2 ) ;
 }
 }

update access token s last access date when authenticating with it


<nb> public class ORecordIteratorClusters < REC extends ORecordInternal < ? > > extends OId
 }

 protected void config ( ) {
 + if ( clusterIds . length == NUMBER0 )
 + return ;
 +
 currentClusterIdx = NUMBER0 ; SINGLE

 updateClusterRange ( ) ;
 <nb> public abstract class OStorageEmbedded extends OStorageAbstract {
 @ override
 public long [ ] getClusterPositionsForEntry ( int currentClusterId , long entry ) {
 if ( currentClusterId == - NUMBER1 )
 - throw new OStorageException ( STRING0 + currentClusterId + STRING1 + name + STRING2 ) ;
 + return new long [ ] { - NUMBER1 , - NUMBER1 } ;

 checkOpeness ( ) ;

 <nb> public class OStorageLocal extends OStorageEmbedded {

 public long [ ] getClusterDataRange ( final int iClusterId ) {
 if ( iClusterId == - NUMBER1 )
 - throw new OStorageException ( STRING0 + iClusterId + STRING1 + name + STRING3 ) ;
 + return new long [ ] { - NUMBER1 , - NUMBER1 } ;

 checkOpeness ( ) ;


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

 import NAMESPACE ;


<nb> public class GrailsCoreDependencies {

 public final String grailsVersion ;
 public final String servletVersion ;
 - protected final String groovyVersion = STRING0 ;
 - protected final String springVersion = STRING1 ;
 + protected final String groovyVersion = STRING2 ;
 + protected final String springVersion = STRING3 ;
 protected final String log4jVersion = STRING4 ;
 protected final String h2Version = STRING5 ;
 protected final String jaxbVersion = STRING6 ;

update groovyVersion and springVersion in master branch


<nb> class ServerTrustManager implements X509TrustManager {
 {

 RemoteImService . debug ( msg ) ;
 - showToolbarNotification ( msg , DEFAULT_NOTIFY_ID , R . drawable . ic_menu_key , - NUMBER0 ) ;
 -
 +
 + try
 + {
 + showToolbarNotification ( msg , DEFAULT_NOTIFY_ID , R . drawable . ic_menu_key , - NUMBER0 ) ;
 + }
 + catch ( Exception e )
 + {
 + RemoteImService . debug ( STRING0 , e ) ;
 + }
 }

 - private void showToolbarNotification ( String notifyMsg , int notifyId , int icon , int flags )
 - {
 + private void showToolbarNotification ( String notifyMsg , int notifyId , int icon , int flags ) throws Exception
 + {

 NotificationManager mNotificationManager = ( NotificationManager ) context . getSystemService ( Context . NOTIFICATION_SERVICE ) ;


<nb> public abstract class HierarchicalRolesTestHelper {
 public String getAuthority ( ) {
 return role ;
 }
 -
 - public int compareTo ( GrantedAuthority ga ) {
 - if ( ga != null ) {
 - String rhsRole = ga . getAuthority ( ) ;
 -
 - if ( rhsRole == null ) {
 - return - NUMBER0 ;
 - }
 -
 - return role . compareTo ( rhsRole ) ;
 - }
 - return - NUMBER0 ;
 - }
 } ) ;
 }

Removed unused compareTo method from custom GrantedAuthority


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - @ contextconfiguration ( loader = SpringBootContextLoader . class )
 + @ contextconfiguration ( loader = SpringApplicationContextLoader . class )
 @ documented
 @ inherited
 @ retention ( RetentionPolicy . RUNTIME )

Make SpringApplicationConfiguration use SpringApplicationContextLoader


<nb> import NAMESPACE ;

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

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

 + @ ignore ( STRING0 +
 + STRING1 )
 public class BigJumpingStoreIT
 {
 private static class TestDatabase extends InternalAbstractGraphDatabase

Ignore the BigJumpingStoreIT test because the hacks it relied upon no longer work with the new page cache


<nb> public final class LWJGLHelper {
 }

 private static void initOculus ( ) {
 - switch ( LWJGLUtil . getPlatform ( ) ) {
 - case LWJGLUtil . PLATFORM_WINDOWS :
 - OculusVrHelper . loadNatives ( ) ;
 - break ;
 + if ( LWJGLUtil . getPlatform ( ) == LWJGLUtil . PLATFORM_WINDOWS ) {
 + OculusVrHelper . loadNatives ( ) ;
 }
 }
 }

Replace switch with only one case with if statement


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

Player setPlayerListName no longer ignores colour length in size limit


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 public class Metrics {
 private static final MetricRegistry metrics = new MetricRegistry ( ) ;
 + private static final JmxReporter reporter ;
 +
 + static {
 + reporter = JmxReporter . forRegistry ( metrics ) . build ( ) ;
 + reporter . start ( ) ;
 + }

 public static < T extends Metric > T register ( String name , T metric ) throws IllegalArgumentException {
 return metrics . register ( name , metric ) ;


<nb> public final class CopyFromLocalCommand extends AbstractShellCommand {
 closer . close ( ) ;
 }
 } else {
 - mFileSystem . createDirectory ( dstPath ) ;
 + try {
 + mFileSystem . createDirectory ( dstPath ) ;
 + } catch ( FileAlreadyExistsException e ) {
 + SINGLE
 + } catch ( AlluxioException e ) {
 + throw new IOException ( e . getMessage ( ) ) ;
 + }
 List < String > errorMessages = Lists . newArrayList ( ) ;
 String [ ] fileList = src . list ( ) ;
 for ( String file : fileList ) {


<nb> public class Memtable
 {
 return new Iterator < Map . Entry < DecoratedKey , AtomicSortedColumns > > ( )
 {
 - private Iterator < Map . Entry < RowPosition , AtomicSortedColumns > > iter = stopAt . isMinimum ( )
 - ? rows . tailMap ( startWith ) . entrySet ( ) . iterator ( )
 - : rows . subMap ( startWith , true , stopAt , true ) . entrySet ( ) . iterator ( ) ;
 + private Iterator < Map . Entry < RowPosition , AtomicSortedColumns > > iter = stopAt . isMinimum ( cfs . partitioner )
 + ? rows . tailMap ( startWith ) . entrySet ( ) . iterator ( )
 + : rows . subMap ( startWith , true , stopAt , true ) . entrySet ( ) . iterator ( ) ;

 public boolean hasNext ( )
 {

Make Memtable getEntyIterator respect the cfs iterator


<nb> public class IOSGraphics extends iPhoneOSGameView implements Graphics {
 }

 @ override
 - public void setIcon ( Pixmap [ ] pixmaps ) {
 - }
 -
 - @ override
 public void setVSync ( boolean vsync ) {
 }

fixed iOSGraphics setIcon method removed from interface


<nb> public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback
 Log . w ( STRING0 , STRING1 ) ;
 }
 if ( ! mEglHelper . createSurface ( ) ) {
 - mSurfaceIsBad = true ;
 + synchronized ( sGLThreadManager ) {
 + mSurfaceIsBad = true ;
 + sGLThreadManager . notifyAll ( ) ;
 + }
 continue ;
 }
 createEglSurface = false ;
 <nb> public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback
 SINGLE
 SINGLE
 EglHelper . logEglErrorAsWarning ( STRING0 , STRING2 , swapError ) ;
 - mSurfaceIsBad = true ;
 +
 + synchronized ( sGLThreadManager ) {
 + mSurfaceIsBad = true ;
 + sGLThreadManager . notifyAll ( ) ;
 + }
 break ;
 }

Notify monitor waiters when changing mSurfaceIsBad value


<nb> public class OtpsRoutingRequest {
 cal . set ( Calendar . MINUTE , min ) ;
 cal . set ( Calendar . SECOND , sec ) ;
 cal . set ( Calendar . MILLISECOND , NUMBER0 ) ;
 - System . out . println ( STRING0 + cal . getTime ( ) ) ;
 req . setDateTime ( cal . getTime ( ) ) ;
 }


<nb> public interface GrailsDomainClassProperty {
 boolean isPersistent ( ) ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 boolean isOptional ( ) ;


<nb> public abstract class BaseKeyListener extends MetaKeyKeyListener
 SINGLE
 final int start = Selection . getSelectionEnd ( content ) ;
 final int end ;
 - if ( isForwardDelete || event . isShiftPressed ( ) || isShiftActive ) {
 + if ( isForwardDelete ) {
 end = TextUtils . getOffsetAfter ( content , start ) ;
 } else {
 end = TextUtils . getOffsetBefore ( content , start ) ;

Stop Shift Backspace from foward deleting


<nb> public final class ByteArraySlice
 }

 Slice slice = ( Slice ) o ;
 - if ( length == slice . length ( ) ) {
 - return true ;
 + if ( length != slice . length ( ) ) {
 + return false ;
 }

 return toByteBuffer ( ) . equals ( slice . toByteBuffer ( ) ) ;


<nb> public class ChatView extends LinearLayout {
 }
 try {
 if ( getChatSession ( ) != null ) {
 - getChatSession ( ) . setDataListener ( null ) ;
 + SINGLE
 getChatSession ( ) . unregisterChatListener ( mChatListener ) ;
 }
 IImConnection conn = mApp . getConnection ( mProviderId ) ;

don t set datalistener null when the chatview stops listening


<nb> public interface AsyncContext {
 < T extends AsyncListener > T createListener ( Class < T > clazz )
 throws ServletException ;

 + COMMENT
 + COMMENT
 + COMMENT
 long getTimeout ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 void setTimeout ( long timeout ) ;
 }


<nb> final class HttpServlet3RequestFactory implements HttpServletRequestFactory {

 public AsyncContext getAsyncContext ( ) {
 AsyncContext asyncContext = super . getAsyncContext ( ) ;
 + if ( asyncContext == null ) {
 + return null ;
 + }
 return new SecurityContextAsyncContext ( asyncContext ) ;
 }

 <nb> public class SecurityContextHolderAwareRequestFilterTests {
 this . logoutHandler ) ;
 }

 + SINGLE
 + @ test
 + public void getAsyncContextNullFromSuper ( ) throws Exception {
 + assertThat ( wrappedRequest ( ) . getAsyncContext ( ) ) . isNull ( ) ;
 + }
 +
 @ test
 public void getAsyncContextStart ( ) throws Exception {
 ArgumentCaptor < Runnable > runnableCaptor = ArgumentCaptor . forClass ( Runnable . class ) ;

Perform null check on super getAsyncContext


<nb> public interface AnimatedImageDecoder {
 COMMENT
 COMMENT
 COMMENT
 - public AnimatedImage decode ( long nativePtr , int sizeInBytes ) ;
 -
 + AnimatedImage decode ( long nativePtr , int sizeInBytes ) ;
 }


<nb> public class SSTableReader extends SSTable
 COMMENT
 public long estimatedKeys ( )
 {
 - return indexSummary . size ( ) * DatabaseDescriptor . getIndexInterval ( ) ;
 + return ( ( long ) indexSummary . size ( ) ) * DatabaseDescriptor . getIndexInterval ( ) ;
 }

 COMMENT


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class MoveFloatToStringTransform implements Transform {
 private String fieldName1 ;


<nb> public class PhoneNumberUtils
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class PhoneNumberUtils
 if ( length > STRING0 . length ( ) ) {
 SINGLE
 return ;
 + } else if ( length <= NUMBER0 ) {
 + SINGLE
 + return ;
 }
 +
 CharSequence saved = text . subSequence ( NUMBER1 , length ) ;

 SINGLE
 <nb> public class PhoneNumberUtilsTest extends TestCase {
 number . append ( STRING1 ) ;
 PhoneNumberUtils . formatNanpNumber ( number ) ;
 assertEquals ( STRING2 , number . toString ( ) ) ;
 +
 + number . clear ( ) ;
 + number . append ( STRING3 ) ;
 + PhoneNumberUtils . formatNanpNumber ( number ) ;
 + assertEquals ( STRING3 , number . toString ( ) ) ;
 }

 @ smalltest

Stop the NANP number formatter from putting dashes in shortcodes


<nb> public class XMPPTCPConnection extends AbstractXMPPConnection {
 LOGGER . fine ( STRING0 ) ;
 }

 - bindResourceAndEstablishSession ( resource ) ;
 -
 List < Stanza > previouslyUnackedStanzas = new LinkedList < Stanza > ( ) ;
 if ( unacknowledgedStanzas != null ) {
 SINGLE
 <nb> public class XMPPTCPConnection extends AbstractXMPPConnection {
 SINGLE
 dropSmState ( ) ;
 }
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + bindResourceAndEstablishSession ( resource ) ;
 +
 if ( isSmAvailable ( ) && useSm ) {
 SINGLE
 serverHandledStanzasCount = NUMBER0 ;

Drop SM state before binding the resource


<nb> public class RunManagerConfig {

 public int getRecentsLimit ( ) {
 try {
 - return Integer . valueOf ( myPropertiesComponent . getOrInit ( RECENTS_LIMIT , STRING0 ) ) . intValue ( ) ;
 + return Math . max ( NUMBER0 , Integer . valueOf ( myPropertiesComponent . getOrInit ( RECENTS_LIMIT , STRING0 ) ) . intValue ( ) ) ;
 }
 catch ( NumberFormatException e ) {
 return NUMBER1 ;
 <nb> class RunConfigurable extends BaseConfigurable {
 applyByType ( configurationType ) ;
 }

 - String recentsLimit = myRecentsLimit . getText ( ) ;
 try {
 - int i = Integer . parseInt ( recentsLimit ) ;
 + int i = Math . max ( NUMBER0 , Integer . parseInt ( myRecentsLimit . getText ( ) ) ) ;
 int oldLimit = manager . getConfig ( ) . getRecentsLimit ( ) ;
 if ( oldLimit != i ) {
 manager . getConfig ( ) . setRecentsLimit ( i ) ;

negative value for Temporary Configuration Limit causes AIOOBE at RunManagerImpl checkRecentsLimit


<nb> public class IndicesClusterStateService extends AbstractLifecycleComponent < Indic
 }

 private boolean aliasesChanged ( ClusterChangedEvent event ) {
 - return ! event . state ( ) . metaData ( ) . aliases ( ) . equals ( event . previousState ( ) . metaData ( ) . aliases ( ) ) ;
 + return ! event . state ( ) . metaData ( ) . aliases ( ) . equals ( event . previousState ( ) . metaData ( ) . aliases ( ) ) ||
 + ! event . state ( ) . routingTable ( ) . equals ( event . previousState ( ) . routingTable ( ) ) ;
 }

 private void applyAliases ( ClusterChangedEvent event ) {

Aliases should be processed when index routing changes


<nb> public class CodeItem extends Item < CodeItem > {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + public int getInWords ( ) {
 + return inWords ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public int getOutWords ( ) {
 + return outWords ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add getters for inWords and outWords in CodeItem


<nb> public class RestSwaggerSupport {

 List < RestDefinition > rests = getRestDefinitions ( contextId ) ;
 if ( rests != null ) {
 + response . addHeader ( Exchange . CONTENT_TYPE , STRING0 ) ;
 +
 SINGLE
 Swagger swagger = reader . read ( rests , route , swaggerConfig , contextId , classResolver ) ;

swagger java should use json as content type header in response


<nb> public interface IvyArtifactRepository extends ArtifactRepository , Authenticatio
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add a link to available Ivy pattern tokens


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class XSuspendContext {
 return null ;
 }

 + @ notnull
 public XExecutionStack [ ] getExecutionStacks ( ) {
 XExecutionStack executionStack = getActiveExecutionStack ( ) ;
 return executionStack != null ? new XExecutionStack [ ] { executionStack } : XExecutionStack . EMPTY_ARRAY ;
 <nb> public class XsltDebugProcess extends XDebugProcess implements Disposable {
 return new XsltExecutionStack ( STRING0 , mySourceFrame , myDebuggerSession ) ;
 }

 + @ notnull
 @ override
 public XExecutionStack [ ] getExecutionStacks ( ) {
 return new XExecutionStack [ ] {
 <nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class PySuspendContext extends XSuspendContext {
 return myActiveStack ;
 }

 + @ notnull
 @ override
 public XExecutionStack [ ] getExecutionStacks ( ) {
 final Collection < PyThreadInfo > threads = myDebugProcess . getThreads ( ) ;


<nb> class GitRepositoryReader {
 COMMENT
 private Map < String , File > readLocalBranches ( ) {
 final Map < String , File > branches = new HashMap < String , File > ( ) ;
 + if ( ! myRefsHeadsDir . exists ( ) ) {
 + return branches ;
 + }
 FileUtil . processFilesRecursively ( myRefsHeadsDir , new Processor < File > ( ) {
 @ override
 public boolean process ( File file ) {
 <nb> class GitRepositoryReader {
 COMMENT
 private Set < GitBranch > readUnpackedRemoteBranches ( ) {
 final Set < GitBranch > branches = new HashSet < GitBranch > ( ) ;
 + if ( ! myRefsRemotesDir . exists ( ) ) {
 + return branches ;
 + }
 FileUtil . processFilesRecursively ( myRefsRemotesDir , new Processor < File > ( ) {
 @ override
 public boolean process ( File file ) {

don t process non existent refs heads and refs remotes dir


<nb> public abstract class AbstractSubsystemTest {
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected void ignoreThisTestIfEAPRepositoryIsNotReachable ( ) {
 Assume . assumeTrue ( EAPRepositoryReachableUtil . isReachable ( ) ) ;


<nb> public class DefaultContext implements Context {

 @ override
 public ServerConfig getServerConfig ( ) {
 - SINGLE
 - SINGLE
 return get ( ServerConfig . class ) ;
 }


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ExcelImporter implements Importer {
 if ( cellType == org . apache . poi . ss . usermodel . Cell . CELL_TYPE_BOOLEAN ) {
 value = cell . getBooleanCellValue ( ) ;
 } else if ( cellType == org . apache . poi . ss . usermodel . Cell . CELL_TYPE_NUMERIC ) {
 - value = cell . getNumericCellValue ( ) ;
 + double d = cell . getNumericCellValue ( ) ;
 +
 + if ( HSSFDateUtil . isCellDateFormatted ( cell ) ) {
 + value = HSSFDateUtil . getJavaDate ( d ) ;
 + } else {
 + value = d ;
 + }
 } else {
 String text = cell . getStringCellValue ( ) . trim ( ) ;
 if ( text . length ( ) > NUMBER0 ) {

Retrieve dates correctly from Excel files


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class IdsQueryBuilder extends BaseQueryBuilder implements Streamable , Boo

 private String queryName ;

 + public IdsQueryBuilder ( ) {
 + SINGLE
 + }
 +
 public IdsQueryBuilder ( String . . . types ) {
 this . types = ( types == null || types . length == NUMBER0 ) ? new ArrayList < String > ( ) : Arrays . asList ( types ) ;
 }
 <nb> public class TermQueryBuilder extends BaseQueryBuilder implements Streamable , Bo
 }
 }

 - TermQueryBuilder ( ) {
 + public TermQueryBuilder ( ) {
 SINGLE
 }

Make default constructors needed for serialization public


<nb> public class ShortcutManager implements NativePreviewHandler ,

 SINGLE
 private UserCommandManager userCommands_ ;
 - @ suppresswarnings ( STRING0 ) private EditorCommandManager editorCommands_ ;
 - @ suppresswarnings ( STRING0 ) private ApplicationCommandManager appCommands_ ;
 + private EditorCommandManager editorCommands_ ;
 + private ApplicationCommandManager appCommands_ ;
 private EventBus events_ ;

 }


<nb> public class ExceptionMeteredMethodInterceptor implements MethodInterceptor , Met
 meter . mark ( ) ;
 }
 }
 - ReflectionUtils . rethrowException ( t ) ;
 - return null ;
 + throw t ;
 }
 }

rethrowException wraps Throwable s in UndeclaredThrowableException


<nb> public class VoldemortBuildAndPushJob extends AbstractJob {
 }
 try {
 adminClientPerCluster . get ( url ) . storeMgmtOps . addStore ( newStoreDef , nodeIDs ) ;
 -
 - SINGLE
 - SINGLE
 - if ( ! nodeIDs . isEmpty ( ) ) {
 - SINGLE
 - SINGLE
 - Long quotaValue = NUMBER0 L ;
 - log . info ( STRING0 + storeName
 - + STRING1 ) ;
 - adminClientPerCluster . get ( url ) . quotaMgmtOps . setQuota ( storeName ,
 - QuotaType . STORAGE_SPACE . toString ( ) ,
 - quotaValue . toString ( ) ) ;
 - }
 }
 catch ( VoldemortException ve ) {
 - throw new RuntimeException ( STRING2 + url , ve ) ;
 + throw new RuntimeException ( STRING3 + url , ve ) ;
 }
 }


<nb> import NAMESPACE ;
 COMMENT
 public class HttpSessionContextIntegrationFilter extends SecurityContextPersistenceFilter implements InitializingBean {
 SINGLE
 -
 - SINGLE
 - SINGLE
 - public static final String SPRING_SECURITY_CONTEXT_KEY = STRING0 ;
 + public static final String SPRING_SECURITY_CONTEXT_KEY = HttpSessionSecurityContextRepository . SPRING_SECURITY_CONTEXT_KEY ;

 SINGLE

Made sure old security context session key points to new one so they always match


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public interface HeaderProvider {

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public View getHeader ( RecyclerView recyclerView , int position ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 void invalidate ( ) ;
 }
 <nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class HeaderViewCache implements HeaderProvider {

Added missing description for HeaderProvider Interface


<nb> public class ExporterGEXF implements GraphExporter , CharacterExporter , LongTask
 private static final String VIZ_NAMESPACE = STRING0 ;
 private static final String GEXF_VERSION = STRING1 ;
 private static final String GRAPH = STRING2 ;
 - private static final String GRAPH_MODE = STRING3 ;
 + private static final String GRAPH_MODE = STRING4 ;
 private static final String GRAPH_DEFAULT_EDGETYPE = STRING5 ;
 private static final String GRAPH_START = STRING6 ;
 private static final String GRAPH_END = STRING7 ;


<nb> public class NewChatActivity extends FragmentActivity implements View . OnCreateCo
 this , mDrawer , mToolbar ,
 R . string . ok , R . string . cancel
 ) ;
 +
 SINGLE
 mDrawer . setDrawerListener ( mDrawerToggle ) ;
 mDrawerToggle . setDrawerIndicatorEnabled ( true ) ;
 <nb> public class NewChatActivity extends FragmentActivity implements View . OnCreateCo
 public void setTitle ( CharSequence title ) {

 mToolbar . setTitle ( title ) ;
 - SINGLE
 + SINGLE
 }

 public void setTitle ( CharSequence title , Drawable icon ) {

 mToolbar . setTitle ( title ) ;
 SINGLE
 +
 }

don t use an avatar in the action title bar


<nb> public class ApplicationImpl extends ComponentManagerImpl implements Application

 loadApplicationComponents ( ) ;

 - if ( ! isHeadless ) {
 + if ( myTestModeFlag ) {
 registerShutdownHook ( ) ;
 }

IDEA prevents system shutdown r max mike


<nb> import NAMESPACE ;
 import NAMESPACE ;

 final class DeepLinkEntry {
 - private static final String PARAM_VALUE = STRING0 ;
 + private static final String PARAM_VALUE = STRING1 ;
 private static final String PARAM = STRING2 ;
 private static final String PARAM_REGEX = STRING3 + PARAM + STRING4 ;

 <nb> public class DeepLinkEntryTest {
 assertThat ( parameters . get ( STRING5 ) ) . isEqualTo ( STRING6 ) ;
 }

 + @ test public void testParamForColon ( ) {
 + DeepLinkEntry entry = deepLinkEntry ( STRING7 ) ;
 +
 + Map < String , String > parameters = entry . getParameters ( STRING8 ) ;
 + assertThat ( parameters . get ( STRING5 ) ) . isEqualTo ( STRING9 ) ;
 + }
 +
 @ test public void testParamWithSlash ( ) {
 DeepLinkEntry entry = deepLinkEntry ( STRING7 ) ;


<nb> public class JobExecutionEvent implements JobEvent {
 COMMENT
 public void executionFailure ( final Throwable failureCause ) {
 completeTime = new Date ( ) ;
 + success = false ;
 this . failureCause = failureCause ;
 }

Fixed job execution event failure not recorded issue


<nb> public class DTree extends Iced {

 boolean featureAllowed = isFeatureAllowed ( ) ;
 if ( ! featureAllowed ) {
 - sb . append ( STRING0 ;
 + sb . append ( STRING0
 sb . append ( STRING1 ) ;
 sb . append ( STRING2 ) ;
 sb . append ( STRING3 ) ;


<nb> public final class CheckNullableReturn implements HotSwapCompilerPass , NodeTrave
 final AbstractCompiler compiler ;

 public static final DiagnosticType NULLABLE_RETURN =
 - DiagnosticType . disabled (
 + DiagnosticType . warning (
 STRING0 ,
 STRING1
 + STRING2 ) ;

 public static final DiagnosticType NULLABLE_RETURN_WITH_NAME =
 - DiagnosticType . disabled (
 + DiagnosticType . warning (
 STRING3 ,
 STRING4
 + STRING5
 <nb> import NAMESPACE ;
 COMMENT
 public final class CheckPrototypeProperties implements HotSwapCompilerPass , NodeTraversal . Callback {
 public static final DiagnosticType ILLEGAL_PROTOTYPE_MEMBER =
 - DiagnosticType . disabled (
 + DiagnosticType . warning (
 STRING6 ,
 STRING7 ) ;

Make lint diagnostics in the lint package warnings


<nb> public class DistributedExecutorService implements ManagedService , RemoteService
 public void destroyDistributedObject ( String name ) {
 shutdownExecutors . remove ( name ) ;
 executionService . shutdownExecutor ( name ) ;
 + statsMap . remove ( name ) ;
 }

 LocalExecutorStatsImpl getLocalExecutorStats ( String name ) {

Fixes persisting nonexistent executorServiceStats


<nb> public class ColumnChartView extends AbstractChartView {
 mChartCalculator . calculateViewport ( ) ;
 mChartCalculator . calculateContentArea ( getWidth ( ) , getHeight ( ) , getPaddingLeft ( ) , getPaddingTop ( ) ,
 getPaddingRight ( ) , getPaddingBottom ( ) ) ;
 - mChartCalculator . setAxesMargin ( mAxesRenderer . getAxisXHeight ( NUMBER0 ) , mAxesRenderer . getAxisYWidth ( NUMBER0 ) ) ;
 + mChartCalculator . setAxesMargin ( mAxesRenderer . getAxisXHeight ( ) , mAxesRenderer . getAxisYWidth ( ) ) ;
 }

 SINGLE
 <nb> public class ColumnChartView extends AbstractChartView {
 mChartCalculator . calculateViewport ( ) ;
 mChartCalculator . calculateContentArea ( getWidth ( ) , getHeight ( ) , getPaddingLeft ( ) , getPaddingTop ( ) ,
 getPaddingRight ( ) , getPaddingBottom ( ) ) ;
 - mChartCalculator . setAxesMargin ( mAxesRenderer . getAxisXHeight ( NUMBER0 ) , mAxesRenderer . getAxisYWidth ( NUMBER0 ) ) ;
 + mAxesRenderer . initRenderer ( ) ;
 + mChartCalculator . setAxesMargin ( mAxesRenderer . getAxisXHeight ( ) , mAxesRenderer . getAxisYWidth ( ) ) ;
 ViewCompat . postInvalidateOnAnimation ( ColumnChartView . this ) ;
 }

Fixed compilation errors for ColumnChartView


<nb> public class MvcEndpointCorsIntegrationTests {
 public void maxAgeDefaultsTo30Minutes ( ) throws Exception {
 EnvironmentTestUtils . addEnvironment ( this . context ,
 STRING0 ) ;
 - createMockMvc ( ) . perform (
 - options ( STRING1 ) . header ( STRING2 , STRING3 ) . header (
 - HttpHeaders . ACCESS_CONTROL_REQUEST_METHOD , STRING4 ) ) . andExpect (
 - status ( ) . isForbidden ( ) ) ;
 performAcceptedCorsRequest ( ) . andExpect (
 header ( ) . string ( HttpHeaders . ACCESS_CONTROL_MAX_AGE , STRING5 ) ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ReaderPostListFragment extends Fragment
 mSearchView . setIconifiedByDefault ( true ) ;
 mSearchView . setIconified ( true ) ;

 + SINGLE
 + SINGLE
 + int maxWidth = DisplayUtils . getDisplayPixelWidth ( getActivity ( ) ) ;
 + mSearchView . setMaxWidth ( maxWidth ) ;
 +
 SINGLE
 SINGLE
 View view = mSearchView . findViewById ( android . support . v7 . appcompat . R . id . search_src_text ) ;

Force the searchView to take up the full width


<nb> public class WizardController implements ActionListener
 }
 catch ( Exception ex )
 {
 + wizard . stopCommittingPage ( ) ;
 +
 SINGLE
 SINGLE
 SINGLE
 <nb> public class AccountRegSummaryPage
 GuiActivator . getResources ( )
 . getI18NString ( STRING0 ) ) ;
 }
 + else
 + throw new RuntimeException ( e . getMessage ( ) , e ) ;
 }
 }

Pass the error if any to advance wizard so we will show an error and don t ignore it


<nb> public final class TreeWalker
 mCache = new PropertyCacheFile ( configuration , aFileName ) ;
 }

 - SINGLE
 COMMENT
 public void setClassLoader ( ClassLoader aClassLoader )
 {
 <nb> public final class TreeWalker
 walk ( rootAST , contents ) ;
 }
 catch ( FileNotFoundException fnfe ) {
 - SINGLE
 - SINGLE
 mMessages . add ( new LocalizedMessage ( NUMBER0 , Defn . CHECKSTYLE_BUNDLE ,
 STRING0 , null ) ) ;
 }
 <nb> public final class TreeWalker
 if ( Arrays . binarySearch ( acceptableTokens , tokenId ) >= NUMBER0 ) {
 registerCheck ( token , aCheck ) ;
 }
 - SINGLE
 + SINGLE
 }
 catch ( IllegalArgumentException ex ) {
 throw new CheckstyleException ( STRING1

removed todo items that have already been resolved


<nb> public class DynamicHelper {
 applyOrientation ( view , dynProp ) ;
 }
 break ;
 + case SUM_WEIGHT : {
 + applyWeightSum ( view , dynProp ) ;
 + }
 + break ;
 case GRAVITY : {
 applyGravity ( view , dynProp ) ;
 }
 <nb> public class DynamicHelper {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + public static void applyWeightSum ( View view , DynamicProperty property ) {
 + if ( ( view instanceof LinearLayout ) && ( property . type == DynamicProperty . TYPE . FLOAT ) ) {
 + ( ( LinearLayout ) view ) . setWeightSum ( property . getValueFloat ( ) ) ;
 + }
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 public static void applyTag ( View view , DynamicProperty property ) {
 <nb> public class DynamicProperty {
 LAYOUT_TOSTARTOF ,
 LAYOUT_GRAVITY ,
 LAYOUT_WEIGHT ,
 + SUM_WEIGHT ,
 ORIENTATION ,

 TAG ,


<nb> public class MainActivity extends AppCompatActivity {
 COMMENT
 COMMENT
 COMMENT
 + SINGLE
 private FirebaseAnalytics mFirebaseAnalytics ;
 + SINGLE

 COMMENT
 COMMENT


<nb> public class SpillingResettableIteratorTest {
 while ( iterator . hasNext ( ) )
 Assert . assertEquals ( STRING0 + count + STRING1 , count ++ ,
 iterator . next ( ) . getValue ( ) ) ;
 - Assert . assertEquals ( STRING2 , NUMBER0 , count ) ;
 + Assert . assertEquals ( STRING2 , NUMTESTRECORDS , count ) ;
 SINGLE
 for ( int j = NUMBER1 ; j < NUMBER2 ; ++ j ) {
 count = NUMBER1 ;
 <nb> public class SpillingResettableIteratorTest {
 while ( iterator . hasNext ( ) )
 Assert . assertEquals ( STRING3 + j + NUMBER3 + STRING4 + count
 + STRING1 , count ++ , iterator . next ( ) . getValue ( ) ) ;
 - Assert . assertEquals ( STRING5 + j + NUMBER3 + STRING6 , NUMBER0 , count ) ;
 + Assert . assertEquals ( STRING5 + j + NUMBER3 + STRING6 , NUMTESTRECORDS , count ) ;
 }
 SINGLE
 iterator . close ( ) ;

replaced constant value by already defined final static field in SpillingResettableIteratorTest


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> class CompositeActiveComponent implements ActiveComponent {
 public CompositeActiveComponent ( @ notnull ActiveComponent . . . components ) {
 myComponents = components ;

 - myComponent = new JPanel ( new FlowLayout ( FlowLayout . CENTER , JBUI . scale ( NUMBER0 ) , JBUI . scale ( NUMBER1 ) ) ) ;
 + myComponent = new JPanel ( new FlowLayout ( FlowLayout . CENTER , JBUI . scale ( NUMBER0 ) , JBUI . scale ( NUMBER0 ) ) ) ;
 myComponent . setBorder ( null ) ;
 myComponent . setOpaque ( false ) ;
 for ( ActiveComponent component : components ) {
 <nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class CaptionPanel extends JPanel {

 public CaptionPanel ( ) {
 setLayout ( new BorderLayout ( ) ) ;
 - setBorder ( new EmptyBorder ( NUMBER2 , NUMBER1 , NUMBER2 , NUMBER1 ) ) ;
 }

 @ override

minimize borders in show usages popup title panel


<nb> public class VcsLogRefresherImpl implements VcsLogRefresher {

 @ notnull private volatile DataPack myDataPack = DataPack . EMPTY ;

 - public VcsLogRefresherImpl ( @ notnull final Project project ,
 + public VcsLogRefresherImpl ( @ notnull Project project ,
 @ notnull VcsLogHashMap hashMap ,
 @ notnull Map < VirtualFile , VcsLogProvider > providers ,
 - @ notnull final VcsUserRegistryImpl userRegistry ,
 + @ notnull VcsUserRegistryImpl userRegistry ,
 @ notnull Map < Integer , VcsCommitMetadata > topCommitsDetailsCache ,
 - @ notnull final Consumer < DataPack > dataPackUpdateHandler ,
 + @ notnull Consumer < DataPack > dataPackUpdateHandler ,
 @ notnull Consumer < Exception > exceptionHandler ,
 int recentCommitsCount ) {
 myProject = project ;


<nb> public class SymbolFormatter extends SymbolVisitor < Void , String > {
 return formatValue ( value , new StringBuilder ( ) ) . toString ( ) ;
 }

 + @ suppresswarnings ( STRING0 )
 private StringBuilder formatValue ( Object value , StringBuilder builder ) {
 if ( value == null ) {
 builder . append ( STRING1 ) ;


<nb> public abstract class AbstractDao < T , K > {
 }
 }

 + COMMENT
 + public RxDao < T , K > rx ( ) {
 + return new RxDao < > ( this ) ;
 + }
 +
 COMMENT
 public Database getDatabase ( ) {
 return db ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class RxDao < T , K > {

 private final AbstractDao < T , K > dao ;
 <nb> public class RxDaoTest extends AbstractDaoTest < TestEntityDao , TestEntity , Long >
 @ override
 protected void setUp ( ) throws Exception {
 super . setUp ( ) ;
 - rxDao = new RxDao ( dao ) ;
 + rxDao = dao . rx ( ) ;
 }

 public void testLoadAll ( ) {


<nb> public class PropertySourcesPropertyValues implements PropertyValues {
 PropertySource < ? > collectionOwner = this . collectionOwners . putIfAbsent (
 COLLECTION_PROPERTY . matcher ( propertyName ) . replaceAll ( STRING0 ) , source ) ;
 if ( collectionOwner == null || collectionOwner == source ) {
 - this . collectionOwners . get ( this . collectionOwners ) ;
 PropertyValue propertyValue = new OriginCapablePropertyValue ( propertyName ,
 value , propertyName , source ) ;
 this . propertyValues . put ( propertyName , propertyValue ) ;


<nb> public class AddSupportForFrameworksPanel implements Disposable {

 private void initializeOptionsPanel ( final FrameworkSupportNode node ) {
 if ( ! myInitializedOptionsComponents . containsKey ( node ) ) {
 + final FrameworkSupportNode parentNode = node . getParentNode ( ) ;
 + if ( parentNode != null ) {
 + initializeOptionsPanel ( parentNode ) ;
 + }
 +
 FrameworkSupportOptionsComponent optionsComponent = new FrameworkSupportOptionsComponent ( myModel , myLibrariesContainer , this ,
 node . getConfigurable ( ) ,
 node . getTitle ( ) + STRING0 ) ;

fixed downloading libraries for parent framework when sub framework is selected


<nb> public class WXSDKInstance implements IWXActivityStateListener {
 try {
 Class cls = Class . forName ( STRING0 ) ;
 Method m = cls . getMethod ( STRING1 , new Class [ ] { Object . class } ) ;
 - m . invoke ( cls , null ) ;
 + m . invoke ( cls , new Object [ NUMBER0 ] ) ;
 } catch ( Exception e ) {
 WXLogUtils . d ( WXLogUtils . getStackTrace ( e ) ) ;
 }
 <nb> public class WXPFComponent extends AbstractComponent {

 try {
 Class cls = Class . forName ( STRING0 ) ;
 - Method m = cls . getMethod ( STRING2 , null ) ;
 - m . invoke ( null , null ) ;
 + Method m = cls . getMethod ( STRING2 , new Class [ NUMBER0 ] ) ;
 + m . invoke ( null , new Object [ NUMBER0 ] ) ;
 } catch ( ClassNotFoundException e ) {
 e . printStackTrace ( ) ;
 } catch ( NoSuchMethodException e ) {


<nb> public class AddAccount extends Activity implements OnClickListener {
 final boolean [ ] wpcoms = new boolean [ result . length ] ;
 final String [ ] wpVersions = new String [ result . length ] ;
 HashMap < Object , Object > contentHash = new HashMap < Object , Object > ( ) ;
 -
 + blogCtr = NUMBER0 ;
 SINGLE
 for ( int ctr = NUMBER0 ; ctr < result . length ; ctr ++ ) {
 contentHash = ( HashMap < Object , Object > ) result [ ctr ] ;

Reset blog counter before the blog selection loop


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class RealmWikiExample extends RealmBaseActivity {
 final RealmResults < Score > results = mRealm . where ( Score . class ) . findAll ( ) ;

 - AxisValueFormatter formatter = new AxisValueFormatter ( ) {
 + IAxisValueFormatter formatter = new IAxisValueFormatter ( ) {
 @ override
 public String getFormattedValue ( float value , AxisBase axis ) {
 return results . get ( ( int ) value ) . getPlayerName ( ) ;


<nb> public final class PhoneAccount implements Parcelable {
 public static final int CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE = NUMBER0 ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final int CAPABILITY_EMERGENCY_VIDEO_CALLING = NUMBER1 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 public static final String SCHEME_TEL = STRING0 ;
 <nb> public final class PhoneAccount implements Parcelable {
 if ( hasCapabilities ( CAPABILITY_PLACE_EMERGENCY_CALLS ) ) {
 sb . append ( STRING1 ) ;
 }
 + if ( hasCapabilities ( CAPABILITY_EMERGENCY_VIDEO_CALLING ) ) {
 + sb . append ( STRING2 ) ;
 + }
 if ( hasCapabilities ( CAPABILITY_SIM_SUBSCRIPTION ) ) {
 sb . append ( STRING3 ) ;
 }

Add hidden capability to indicate account supports emergency video calls


<nb> public class DefaultPromise < V > extends AbstractFuture < V > implements Promise < V > {
 } else if ( result == UNCANCELLABLE ) {
 buf . append ( STRING0 ) ;
 } else if ( result instanceof CauseHolder ) {
 - buf . append ( STRING1 )
 + buf . append ( STRING2 )
 . append ( ( ( CauseHolder ) result ) . cause )
 . append ( STRING3 ) ;
 + } else if ( result != null ) {
 + buf . append ( STRING4 )
 + . append ( result )
 + . append ( STRING3 ) ;
 } else {
 buf . append ( STRING5 ) ;
 }
 +
 return buf ;
 }

Fix a bug where DefaultPromise toString says incomplete when it s done


<nb> public interface DependentSourceSet extends LanguageSourceSet {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface NativeBinary extends Binary {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class Switcher extends AnAction implements DumbAware {
 go ( false ) ;
 }

 - @ nullable
 public MyList getSelectedList ( ) {
 return getSelectedList ( files ) ;
 }


<nb> public class ObjectId implements Comparable < ObjectId > , java . io . Serializable {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 @ deprecated
 - public int _time ( ) {
 - return timestamp ;
 + public int getMachine ( ) {
 + return machineIdentifier ;
 }

 + SINGLE
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 @ deprecated
 - public int getMachine ( ) {
 - return machineIdentifier ;
 + public int _time ( ) {
 + return timestamp ;
 }

 COMMENT
 <nb> public class ObjectId implements Comparable < ObjectId > , java . io . Serializable {
 public int _inc ( ) {
 return counter ;
 }
 + SINGLE

 COMMENT
 COMMENT

Suppressing checkstyle warnings for deprecated methods that violate naming rules


<nb> public class AuthActivity extends BaseFragmentActivity {
 }
 } ) ;
 } else {
 - signUp ( messenger ( ) . doSignup ( currentName , currentSex , transactionHash ) , currentName , currentSex ) ;
 + signUp ( messenger ( ) . doSignup ( currentName , currentSex != null ? currentSex : Sex . UNKNOWN , transactionHash ) , currentName , currentSex ) ;
 }
 }
 }
 <nb> public class AuthActivity extends BaseFragmentActivity {
 break ;

 case SIGN_UP :
 - signUp ( messenger ( ) . doSignup ( currentName , currentSex , transactionHash ) , currentName , currentSex ) ;
 + signUp ( messenger ( ) . doSignup ( currentName , currentSex != null ? currentSex : Sex . UNKNOWN , transactionHash ) , currentName , currentSex ) ;
 break ;
 }

 <nb> public class DialogsHistoryActor extends ModuleActor {
 }
 } ) ;
 } else {
 + context ( ) . getAppStateModule ( ) . onDialogsLoaded ( ) ;
 markAsLoaded ( ) ;
 }
 }

notify app state dialogs loaded if dialogs are empty


<nb> public class ZygoteInit {
 Log . v ( TAG , STRING0 + Integer . toHexString ( id ) ) ;
 }
 if ( id != NUMBER0 ) {
 - if ( mResources . getDrawable ( id ) == null ) {
 + if ( mResources . getDrawable ( id , null ) == null ) {
 throw new IllegalArgumentException (
 STRING1
 + Integer . toHexString ( id )

Pass explicit null theme when preloading drawables


<nb> public class IgnitedLastKnownLocationAsyncTask extends AsyncTask < Void , Void , Loc
 public ILastLocationFinder getLastLocationFinder ( ) {
 return lastLocationFinder ;
 }
 +
 + @ override
 + protected void onCancelled ( ) {
 + super . onCancelled ( ) ;
 + lastLocationFinder . cancel ( ) ;
 + }
 +
 }

Cancel the single update if last known location task is cancelled


<nb> public class AsyncTwitterWrapper extends TwitterWrapper {
 tweetEvent . setAction ( TweetEvent . Action . FAVORITE ) ;
 HotMobiLogger . getInstance ( getContext ( ) ) . log ( mAccountId , tweetEvent ) ;
 SINGLE
 - Utils . showInfoMessage ( mContext , R . string . status_favorited , false ) ;
 } else {
 taskEvent . setSucceeded ( false ) ;
 Utils . showErrorMessage ( mContext , R . string . action_favoriting , result . getException ( ) , true ) ;


<nb> public class CoordinatorLayout extends ViewGroup implements NestedScrollingParen

 @ override
 protected void onRestoreInstanceState ( Parcelable state ) {
 + if ( ! ( state instanceof SavedState ) ) {
 + super . onRestoreInstanceState ( state ) ;
 + return ;
 + }
 +
 final SavedState ss = ( SavedState ) state ;
 super . onRestoreInstanceState ( ss . getSuperState ( ) ) ;

Verify class of Parcelable in CoordinatorLayout restore state


<nb> import static NAMESPACE

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

 <nb> public abstract class RestMethodHandler extends BaseAnnotationHandler < RestHolder

 restSpringValidatorHelper . enclosingElementHasRestAnnotation ( element , validation ) ;
 restSpringValidatorHelper . throwsOnlyRestClientException ( ( ExecutableElement ) element , validation ) ;
 + Set < String > variableNames = restAnnotationHelper . extractUrlVariableNames ( ( ExecutableElement ) element ) ;
 + restSpringValidatorHelper . urlVariableNamesExistInParameters ( ( ExecutableElement ) element , variableNames , validation ) ;
 restSpringValidatorHelper . hasAnnotatedAllParameters ( ( ExecutableElement ) element , validation ) ;
 }

Validated urlVariableNamesExistInParameters directly in handler


<nb> public class Source implements InsertSourceHandler ,
 if ( openFileAlreadyOpen ( rmdFile , resultCallback ) )
 return ;

 - EditingTarget target = editingTargetSource_ . getEditingTarget ( fileType ) ;
 -
 SINGLE
 server_ . extractRmdFromNotebook (
 rnbPath ,


<nb> class FramesHandler < I extends FramesHandler . Frames , S extends FramesBase < I , S > >
 throw new H2OIllegalArgumentException ( path , STRING0 , STRING1 + path + STRING2 ) ;
 }
 InputStream is = ( fr ) . toCSV ( true , false ) ;
 - Job job = new Job ( null , null , STRING3 ) ;
 + Job job = new Job ( null , STRING4 , STRING3 ) ;
 ExportTask t = new ExportTask ( is , path , frameName , overwrite , job ) ;
 return job . start ( t , fr . anyVec ( ) . nChunks ( ) ) ;
 }


<nb> public class ByteArrayInputStream extends InputStream {
 public int read ( ) {
 return pos < data . length ? data [ pos ++ ] & NUMBER0 : - NUMBER1 ;
 }
 +
 + @ override
 + public int available ( ) {
 + return data . length - pos ;
 + }
 }
 <nb> public class ByteArrayOutputStream extends OutputStream {
 public int size ( ) {
 return count ;
 }
 +
 + public String toString ( ) {
 + return new String ( buf , NUMBER2 , count ) ;
 + }
 + public String toString ( String enc ) throws UnsupportedEncodingException {
 + return new String ( buf , NUMBER2 , count , enc ) ;
 + }
 }
 <nb> public abstract class InputStream {
 public void close ( ) throws IOException {

 }
 +
 + public int available ( ) {
 + return NUMBER2 ;
 + }
 }

added Additional methods to emulated InputStream ByteArrayInputStream and ByteArrayOutputStream


<nb> public class AnalyzedTokenReadings implements Iterable < AnalyzedToken > {
 }
 if ( l . isEmpty ( ) ) {
 l . add ( new AnalyzedToken ( this . token , null , null ) ) ;
 + l . get ( NUMBER0 ) . setWhitespaceBefore ( isWhitespaceBefore ) ;
 }
 anTokReadings = l . toArray ( new AnalyzedToken [ l . size ( ) ] ) ;
 setNoRealPOStag ( ) ;
 <nb> public class AnalyzedTokenReadings implements Iterable < AnalyzedToken > {
 }
 if ( l . isEmpty ( ) ) {
 l . add ( new AnalyzedToken ( this . token , null , null ) ) ;
 + l . get ( NUMBER0 ) . setWhitespaceBefore ( isWhitespaceBefore ) ;
 }
 anTokReadings = l . toArray ( new AnalyzedToken [ l . size ( ) ] ) ;
 setNoRealPOStag ( ) ;

fix a bug when whitespacebefore attribute was removed during disambiguation


<nb> public final class SystemServer {
 STRING0 ;
 private static final String WIFI_SERVICE_CLASS =
 STRING1 ;
 - private static final String WIFI_PASSPOINT_SERVICE_CLASS =
 - STRING2 ;
 private static final String WIFI_P2P_SERVICE_CLASS =
 STRING3 ;
 private static final String ETHERNET_SERVICE_CLASS =
 <nb> public final class SystemServer {
 }

 mSystemServiceManager . startService ( WIFI_P2P_SERVICE_CLASS ) ;
 - mSystemServiceManager . startService ( WIFI_PASSPOINT_SERVICE_CLASS ) ;
 mSystemServiceManager . startService ( WIFI_SERVICE_CLASS ) ;
 mSystemServiceManager . startService (
 STRING4 ) ;


<nb> public class FetchBlogListWPOrg extends FetchBlogListAbstract {
 }

 if ( ! url . contains ( STRING0 ) ) { SINGLE
 - if ( url . substring ( url . length ( ) - NUMBER0 , url . length ( ) ) . equals ( STRING1 ) ) {
 + if ( url . charAt ( url . length ( ) - NUMBER0 ) == STRING2 ) {
 url = url . substring ( NUMBER1 , url . length ( ) - NUMBER0 ) ;
 }
 url += STRING3 ;

Make appendXMLRPCPath more readable by using charAt instead of substring


<nb> abstract class AbstractIOSelector extends Thread implements IOSelector {

 private static final int SHUTDOWN_TIMEOUT_SECONDS = NUMBER0 ;
 private static final int SELECT_WAIT_TIME_MILLIS = NUMBER1 ;
 + private static final int SELECT_FAILURE_PAUSE_MILLIS = NUMBER2 ;

 protected final ILogger logger ;

 <nb> abstract class AbstractIOSelector extends Thread implements IOSelector {
 SINGLE
 SINGLE
 try {
 - Thread . sleep ( NUMBER2 ) ;
 + Thread . sleep ( SELECT_FAILURE_PAUSE_MILLIS ) ;
 } catch ( InterruptedException i ) {
 Thread . currentThread ( ) . interrupt ( ) ;
 }


<nb> public class ZWaveController {
 COMMENT
 public void requestSoftReset ( )
 {
 - this . enqueue ( new SerialApiSoftResetMessageClass ( ) . doRequest ( ) ) ;
 + SerialMessage msg = new SerialApiSoftResetMessageClass ( ) . doRequest ( ) ;
 + msg . attempts = NUMBER0 ;
 + this . enqueue ( msg ) ;
 }

 COMMENT


<nb> public class QuickFixPreviewPanelFactory {
 }

 if ( hasComponents ) {
 - setBorder ( IdeBorderFactory . createEmptyBorder ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER2 ) ) ;
 + setBorder ( IdeBorderFactory . createEmptyBorder ( hasFixes ? NUMBER0 : NUMBER3 , ( hasFixes || problemCount > NUMBER4 ) ? NUMBER1 : NUMBER5 , hasFixes ? NUMBER2 : NUMBER1 , NUMBER2 ) ) ;
 }
 return ! hasComponents ;
 }


<nb> public class CallListPanel
 extends JPanel
 implements ActionListener
 {
 + private JPanel searchPanel = new JPanel ( new BorderLayout ( ) ) ;
 +
 + private JLabel searchLabel = new JLabel ( Messages . getString ( STRING0 ) + STRING1 ) ;
 +
 private SmartComboBox searchComboBox = new SmartComboBox ( ) ;

 private CallList callList = new CallList ( ) ;
 <nb> public class CallListPanel
 private void initPanels ( )
 {
 this . scrollPane . getViewport ( ) . add ( callList ) ;
 +
 + this . searchPanel . setBorder ( BorderFactory . createEmptyBorder ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ) ;
 + this . searchPanel . add ( searchLabel , BorderLayout . WEST ) ;
 + this . searchPanel . add ( searchComboBox , BorderLayout . CENTER ) ;

 - this . add ( searchComboBox , BorderLayout . NORTH ) ;
 + this . add ( searchPanel , BorderLayout . NORTH ) ;
 this . add ( scrollPane , BorderLayout . CENTER ) ;
 }


<nb> public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler
 SINGLE
 SINGLE
 SINGLE
 - if ( ! Thread . holdsLock ( handshakeLock ) ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + if ( ! Thread . holdsLock ( handshakeLock ) &&
 + ! Thread . holdsLock ( pendingEncryptedWrites ) ) {
 wrap ( ctx , channel ) ;
 }
 }


<nb> public class SelectChannelConnector extends AbstractNIOConnector
 {
 SINGLE
 _acceptChannel = ServerSocketChannel . open ( ) ;
 + SINGLE
 + _acceptChannel . configureBlocking ( true ) ;

 SINGLE
 _acceptChannel . socket ( ) . setReuseAddress ( getReuseAddress ( ) ) ;
 InetSocketAddress addr = getHost ( ) == null ? new InetSocketAddress ( getPort ( ) ) : new InetSocketAddress ( getHost ( ) , getPort ( ) ) ;
 _acceptChannel . socket ( ) . bind ( addr , getAcceptQueueSize ( ) ) ;

 + if ( _acceptChannel . socket ( ) . getLocalPort ( ) == - NUMBER0 )
 + throw new IOException ( STRING0 ) ;
 +
 SINGLE
 _acceptChannel . configureBlocking ( false ) ;


<nb> public class Realm {
 public static final String DEFAULT_REALM_NAME = STRING0 ;
 private static final Map < String , ThreadRealm > realms = new HashMap < String , ThreadRealm > ( ) ;
 private static final String TAG = STRING1 ;
 + private static final String TABLE_PREFIX = STRING2 ;

 private SharedGroup sharedGroup ;
 private ImplicitTransaction transaction ;
 <nb> public class Realm {
 simpleClassName = clazz . getSimpleName ( ) ;
 simpleClassNames . put ( clazz , simpleClassName ) ;
 }
 - return transaction . getTable ( simpleClassName ) ;
 + return transaction . getTable ( TABLE_PREFIX + simpleClassName ) ;
 }

 COMMENT
 <nb> public class Realm {
 simpleClassNames . put ( clazz , simpleClassName ) ;
 }

 - table = transaction . getTable ( simpleClassName ) ;
 + table = transaction . getTable ( TABLE_PREFIX + simpleClassName ) ;
 tables . put ( clazz , table ) ;
 }


<nb> public interface DvcsPlatformFacade {

 void saveAllDocuments ( ) ;

 - @ nullable
 - VirtualFile getVirtualFileByPath ( @ notnull String path ) ;
 -
 @ notnull
 ProjectManagerEx getProjectManager ( ) ;

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

 <nb> public abstract class DvcsPlatformFacadeImpl implements DvcsPlatformFacade {
 } ) ;
 }

 - @ nullable
 - @ override
 - public VirtualFile getVirtualFileByPath ( @ notnull String path ) {
 - return VcsUtil . getVirtualFile ( path ) ;
 - }
 -
 @ notnull
 @ override
 public ProjectManagerEx getProjectManager ( ) {


<nb> public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
 }
 }
 if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
 - if ( myView == null && ! InspectionResultsView . hasProblems ( globalTools , this , createContentProvider ( ) ) ) {
 + if ( myView == null && ! ReadAction . compute ( ( ) - > InspectionResultsView . hasProblems ( globalTools , this , createContentProvider ( ) ) ) . booleanValue ( ) ) {
 return ;
 }
 createViewIfNeed ( ) ;


<nb> public abstract class DeepWaterAbstractIntegrationTest extends TestUtil {
 DKV . put ( tfr ) ;
 }
 DeepWaterParameters parms = new DeepWaterParameters ( ) ;
 + parms . _backend = getBackend ( ) ;
 parms . _train = tfr . _key ;
 parms . _epochs = NUMBER0 ;
 parms . _response_column = STRING0 ;
 <nb> public abstract class DeepWaterAbstractIntegrationTest extends TestUtil {
 valid = fs . getResult ( ) [ NUMBER1 ] ;

 DeepWaterParameters parms = new DeepWaterParameters ( ) ;
 + parms . _backend = getBackend ( ) ;
 parms . _train = train . _key ;
 parms . _valid = valid . _key ;
 parms . _epochs = NUMBER1 ;
 <nb> public abstract class DeepWaterAbstractIntegrationTest extends TestUtil {
 valid = fs . getResult ( ) [ NUMBER1 ] ;

 DeepWaterParameters parms = new DeepWaterParameters ( ) ;
 + parms . _backend = getBackend ( ) ;
 parms . _train = train . _key ;
 parms . _valid = valid . _key ;
 parms . _epochs = NUMBER2 ;

Add the proper backend to Deep Water junits


<nb> final class TypeUtils {
 return null ;
 }
 @ override public Void visitArray ( ArrayType arrayType , Void v ) {
 - typeToString ( arrayType . getComponentType ( ) , result , innerClassSeparator ) ;
 + TypeMirror type = arrayType . getComponentType ( ) ;
 + if ( type instanceof PrimitiveType ) {
 + result . append ( type . toString ( ) ) ; SINGLE
 + } else {
 + typeToString ( arrayType . getComponentType ( ) , result , innerClassSeparator ) ;
 + }
 result . append ( STRING0 ) ;
 return null ;
 }

Fix array handling so we don t attempt to box the primitive type the array is composed of


<nb> public final class InetSocketTransportAddress implements TransportAddress {

 @ override
 public String getHost ( ) {
 - return address . getHostName ( ) ;
 + if ( resolveAddress ) {
 + return address . getHostName ( ) ;
 + } else {
 + return getAddress ( ) ;
 + }
 }

 @ override


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

 - import NAMESPACE ;
 + import NAMESPACE ;

 public class UsageInvoiceItem extends InvoiceItemBase {

 <nb> public class UsageInvoiceItem extends InvoiceItemBase {

 @ override
 public String getDescription ( ) {
 - return Objects . firstNonNull ( description , String . format ( STRING0 , usageName ) ) ;
 + return MoreObjects . firstNonNull ( description , usageName ) ;
 }
 }

Make usage strings compatible with catalog translations


<nb> package NAMESPACE ;
 COMMENT
 public final class MasterBlockLocation {
 private final long mWorkerId ;
 - private final int mTier ;
 + private int mTier ;

 MasterBlockLocation ( long workerId , int tier ) {
 mWorkerId = workerId ;
 <nb> public final class MasterBlockLocation {
 public int getTier ( ) {
 return mTier ;
 }
 +
 + public void setTier ( int tier ) {
 + mTier = tier ;
 + }
 }

Changed the tier in master block location to be mutable


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class AbstractHttpClientServerTest
 protected String scheme ;
 protected Server server ;
 protected HttpClient client ;
 - protected NetworkConnector connector ;
 + protected ServerConnector connector ;

 public AbstractHttpClientServerTest ( SslContextFactory sslContextFactory )
 {

Using ServerConnector instead of NetworkConnector to improve ease of use


<nb> public class IvyDescriptorFileGenerator {
 }
 return this ;
 }
 -
 - public OptionalAttributeXmlWriter attribute ( String name , String value , String defaultValue ) throws IOException {
 - super . attribute ( name , value == null ? defaultValue : value ) ;
 - return this ;
 - }
 }
 }


<nb> public class TaskApiDao extends ContentResolverDao < Task > {
 values . size ( ) <= NUMBER0 )
 return true ;

 - if ( values . containsKey ( Task . ELAPSED_SECONDS . name ) &&
 - values . size ( ) <= NUMBER0 )
 - return true ;
 -
 return false ;
 }

Don t consider timer elapsed seconds to be an insignificant detail in recently modified


<nb> public class MapRenderRepositories {
 bmp . eraseColor ( currentRenderingContext . defaultColor ) ;
 } else {
 if ( reuse != null ) {
 - log . error ( String . format ( STRING0 , currentRenderingContext . width , reuse . getWidth ( ) , currentRenderingContext . height , reuse . getHeight ( ) ) ) ;
 + log . warn ( String . format ( STRING0 , currentRenderingContext . width , reuse . getWidth ( ) , currentRenderingContext . height , reuse . getHeight ( ) ) ) ;
 }
 bmp = Bitmap . createBitmap ( currentRenderingContext . width , currentRenderingContext . height , Config . RGB_565 ) ;
 }
 <nb> public class AnimateDraggingMapThread {
 tileView . rotateToAnimate ( rotationDiff / NUMBER0 + tileView . getRotate ( ) ) ;
 }
 }
 - targetRotate = - NUMBER1 ;
 } while ( conditionToCountinue && tileView . isMapRotateEnabled ( ) ) ;
 + targetRotate = - NUMBER1 ;
 }
 }


<nb> public abstract class MongodbSerializer implements Visitor < Object , Void > {
 throw new UnsupportedOperationException ( ) ;
 }

 - private String asDBKey ( Operation < ? > expr , int index ) {
 + protected String asDBKey ( Operation < ? > expr , int index ) {
 return ( String ) asDBValue ( expr , index ) ;
 }

 - private Object asDBValue ( Operation < ? > expr , int index ) {
 + protected Object asDBValue ( Operation < ? > expr , int index ) {
 return expr . getArg ( index ) . accept ( this , null ) ;
 }


<nb> public class WalletTest extends TestWithWallet {
 assertFalse ( wallet . isDeterministicUpgradeRequired ( ) ) ;
 }

 + @ test
 public void upgradeToHDEncrypted ( ) throws Exception {
 SINGLE
 wallet = new Wallet ( params ) ;
 <nb> public class WalletTest extends TestWithWallet {
 wallet . encrypt ( crypter , aesKey ) ;
 try {
 wallet . freshReceiveKey ( ) ;
 - } catch ( DeterministicUpgradeRequiredException e ) {
 + } catch ( DeterministicUpgradeRequiresPassword e ) {
 SINGLE
 }
 wallet . upgradeToDeterministic ( aesKey ) ;

Add a forgotten Test annotation and fix the expected exception type


<nb> public class DroidGap extends PhonegapActivity {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public int getPort ( ) {
 - return this . callbackServer . getPort ( ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Remove unused and unneeded getPort method


<nb> public class MimeTypeMap {
 sMimeTypeMap . loadEntry ( STRING0 , STRING1 ) ;
 sMimeTypeMap . loadEntry ( STRING2 , STRING3 ) ;
 sMimeTypeMap . loadEntry ( STRING4 , STRING5 ) ;
 + sMimeTypeMap . loadEntry ( STRING6 , STRING7 ) ;
 + sMimeTypeMap . loadEntry ( STRING6 , STRING8 ) ;
 sMimeTypeMap . loadEntry ( STRING9 , STRING10 ) ;
 sMimeTypeMap . loadEntry ( STRING11 , STRING12 ) ;
 sMimeTypeMap . loadEntry ( STRING13 , STRING14 ) ;

Add htm and html extensions to the map as text html


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class Slovenian extends Language {
 }

 public Set < String > getRelevantRuleIDs ( ) {
 - return null ;
 + final Set < String > ids = new HashSet < String > ( ) ;
 + ids . add ( STRING0 ) ;
 + ids . add ( STRING1 ) ;
 + ids . add ( STRING2 ) ;
 + ids . add ( STRING3 ) ;
 + ids . add ( STRING4 ) ;
 + ids . add ( STRING5 ) ;
 + SINGLE
 + return ids ;
 +
 }

 }


<nb> public final class ViolationPersister {
 }
 model . setSnapshotId ( snapshot . getId ( ) ) ;
 model . setChecksum ( checksum ) ;
 - session . save ( model ) ;
 + session . saveWithoutFlush ( model ) ;

 if ( model . getPermanentId ( ) == null ) {
 model . setPermanentId ( model . getId ( ) ) ;
 - session . save ( model ) ;
 + session . saveWithoutFlush ( model ) ;
 }

 SINGLE


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

Add public filter example to FluentIterable docs


<nb> public abstract class JspContext {
 abstract public JspWriter getOut ( ) ;

 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class JspContext {
 COMMENT
 COMMENT
 COMMENT
 + @ deprecated
 public abstract ExpressionEvaluator getExpressionEvaluator ( ) ;

 public abstract ELContext getELContext ( ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class JspContext {
 COMMENT
 COMMENT
 COMMENT
 + @ deprecated
 public abstract VariableResolver getVariableResolver ( ) ;

 COMMENT


<nb> public class Nio2Endpoint extends AbstractEndpoint < Nio2Channel > {
 super . reset ( channel , soTimeout ) ;
 upgradeInit = false ;
 sendfileData = null ;
 - socketWriteBuffer = channel . getBufHandler ( ) . getWriteBuffer ( ) ;
 + socketWriteBuffer = ( channel == null ) ? null : channel . getBufHandler ( ) . getWriteBuffer ( ) ;
 }

 @ override


<nb> public interface Player extends HumanEntity , CommandSender {
 COMMENT
 COMMENT
 public boolean isSleepingIgnored ( ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void playNote ( Location loc , byte instrument , byte note ) ;

 COMMENT
 COMMENT


<nb> public class TelephonyManager {

 COMMENT
 public TelephonyManager ( Context context ) {
 - context = context . getApplicationContext ( ) ;
 if ( sContext == null ) {
 - sContext = context ;
 + Context appContext = context . getApplicationContext ( ) ;
 + if ( appContext != null ) {
 + sContext = appContext ;
 + } else {
 + sContext = context ;
 + }

 sRegistry = ITelephonyRegistry . Stub . asInterface ( ServiceManager . getService (
 STRING0 ) ) ;
 - } else if ( sContext != context ) {
 - Log . e ( TAG , STRING1 ) ;
 - Log . e ( TAG , STRING2 + sContext . getPackageName ( ) + STRING3 +
 - context . getPackageName ( ) ) ;
 }
 }

Fix TelephonyManager to grab the best context


<nb> public class TaskDetailPanel extends DetailPanel {
 }
 } ) ;

 - completeButton . setEnabled ( isCurrentUserAssignee ( ) ) ;
 + completeButton . setEnabled ( isCurrentUserAssignee ( ) || isCurrentUserOwner ( ) ) ;
 buttonLayout . addComponent ( completeButton ) ;
 }
 }
 <nb> public class TaskDetailPanel extends DetailPanel {
 return currentUser . equals ( task . getAssignee ( ) ) ;
 }

 + protected boolean isCurrentUserOwner ( ) {
 + String currentUser = ExplorerApp . get ( ) . getLoggedInUser ( ) . getId ( ) ;
 + return currentUser . equals ( task . getOwner ( ) ) ;
 + }
 +
 protected boolean canUserClaimTask ( ) {
 return taskService . createTaskQuery ( )
 . taskCandidateUser ( ExplorerApp . get ( ) . getLoggedInUser ( ) . getId ( ) )


<nb> public class OsmandSettings {
 }

 SINGLE
 - public final CommonPreference < Integer > WAKE_ON_VOICE = new IntPreference ( STRING0 , NUMBER0 ) . makeProfile ( ) ;
 + public final CommonPreference < Integer > WAKE_ON_VOICE = new IntPreference ( STRING1 , NUMBER0 ) . makeProfile ( ) ;
 {
 SINGLE
 WAKE_ON_VOICE . setModeDefaultValue ( ApplicationMode . CAR , NUMBER0 ) ;


<nb> public class AddActivity extends BaseActivity implements OnAddShowListener {

 private ViewPager mPager ;

 + public interface InitBundle {
 + COMMENT
 + COMMENT
 + COMMENT
 + String DEFAULT_TAB = STRING0 ;
 + }
 +
 @ override
 protected void onCreate ( Bundle savedInstanceState ) {
 SINGLE
 <nb> public class AddActivity extends BaseActivity implements OnAddShowListener {
 indicator . setOnPageChangeListener ( new MenuOnPageChangeListener ( getSlidingMenu ( ) ) ) ;

 getSlidingMenu ( ) . setTouchModeAbove ( SlidingMenu . TOUCHMODE_FULLSCREEN ) ;
 +
 + SINGLE
 + if ( getIntent ( ) != null && getIntent ( ) . getExtras ( ) != null ) {
 + int defaultTab = getIntent ( ) . getExtras ( ) . getInt ( InitBundle . DEFAULT_TAB ) ;
 + if ( defaultTab < mAdapter . getCount ( ) ) {
 + indicator . setCurrentItem ( defaultTab ) ;
 + }
 + }
 }

 @ override

Support setting a default tab in AddActivity


<nb> public class ListPopupWindowTest extends BaseInstrumentationTestCase < PopupTestAc
 mListPopupWindow . getBackground ( ) . getPadding ( rect ) ;

 int emulatedTapX = popupOnScreenXY [ NUMBER0 ] - rect . left - NUMBER1 ;
 - int emulatedTapY = popupOnScreenXY [ NUMBER2 ] + mListPopupWindow . getListView ( ) . getHeight ( ) +
 - rect . top + rect . bottom + NUMBER1 ;
 + int emulatedTapY = popupOnScreenXY [ NUMBER2 ] - NUMBER1 ;

 SINGLE
 SINGLE


<nb> public class GnssLocationProvider implements LocationProviderInterface {
 }

 if ( DEBUG ) Log . d ( TAG , STRING0 + mProviderRequest ) ;
 - if ( mProviderRequest . reportLocation && ! mDisableGps ) {
 + if ( mProviderRequest . reportLocation && ! mDisableGps && isEnabled ( ) ) {
 SINGLE
 updateClientUids ( mWorkSource ) ;

Prevent startNavigating call when GPS is off


<nb> final class ActivityStack {
 int rIndex = task . mActivities . indexOf ( r ) ;
 for ( -- rIndex ; rIndex >= NUMBER0 ; -- rIndex ) {
 final ActivityRecord blocker = task . mActivities . get ( rIndex ) ;
 - if ( ! blocker . finishing && blocker . visible ) {
 + if ( ! blocker . finishing ) {
 if ( DEBUG_VISBILITY ) Slog . v ( TAG , STRING0 +
 r + STRING1 + blocker ) ;
 break ;

Relax conditions for including windows behind dialogs


<nb> public class RunnerAndConfigurationSettingsImpl implements JDOMExternalizable , C

 setSingleton ( template . isSingleton ( ) ) ;
 setEditBeforeRun ( template . isEditBeforeRun ( ) ) ;
 + setActivateToolWindowBeforeRun ( template . isActivateToolWindowBeforeRun ( ) ) ;
 }

 @ suppresswarnings ( STRING0 )


<nb> public abstract class ManagerBase extends LifecycleMBeanBase implements Manager
 throws PatternSyntaxException {
 if ( sessionAttributeNameFilter == null || sessionAttributeNameFilter . length ( ) == NUMBER0 ) {
 sessionAttributeNamePattern = null ;
 + } else {
 + sessionAttributeNamePattern = Pattern . compile ( sessionAttributeNameFilter ) ;
 }
 - sessionAttributeNamePattern = Pattern . compile ( sessionAttributeNameFilter ) ;
 }

 <nb> public abstract class ManagerBase extends LifecycleMBeanBase implements Manager
 if ( sessionAttributeValueClassNameFilter == null ||
 sessionAttributeValueClassNameFilter . length ( ) == NUMBER0 ) {
 sessionAttributeValueClassNamePattern = null ;
 + } else {
 + sessionAttributeValueClassNamePattern =
 + Pattern . compile ( sessionAttributeValueClassNameFilter ) ;
 }
 - sessionAttributeValueClassNamePattern =
 - Pattern . compile ( sessionAttributeValueClassNameFilter ) ;
 }

Fix NPE when sessionAttributeNameFilter and sessionAttributeValueClassNameFilter is unset in cluster environment


<nb> public final class Preconditions {
 return value ;
 }

 - public static void checkState ( boolean assertion , String message ) {
 - if ( ! assertion ) {
 - throw new IllegalStateException ( message ) ;
 - }
 - }
 -
 public static void checkArgument ( boolean assertion , String message ) {
 if ( ! assertion ) {
 throw new IllegalArgumentException ( message ) ;


<nb> public class SettingsActivity extends PreferenceActivity implements OnPreference
 STRING0 , STRING1 , STRING2 , STRING3 + incompleteSuffix , STRING4 , STRING5 + incompleteSuffix ,
 STRING6 , STRING7 + incompleteSuffix , STRING8 + incompleteSuffix , STRING9 , STRING10 , STRING11 ,
 STRING12 + incompleteSuffix , STRING13 , STRING14 , STRING15 , STRING16 , STRING17 ,
 - STRING18 + incompleteSuffix , STRING19 , STRING20 + incompleteSuffix , STRING21 + incompleteSuffix , STRING22 + incompleteSuffix , STRING23 ,
 + STRING18 , STRING19 , STRING20 + incompleteSuffix , STRING21 + incompleteSuffix , STRING22 + incompleteSuffix , STRING23 ,
 STRING24 + incompleteSuffix } ;
 registerListPreference ( osmandSettings . PREFERRED_LOCALE , screen , entries , entrieValues ) ;


<nb> public class RunConfigurationModule implements JDOMExternalizable {
 public void checkForWarning ( ) throws RuntimeConfigurationException {
 final Module module = getModule ( ) ;
 if ( module != null ) {
 - if ( ModuleRootManager . getInstance ( module ) . getJdk ( ) == null ) {
 - throw new RuntimeConfigurationWarning ( ExecutionBundle . message ( STRING0 , module . getName ( ) ) ) ;
 - }
 if ( module . isDisposed ( ) ) {
 throw new RuntimeConfigurationError ( ExecutionBundle . message ( STRING1 , module . getName ( ) ) ) ;
 }
 + if ( ModuleRootManager . getInstance ( module ) . getJdk ( ) == null ) {
 + throw new RuntimeConfigurationWarning ( ExecutionBundle . message ( STRING0 , module . getName ( ) ) ) ;
 + }
 }
 else {
 throw new RuntimeConfigurationError ( ExecutionBundle . message ( STRING2 ) ) ;


<nb> public final class BluetoothAdapter {

 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class BluetoothAdapter {
 switch ( i % NUMBER0 ) {
 case NUMBER1 :
 case NUMBER2 :
 - if ( Character . digit ( c , NUMBER3 ) != - NUMBER2 ) {
 - break ; SINGLE
 + if ( ( c >= STRING0 && c <= STRING1 ) || ( c >= STRING2 && c <= STRING3 ) ) {
 + SINGLE
 + break ;
 }
 return false ;
 case NUMBER4 :

Reject lowercase characters in checkBluetoothAddress


<nb> public class AccessibilityManagerService extends IAccessibilityManager . Stub {
 userState . mEnabledServices . contains ( userState . mServiceChangingSoftKeyboardMode ) ;

 if ( ! serviceChangingSoftKeyboardModeIsEnabled ) {
 - Settings . Secure . putIntForUser ( mContext . getContentResolver ( ) ,
 - Settings . Secure . ACCESSIBILITY_SOFT_KEYBOARD_MODE ,
 - NUMBER0 ,
 - userState . mUserId ) ;
 + final long identity = Binder . clearCallingIdentity ( ) ;
 + try {
 + Settings . Secure . putIntForUser ( mContext . getContentResolver ( ) ,
 + Settings . Secure . ACCESSIBILITY_SOFT_KEYBOARD_MODE ,
 + NUMBER0 ,
 + userState . mUserId ) ;
 + } finally {
 + Binder . restoreCallingIdentity ( identity ) ;
 + }
 userState . mSoftKeyboardShowMode = NUMBER0 ;
 userState . mServiceChangingSoftKeyboardMode = null ;
 }

Fix bug where service disabled with disableSelf would not reset soft keyboard


<nb> public class FormController {
 }

 @ requestmapping ( method = RequestMethod . POST )
 - public String processSubmit ( @ valid FormBean formBean , BindingResult result , boolean ajaxRequest ,
 - Model model , RedirectAttributes redirectAttrs ) {
 + public String processSubmit ( @ valid FormBean formBean , BindingResult result ,
 + @ modelattribute ( STRING0 ) boolean ajaxRequest ,
 + Model model , RedirectAttributes redirectAttrs ) {
 if ( result . hasErrors ( ) ) {
 return null ;
 }

Add ModelAttribute to ajaxRequest argument


<nb> public class ShadowPreference {
 this . onClickListener = onPreferenceClickListener ;
 }

 + @ implementation
 public Preference . OnPreferenceClickListener getOnPreferenceClickListener ( ) {
 return onClickListener ;
 }
 <nb> public class ShadowPreference {

 public boolean click ( ) {
 return onClickListener . onPreferenceClick ( realPreference ) ;
 + }

 @ implementation
 public void setIntent ( Intent i ) {
 <nb> public class PreferenceActivityTest {

 @ test
 public void shouldGetListView ( ) {
 - assertThat ( activity . getListView ( ) , nullValue ( ) ) ;
 shadow . setListView ( new ListView ( new Activity ( ) ) ) ;
 assertThat ( activity . getListView ( ) , notNullValue ( ) ) ;
 }


<nb> public final class BlockStoreContextTest {
 COMMENT
 @ test ( timeout = NUMBER0 )
 public void acquireMasterLimitTest ( ) throws Exception {
 + BlockStoreContext . INSTANCE . reset ( ) ;
 +
 final List < BlockMasterClient > clients = Lists . newArrayList ( ) ;

 SINGLE
 <nb> public final class BlockStoreContextTest {
 COMMENT
 @ test ( timeout = NUMBER0 )
 public void acquireWorkerLimitTest ( ) throws Exception {
 + BlockStoreContext . INSTANCE . reset ( ) ;
 +
 SINGLE
 SINGLE
 Whitebox . setInternalState ( NetworkAddressUtils . class , STRING0 , STRING1 ) ;


<nb> public class CalendarPickerView extends ListView {
 }
 }

 - adapter . notifyDataSetChanged ( ) ;
 + validateAndUpdate ( ) ;
 }

 public void clearHighlightedDates ( ) {
 <nb> public class CalendarPickerView extends ListView {
 highlightedCells . clear ( ) ;
 highlightedCals . clear ( ) ;

 - adapter . notifyDataSetChanged ( ) ;
 + validateAndUpdate ( ) ;
 }

 COMMENT


<nb> public class AprEndpoint extends AbstractEndpoint < Long > {
 wrapper . pollerFlags = wrapper . pollerFlags |
 ( info . read ( ) ? Poll . APR_POLLIN : NUMBER0 ) |
 ( info . write ( ) ? Poll . APR_POLLOUT : NUMBER0 ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + removeFromPoller ( info . socket ) ;
 if ( ! addToPoller ( info . socket , wrapper . pollerFlags ) ) {
 closeSocket ( info . socket ) ;
 } else {

Avoid unexpected closure of the socket if the socket is first registered


<nb> public class GlobalToolbar extends Toolbar
 addLeftSeparator ( ) ;
 ToolbarButton deployButton =
 commands_ . shinyAppsDeploy ( ) . createToolbarButton ( ) ;
 - deployButton . setText ( STRING0 ) ;
 + deployButton . setText ( STRING1 ) ;
 addLeftWidget ( deployButton ) ;
 }


<nb> public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput
 @ consolecommand ( aliases = { STRING0 } , description = STRING1 )
 public void info ( ) {
 if ( currentDatabaseName != null ) {
 - out . println ( STRING2 + currentDatabaseName ) ;
 + out . println ( STRING2 + currentDatabaseName + STRING3 + currentDatabase . getURL ( ) + STRING4 ) ;
 clusters ( ) ;
 classes ( ) ;
 indexes ( ) ;
 <nb> public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput
 }
 out . println ( STRING5 ) ;
 out . printf ( STRING6 , totalElements ) ;
 - out . println ( STRING7 ) ;
 + out . println ( STRING8 ) ;
 } else
 out . println ( STRING9 ) ;
 }

improved info message by displaying also the db URL


<nb> public class Cube extends BaseObject3D {

 int [ ] indices = {
 NUMBER0 , NUMBER1 , NUMBER2 , NUMBER0 , NUMBER2 , NUMBER3 ,
 - NUMBER2 , NUMBER1 , NUMBER0 , NUMBER2 , NUMBER3 , NUMBER0 ,
 NUMBER4 , NUMBER5 , NUMBER6 , NUMBER4 , NUMBER6 , NUMBER7 ,
 NUMBER8 , NUMBER9 , NUMBER10 , NUMBER8 , NUMBER10 , NUMBER11 ,
 NUMBER12 , NUMBER13 , NUMBER14 , NUMBER12 , NUMBER14 , NUMBER15 ,
 <nb> public class Cube extends BaseObject3D {
 } ;
 int [ ] skyboxIndices = {
 NUMBER2 , NUMBER1 , NUMBER0 , NUMBER3 , NUMBER2 , NUMBER0 ,
 - NUMBER0 , NUMBER1 , NUMBER2 , NUMBER0 , NUMBER3 , NUMBER2 ,
 NUMBER6 , NUMBER5 , NUMBER4 , NUMBER7 , NUMBER6 , NUMBER4 ,
 NUMBER10 , NUMBER9 , NUMBER8 , NUMBER11 , NUMBER10 , NUMBER8 ,
 NUMBER14 , NUMBER13 , NUMBER12 , NUMBER15 , NUMBER14 , NUMBER12 ,


<nb> public class AnimatedRotateDrawable extends Drawable implements Drawable . Callbac
 float px = st . mPivotXRel ? ( w * st . mPivotX ) : st . mPivotX ;
 float py = st . mPivotYRel ? ( h * st . mPivotY ) : st . mPivotY ;

 - canvas . rotate ( mCurrentDegrees , px , py ) ;
 + canvas . rotate ( mCurrentDegrees , px + bounds . left , py + bounds . top ) ;

 drawable . draw ( canvas ) ;


<nb> public class GitBranchConfigurations implements PersistentStateComponent < GitBran
 if ( LOG . isDebugEnabled ( ) ) {
 LOG . debug ( STRING0 + root . getPath ( ) ) ;
 }
 - GitSimpleHandler h = new GitSimpleHandler ( myProject , root , GitCommand . SHOW ) ;
 + GitSimpleHandler h = new GitSimpleHandler ( myProject , root , GitCommand . LOG ) ;
 h . setNoSSH ( true ) ;
 - h . addParameters ( STRING1 , STRING2 ) ;
 + h . addParameters ( STRING3 , STRING1 , STRING2 ) ;
 try {
 return h . run ( ) . trim ( ) ;
 }
 <nb> public class GitBranchConfigurations implements PersistentStateComponent < GitBran
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


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

 import NAMESPACE ;


<nb> public class MediaNotificationManager extends BroadcastReceiver {
 openUI . setFlags ( Intent . FLAG_ACTIVITY_SINGLE_TOP ) ;
 mContentIntent = PendingIntent . getActivity ( mService , NUMBER0 , openUI ,
 PendingIntent . FLAG_CANCEL_CURRENT ) ;
 +
 + SINGLE
 + SINGLE
 + mNotificationManager . cancelAll ( ) ;
 }

 protected int getNotificationColor ( ) {

Cancel notifications at the service start


<nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 -
 public interface Encoder < T >
 {
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 COMMENT
 boolean encode ( T target ) ;


<nb> public final class Files {
 COMMENT
 public static void createParentDirs ( File file ) throws IOException {
 File parent = file . getCanonicalFile ( ) . getParentFile ( ) ;
 - SINGLE
 + if ( parent == null ) {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + return ;
 + }
 parent . mkdirs ( ) ;
 - if ( ! parent . exists ( ) ) { SINGLE
 + if ( ! parent . isDirectory ( ) ) {
 throw new IOException ( STRING0 + file ) ;
 }
 }

Handle some edge cases in createParentDirs


<nb> public class TestStatusLine extends JPanel {
 final long startTime ,
 final long endTime ) {
 myState . clear ( ) ;
 + if ( testsTotal == NUMBER0 ) return ;
 if ( endTime == NUMBER0 ) {
 myState . append ( finishedTestsCount + STRING0 + testsTotal + STRING1 + ( failuresCount + ignoredTestsCount > NUMBER0 ? STRING2 : STRING3 ) ) ;
 appendFailuresAndIgnores ( failuresCount , ignoredTestsCount ) ;

don t append done message when no tests were found


<nb> public class HttpConfiguration {
 @ jsonproperty
 private Duration soLingerTime = null ;

 - @ min ( NUMBER0 )
 @ jsonproperty
 - private int lowResourcesConnectionThreshold = NUMBER1 ;
 + private int lowResourcesConnectionThreshold = NUMBER2 ;

 @ notnull
 @ jsonproperty
 - private Duration lowResourcesMaxIdleTime = Duration . seconds ( NUMBER3 ) ;
 + private Duration lowResourcesMaxIdleTime = Duration . seconds ( NUMBER2 ) ;

 @ notnull
 @ jsonproperty

Fix low resource threshold and maxIdleTime defaults to Jetty s


<nb> public class ReaderPostDetailFragment extends Fragment
 boolean postHasUrl = hasPost ( ) && mPost . hasUrl ( ) ;
 MenuItem mnuBrowse = menu . findItem ( R . id . menu_browse ) ;
 if ( mnuBrowse != null ) {
 - mnuBrowse . setVisible ( postHasUrl || ( ( mFallbackUri != null ) && AccountHelper . isSignedIn ( ) ) ) ;
 + mnuBrowse . setVisible ( postHasUrl || ( mFallbackUri != null ) ) ;
 }
 MenuItem mnuShare = menu . findItem ( R . id . menu_share ) ;
 if ( mnuShare != null ) {

Always offer escape to ext browser as fallback


<nb> public class AbstractRestFunctionalTestBase extends SharedServerTestBase impleme
 @ before
 public void setUp ( )
 {
 - gen ( ) . setSection ( STRING0 ) ;
 + gen ( ) . setSection ( getDocumentationSectionName ( ) ) ;
 }
 +
 protected String doCypherRestCall ( String endpoint , String script , Status status , Pair < String , String > . . . params ) {
 data . get ( ) ;
 String parameterString = createParameterString ( params ) ;
 <nb> public class AbstractRestFunctionalTestBase extends SharedServerTestBase impleme
 gen ( ) . description ( description ) ;

 }
 +
 + protected String getDocumentationSectionName ( ) {
 + return STRING0 ;
 + }
 }

Added ability to tell the documenting REST tests where to put output to help with name clashes


<nb> public class BinaryRoutePlanner {

 SINGLE
 - SINGLE
 -
 -
 SINGLE
 SINGLE
 COMMENT
 <nb> public class BinaryRoutePlanner {
 ctx . timeToLoad = NUMBER0 ;
 ctx . visitedSegments = NUMBER0 ;
 ctx . timeToCalculate = System . nanoTime ( ) ;
 - ctx . firstRoadId = ( start . getRoad ( ) . id < < NUMBER1 ) + start . getSegmentStart ( ) ;
 if ( ctx . config . initialDirection != null ) {
 + ctx . firstRoadId = ( start . getRoad ( ) . id < < NUMBER1 ) + start . getSegmentStart ( ) ;
 double plusDir = start . getRoad ( ) . directionRoute ( start . segmentStart , true ) ;
 double diff = plusDir - ctx . config . initialDirection ;
 if ( Math . abs ( MapUtils . alignAngleDifference ( diff ) ) <= Math . PI / NUMBER2 ) {


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

 + @ ignore
 public class BaseIndexTest {

 private static final String TEST_NODE_NAME = STRING0 ;


<nb> public abstract class BaseActions < V > implements ContextAware < V > {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public int currentIndex ( ) {
 + check ( ) ;
 + return context . getCurrentIndex ( ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add convenience currentIndex method to BaseActions


<nb> public class AQuery extends AbstractAQuery < AQuery > {
 super ( context ) ;
 }

 + public AQuery ( Activity act , View root ) {
 + super ( act , root ) ;
 + }
 +

 }


<nb> public class MessageListFragment extends SherlockFragment implements OnItemClick
 private void setSelectionState ( boolean selected ) {
 if ( selected ) {
 mSelectedCount = mAdapter . getCount ( ) ;
 + if ( mSelectedCount == NUMBER0 ) {
 + SINGLE
 + return ;
 + }
 +
 for ( int i = NUMBER0 , end = mSelectedCount ; i < end ; i ++ ) {
 mSelected . put ( i , true ) ;
 }

Select all now won t start selection mode when there are no messages


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

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public abstract class OutStream extends OutputStream {
 protected final TachyonFile mFile ;
 <nb> public abstract class OutStream extends OutputStream {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public abstract void cancel ( ) throws IOException ;


<nb> public abstract class AbstractCacheRecordStore < R extends CacheRecord , CRM extend
 return doPutRecord ( key , record , SOURCE_NOT_AVAILABLE ) ;
 }

 - protected final R doPutRecord ( Data key , R record , String source ) {
 + protected R doPutRecord ( Data key , R record , String source ) {
 R oldRecord = records . put ( key , record ) ;
 if ( oldRecord != null ) {
 invalidateEntry ( key , source ) ;

removed final from doPutRecord method of AbstactCacheRecordStore to override it on enterprise


<nb> public final class FileSystemWorker extends AbstractWorker {
 COMMENT
 @ override
 public void stop ( ) {
 + mSessionCleaner . stop ( ) ;
 if ( mFilePersistenceService != null ) {
 mFilePersistenceService . cancel ( true ) ;
 }

Properly stop the file worker session cleaner thread


<nb> public class PropertyWriterTest
 assertEquals ( NUMBER0 , propertyStore . getHighId ( ) ) ;
 assertEquals ( NUMBER1 , propertyRecordId ) ;

 - List < PropertyBlock > propertyBlocks = new ArrayList ( propertyStore . getRecord ( propertyRecordId ) . getPropertyBlocks ( ) ) ;
 + List < PropertyBlock > propertyBlocks = new ArrayList < PropertyBlock > ( propertyStore . getRecord ( propertyRecordId ) . getPropertyBlocks ( ) ) ;
 assertEquals ( NUMBER1 , propertyBlocks . get ( NUMBER1 ) . getKeyIndexId ( ) ) ;
 assertEquals ( NUMBER2 , propertyBlocks . get ( NUMBER1 ) . getSingleValueInt ( ) ) ;
 assertEquals ( NUMBER0 , propertyBlocks . get ( NUMBER0 ) . getKeyIndexId ( ) ) ;
 <nb> public class PropertyWriterTest
 propertyStore . close ( ) ;
 }

 + @ suppresswarnings ( { STRING0 } )
 private HashMap defaultConfig ( )
 {
 HashMap config = new HashMap ( ) ;