<nb> import NAMESPACE ;

 public class ResolveReferenceQuickFixProvider implements UnresolvedReferenceQuickFixProvider {
 public void registerFixes ( PsiJavaCodeReferenceElement ref , QuickFixActionRegistrar registrar ) {
 - registrar . register ( new DependencyQuickFix ( ref ) ) ;
 + registrar . register ( new AddMavenDependencyQuickFix ( ref ) ) ;
 }
 }


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class AsyncMetadataVersionManager implements Runnable {
 private Long currentClusterVersion ;
 private final Callable < Void > storeClientThunk ;
 private final SystemStoreRepository sysRepository ;
 -
 - SINGLE
 - private final int DELTA_MAX = NUMBER0 ;
 - private final Random randomGenerator = new Random ( System . currentTimeMillis ( ) ) ;
 -
 public boolean isActive = false ;

 public AsyncMetadataVersionManager ( SystemStoreRepository sysRepository ,

Removed unnecessary variables from AsyncMetadataVersionManager


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class JournalFormatterTestBase {
 . setCompleteStore ( CompleteStoreEntry . newBuilder ( )
 . setStoreId ( TEST_FILE_ID ) )
 . build ( ) )
 + . add (
 + JournalEntry . newBuilder ( )
 + . setDeleteStore ( DeleteStoreEntry . newBuilder ( )
 + . setStoreId ( TEST_FILE_ID ) )
 + . build ( ) )
 . build ( ) ;
 SINGLE
 ENTRIES_LIST = Lists . transform ( entries , new Function < JournalEntry , JournalEntry > ( ) {


<nb> public class CmdUtils {

 @ suppresswarnings ( STRING0 )
 public static < T > T valueOf ( OptionSet options , String opt , T defaultValue ) {
 - if ( options . has ( opt ) )
 + if ( options . has ( opt ) && options . valueOf ( opt ) != null )
 return ( T ) options . valueOf ( opt ) ;
 else
 return defaultValue ;
 }

 public static < T > T valueOf ( OptionSet options , OptionSpec < T > opt , T defaultValue ) {
 - if ( options . has ( opt ) )
 + if ( options . has ( opt ) && options . valueOf ( opt ) != null )
 return options . valueOf ( opt ) ;
 else
 return defaultValue ;

fixed valueof method to handle null value


<nb> public class TopologyMetricsRunnable extends Thread {
 private void syncMetaFromRemote ( String topologyId , TopologyMetricContext context ) {
 try {
 int memSize = context . getMemMeta ( ) . size ( ) ;
 - int zkSize = ( Integer ) stormClusterState . get_topology_metric ( topologyId ) ;
 + Integer zkSize = ( Integer ) stormClusterState . get_topology_metric ( topologyId ) ;

 - if ( memSize != zkSize ) {
 + if ( zkSize != null && memSize != zkSize . intValue ( ) ) {
 ConcurrentMap < String , Long > memMeta = context . getMemMeta ( ) ;
 for ( MetaType metaType : MetaType . values ( ) ) {
 List < MetricMeta > metaList = metricQueryClient . getMetricMeta ( clusterName , topologyId , metaType ) ;
 <nb> public class TopologyMetricsRunnable extends Thread {
 public Assignment newAssignment ;
 public Map < Integer , String > task2Component ;
 }
 - }
 + }

fixed a potential NPE when getting meta size from zk


<nb> public class IhcBinding extends AbstractActiveBinding < IhcBindingProvider >
 }
 }
 } else {
 - logger . warn ( STRING0 ) ;
 + logger . debug ( STRING0 ) ;
 }

 }


<nb> public class RecentsTvActivity extends Activity implements OnPreDrawListener {
 }

 @ override
 - protected void onStart ( ) {
 - super . onStart ( ) ;
 - updatePipUI ( ) ;
 - }
 -
 - @ override
 public void onEnterAnimationComplete ( ) {
 super . onEnterAnimationComplete ( ) ;
 if ( mLaunchedFromHome ) {
 <nb> public class RecentsTvActivity extends Activity implements OnPreDrawListener {
 } else {
 mTaskStackHorizontalGridView . setSelectedPosition ( NUMBER0 ) ;
 }
 +
 + updatePipUI ( ) ;
 }

 @ override


<nb> public class RadioTransportProvider implements Provider < RadioTransport > {
 public RadioTransport get ( ) {
 switch ( configuration . getTransportType ( ) ) {
 case AMQP :
 - return new AMQPProducer ( configuration , metricRegistry ) ;
 + return new AMQPProducer ( metricRegistry , configuration , serverStatus ) ;
 case KAFKA :
 return new KafkaProducer ( serverStatus , configuration , metricRegistry ) ;
 default :


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

Commit cleanup in AbstractCassandraKCVSTest


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ManageDialog extends AlertActivity implements
 private Handler mHandler ;

 @ override
 - protected void onResume ( ) {
 - super . onResume ( ) ;
 + protected void onCreate ( Bundle savedInstanceState ) {
 + super . onCreate ( savedInstanceState ) ;

 if ( getCallingPackage ( ) != null ) {
 Log . e ( TAG , getCallingPackage ( ) + STRING0 ) ;
 <nb> public class ManageDialog extends AlertActivity implements
 }

 @ override
 - protected void onPause ( ) {
 - super . onPause ( ) ;
 + protected void onDestroy ( ) {
 if ( ! isFinishing ( ) ) {
 finish ( ) ;
 }
 + super . onDestroy ( ) ;
 }

 @ override

Create Vpn ManageDialog in onCreate not onResume


<nb> public class Main {
 Config config = new Config ( System . getProperties ( ) ) ;
 Path inputDir = config . getInputDir ( ) ;
 Path outputDir = config . getOutputDir ( ) ;
 + System . out . println ( STRING0 + inputDir ) ;
 + System . out . println ( STRING1 + outputDir ) ;

 if ( ! Files . isDirectory ( inputDir ) ) {
 System . out . println ( STRING2 + inputDir ) ;


<nb> public interface Playable extends Parcelable ,
 case ExternalMedia . PLAYABLE_TYPE_EXTERNAL_MEDIA :
 result = createExternalMediaInstance ( pref ) ;
 break ;
 - SINGLE
 - SINGLE
 - SINGLE
 }
 if ( result == null ) {
 Log . e ( TAG , STRING0 ) ;
 <nb> public interface Playable extends Parcelable ,
 }
 return result ;
 }
 -
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 }

 class PlayableException extends Exception {

delete commented code on Playable interface related to RemoteMedia


<nb> public class SvnSimpleCommand extends SvnCommand {
 if ( code == NUMBER0 ) {
 return myStdout . toString ( ) ;
 } else {
 + boolean stdErr = true ;
 String msg = myStderr . toString ( ) ;
 if ( msg . length ( ) == NUMBER0 ) {
 + stdErr = false ;
 msg = getStdout ( ) . toString ( ) ;
 }
 - if ( msg . length ( ) == NUMBER0 ) {
 - msg = STRING0 + code ;
 - }
 + msg = new StringBuilder ( STRING0 ) . append ( code ) . append ( STRING1 )
 + . append ( stdErr ? STRING2 : STRING3 ) . append ( msg ) . append ( STRING4 ) . append ( myCommandLine . getCommandLineString ( ) ) . toString ( ) ;
 throw new VcsException ( msg ) ;
 }
 }

Put more information into exception message when svn command line execution fails


<nb> public class NativeScanner implements Scanner {
 for ( String pattern : filePatterns ) {
 sb . append ( STRING0 ) . append ( pattern ) . append ( STRING1 ) ;
 }
 - System . err . println ( sb . toString ( ) ) ;
 JarVisitor jarVisitor = getVisitor ( jarToScan ) ;

 SINGLE


<nb> public class OpenCloseIndexTests extends AbstractSharedClusterTest {
 assertIndexIsOpened ( STRING0 ) ;
 }

 - @ test @ testlogging ( STRING1 )
 + @ test @ testlogging ( STRING2 )
 public void testCloseOpenAliasMultipleIndices ( ) {
 Client client = client ( ) ;
 createIndex ( STRING0 , STRING3 ) ;
 <nb> public class RecoveryWhileUnderLoadTests extends AbstractSharedClusterTest {

 private final ESLogger logger = Loggers . getLogger ( RecoveryWhileUnderLoadTests . class ) ;

 - @ test @ testlogging ( STRING4 )
 + @ test @ testlogging ( STRING5 )
 @ slow
 public void recoverWhileUnderLoadAllocateBackupsTest ( ) throws Exception {
 logger . info ( STRING6 ) ;

Removed logger prefixes when using TestLogging annotation


<nb> public class CompileDriver {
 generatedTypes . addAll ( compilerManager . getRegisteredOutputTypes ( compiler ) ) ;
 }

 - if ( _context . getMessageCount ( CompilerMessageCategory . ERROR ) > NUMBER0 ) {
 - throw new ExitException ( ExitStatus . ERRORS ) ;
 - }
 -
 didSomething |= compiledSomething ;
 compiledSomethingForThisChunk |= didSomething ;
 +
 + if ( _context . getMessageCount ( CompilerMessageCategory . ERROR ) > NUMBER0 ) {
 + break ; SINGLE
 + }
 }

 final boolean hasUnprocessedTraverseRoots = context . getDependencyCache ( ) . hasUnprocessedTraverseRoots ( ) ;

if there were compile errors find dependencies of actually compiled and mark them for compilation for the next time


<nb> public static void main ( String [ ] args ) throws Exception {
 catch ( Throwable e )
 {
 while ( rdr . ready ( ) )
 - rdr . read ( ) ;
 + rdr . readLine ( ) ;
 Throwable c = e ;
 while ( c . getCause ( ) != null )
 c = c . getCause ( ) ;

switched to readLine on input purge in Repl exception handler


<nb> public class LockSettingsService extends ILockSettings . Stub {
 Secure . LOCK_SCREEN_OWNER_INFO_ENABLED ,
 Secure . LOCK_SCREEN_OWNER_INFO
 } ;
 -
 - SINGLE
 - private static final String [ ] READ_PROFILE_PROTECTED_SETTINGS = MIGRATE_SETTINGS_PER_USER ;
 }


<nb> public class AuditClasspathCommand extends AbstractCommandRunner < AuditCommandOpt
 }

 @ visiblefortesting
 - int printDotOutput ( TargetGraph actionGraph ) {
 + int printDotOutput ( TargetGraph targetGraph ) {
 Dot < TargetNode < ? > > dot = new Dot < > (
 - actionGraph ,
 - STRING0 ,
 + targetGraph ,
 + STRING1 ,
 new Function < TargetNode < ? > , String > ( ) {
 @ override
 public String apply ( TargetNode < ? > targetNode ) {

Rename some incorrect references to action graph


<nb> public class WhitelistWarningsGuard extends WarningsGuard {
 out . append (
 STRING0 ) ;

 - if ( productName != null && ! productName . isEmpty ( ) ) {
 + if ( productName != null && ! productName . isEmpty ( ) && ! warnings . isEmpty ( ) ) {
 out . append ( STRING1
 + STRING2 + productName + STRING3 ) ;
 }

Skip some text in the whitelist if the whitelist doesn t contain any warnings


<nb> public class Intents {
 COMMENT
 public static Intent buildViewEpisodeIntent ( int episodeTvdbId ) {
 return new Intent ( ACTION_VIEW_EPISODE )
 - . putExtra ( EXTRA_TVDBID , episodeTvdbId ) ;
 + . putExtra ( EXTRA_TVDBID , episodeTvdbId )
 + . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET ) ;
 }

 COMMENT
 <nb> public class Intents {
 COMMENT
 public static Intent buildViewShowIntent ( int showTvdbId ) {
 return new Intent ( ACTION_VIEW_SHOW )
 - . putExtra ( EXTRA_TVDBID , showTvdbId ) ;
 + . putExtra ( EXTRA_TVDBID , showTvdbId )
 + . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET ) ;
 }
 }

Add Intent FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET to API view intents


<nb> public class HeliosSoloDeploymentTest {
 assertThat ( testResult ( HeliosSoloDeploymentTestImpl . class ) , isSuccessful ( ) ) ;
 }

 -
 public static class HeliosSoloDeploymentTestImpl {

 public static final String IMAGE_NAME = STRING0 ;
 <nb> public class HeliosSoloDeploymentTest {
 @ test
 public void testDeployToSolo ( ) throws Exception {
 temporaryJobs . job ( )
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + . hostFilter ( STRING1 )
 . command ( asList ( STRING2 , STRING3 , STRING4 ) )
 . image ( IMAGE_NAME )
 . port ( STRING5 , NUMBER0 )

explicitly specify hostFilter for HeliosSoloDeploymentTest


<nb> class TiffUtil {
 public static int getAutoRotateAngleFromOrientation ( int orientation ) {
 switch ( orientation ) {
 case ExifInterface . ORIENTATION_NORMAL :
 + case ExifInterface . ORIENTATION_UNDEFINED :
 return NUMBER0 ;
 case ExifInterface . ORIENTATION_ROTATE_180 :
 return NUMBER1 ;

Don t log message for undefined EXIF rotation


<nb> public class OServer {

 for ( OStorage storage : Orient . instance ( ) . getStorages ( ) ) {
 final String storageName = storage . getName ( ) ;
 - if ( ! storages . containsKey ( storageName ) )
 + if ( storage . exists ( ) && ! storages . containsKey ( storageName ) )
 storages . put ( storageName , storage . getURL ( ) ) ;
 }

 <nb> public class ONetworkProtocolBinary extends OBinaryNetworkProtocolAbstract {

 protected void existsDatabase ( ) throws IOException {
 setDataCommandInfo ( STRING0 ) ;
 - String dbName = channel . readString ( ) ;
 + final String dbName = channel . readString ( ) ;

 checkServerAccess ( STRING1 ) ;

Fixed issue reported by Thomas about listDatabases that show not existent databases


<nb> public class AdventureWorks {
 Executor create = new Executor ( connection , SQLDialect . SQLSERVER ) ;

 System . out . println ( create
 - . select ( Employee . getFields ( ) )
 + . select ( Employee . fields ( ) )
 . select ( val ( STRING0 ) )
 - . select ( Department . getFields ( ) )
 + . select ( Department . fields ( ) )
 . select ( val ( STRING0 ) )
 - . select ( Contact . getFields ( ) )
 + . select ( Contact . fields ( ) )
 . from ( Employee )
 . join ( EmployeeAddress ) . using ( Employee . EmployeeID )
 . join ( EmployeeDepartmentHistory ) . using ( Employee . EmployeeID )


<nb> public class HighLevelFilter extends Filter {
 if ( loggingEvent . getMarker ( ) == Logging . LIFECYCLE ) {
 return FilterReply . ACCEPT ;
 } else {
 - return FilterReply . DENY ;
 + return FilterReply . NEUTRAL ;
 }
 }
 }

Fixed problem with wrong log configuration


<nb> public class FilterLibraryImpl implements FilterLibrary {
 }

 content . add ( new HierarchicalGraphMask ( ) ) ;
 -
 - SINGLE
 - buildBuildersMap ( ) ;
 }

 private void buildBuildersMap ( ) {
 <nb> public class FilterLibraryImpl implements FilterLibrary {
 }

 public FilterBuilder getBuilder ( Filter filter ) {
 + if ( buildersMap == null ) {
 + buildBuildersMap ( ) ;
 + }
 if ( buildersMap . get ( filter . getClass ( ) ) != null ) {
 return buildersMap . get ( filter . getClass ( ) ) ;
 }

Fix init issue with last fix on filters builders


<nb> public class UploadsFragment extends SherlockListFragment implements OnPhotoSele
 }

 public boolean canDismiss ( ListView listView , int position ) {
 - return ( ( PhotoUpload ) listView . getItemAtPosition ( position ) ) . getState ( ) == PhotoUpload . STATE_UPLOAD_COMPLETED ;
 + PhotoUpload upload = ( PhotoUpload ) listView . getItemAtPosition ( position ) ;
 + switch ( upload . getState ( ) ) {
 + case PhotoUpload . STATE_UPLOAD_COMPLETED :
 + case PhotoUpload . STATE_UPLOAD_ERROR :
 + return true ;
 + }
 + return false ;
 }

 public void onUploadsCleared ( ) {


<nb> public class SimpleTcpCluster extends LifecycleMBeanBase

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SimpleTcpCluster extends LifecycleMBeanBase

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> import static NAMESPACE ;
 public class MllpTcpClientProducerAcknowledgementTest extends CamelTestSupport {

 @ rule
 - public MllpServerResource mllpServer = new MllpServerResource ( mllpHost , AvailablePortFinder . getNextAvailable ( ) ) ;
 -
 - String mllpHost = STRING0 ;
 + public MllpServerResource mllpServer = new MllpServerResource ( STRING0 , AvailablePortFinder . getNextAvailable ( ) ) ;

 @ endpointinject ( uri = STRING1 )
 ProducerTemplate source ;


<nb> public interface DependencyManager extends DependencyContainer {

 DualResolver addMavenStyleRepo ( String name , String root , String . . . jarRepoUrls ) ;

 - void publish ( List configurations , ResolverContainer resolvers , boolean uploadModuleDescriptor ) ;
 + void publish ( List < String > configurations , ResolverContainer resolvers , boolean uploadModuleDescriptor ) ;

 ModuleRevisionId createModuleRevisionId ( ) ;
 }


<nb> public class VersionPrinter {
 COMMENT
 COMMENT
 COMMENT
 - public static void printVersion ( ClassLoader classLoader ) {
 + public static void printVersion ( ) {
 if ( printed ) {
 return ;
 }
 printed = true ;
 - String version = new ClassPathResource ( STRING0 , classLoader ) . loadAsString ( STRING1 ) ;
 + String version = new ClassPathResource ( STRING0 , VersionPrinter . class . getClassLoader ( ) ) . loadAsString ( STRING1 ) ;
 LOG . info ( STRING2 + version + STRING3 ) ;
 }
 }

Flyway should not expect org flywaydb core internal version


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

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


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MavenEnvironmentRegistrar implements ApplicationComponent {
 }

 private void registerFileTypes ( ) {
 + SINGLE
 + if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) return ;
 FileTypeManager . getInstance ( ) . associateExtension ( XmlFileType . INSTANCE , MavenConstants . POM_EXTENSION ) ;
 }

do not change file types in the unit test mode


<nb> public class StorageManager {
 COMMENT
 public String getDefaultProviderId ( ) {
 SINGLE
 - return mProviders . entrySet ( ) . iterator ( ) . next ( ) . getKey ( ) ;
 + return mProviders . keySet ( ) . iterator ( ) . next ( ) ;
 }

 COMMENT


<nb> public class WindowLayersController {
 }

 private int assignAndIncreaseLayerIfNeeded ( WindowState win , int layer ) {
 - if ( win != null && layer > win . mLayer ) {
 + if ( win != null ) {
 assignAnimLayer ( win , layer ) ;
 SINGLE
 layer += WINDOW_LAYER_MULTIPLIER ;

Always assign layer when restacking special windows


<nb> public class Element extends Node {
 void outerHtmlTail ( StringBuilder accum , int depth , Document . OutputSettings out ) {
 if ( ! ( childNodes . isEmpty ( ) && tag . isSelfClosing ( ) ) ) {
 if ( out . prettyPrint ( ) && ( ! childNodes . isEmpty ( ) && (
 - tag . formatAsBlock ( ) || ( out . outline ( ) && childNodes . size ( ) > NUMBER0 || ( childNodes . size ( ) == NUMBER0 && ! ( childNodes . get ( NUMBER1 ) instanceof TextNode ) ) )
 + tag . formatAsBlock ( ) || ( out . outline ( ) && ( childNodes . size ( ) > NUMBER0 || ( childNodes . size ( ) == NUMBER0 && ! ( childNodes . get ( NUMBER1 ) instanceof TextNode ) ) ) )
 ) ) )
 indent ( accum , depth , out ) ;
 accum . append ( STRING0 ) . append ( tagName ( ) ) . append ( STRING1 ) ;

Fixed overzealous indenting in outerHtmlTail


<nb> public class Notification implements Parcelable
 if ( onMs != NUMBER0 || offMs != NUMBER0 ) {
 mN . flags |= FLAG_SHOW_LIGHTS ;
 }
 - if ( ( mN . defaults & DEFAULT_LIGHTS ) != NUMBER0 ) {
 - mN . flags |= FLAG_SHOW_LIGHTS ;
 - }
 return this ;
 }

 <nb> public class Notification implements Parcelable
 mStyle . buildStyled ( mN ) ;
 }

 + if ( ( mN . defaults & DEFAULT_LIGHTS ) != NUMBER0 ) {
 + mN . flags |= FLAG_SHOW_LIGHTS ;
 + }
 +
 return mN ;
 }

Don t require apps to call showLights to use default lights


<nb> public class DeskshareMain implements ClientListener , LifeLineListener {
 System . out . println ( STRING0 ) ;
 ExitCode reason = dsMain . exitReasonQ . take ( ) ;
 System . out . println ( STRING1 ) ;
 - dsMain . displayJavaWarning ( reason . name ( ) ) ;
 client . stop ( ) ;
 System . exit ( reason . getExitCode ( ) ) ;
 } catch ( InterruptedException e ) {


<nb> public class CarrierConfigManager {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 @ systemapi
 public static Bundle getDefaultConfig ( ) {
 - return sDefaults ;
 + return new Bundle ( sDefaults ) ;
 }

 COMMENT


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public abstract class AbstractDisambiguator implements Disambiguator {

 <nb> public interface Disambiguator {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 AnalyzedSentence preDisambiguate ( AnalyzedSentence input ) ;

Add since into documentation for new method and class


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

 import static NAMESPACE ;


<nb> import NAMESPACE ;

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

 class DefaultJavaObjectFactory implements ObjectFactory {
 - private final Set < Class < ? > > classes = new HashSet < Class < ? > > ( ) ;
 private final Map < Class < ? > , Object > instances = new HashMap < Class < ? > , Object > ( ) ;

 public void start ( ) {
 <nb> class DefaultJavaObjectFactory implements ObjectFactory {
 }

 public void addClass ( Class < ? > clazz ) {
 - classes . add ( clazz ) ;
 }

 public < T > T getInstance ( Class < T > type ) {


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

 + import NAMESPACE ;
 +

 public class PyLocalPositionConverter implements PyPositionConverter {

 <nb> public class PyLocalPositionConverter implements PyPositionConverter {
 }

 @ notnull
 - final public PySourcePosition create ( @ notnull final String file , final int line ) {
 - final VirtualFile vFile = LocalFileSystem . getInstance ( ) . findFileByPath ( file ) ;
 - if ( vFile != null ) {
 - return new PyLocalSourcePosition ( vFile . getPath ( ) , line ) ;
 + final public PySourcePosition create ( @ notnull final String filePath , final int line ) {
 + File file = new File ( filePath ) ;
 +
 + if ( file . exists ( ) ) {
 + return new PyLocalSourcePosition ( file . getPath ( ) , line ) ;
 }
 else {
 - return new PyRemoteSourcePosition ( file , line ) ;
 + return new PyRemoteSourcePosition ( filePath , line ) ;
 }
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class Realm implements Closeable {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 - public < E extends RealmObject > List < E > copyToRealm ( List < E > objects ) {
 + public < E extends RealmObject > Collection < E > copyToRealm ( Iterable < E > objects ) {
 if ( objects == null ) new ArrayList < E > ( ) ;

 - ArrayList < E > realmObjects = new ArrayList < E > ( objects . size ( ) ) ;
 + ArrayList < E > realmObjects = new ArrayList < E > ( ) ;
 for ( E object : objects ) {
 realmObjects . add ( copyToRealm ( object ) ) ;
 }

Allow iterable collection types when using copyToRealm for lists


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class KotlinSignatureInJavaMarkerProvider implements LineMarkerProvider {
 }
 }
 catch ( AssertionError error ) {
 - LOG . error ( LogMessageEx . createEvent (
 - STRING0 ,
 - ExceptionUtil . getThrowableText ( error ) ,
 - AttachmentPackage . attachmentByPsiFileAsArray ( psiFile )
 - ) ) ;
 + LOG . warn ( STRING1 + ExceptionUtil . getThrowableText ( error ) ) ;
 }
 }


<nb> public abstract class ESTestCase extends LuceneTestCase {
 }

 public static long randomPositiveLong ( ) {
 - long positiveLong = randomLong ( ) ;
 - while ( positiveLong == Long . MIN_VALUE ) {
 - positiveLong = randomLong ( ) ;
 - }
 - return Math . abs ( positiveLong ) ;
 + long randomLong ;
 + do {
 + randomLong = randomLong ( ) ;
 + } while ( randomLong == Long . MIN_VALUE ) ;
 + return Math . abs ( randomLong ) ;
 }

 public static float randomFloat ( ) {

TEST adjusted EsTestCase randomPositiveLong


<nb> public final class ClientMapProxy < K , V > extends ClientProxy implements IMap < K , V
 }

 @ override
 + public Map < K , Object > executeOnKeys ( Set < K > keys , EntryProcessor entryProcessor ) {
 + throw new UnsupportedOperationException ( STRING0 ) ;
 + }
 +
 + @ override
 public boolean containsKey ( Object key ) {
 Data keyData = toData ( key ) ;
 MapContainsKeyRequest request = new MapContainsKeyRequest ( name , keyData ) ;

Fixed a compiletime issue on the ClientMapProxy


<nb> public abstract class OIndexTxAware < T > extends OIndexAbstractDelegate < T > {

 @ override
 public int remove ( final OIdentifiable iRID ) {
 - database . getTransaction ( ) . addIndexEntry ( delegate , super . getName ( ) , OPERATION . REMOVE , null , iRID ) ;
 + database . getTransaction ( ) . addIndexEntry ( delegate , super . getName ( ) , OPERATION . REMOVE , STRING0 , iRID ) ;
 return NUMBER0 ;
 }

 <nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

Fixed issue on transactional remove of entry


<nb> public class FileUtilsTest {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 @ test
 public void deletePathRecursivelyTest ( ) throws IOException {


<nb> public class StandaloneScriptBacking implements Action < Closure < ? > > {
 CAPTURE_ACTION . set ( action ) ;
 }

 - SINGLE
 public void execute ( final Closure < ? > closure ) throws Exception {
 GroovyVersionCheck . ensureRequiredVersionUsed ( GroovySystem . getVersion ( ) ) ;
 Path scriptFile = ClosureUtil . findScript ( closure ) ;

Remove lingering TODO that was for LaunchConfig


<nb> class VisualCppStaticLibraryLinker extends CommandLineCppCompiler < LinkerSpec > {

 private static class VisualCppLinkerSpecArguments implements CompileSpecToArguments < LinkerSpec > {
 public void collectArguments ( LinkerSpec spec , ArgCollector collector ) {
 + collector . args ( spec . getArgs ( ) ) ;
 collector . args ( STRING0 + spec . getOutputFile ( ) . getAbsolutePath ( ) ) ;
 collector . args ( STRING1 ) ;
 for ( File file : spec . getSource ( ) ) {
 collector . args ( file . getAbsolutePath ( ) ) ;
 }
 - for ( File file : spec . getLibs ( ) ) {
 - collector . args ( file . getAbsolutePath ( ) . replaceFirst ( STRING2 , STRING3 ) ) ;
 - }
 - SINGLE
 - collector . args ( spec . getArgs ( ) ) ;
 }
 }
 }

Tweak command line arguments for assembling static library with lib exe


<nb> final class CameraConfigurationManager {

 parameters . setPreviewSize ( cameraResolution . x , cameraResolution . y ) ;
 camera . setParameters ( parameters ) ;
 +
 + Camera . Parameters afterParameters = camera . getParameters ( ) ;
 + Camera . Size afterSize = afterParameters . getPreviewSize ( ) ;
 + if ( afterSize != null && ( cameraResolution . x != afterSize . width || cameraResolution . y != afterSize . height ) ) {
 + Log . w ( TAG , STRING0 + cameraResolution . x + STRING1 + cameraResolution . y +
 + STRING2 + afterSize . width + STRING1 + afterSize . height ) ;
 + cameraResolution . x = afterSize . width ;
 + cameraResolution . y = afterSize . height ;
 + }
 }

 Point getCameraResolution ( ) {

If camera fails to support its supported and chosen preview mode use its actual setting


<nb> public class IncrementalIndexStorageAdapter implements StorageAdapter
 }

 while ( baseIter . hasNext ( ) ) {
 + if ( Thread . interrupted ( ) ) {
 + throw new QueryInterruptedException ( ) ;
 + }
 +
 currEntry . set ( baseIter . next ( ) ) ;

 if ( filterMatcher . matches ( ) ) {

interrupt queries on incremental indexer


<nb> public final class UpgradeService {
 finish ( ) ;
 }
 }
 +
 + @ override
 + public void onBackPressed ( ) {
 + SINGLE
 + }
 }

 COMMENT

Don t allow the upgrade activity to be backed out of


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 public abstract class WriteAction < T > extends BaseActionRunnable < T > {
 private static final Logger LOG = Logger . getInstance ( STRING0 ) ;
 <nb> public abstract class WriteAction < T > extends BaseActionRunnable < T > {
 }
 }
 catch ( Exception e ) {
 + if ( e instanceof InvocationTargetException ) {
 + Throwable cause = e . getCause ( ) ;
 + e = cause instanceof Exception ? ( Exception ) cause : new RuntimeException ( e ) ;
 + }
 if ( isSilentExecution ( ) ) {
 result . setThrowable ( e ) ;
 }

platform improves trace readability by unwrapping InvocationTargetException in WriteAction


<nb> public class ServiceBuilder {

 File sqlFile = new File ( sqlPath + STRING0 ) ;

 + if ( ! sqlFile . exists ( ) ) {
 + FileUtil . write ( sqlFile , StringPool . BLANK ) ;
 + }
 +
 String content = FileUtil . read ( sqlFile ) ;

 for ( int i = NUMBER0 ; i < _ejbList . size ( ) ; i ++ ) {
 <nb> public class ServiceBuilder {
 sb . append ( line ) . append ( STRING1 ) ;
 }

 + if ( appendNewTable ) {
 + sb . append ( STRING2 + newCreateTableString ) ;
 + }
 +
 br . close ( ) ;

 FileUtil . write ( sqlFile , sb . toString ( ) , true ) ;


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SystemProperties {
 public static String getJavaVendor ( ) {
 return System . getProperty ( STRING0 ) ;
 }
 +
 + public static boolean is ( String key ) {
 + return getBooleanProperty ( key , false ) ;
 + }
 +
 + public static boolean has ( String key ) {
 + return System . getProperty ( key ) != null ;
 + }
 }


<nb> public class DummyHolder extends PsiFileImpl implements PsiImportHolder {
 }

 public FileElement getTreeElement ( ) {
 + if ( myFileElement != null ) return myFileElement ;
 +
 synchronized ( PsiLock . LOCK ) {
 return getTreeElementNoLock ( ) ;
 }
 <nb> public abstract class PsiFileImpl extends NonSlaveRepositoryPsiElement implement
 }

 public FileElement getTreeElement ( ) {
 + final FileElement noLockAttempt = ( FileElement ) _getTreeElement ( ) ;
 + if ( noLockAttempt != null ) return noLockAttempt ;
 +
 synchronized ( PsiLock . LOCK ) {
 return getTreeElementNoLock ( ) ;
 }

Reduce probability of taking lock in file s getTreeElement


<nb> public class AjpProcessor extends AbstractAjpProcessor {
 COMMENT
 @ override
 protected void flush ( boolean explicit ) throws IOException {
 - if ( ! finished ) {
 + if ( explicit && ! finished ) {
 SINGLE
 output . write ( flushMessageArray ) ;
 }

Do not send flush packet if explicit is false


<nb> public class Drawer {
 this . mHeaderDivider = headerDivider ;
 return this ;
 }
 + SINGLE
 + protected View mFooterView ;
 + protected boolean mFooterDivider = true ;
 +
 + public Drawer withFooter ( View footerView ) {
 + this . mFooterView = footerView ;
 + return this ;
 + }
 +
 + public Drawer withFooter ( int footerViewRes ) {
 + if ( mActivity == null ) {
 + throw new RuntimeException ( STRING0 ) ;
 + }
 +
 + if ( footerViewRes != - NUMBER0 ) {
 + SINGLE
 + this . mFooterView = mActivity . getLayoutInflater ( ) . inflate ( footerViewRes , null , false ) ;
 + }
 +
 + return this ;
 + }
 +
 + public Drawer withFooterDivider ( boolean footerDivider ) {
 + this . mFooterDivider = footerDivider ;
 + return this ;
 + }
 SINGLE
 protected int mSelectedItem = NUMBER1 ;


<nb> public class WorldEditListener extends PluginListener {
 blockType = BlockType . fromID ( Integer . parseInt ( testID ) ) ;
 } catch ( NumberFormatException e ) {
 blockType = BlockType . lookup ( testID ) ;
 + if ( blockType == null ) {
 + int t = etc . getDataSource ( ) . getItem ( testID ) ;
 + if ( t > NUMBER0 && t < NUMBER1 ) {
 + blockType = BlockType . fromID ( t ) ;
 + }
 + }
 }

 if ( blockType == null ) {

Commands now also use hMod to resolve block names into block IDs


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;


<nb> public class Peer {
 }

 if ( pingAfterGetData )
 - sendMessage ( new Ping ( ( long ) Math . random ( ) * Long . MAX_VALUE ) ) ;
 + sendMessage ( new Ping ( ( long ) ( Math . random ( ) * Long . MAX_VALUE ) ) ) ;
 }

 COMMENT
 <nb> public class Peer {
 COMMENT
 COMMENT
 public ListenableFuture < Long > ping ( ) throws IOException , ProtocolException {
 - return ping ( ( long ) Math . random ( ) * Long . MAX_VALUE ) ;
 + return ping ( ( long ) ( Math . random ( ) * Long . MAX_VALUE ) ) ;
 }

 protected ListenableFuture < Long > ping ( long nonce ) throws IOException , ProtocolException {

Fix a bug that would cause ping nonces to always be set to zero thus screwing up perceived ping times


<nb> public class JobGraphGenerator implements Visitor < OptimizerNode > {
 inConnOfInput = new LinkedList < PactConnection > ( ) ;
 SINGLE
 SINGLE
 - for ( PactConnection inConn : ( ( UnionNode ) input ) . getUnionedIncommingConnections ( ) ) {
 + for ( PactConnection inConn : input . getIncomingConnections ( ) ) {
 inConnOfInput . add ( new PactConnection ( connection , inConn . getSourcePact ( ) , connection . getTargetPact ( ) ) ) ;
 }
 }
 <nb> public class UnionNode extends OptimizerNode {
 return true ;
 }

 - public List < PactConnection > getUnionedIncommingConnections ( ) {
 - return inConns ;
 - }
 -
 }

Removed unnecessary method from Unionnode


<nb> public abstract class AbstractTestQueryFramework
 }

 @ afterclass ( alwaysRun = true )
 - private void close ( )
 + public void close ( )
 throws Exception
 {
 try {

Make close in AbstractTestQueryFramework callable by TestNG


<nb> public class StructuralSearchTest extends StructuralSearchTestCase {
 STRING0 +
 STRING1 +
 STRING2 +
 - STRING2 +
 STRING3 +
 STRING4 +
 STRING5 +


<nb> public abstract class MixinWorld implements World , IMixinWorld {
 }

 @ override
 + public Location getSpawnLocation ( ) {
 + return new Location ( this , this . worldInfo . getSpawnX ( ) , this . worldInfo . getSpawnY ( ) , this . worldInfo . getSpawnZ ( ) ) ;
 + }
 +
 + @ override
 public Context getContext ( ) {
 if ( this . worldContext == null ) {
 this . worldContext = new Context ( Context . WORLD_KEY , getName ( ) ) ;


<nb> public class Script {
 } catch ( Exception e1 ) {
 SINGLE
 SINGLE
 - log . warn ( STRING0 , e1 . toString ( ) ) ;
 - SINGLE
 - SINGLE
 +
 + SINGLE
 + SINGLE
 + if ( ! e1 . getMessage ( ) . contains ( STRING1 ) )
 + log . warn ( STRING0 , e1 . toString ( ) ) ;
 }

 if ( opcode == OP_CHECKSIG )


<nb> public class RestClusterHealthAction extends BaseRestHandler {
 XContentBuilder builder = RestXContentBuilder . restContentBuilder ( request ) ;
 builder . startObject ( ) ;

 + builder . field ( STRING0 , response . clusterName ( ) ) ;
 builder . field ( STRING1 , response . status ( ) . name ( ) . toLowerCase ( ) ) ;
 builder . field ( STRING2 , response . timedOut ( ) ) ;
 builder . field ( STRING3 , response . numberOfNodes ( ) ) ;

add cluster name to cluster health response


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

 COMMENT
 COMMENT
 <nb> public class CoreJarVirtualFile extends VirtualFile {

 @ override
 public VirtualFile [ ] getChildren ( ) {
 - throw new UnsupportedOperationException ( STRING0 ) ;
 + List < VirtualFile > result = new ArrayList < VirtualFile > ( ) ;
 + final String [ ] children = myHandler . list ( this ) ;
 + for ( String child : children ) {
 + final VirtualFile childFile = myHandler . findFileByPath ( myPathInJar + STRING1 + child ) ;
 + result . add ( childFile ) ;
 + }
 + return result . toArray ( new VirtualFile [ result . size ( ) ] ) ;
 }

 @ notnull


<nb> public class SCCSRepository extends Repository {
 private static ScmChecker sccsBinary = new ScmChecker ( new String [ ] {
 System . getProperty ( STRING0 , STRING1 ) ,
 STRING2 , STRING2 } ) ;
 + private static ScmChecker csscBinary = new ScmChecker ( new String [ ] {
 + System . getProperty ( STRING0 , STRING1 ) ,
 + STRING3 } ) ;

 private Map < String , String > authors_cache ;

 <nb> public class SCCSRepository extends Repository {

 @ override
 public boolean isWorking ( ) {
 - return sccsBinary . available ;
 + return sccsBinary . available || csscBinary . available ;
 }

 @ override


<nb> public class TimeTextView extends TextView {
 }
 }

 + @ override
 + protected void onAttachedToWindow ( ) {
 + super . onAttachedToWindow ( ) ;
 +
 + if ( mTime != null ) {
 + updateTimeText ( ) ;
 + }
 + }
 +
 + @ override
 + protected void onDetachedFromWindow ( ) {
 + super . onDetachedFromWindow ( ) ;
 +
 + removeCallbacks ( mUpdateTimeTextRunnable ) ;
 + }
 +
 protected String formatTime ( ZonedDateTime time ) {
 return TimeUtils . formatDateTime ( time , getContext ( ) ) ;
 }

Fix activity leak due to periodic runnable in TimeTextView


<nb> class ServerDialback {
 return valid ;
 }
 catch ( Exception e ) {
 - Log . warn ( STRING0 , e ) ;
 + Log . warn ( STRING1 + hostname , e ) ;
 SINGLE
 SINGLE
 SINGLE

Added hostname information to warn log when failing to connect to AS


<nb> public class HomematicGenericBindingProvider extends AbstractGenericBindingProvi

 @ override
 protected void addBindingConfig ( Item item , BindingConfig config ) {
 - super . addBindingConfig ( item , config ) ;
 items . put ( item . getName ( ) , item ) ;
 + super . addBindingConfig ( item , config ) ;
 }

 @ override

Fixed wrong restored HomematicGenericItemProvider fix


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

 public class SPDYServerConnector extends SelectChannelConnector
 {
 + private static final Logger logger = LoggerFactory . getLogger ( SPDYServerConnector . class ) ;
 +
 SINGLE
 private final Map < String , AsyncConnectionFactory > factories = new LinkedHashMap < > ( ) ;
 private final Queue < Session > sessions = new ConcurrentLinkedQueue < > ( ) ;
 <nb> public class SPDYServerConnector extends SelectChannelConnector
 super . doStart ( ) ;
 defaultConnectionFactory = new ServerSPDYAsyncConnectionFactory ( SPDY . V2 , getByteBufferPool ( ) , getExecutor ( ) , scheduler , listener ) ;
 putAsyncConnectionFactory ( STRING0 , defaultConnectionFactory ) ;
 + logger . info ( STRING1 ) ;
 }

 @ override

Added log statement that SPDY is experimental


<nb> public class Tool {
 COMMENT
 public static GrammarAST findOptionValueAST ( GrammarRootAST root , String option ) {
 GrammarAST options = ( GrammarAST ) root . getFirstChildWithType ( ANTLRParser . OPTIONS ) ;
 - if ( options != null ) {
 + if ( options != null && options . getChildCount ( ) > NUMBER0 ) {
 for ( Object o : options . getChildren ( ) ) {
 GrammarAST c = ( GrammarAST ) o ;
 if ( c . getType ( ) == ANTLRParser . ASSIGN &&

Fix NPE revealed by updated testing method


<nb> import NAMESPACE ;
 public class FromFtpToMockTest extends FtpServerTestSupport {
 protected MockEndpoint resultEndpoint ;
 protected String expectedBody = STRING0 ;
 - protected String port = STRING1 ;
 - protected String ftpUrl = STRING2 + port + STRING3 ;
 + protected String port = STRING4 ;
 + protected String ftpUrl = STRING2 + port + STRING5 ;

 public void testFtpRoute ( ) throws Exception {
 MockEndpoint resultEndpoint = getMockEndpoint ( STRING6 ) ;
 <nb> public class FromFtpToMockTest extends FtpServerTestSupport {
 SINGLE

 template . sendBodyAndHeader ( ftpUrl , expectedBody , STRING7 , NUMBER0 ) ;
 + SINGLE
 + Thread . sleep ( NUMBER1 ) ;
 +
 resultEndpoint . assertIsSatisfied ( ) ;

 - SINGLE
 Thread . sleep ( NUMBER1 ) ;
 +
 +
 }

 protected RouteBuilder createRouteBuilder ( ) throws Exception {

Fixed the test error of FromFtpToMockTest


<nb> public class NioEndpoint {
 SINGLE
 reg ( sk , attachment , NUMBER0 ) ;
 SINGLE
 - if ( sk . isReadable ( ) )
 - if ( ! processSocket ( channel , SocketStatus . OPEN_READ ) ) processSocket ( channel , SocketStatus . DISCONNECT ) ;
 - else
 - if ( ! processSocket ( channel , SocketStatus . OPEN_WRITE ) ) processSocket ( channel , SocketStatus . DISCONNECT ) ;
 + if ( sk . isReadable ( ) ) {
 + if ( ! processSocket ( channel , SocketStatus . OPEN_READ ) )
 + processSocket ( channel , SocketStatus . DISCONNECT ) ;
 + } else {
 + if ( ! processSocket ( channel , SocketStatus . OPEN_WRITE ) )
 + processSocket ( channel , SocketStatus . DISCONNECT ) ;
 + }
 } else {
 result = false ;
 }

add brackets to clarify what were trying to do


<nb> public class NotificationsListFragment extends Fragment
 public void onEventMainThread ( NotificationEvents . NoteModerationFailed event ) {
 if ( isAdded ( ) ) {
 ToastUtils . showToast ( getActivity ( ) , R . string . error_moderate_comment , Duration . LONG ) ;
 -
 - EventBus . getDefault ( ) . removeStickyEvent ( NotificationEvents . NoteModerationFailed . class ) ;
 }
 +
 + EventBus . getDefault ( ) . removeStickyEvent ( NotificationEvents . NoteModerationFailed . class ) ;
 }
 }

Move the sticky event removal outside of isAdded call


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import static NAMESPACE ;
 public class ProcessWaitForTest {
 @ test ( timeout = NUMBER0 )
 public void notification ( ) throws IOException , InterruptedException {
 - File jvm = new File ( System . getProperty ( STRING0 ) , STRING1 ) ;
 + File jvm = new File ( System . getProperty ( STRING0 ) + ( SystemInfo . isWindows ? STRING2 : STRING3 ) ) ;
 assertTrue ( jvm . canExecute ( ) ) ;

 final Semaphore semaphore = new Semaphore ( ) ;


<nb> import NAMESPACE ;
 COMMENT
 public class EditPreferences extends TodorooPreferenceActivity {

 - private static final String SUPPORT_URL = STRING0 ; SINGLE
 + private static final String SUPPORT_URL = STRING1 ; SINGLE

 private static final int APPEARANCE_PREFERENCE = NUMBER0 ;


<nb> public class MainService extends Service {
 unregisterReceiver ( mDialogReceiver ) ;
 unregisterReceiver ( mBroadcastReceiver ) ;
 MainController . destroy ( ) ;
 + super . onDestroy ( ) ;
 }

 private void cancelCurrentNotification ( ) {


<nb> public class SlowQueryReportJmx extends SlowQueryReport implements NotificationE

 public ObjectName getObjectName ( Class < ? > clazz , String poolName ) throws MalformedObjectNameException {
 - ObjectName oname = null ;
 - if ( getProperties ( ) . containsKey ( objectNameAttribute ) ) {
 - oname = new ObjectName ( getProperties ( ) . get ( objectNameAttribute ) . getValue ( ) ) ;
 + ObjectName oname ;
 + Map < String , InterceptorProperty > properties = getProperties ( ) ;
 + if ( properties != null && properties . containsKey ( objectNameAttribute ) ) {
 + oname = new ObjectName ( properties . get ( objectNameAttribute ) . getValue ( ) ) ;
 } else {
 oname = new ObjectName ( ConnectionPool . POOL_JMX_TYPE_PREFIX + clazz . getName ( ) + STRING0 + poolName ) ;
 }


<nb> public class IndexRemoveJob extends IndexUpdateJob implements ScanJob {
 public Predicate < StaticBuffer > getKeyFilter ( ) {
 if ( isGlobalGraphIndex ( ) ) {
 assert graphIndexId > NUMBER0 ;
 - return ( k - > indexSerializer . getIndexIdFromKey ( k ) == graphIndexId ) ;
 + return ( k - > {
 + try {
 + return indexSerializer . getIndexIdFromKey ( k ) == graphIndexId ;
 + } catch ( RuntimeException e ) {
 + log . debug ( STRING0 , k , e ) ;
 + return false ;
 + }
 + } ) ;
 } else {
 return buffer - > {
 long vertexId = idManager . getKeyID ( buffer ) ;

Allow empty relation type name in IndexRemoveJob


<nb> public class LiveTemplateSettingsEditor extends JPanel {
 }

 private void updateHighlighter ( ) {
 - TemplateContext templateContext = new TemplateContext ( ) ;
 - TemplateEditorUtil . setHighlighter ( myTemplateEditor , templateContext ) ;
 + for ( TemplateContextType contextType : myContext . keySet ( ) ) {
 + final Boolean enabled = myContext . get ( contextType ) ;
 + if ( enabled != null && enabled . booleanValue ( ) ) {
 + TemplateContext contextByType = new TemplateContext ( ) ;
 + contextByType . setEnabled ( contextType , true ) ;
 + TemplateEditorUtil . setHighlighter ( myTemplateEditor , contextByType ) ;
 + break ;
 + }
 + }
 ( ( EditorEx ) myTemplateEditor ) . repaint ( NUMBER0 , myTemplateEditor . getDocument ( ) . getTextLength ( ) ) ;
 }

restore syntax highlighting in live templates


<nb> public abstract class AbstractWebSocketConnection extends AbstractConnection imp
 public AbstractWebSocketConnection ( EndPoint endp , Executor executor , Scheduler scheduler , WebSocketPolicy policy , ByteBufferPool bufferPool )
 {
 super ( endp , executor , EXECUTE_ONFILLABLE ) ; SINGLE
 + endp . setIdleTimeout ( policy . getIdleTimeout ( ) ) ;
 this . policy = policy ;
 this . bufferPool = bufferPool ;
 this . generator = new Generator ( policy , bufferPool ) ;

Websocket Server Connection needs session idle timeouts


<nb> class ASTCbind extends ASTOp {
 new Type [ ] { Type . ARY , Type . varargs ( Type . dblary ( ) ) } ,
 OPF_PREFIX ,
 OPP_PREFIX , OPA_RIGHT ) ; }
 - @ override ASTOp make ( ) { return this ; }
 + @ override ASTOp make ( ) { return ( ASTOp ) clone ( ) ; }
 @ override void apply ( Env env , int argcnt , ASTApply apply ) {
 Vec vmax = null ;
 for ( int i = NUMBER0 ; i < argcnt - NUMBER1 ; i ++ ) {


<nb> public final class InodeDirectoryTests {
 }

 @ test
 - public void reverseIdTest ( ) {
 + public void deleteInodeTest ( ) {
 InodeDirectory inode1 = createInodeDirectory ( ) ;
 - inode1 . reverseId ( ) ;
 - Assert . assertEquals ( - NUMBER0 , inode1 . getId ( ) ) ;
 + Assert . assertEquals ( false , inode1 . isDeleted ( ) ) ;
 + inode1 . delete ( ) ;
 + Assert . assertEquals ( true , inode1 . isDeleted ( ) ) ;
 }

 @ test


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 -
 import NAMESPACE ;

 COMMENT


<nb> public interface Constr {
 }

 static void use ( ) {
 - ImRev rev = new ImRev ( NUMBER0 , NUMBER1 ) ;
 -
 - ImBuild build = new ImBuild ( STRING0 , STRING1 ) ;
 + new ImRev ( NUMBER0 , NUMBER1 ) ;
 + new ImBuild ( STRING0 , STRING1 ) ;
 }
 }


<nb> import NAMESPACE ;

 Excluded INSTANCE = new ExcludedLiteral ( ) ;

 - final class ExcludedLiteral extends AnnotationLiteral < Excluded > implements Excluded {
 + @ vetoed
 + final class ExcludedLiteral extends AnnotationLiteral < Excluded > implements Excluded {
 }
 }
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ vetoed
 public final class RoutesXml {
 -
 +
 private RoutesXml ( ) {
 SINGLE
 }


<nb> public class PermissionsResolverManager implements PermissionsResolver {
 }

 public void findResolver ( ) {
 + if ( tryDinnerPerms ( ) ) return ;
 if ( tryPluginPermissionsResolver ( ) ) return ;
 if ( tryNijiPermissions ( ) ) return ;
 if ( tryFlatFilePermissions ( ) ) return ;
 - if ( tryDinnerPerms ( ) ) return ;

 perms = new ConfigurationPermissionsResolver ( config ) ;
 logger . info ( name + STRING0 ) ;

Changed the DinnerPerms priority to not be overridden by permissions bridges


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

 <nb> public class AsyncSenderImpl implements Sender {
 new ChannelListener < StreamSinkChannel > ( ) {
 @ override
 public void handleEvent ( final StreamSinkChannel channel ) {
 - callback . onComplete ( exchange , AsyncSenderImpl . this ) ;
 + if ( callback != null ) {
 + callback . onComplete ( exchange , AsyncSenderImpl . this ) ;
 + }
 }
 } , new ChannelExceptionHandler < StreamSinkChannel > ( ) {
 @ override
 public void handleException ( final StreamSinkChannel channel , final IOException exception ) {
 - invokeOnException ( callback , exception ) ;
 + try {
 + if ( callback != null ) {
 + invokeOnException ( callback , exception ) ;
 + }
 + } finally {
 + IoUtils . safeClose ( channel ) ;
 + }
 }
 }
 ) ) ;


<nb> public class ProgressPanel
 this . validate ( ) ;
 }

 - @ override
 public void actionPerformed ( ActionEvent arg0 )
 {
 this . searchThread . cancel ( ) ;
 <nb> public class StrategiesList
 COMMENT
 COMMENT
 COMMENT
 - @ override
 public Object getElementAt ( int row )
 {
 return this . data . get ( row ) ;
 <nb> public class StrategiesList
 COMMENT
 COMMENT
 COMMENT
 - @ override
 public int getSize ( )
 {
 return this . data . size ( ) ;
 <nb> public class StrategiesList
 extends JLabel
 implements ListCellRenderer
 {
 - @ override
 COMMENT
 COMMENT
 COMMENT
 <nb> public class StrategiesList
 return this ;
 }
 }
 - }
 + }
 +

Remove override lines in the dictaccregwizz plugin


<nb> public class MessageParserHook implements MessagePreReceiveHookIF {
 COMMENT
 COMMENT
 COMMENT
 - Main . drools . evaluate ( message ) ;
 + if ( Main . drools != null )
 + {
 + Main . drools . evaluate ( message ) ;
 + }
 }
 }


<nb> public abstract class Optional < T > implements BaseHolder < T > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 SINGLE
 @ deprecated @ nullable public abstract T get ( @ nullable T defaultValue ) ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Fix Javadoc error in Optional resulting from reference to not visible BaseHolder methods


<nb> public class PresenceGenerator extends AbstractGenerator {
 Element cap = packet . addChild ( STRING0 ,
 STRING1 ) ;
 cap . setAttribute ( STRING2 , STRING3 ) ;
 - cap . setAttribute ( STRING4 , STRING5 ) ;
 + cap . setAttribute ( STRING4 , STRING6 ) ;
 cap . setAttribute ( STRING7 , capHash ) ;
 }
 return packet ;
 <nb> public class PresenceGenerator extends AbstractGenerator {
 packet . setAttribute ( STRING8 , STRING9 ) ;
 return packet ;
 }
 - }
 + }


<nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 COMMENT
 - @ requestscoped
 + @ singleton
 public class MySingletonScopedBean {
 public String getID ( ) {
 return this + STRING0 ;

Fixed scope of MySingletonScopedBean to really be Singelton


<nb> public class HtmlToPdfMojo extends AbstractMojo {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 private String page ;
 <nb> public class HtmlToPdfMojo extends AbstractMojo {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 private String pdf ;
 <nb> public class HtmlToPdfMojo extends AbstractMojo {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Fixed deprecation warning when building the maven tooling


<nb> public class JettyWebSocketUtil {
 WebSocketFactory webSocketFactory = new WebSocketFactory ( new WebSocketFactory . Acceptor ( ) {
 public boolean checkOrigin ( HttpServletRequest request , String origin ) {
 SINGLE
 - logger . debug ( STRING0 , request . getRequestURI ( ) , origin ) ;
 + logger . trace ( STRING0 , request . getRequestURI ( ) , origin ) ;
 return true ;
 }

 public org . eclipse . jetty . websocket . WebSocket doWebSocketConnect ( HttpServletRequest request , String protocol ) {
 - logger . debug ( STRING1 , request . getRequestURI ( ) , protocol ) ;
 + logger . trace ( STRING1 , request . getRequestURI ( ) , protocol ) ;
 return new JettyWebSocketHandler ( AtmosphereRequest . loadInMemory ( request , false ) , config . framework ( ) , config . framework ( ) . getWebSocketProtocol ( ) ) ;
 }
 } ) ;

Increase the log since Jetty API is table enough


<nb> public class Directories
 COMMENT
 public static final String DATA_DIR_PROPERTY_NAME = STRING0 ;
 COMMENT
 - public static final String DATA_DIR_PROPERTY_NAME_DEFAULT = STRING1 ;
 + public static final String DATA_DIR_PROPERTY_NAME_DEFAULT = System . getProperty ( STRING2 ) + STRING3 ;

 COMMENT
 public static final String ADMIN_DIR_PROPERTY_NAME = STRING4 ;
 COMMENT
 - public static final String ADMIN_DIR_PROPERTY_NAME_DEFAULT = STRING5 ;
 + public static final String ADMIN_DIR_PROPERTY_NAME_DEFAULT = System . getProperty ( STRING2 ) + STRING6 ;

 public static final String DATA_DIR = System . getProperty ( DATA_DIR_PROPERTY_NAME , DATA_DIR_PROPERTY_NAME_DEFAULT ) ;
 public static final String ADMIN_DIR = System . getProperty ( ADMIN_DIR_PROPERTY_NAME , ADMIN_DIR_PROPERTY_NAME_DEFAULT ) ;

changed default data and admin dir to use java io tmpdir


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class LocalePicker extends ListFragment {
 @ override
 public void onActivityCreated ( final Bundle savedInstanceState ) {
 super . onActivityCreated ( savedInstanceState ) ;
 +
 + final int [ ] attrs = { android . R . attr . colorBackground } ;
 + final TypedArray a = getActivity ( ) . getTheme ( ) . obtainStyledAttributes ( attrs ) ;
 + getListView ( ) . setBackgroundColor ( a . getColor ( NUMBER0 , android . R . color . transparent ) ) ;
 + a . recycle ( ) ;
 +
 final ArrayAdapter < LocaleInfo > adapter = constructAdapter ( getActivity ( ) ,
 isInDeveloperMode ( ) ) ;
 setListAdapter ( adapter ) ;


<nb> public abstract class AbstractGroupProvider implements GroupProvider {
 COMMENT
 COMMENT
 @ override
 - public Group createGroup ( String name ) {
 + public Group createGroup ( String name ) throws GroupAlreadyExistsException {
 throw new UnsupportedOperationException ( STRING0 ) ;
 }

Abstract implemenation should not change signature


<nb> public class GTFSPatternHopFactory {
 private Geometry getHopGeometry ( AgencyAndId shapeId , StopTime st0 , StopTime st1 ,
 Vertex startJourney , Vertex endJourney ) {

 - if ( shapeId == null || shapeId . getId ( ) == null )
 + if ( shapeId == null || shapeId . getId ( ) == null || shapeId . getId ( ) . equals ( STRING0 ) )
 return null ;

 double startDistance = st0 . getShapeDistTraveled ( ) ;
 <nb> public class GTFSPatternHopFactory {
 LinearLocation endCoord = lol . indexOf ( endJourney . getCoordinate ( ) ) ;

 double distanceFrom = startCoord . getSegmentLength ( line ) ;
 - double distanceTo = startCoord . getSegmentLength ( line ) ;
 + double distanceTo = endCoord . getSegmentLength ( line ) ;

 return getSegmentGeometry ( shapeId , lol , startCoord , endCoord , distanceFrom , distanceTo ) ;
 }

fix bug in cases of trips without shapes fix thinko


<nb> public class TabsTag extends BodyTagSupport {
 currentTab = ( Element ) AdminConsole . getModel ( ) . selectSingleNode (
 STRING0 + pageID + STRING1 ) ;
 }
 - Log . debug ( STRING2 + pageID + STRING3 + subPageID + STRING4 + currentTab + STRING5 ) ;
 for ( int i = NUMBER0 ; i < tabs . size ( ) ; i ++ ) {
 Element tab = ( Element ) tabs . get ( i ) ;
 String value = body ;


<nb> public class NameTable {
 DeclarationDescriptor containingDeclaration = classDescriptor . getContainingDeclaration ( ) ;
 if ( containingDeclaration instanceof NamespaceDescriptor ) {
 NamespaceDescriptor namespaceDescriptor = ( NamespaceDescriptor ) containingDeclaration ;
 - builder . setParentQualifiedName ( getFqNameIndex ( namespaceDescriptor ) ) ;
 + if ( DescriptorUtils . isRootNamespace ( namespaceDescriptor ) ) {
 + builder . clearParentQualifiedName ( ) ;
 + }
 + else {
 + builder . setParentQualifiedName ( getFqNameIndex ( namespaceDescriptor ) ) ;
 + }
 }
 else if ( containingDeclaration instanceof ClassDescriptor ) {
 ClassDescriptor outerClass = ( ClassDescriptor ) containingDeclaration ;
 <nb> public class NameTable {

 return qualifiedNames . intern ( builder ) ;
 }
 -
 }


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 COMMENT


<nb> class LookupCellRenderer implements ListCellRenderer {
 }
 else {
 Object o = item . getObject ( ) ;
 + if ( o instanceof LookupValueWithPsiElement ) {
 + o = ( ( LookupValueWithPsiElement ) o ) . getElement ( ) ;
 + }
 if ( o instanceof PsiElement ) {
 final PsiElement element = ( PsiElement ) o ;
 if ( element . isValid ( ) ) {

deprecated attr shows when lookup item value contains psi element


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

 public class GremlinPluginFunctionalTest extends AbstractRestFunctionalTestBase
 {
 <nb> public class GremlinPluginFunctionalTest extends AbstractRestFunctionalTestBase
 assertTrue ( response . contains ( STRING0 ) ) ;
 }

 - SINGLE
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 @ test
 @ documented
 @ graph ( { STRING1 , STRING2 , STRING3 } )
 public void modify_the_graph_while_traversing ( ) throws UnsupportedEncodingException , Exception
 {
 + data . get ( ) ;
 + gen ( ) . addSnippet ( STRING4 , AsciidocHelper . createGraphViz ( STRING5 , graphdb ( ) , STRING6 + gen . get ( ) . getTitle ( ) ) ) ;
 assertTrue ( getNode ( STRING7 ) . hasRelationship ( ) ) ;
 String script = STRING8 ;
 String response = doRestCall ( script , Status . OK ) ;


<nb> public abstract class TodoTreeBuilder extends AbstractTreeBuilder {
 }
 else if ( child instanceof PsiFile ) {
 files . add ( ( PsiFile ) child ) ;
 + return ;
 }
 else {
 collectFilesForElement ( child , files ) ;


<nb> class JavacFileManager extends ForwardingJavaFileManager < StandardJavaFileManager

 @ override
 public String inferBinaryName ( Location location , JavaFileObject file ) {
 - return super . inferBinaryName (
 - location ,
 - file instanceof TransformableJavaFileObject ? ( ( TransformableJavaFileObject ) file ) . getOriginal ( ) : file
 - ) ;
 + return super . inferBinaryName ( location , unwrapFileObject ( file ) ) ;
 }

 public void setLocation ( Location location , Iterable < ? extends File > path ) throws IOException {
 <nb> class JavacFileManager extends ForwardingJavaFileManager < StandardJavaFileManager
 return a instanceof TransformableJavaFileObject ? ( ( TransformableJavaFileObject ) a ) . getOriginal ( ) : a ;
 }

 + private static JavaFileObject unwrapFileObject ( JavaFileObject a ) {
 + return a instanceof TransformableJavaFileObject ? ( ( TransformableJavaFileObject ) a ) . getOriginal ( ) : a ;
 + }
 +
 @ override
 public FileObject getFileForInput ( Location location , String packageName , String relativeName ) throws IOException {
 checkCanceled ( ) ;

encapsulate unwrap file object operation in dedicated methods


<nb> public interface ParameterParser {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 String getAncestorPath ( URI uri , int depth ) throws URIException ;

Address some JavaDoc errors in ParameterParser


<nb> public class ReadCallback < TMessage , TResolved > implements IAsyncCallback < TMessag
 if ( ! await ( command . getTimeout ( ) , TimeUnit . MILLISECONDS ) )
 {
 SINGLE
 - int acks = received . get ( ) ;
 - if ( resolver . isDataPresent ( ) && acks >= blockfor )
 - acks = blockfor - NUMBER0 ;
 ReadTimeoutException ex = new ReadTimeoutException ( consistencyLevel , received . get ( ) , blockfor , resolver . isDataPresent ( ) ) ;
 if ( logger . isDebugEnabled ( ) )
 logger . debug ( STRING0 , ex . toString ( ) ) ;


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public enum MacroBuilder {
 return macro ( compilePhase , false , source , context , resultClass ) ;
 }

 + private final static AtomicInteger COUNTER = new AtomicInteger ( ) ;
 +
 @ suppresswarnings ( STRING0 )
 public < T > T macro ( CompilePhase compilePhase , boolean asIs , String source , final Map < MacroSubstitutionKey , Closure < Expression > > context , Class < T > resultClass ) {
 boolean isClosure = source . startsWith ( STRING1 ) ;
 - final String label = isClosure ? STRING2 + System . currentTimeMillis ( ) + STRING3 : STRING4 ;
 + final String label = isClosure ? STRING2 + COUNTER . incrementAndGet ( ) + STRING3 : STRING4 ;
 final String labelledSource = label + source ;
 final int linesOffset = NUMBER0 ;
 final int columnsOffset = label . length ( ) + ( isClosure ? NUMBER0 : NUMBER1 ) ; SINGLE

Avoid usage of System currentTimeMillis which is both slow and not stable across various OSes


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 public class StringDataFormatTest extends SpringTestSupport {

 protected AbstractXmlApplicationContext createApplicationContext ( ) {
 - return new ClassPathXmlApplicationContext ( STRING0 ) ;
 + return new ClassPathXmlApplicationContext ( STRING1 ) ;
 }

 public void testMarshalString ( ) throws Exception {

Fixed failing unit test and fixed spelling


<nb> public class SSTableReader extends SSTable
 String partitionerName = partitioner . getClass ( ) . getCanonicalName ( ) ;
 if ( sstableMetadata . partitioner != null && ! partitionerName . equals ( sstableMetadata . partitioner ) )
 {
 - logger . error ( String . format ( STRING0 ,
 + logger . error ( String . format ( STRING1 ,
 descriptor , sstableMetadata . partitioner , partitionerName ) ) ;
 System . exit ( NUMBER0 ) ;
 }

improve error message on partitioner mismatch


<nb> public abstract class ViewGroup extends View implements ViewParent , ViewManager
 final long now = SystemClock . uptimeMillis ( ) ;
 event = MotionEvent . obtain ( now , now ,
 MotionEvent . ACTION_CANCEL , FLOAT0 , FLOAT0 , NUMBER0 ) ;
 + event . setSource ( InputDevice . SOURCE_TOUCHSCREEN ) ;
 syntheticEvent = true ;
 }

Synthetic cancel event should have touchscreen source


<nb> public class CppCompileAction extends AbstractAction implements IncludeScannable
 public String computeKey ( ) {
 Fingerprint f = new Fingerprint ( ) ;
 f . addUUID ( actionClassId ) ;
 + f . addStringMap ( getEnvironment ( ) ) ;
 f . addStrings ( getArgv ( ) ) ;

 COMMENT

Add CppCompileAction s environment variables to its computeKey method


<nb> public class HadoopStoreJobRunner extends Configured implements Tool {
 STRING0 ,
 STRING1 ,
 STRING2 ,
 - STRING3 ) ;
 + STRING3 ,
 + STRING4 ) ;
 if ( missing . size ( ) > NUMBER0 ) {
 System . err . println ( STRING5 + Joiner . on ( STRING6 ) . join ( missing )
 + STRING7 ) ;
 <nb> public class HadoopStoreJobRunner extends Configured implements Tool {
 STRING0 ,
 STRING1 ,
 STRING2 ,
 - STRING3 ) ;
 + STRING3 ,
 + STRING4 ) ;
 if ( missing . size ( ) > NUMBER0 ) {
 System . err . println ( STRING5 + Joiner . on ( STRING6 ) . join ( missing )
 + STRING7 ) ;

Added temp directory parameter to list of compulsory params for the hadoop builder jobs


<nb> public class NUIEditorScreen extends CoreScreenLayer {
 public boolean isEscapeToCloseAllowed ( ) {
 return false ;
 }
 -
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 @ registersystem
 + @ share ( NUIEditorSystem . class )
 public class NUIEditorSystem extends BaseComponentSystem {
 private static final String NUI_EDITOR_URN = STRING0 ;


<nb> import NAMESPACE ;
 @ component
 public class CacheManagerCheck implements CommandLineRunner {

 - private static final Logger logger = LoggerFactory
 - . getLogger ( SampleCacheApplication . class ) ;
 + private static final Logger logger = LoggerFactory . getLogger ( CacheManagerCheck . class ) ;

 private final CacheManager cacheManager ;


<nb> import NAMESPACE ;

 public class AbstractComponentSpec implements ComponentSpec {
 private final ComponentSpecIdentifier identifier ;
 - private final String typeName ;
 + private final Class < ? > publicType ;

 public AbstractComponentSpec ( ComponentSpecIdentifier identifier , Class < ? > publicType ) {
 - this . typeName = publicType . getSimpleName ( ) ;
 + this . publicType = publicType ;
 this . identifier = identifier ;
 }

 <nb> public class AbstractComponentSpec implements ComponentSpec {
 }

 protected String getTypeName ( ) {
 - return typeName ;
 + return publicType . getSimpleName ( ) ;
 }

 public String getDisplayName ( ) {

Don t calculate component type name until required


<nb> public class DirectoryFragment extends Fragment {
 @ override
 public boolean onCreateActionMode ( ActionMode mode , Menu menu ) {
 mode . getMenuInflater ( ) . inflate ( R . menu . mode_directory , menu ) ;
 + mode . setTitle ( getResources ( )
 + . getString ( R . string . mode_selected_count , mCurrentView . getCheckedItemCount ( ) ) ) ;
 return true ;
 }

Set ActionMode title to the number of selected files


<nb> public final class PDF417 {
 SINGLE
 if ( sourceCodeWords + errorCorrectionCodeWords + NUMBER0 > NUMBER1 ) { SINGLE
 throw new WriterException (
 - STRING0 + msg . length ( ) + STRING1 ) ;
 + STRING2 + msg . length ( ) + STRING1 ) ;
 }
 int n = sourceCodeWords + pad + NUMBER0 ;
 StringBuilder sb = new StringBuilder ( n ) ;


<nb> public class BlueprintContainerRegistry implements Registry {

 @ override
 public Object lookupByName ( String name ) {
 - return blueprintContainer . getComponentInstance ( name ) ;
 + try {
 + return blueprintContainer . getComponentInstance ( name ) ;
 + } catch ( NoSuchComponentException e ) {
 + return null ;
 + }
 }

 @ override

Fixed camel blueprint registry to return null when not found in registry


<nb> public class EditorTextField extends NonOpaquePanel implements DocumentListener ,
 @ override
 public void removeNotify ( ) {
 super . removeNotify ( ) ;
 - Disposer . dispose ( myDisposable ) ;
 + if ( myDisposable != null ) {
 + Disposer . dispose ( myDisposable ) ;
 + }
 }

 private void releaseEditor ( Editor editor ) {

support ugly hackers who create ETF but don t add it anewhere


<nb> public class ImageProcessingActivity extends Activity

 void changeTest ( int testID ) {
 + if ( mTest != null ) {
 + mTest . destroy ( ) ;
 + }
 switch ( testID ) {
 case NUMBER0 :
 mTest = new LevelsV4 ( false , false ) ;
 <nb> public class TestBase {
 mRS . finish ( ) ;
 }

 + public void destroy ( ) {
 + mRS . destroy ( ) ;
 + }
 +
 public void updateBitmap ( Bitmap b ) {
 mOutPixelsAllocation . copyTo ( b ) ;
 }

Force destroy scripts in imageProcessing


<nb> public class RemoveArrangementRuleAction extends AnAction implements DumbAware {
 @ override
 public void update ( AnActionEvent e ) {
 ArrangementMatchingRulesControl control = ArrangementMatchingRulesControl . KEY . getData ( e . getDataContext ( ) ) ;
 - e . getPresentation ( ) . setEnabled ( control != null && ! control . getSelectedModelRows ( ) . isEmpty ( ) ) ;
 + e . getPresentation ( ) . setEnabled ( control != null && ! control . getSelectedModelRows ( ) . isEmpty ( ) && control . getEditingRow ( ) == - NUMBER0 ) ;
 e . getPresentation ( ) . setIcon ( SystemInfoRt . isMac ? AllIcons . ToolbarDecorator . Mac . Remove : AllIcons . ToolbarDecorator . Remove ) ;
 }

when editing text components of rules delete button should not delete rules


<nb> public class GitblitAuthority extends JFrame implements X509Log {

 X509Metadata metadata = new X509Metadata ( STRING0 , caKeystorePassword ) ;
 setMetadataDefaults ( metadata ) ;
 + metadata . notAfter = new Date ( System . currentTimeMillis ( ) + NUMBER0 * TimeUtils . ONEYEAR ) ;
 X509Utils . prepareX509Infrastructure ( metadata , folder , this ) ;
 return true ;
 }

Fixed regression on expiration date of CA and SSL certs


<nb> public class JsonDataFormat extends DataFormatDefinition {

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 public void setLibrary ( JsonLibrary library ) {
 this . library = library ;
 <nb> public class GsonDataFormatConfiguration {
 COMMENT
 private Boolean prettyPrint = false ;
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 private JsonLibrary library = JsonLibrary . Gson ;
 COMMENT
 <nb> public class JacksonDataFormatConfiguration {
 COMMENT
 private Boolean prettyPrint = false ;
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 private JsonLibrary library = JsonLibrary . Jackson ;
 COMMENT
 <nb> public class JsonDataFormatConfiguration {
 COMMENT
 private Boolean prettyPrint = false ;
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 private JsonLibrary library = JsonLibrary . XStream ;
 COMMENT

camel spring boot Add default values to auto configuration


<nb> public class LocalStore extends Store implements Serializable
 {
 return getMessages (
 listener ,
 - STRING0
 - + STRING1
 - + GET_MESSAGES_COLS
 - + STRING2
 + STRING0 + GET_MESSAGES_COLS
 + + STRING3
 + ( includeDeleted ? STRING4 : STRING5 )
 + STRING6
 , new String [ ]


<nb> public class ConnectionPool {
 return null ;
 }

 - protected PooledConnection borrowConnection ( long now , PooledConnection con ) {
 + protected PooledConnection borrowConnection ( long now , PooledConnection con ) throws SQLException {
 SINGLE
 boolean setToNull = false ;
 try {
 <nb> public class ConnectionPool {
 } catch ( Exception x ) {
 release ( con ) ;
 setToNull = true ;
 + if ( x instanceof SQLException ) {
 + throw ( SQLException ) x ;
 + } else {
 + throw new SQLException ( x ) ;
 + }
 }
 } finally {
 con . unlock ( ) ;

throw an exception instead of timeout when we fail to reconnect


<nb> public class ObjectiveCImplementationGenerator extends ObjectiveCSourceFileGener
 }
 IMemberValuePairBinding valueBinding = valueBindings [ i ] ;
 print ( i == NUMBER0 ? STRING0 : STRING1 ) ;
 - printf ( STRING2 , NameTable . capitalize ( valueBinding . getName ( ) ) ) ;
 + printf ( STRING2 , NameTable . capitalize (
 + NameTable . getAnnotationPropertyName ( valueBinding . getMethodBinding ( ) ) ) ) ;
 Object value = valueBinding . getValue ( ) ;
 printAnnotationValue ( value ) ;
 }
 <nb> public class ObjectiveCImplementationGeneratorTest extends GenerationTest {
 STRING3 ) ;
 assertTranslation ( translation , STRING4 ) ;
 }
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + public void testReservedWordAsAnnotationConstructorParameter ( ) throws IOException {
 + String translation = translateSourceFile (
 + STRING5
 + + STRING6
 + + STRING7 ,
 + STRING8 , STRING9 ) ;
 + assertTranslatedLines ( translation , STRING10 ,
 + STRING11
 + + STRING12
 + + STRING13 ) ;
 + }
 }

Fixed annotation support for annotation properties that are reserved names


<nb> public class Tag implements Parcelable {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public int [ ] getTechnologyList ( ) {
 return Arrays . copyOf ( mTechList , mTechList . length ) ;

Update the docs to clarify the ordering constraints


<nb> public class ODatabaseDocumentTx extends OListenerManger < ODatabaseListener > impl

 @ override
 public void close ( ) {
 + localCache . shutdown ( ) ;
 +
 if ( isClosed ( ) )
 return ;

 <nb> public class ODatabaseDocumentTx extends OListenerManger < ODatabaseListener > impl

 hooks . clear ( ) ;

 - localCache . shutdown ( ) ;
 -
 close ( ) ;

 initialized = false ;

Fixed cleaning of cache when database is closed not only when is recycled


<nb> willPerformHTTPRedirection : ( NSHTTPURLResponse * ) response

 private void setHeader ( String k , String v ) {
 for ( HeaderEntry entry : headers ) {
 - if ( entry . key == k ) {
 + if ( entry . key == k || ( entry . key != null && k != null && k . equalsIgnoreCase ( entry . key ) ) ) {
 headers . remove ( entry ) ;
 break ;
 }


<nb> final class Inflate {
 r = f ;
 z . avail_in -- ;
 z . total_in ++ ;
 - gzipXLen = gzipXLen < < NUMBER0 | z . next_in [ z . next_in_index ++ ] & NUMBER1 ;
 + gzipXLen |= ( z . next_in [ z . next_in_index ++ ] & NUMBER1 ) < < ( NUMBER2 - gzipBytesToRead ) * NUMBER0 ;
 gzipBytesToRead -- ;
 }
 gzipBytesToRead = gzipXLen ;

Fixed wrong byte order in the gzip xlen field


<nb> public class PlansUtils {

 public static boolean downloadAvailablePlansForSite ( int localTableBlogID , final AvailablePlansListener listener ) {
 final Blog blog = WordPress . getBlog ( localTableBlogID ) ;
 - if ( blog == null || ! isPlanFeatureAvailableForBlog ( blog ) ) {
 + if ( blog == null || blog . getPlanID ( ) == NUMBER0 ) {
 return false ;
 }

 <nb> public class PlansUtils {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - private static boolean isPlanFeatureAvailableForBlog ( Blog blog ) {
 - return ! TextUtils . isEmpty ( AppPrefs . getGlobalPlans ( ) ) &&
 - blog != null && blog . getPlanID ( ) != NUMBER0 ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 public static final int LESSER_PRODUCT = - NUMBER1 ;

Don t require existing plan data before retrieving available plans


<nb> public class SpanishTreebankParserParams extends TregexPoweredTreebankParserPara
 SINGLE
 annotations . put ( STRING0 , new Pair ( STRING1 , new MarkConjTypeFunction ( ) ) ) ;

 - SINGLE
 - annotations . put ( STRING2 , new Pair ( STRING3 ,
 + SINGLE
 + annotations . put ( STRING2 , new Pair ( STRING4 ,
 new SimpleStringFunction ( STRING5 ) ) ) ;

 SINGLE
 <nb> public class SpanishTreebankParserParams extends TregexPoweredTreebankParserPara
 STRING6 , STRING7 , STRING8 ,

 SINGLE
 - COMMENT
 + STRING9 , STRING10 , STRING2 ,

 SINGLE
 SINGLE


<nb> import static NAMESPACE ;
 import static NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BlockWorkerTest {
 Configuration conf = WorkerContext . getConf ( ) ;
 conf . set ( STRING0 ,
 mFolder . newFolder ( ) . getAbsolutePath ( ) ) ;
 + conf . set ( Constants . WORKER_DATA_PORT , STRING1 ) ;
 +
 mBlockWorker = new BlockWorker ( ) ;

 Whitebox . setInternalState ( mBlockWorker , STRING2 , mBlockMasterClient ) ;
 <nb> public class BlockWorkerTest {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class BlockWorkerTest {
 ( ( DataServer ) Whitebox . getInternalState ( mBlockWorker , STRING3 ) ) . close ( ) ;
 WorkerContext . reset ( ) ;
 }
 +
 COMMENT
 COMMENT
 COMMENT

Select a free port for the data server in tests


<nb> public class PyResolveUtil {
 COMMENT
 @ nullable
 public static PsiElement getConcealingParent ( PsiElement elt ) {
 - return PsiTreeUtil . getParentOfType ( elt , PyClass . class , PyFunction . class ) ;
 + if ( elt == null ) {
 + return null ;
 + }
 + PsiElement parent = elt . getParent ( ) ;
 + while ( parent != null ) {
 + if ( parent instanceof PyClass || parent instanceof PyFunction ) {
 + return parent ;
 + }
 + if ( parent instanceof PsiFile ) {
 + break ;
 + }
 + parent = parent . getParent ( ) ;
 + }
 + return null ;
 }

 COMMENT

don t use PsiTreeUtil getParentOfType in hotspots


<nb> public class ParsedStatement {
 SQLResponse response = new SQLResponse ( ) ;
 response . cols ( cols ( ) ) ;
 response . rows ( rows ) ;
 + response . rowCount ( rows . length ) ;
 return response ;
 }


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

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

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SystemKeyStore {

 public byte [ ] retrieveKey ( String keyName ) throws IOException {
 File keyFile = getKeyFile ( keyName ) ;
 -
 if ( ! keyFile . exists ( ) ) {
 return null ;
 }
 -
 - FileInputStream fis = new FileInputStream ( keyFile ) ;
 - return InputStreamHelper . readFullyAndClose ( fis ) ;
 + return IoUtils . readFileAsByteArray ( keyFile . toString ( ) ) ;
 }

 public void deleteKey ( String keyName ) {

Use deliberately public API rather than org apache cruft


<nb> public class JNIQueryTest {
 assertEquals ( NUMBER0 , table . size ( ) ) ;
 }

 - @ test ( expectedExceptions = RuntimeException . class )
 - public void shouldThrowOnQueryOnSortedView ( ) {
 + public void shouldQueryOnSortedView ( ) {

 init ( ) ;

 TableView sortedView = table . getSortedView ( NUMBER1 , TableView . Order . descending ) ;

 TableView result = sortedView . where ( ) . findAll ( ) ;
 +
 + assertEquals ( result . size ( ) , table . size ( ) ) ;
 +
 }

 @ test

Changed sorted view query test to match newest master


<nb> public class UnderfsUtilTest {
 }

 UnderfsUtil . loadUnderFs ( mTfs , Constants . PATH_SEPARATOR , mUnderfsAddress
 - + Constants . PATH_SEPARATOR , new PrefixList ( Arrays . asList ( exclusions ) ) ) ;
 + + Constants . PATH_SEPARATOR , new PrefixList ( STRING0 , STRING1 ) ) ;

 List < String > paths = null ;
 for ( String exclusion : exclusions ) {

fix a bug in UnderfsUtilTest in excluding prefixes


<nb> public class AbstractConnectorTest
 public void handle ( String target , Request baseRequest , HttpServletRequest request , HttpServletResponse response )
 throws IOException , ServletException
 {
 + try { Thread . sleep ( NUMBER0 ) ; } catch ( Exception e ) { }
 baseRequest . setHandled ( true ) ;
 -
 PrintWriter out = response . getWriter ( ) ;
 out . write ( STRING0 ) ;
 out . close ( ) ;


<nb> public class WebSocketMinVersionTest
 }
 catch ( IllegalStateException e ) {
 String respHeader = e . getMessage ( ) ;
 - Assert . assertThat ( STRING0 , respHeader , allOf (
 - containsString ( STRING1 ) ,
 - containsString ( STRING2 ) ,
 - containsString ( STRING3 ) ) ) ;
 + Assert . assertThat ( STRING0 , respHeader , containsString ( STRING4 ) ) ;
 }
 finally
 {


<nb> public abstract class ConnectionProxy implements IHikariConnectionProxy
 private StackTraceElement [ ] leakTrace ;
 private TimerTask leakTask ;

 + private final int hashCode ;
 +
 SINGLE
 static
 {
 <nb> public abstract class ConnectionProxy implements IHikariConnectionProxy

 creationTime = lastAccess = System . currentTimeMillis ( ) ;
 openStatements = new FastStatementList ( ) ;
 + hashCode = System . identityHashCode ( this ) ;
 }

 public final void untrackStatement ( Object statement )
 <nb> public abstract class ConnectionProxy implements IHikariConnectionProxy
 }
 }

 + @ override
 + public boolean equals ( Object other )
 + {
 + return this == other ;
 + }
 +
 + @ override
 + public int hashCode ( )
 + {
 + return hashCode ;
 + }
 +
 protected final void checkClosed ( ) throws SQLException
 {
 if ( isClosed )


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

 import NAMESPACE ;
 <nb> public class AUC extends Func {
 if ( ca . isNA0 ( i ) )
 throw new UnsupportedOperationException ( STRING0 ) ;
 final int a = ( int ) ca . at80 ( i ) ; SINGLE
 - if ( a != NUMBER0 && a != NUMBER1 )
 - Log . info ( STRING1 ) ;
 assert ( a == NUMBER0 || a == NUMBER1 ) : STRING2 ;
 if ( cp . isNA0 ( i ) ) {
 SINGLE


<nb> public class ThresholdAccumulator implements Accumulator {
 private static final Logger LOG = LoggerFactory . getLogger ( ThresholdAccumulator . class ) ;

 @ setter
 - int threshold = NUMBER0 * NUMBER1 ; SINGLE
 + int thresholdSeconds = NUMBER0 * NUMBER1 ; SINGLE

 + public void setThresholdMinutes ( int minutes ) {
 + this . thresholdSeconds = minutes * NUMBER0 ;
 + }
 +
 @ override
 public void accumulate ( double amount , ResultSet current , ResultSet accumulated ) {
 if ( current . population != accumulated . population ) {
 <nb> public class ThresholdAccumulator implements Accumulator {
 int n = accumulated . population . size ( ) ;
 for ( int i = NUMBER2 ; i < n ; i ++ ) {
 double t = current . results [ i ] ;
 - if ( t > NUMBER2 && t < threshold ) {
 + if ( t > NUMBER2 && t < thresholdSeconds ) {
 accumulated . results [ i ] += amount ;
 }
 }

add threshold setters that take minutes and seconds


<nb> public class NotificationsActivity extends WPActionBarActivity
 COMMENT
 COMMENT
 private void openNote ( final Note note ) {
 - mSelectedNoteId = StringUtils . stringToInt ( note . getId ( ) ) ;
 - mNotesList . setNoteSelected ( note ) ;
 if ( note == null || isFinishing ( ) ) {
 return ;
 }
 + mSelectedNoteId = StringUtils . stringToInt ( note . getId ( ) ) ;
 + mNotesList . setNoteSelected ( note ) ;

 SINGLE
 if ( note . isUnread ( ) ) {


<nb> public class GroovyBuilder extends Builder {
 String encoding = STRING0 ; SINGLE
 List < String > patchers = Collections . emptyList ( ) ; SINGLE
 GroovycOSProcessHandler . fillFileWithGroovycParameters (
 - tempFile , FileUtil . toCanonicalPath ( dir . getPath ( ) ) , toCompilePaths , moduleOutputPath , class2Src , encoding , patchers
 + tempFile , FileUtil . toCanonicalPath ( dir . getPath ( ) ) , toCompilePaths , FileUtil . toSystemDependentName ( moduleOutputPath ) , class2Src , encoding , patchers
 ) ;

 if ( myForStubs ) {

fix groovy transform compilation test on windows


<nb> public class DatabaseSegmentManager
 final Duration delay = config . get ( ) . getPollDuration ( ) . toStandardDuration ( ) ;
 ScheduledExecutors . scheduleWithFixedDelay (
 exec ,
 - delay ,
 + new Duration ( NUMBER0 ) ,
 delay ,
 new Runnable ( )
 {
 <nb> public class DatabaseSegmentManagerTest
 public void testPoll ( )
 {
 EasyMock . expect ( dbi . withHandle ( EasyMock . < HandleCallback > anyObject ( ) ) ) . andReturn ( testRows ) ;
 + EasyMock . expect ( dbi . withHandle ( EasyMock . < HandleCallback > anyObject ( ) ) ) . andReturn ( testRows ) ;
 EasyMock . replay ( dbi ) ;

 manager . start ( ) ;


<nb> public class DefaultBroadcaster implements Broadcaster {
 asyncWriteFuture = new Future < ? > [ threads ] ;
 for ( int i = NUMBER0 ; i < threads ; i ++ ) {
 notifierFuture [ i ] = bc . getExecutorService ( ) . submit ( getBroadcastHandler ( ) ) ;
 - asyncWriteFuture [ i ] = bc . getExecutorService ( ) . submit ( getAsyncWriteHandler ( uniqueWriteQueue ) ) ;
 + asyncWriteFuture [ i ] = bc . getAsyncWriteService ( ) . submit ( getAsyncWriteHandler ( uniqueWriteQueue ) ) ;
 }
 } else {
 notifierFuture [ NUMBER0 ] = bc . getExecutorService ( ) . submit ( getBroadcastHandler ( ) ) ;


<nb> public class AccountHeader {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + public void clear ( ) {
 + mAccountHeader . mProfiles = null ;
 +
 + SINGLE
 + mAccountHeader . calculateProfiles ( ) ;
 +
 + SINGLE
 + mAccountHeader . buildProfiles ( ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class TicketPage extends TicketBasePage {
 String displayPath = entry . path ;
 String path = entry . path ;
 if ( entry . isSymlink ( ) ) {
 - RevCommit commit = JGitUtils . getCommit ( getRepository ( ) , Constants . R_TICKETS_PATCHSETS + ticket . number ) ;
 + RevCommit commit = JGitUtils . getCommit ( getRepository ( ) , PatchsetCommand . getTicketBranch ( ticket . number ) ) ;
 path = JGitUtils . getStringContent ( getRepository ( ) , commit . getTree ( ) , path ) ;
 displayPath = entry . path + STRING0 + path ;
 }

Fix incorrect ticket branch ref in ticket page changed paths list


<nb> final class GrpcHttp2Headers extends AbstractHttp2Headers {
 throw new UnsupportedOperationException ( ) ;
 }
 }
 +
 + @ override
 + public String toString ( ) {
 + StringBuilder builder = new StringBuilder ( getClass ( ) . getSimpleName ( ) ) . append ( STRING0 ) ;
 + String separator = STRING1 ;
 + for ( Entry < CharSequence , CharSequence > e : this ) {
 + CharSequence name = e . getKey ( ) ;
 + CharSequence value = e . getValue ( ) ;
 + builder . append ( separator ) ;
 + builder . append ( name ) . append ( STRING2 ) . append ( value ) ;
 + separator = STRING3 ;
 + }
 + builder . append ( STRING4 ) ;
 + return builder . toString ( ) ;
 + }
 }


<nb> public class BridgePowerManager implements IPowerManager {
 }

 @ override
 - public boolean isScreenBrightnessBoosted ( ) {
 + public boolean isScreenBrightnessBoosted ( ) throws RemoteException {
 return false ;
 }
 }

add correct exception throw declaration to isScreenBrightnessBoosted


<nb> import NAMESPACE ;
 public final class JSModule implements DependencyInfo , Serializable {
 private static final long serialVersionUID = NUMBER0 ;

 - static final DiagnosticType CIRCULAR_DEPENDENCY_ERROR =
 - DiagnosticType . error ( STRING0 ,
 - STRING1 ) ;
 -
 COMMENT
 private final String name ;


<nb> public final class Request {
 public final float rotationPivotY ;
 COMMENT
 public final boolean hasRotationPivot ;
 + COMMENT
 public final boolean purgeable ;
 COMMENT
 public final Bitmap . Config config ;
 <nb> public final class Request {
 }
 sb . append ( STRING0 ) ;
 }
 + if ( purgeable ) {
 + sb . append ( STRING1 ) ;
 + }
 if ( config != null ) {
 sb . append ( STRING2 ) . append ( config ) ;
 }
 <nb> public final class Request {
 rotationPivotX = request . rotationPivotX ;
 rotationPivotY = request . rotationPivotY ;
 hasRotationPivot = request . hasRotationPivot ;
 + purgeable = request . purgeable ;
 onlyScaleDown = request . onlyScaleDown ;
 if ( request . transformations != null ) {
 transformations = new ArrayList < Transformation > ( request . transformations ) ;

Fix Request Builder copy constructor add another comment update Request toString


<nb> class ComputingConcurrentHashMap < K , V > extends MapMakerInternalMap < K , V > {
 ReferenceEntry < K , V > e ,
 ComputingValueReference < K , V > computingValueReference ) throws ExecutionException {
 V value = null ;
 - long start = System . nanoTime ( ) ;
 - long end = NUMBER0 ;
 try {
 SINGLE
 SINGLE
 SINGLE
 synchronized ( e ) {
 value = computingValueReference . compute ( key , hash ) ;
 - end = System . nanoTime ( ) ;
 }
 if ( value != null ) {
 SINGLE
 <nb> class ComputingConcurrentHashMap < K , V > extends MapMakerInternalMap < K , V > {
 }
 return value ;
 } finally {
 - if ( end == NUMBER0 ) {
 - end = System . nanoTime ( ) ;
 - }
 if ( value == null ) {
 clearValue ( key , hash , computingValueReference ) ;
 }


<nb> public class Transaction extends ChildMessage implements Serializable {

 try {
 s . append ( in . getScriptSig ( ) . getFromAddress ( ) . toString ( ) ) ;
 + s . append ( STRING0 ) ;
 + s . append ( in . getOutpoint ( ) . toString ( ) ) ;
 } catch ( Exception e ) {
 s . append ( STRING1 ) . append ( e . getMessage ( ) ) . append ( STRING2 ) ;
 }

Print outpoint data in Transaction toString output


<nb> public class VectorDrawable extends Drawable {
 SINGLE
 private final Path mPath ;
 private final Path mRenderPath ;
 - private static final Matrix IDENTITY_MATRIX = new Matrix ( ) ;
 private final Matrix mFinalPathMatrix = new Matrix ( ) ;

 private Paint mStrokePaint ;
 <nb> public class VectorDrawable extends Drawable {

 public void draw ( Canvas canvas , int w , int h , ColorFilter filter ) {
 SINGLE
 - drawGroupTree ( mRootGroup , IDENTITY_MATRIX , canvas , w , h , filter ) ;
 + drawGroupTree ( mRootGroup , Matrix . IDENTITY_MATRIX , canvas , w , h , filter ) ;
 }

 private void drawPath ( VGroup vGroup , VPath vPath , Canvas canvas , int w , int h ,


<nb> public class RemoveAnnotationQuickFix implements LocalQuickFix {
 private final PsiAnnotation myAnnotation ;
 private final PsiModifierListOwner myListOwner ;

 - public RemoveAnnotationQuickFix ( @ notnull PsiAnnotation annotation , @ notnull final PsiModifierListOwner listOwner ) {
 + public RemoveAnnotationQuickFix ( @ notnull PsiAnnotation annotation , final PsiModifierListOwner listOwner ) {
 myAnnotation = annotation ;
 myListOwner = listOwner ;
 }


<nb> public final class SimpleCommandMap implements CommandMap {
 COMMENT
 public boolean dispatch ( CommandSender sender , String commandLine ) {
 String [ ] args = commandLine . split ( STRING0 ) ;
 +
 + if ( args . length == NUMBER0 ) {
 + return false ;
 + }
 +
 String sentCommandLabel = args [ NUMBER0 ] . toLowerCase ( ) ;

 args = Arrays_copyOfRange ( args , NUMBER1 , args . length ) ;

Fixed AIOOBE when entering a space into console and hitting enter


<nb> public class PostfixTemplatesListPanel {
 } ;

 myPanelWithTableView = ToolbarDecorator . createDecorator ( myTemplatesTableView )
 + . setAsUsualTopToolbar ( )
 . disableAddAction ( )
 . disableRemoveAction ( )
 . disableUpDownActions ( ) . createPanel ( ) ;


<nb>
 COMMENT
 package NAMESPACE ;

 + import static NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class MetaImpl implements Meta {

 private final void init ( ) {
 try {
 - Result < Record > columns = executor . fetch ( meta ( ) . getColumns ( null , getSchema ( ) . getName ( ) , getName ( ) , STRING0 ) ) ;
 + SINGLE
 + SINGLE
 + String searchName = executor . getDialect ( ) == ORACLE
 + ? getName ( ) . replace ( STRING1 , STRING2 )
 + : getName ( ) ;
 +
 + Result < Record > columns = executor . fetch ( meta ( ) . getColumns ( null , getSchema ( ) . getName ( ) , searchName , STRING0 ) ) ;

 for ( Record column : columns ) {
 String columnName = column . getValue ( STRING3 , String . class ) ;

Fix issue with Oracle JDBC s internal LIKE


<nb> public final class SlowOperationLog implements JsonSerializable {
 return invocations . values ( ) ;
 }

 + @ edu.umd.cs.findbugs.annotations.suppresswarnings ( value = STRING0 , justification =
 + STRING1 )
 Invocation getOrCreateInvocation ( int operationHashCode , long lastDurationNanos , long nowNanos , long nowMillis ) {
 totalInvocations ++ ;

 <nb> public final class SlowOperationLog implements JsonSerializable {
 public String toString ( ) {
 SINGLE
 if ( lastAccessNanos < NUMBER0 ) {
 - return null ;
 + assert true ;
 }

 return STRING2 + STRING3 + id + STRING4 + startedAt + STRING5 + durationNanos + STRING6 ;
 <nb> public final class SlowOperationLog implements JsonSerializable {
 public JsonObject toJson ( ) {
 SINGLE
 if ( lastAccessNanos < NUMBER0 ) {
 - return null ;
 + assert true ;
 }

 JsonObject root = new JsonObject ( ) ;


<nb> public abstract class AbstractHttp11Processor < S > extends AbstractProcessor < S > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 protected abstract boolean handleIncompleteRequestLineRead ( ) ;

 <nb> public abstract class AbstractHttp11Processor < S > extends AbstractProcessor < S > {

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected abstract boolean breakKeepAliveLoop (
 SocketWrapper < S > socketWrapper ) ;


<nb> public class SendDataMessageClass extends ZWaveCommandProcessor {
 ZWaveNode node = zController . getNode ( originalMessage . getMessageNode ( ) ) ;
 if ( node == null )
 break ;
 +
 + SINGLE
 + node . incrementReceiveCount ( ) ;

 SINGLE
 if ( node . isDead ( ) ) {

Treat a SendDataMessage ACK as a received message


<nb> public class FlatWelcomeFrame extends JFrame implements WelcomeFrameProvider , Id
 final JRootPane rootPane = getRootPane ( ) ;
 myScreen = new FlatWelcomeScreen ( ) ;

 - final IdeGlassPaneImpl glassPane = new IdeGlassPaneImpl ( rootPane ) ;
 + final IdeGlassPaneImpl glassPane = new IdeGlassPaneImpl ( rootPane ) {
 + @ override
 + public void addNotify ( ) {
 + super . addNotify ( ) ;
 + rootPane . remove ( getProxyComponent ( ) ) ;
 + }
 + } ;
 +
 setGlassPane ( glassPane ) ;
 glassPane . setVisible ( false ) ;
 SINGLE


<nb> public class MinusculeMatcher implements Matcher {
 }
 finally {
 state . releaseState ( ) ;
 - if ( System . currentTimeMillis ( ) - start > NUMBER0 ) {
 + if ( System . currentTimeMillis ( ) - start > NUMBER0 &&
 + SINGLE
 + Runtime . getRuntime ( ) . freeMemory ( ) > Runtime . getRuntime ( ) . totalMemory ( ) * NUMBER1 / NUMBER2 ) {
 LOG . error ( STRING0 + name + STRING1 + new String ( myPattern ) ) ;
 }
 }

don t report long name matching when there s not much memory gc could slow things down


<nb> public class HttpFields implements Iterable < HttpField >
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 - public void add ( String name , String value ) throws IllegalArgumentException
 + public void add ( String name , String value )
 {
 if ( value == null )
 return ;
 <nb> public class HttpFields implements Iterable < HttpField >
 add ( field ) ;
 }

 - public void add ( HttpHeader header , HttpHeaderValue value ) throws IllegalArgumentException
 + public void add ( HttpHeader header , HttpHeaderValue value )
 {
 add ( header , value . toString ( ) ) ;
 }
 <nb> public class HttpFields implements Iterable < HttpField >
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 - public void add ( HttpHeader header , String value ) throws IllegalArgumentException
 + public void add ( HttpHeader header , String value )
 {
 if ( value == null ) throw new IllegalArgumentException ( STRING0 ) ;

HttpFields declares IllegalArgumentException as checked exception


<nb> public class MapJoinOperator extends AbstractMapJoinOperator < MapJoinDesc > implem
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 @ override
 public void endGroup ( ) throws HiveException {
 <nb> public class MapJoinOperator extends AbstractMapJoinOperator < MapJoinDesc > implem

 int tagLen = conf . getTagLength ( ) ;

 + SINGLE
 + SINGLE
 tableKey = STRING0 + this . getOperatorId ( ) + STRING1 ;
 serdeKey = STRING0 + this . getOperatorId ( ) + STRING2 ;

 <nb> public class HiveInputFormat < K extends WritableComparable , V extends Writable >
 pathToPartitionInfo = mrwork . getPathToPartitionInfo ( ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 private void addSplitsForGroup ( List < Path > dirs , TableScanOperator tableScan , JobConf conf ,
 InputFormat inputFormat , Class < ? extends InputFormat > inputFormatClass , int splits ,
 TableDesc table , List < InputSplit > result ) throws IOException {

Add some additional comments to clarify intent Gunther Hagleitner


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MainFrame extends javax . swing . JFrame {

 private void indexDatabaseComboItemStateChanged ( java . awt . event . ItemEvent evt ) { SINGLE
 IndexDatabase db = ( IndexDatabase ) evt . getItem ( ) ;
 + RuntimeEnvironment env = RuntimeEnvironment . getInstance ( ) ;
 + env . setDataRoot ( db . getDatabase ( ) ) ;
 + env . setSourceRoot ( db . getSource ( ) ) ;
 if ( db . getSource ( ) == null ) {
 searchButton . setEnabled ( false ) ;
 } else {

Fixed NullPointerException when searching history in Swing GUI


<nb> public class GLMModelV2 extends ModelSchema < GLMModel , GLMModelV2 , GLMModel . GLMPa

 SINGLE

 - @ api ( help = STRING0 )
 + @ api ( help = STRING1 )
 int best_lambda_idx ;

 - @ api ( help = STRING0 )
 + @ api ( help = STRING2 )
 float threshold ;

 SINGLE
 <nb> public class GLMModelV2 extends ModelSchema < GLMModel , GLMModelV2 , GLMModel . GLMPa
 SINGLE
 SINGLE

 - @ api ( help = STRING0 )
 + @ api ( help = STRING3 )
 TwoDimTableV1 coefficients_table ;

 - @ api ( help = STRING0 )
 + @ api ( help = STRING4 )
 TwoDimTableV1 coefficients_magnitude ;

 @ api ( help = STRING5 )


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class FileContainer extends TextContainer {
 }

 @ override
 + public String toString ( ) {
 + return MoreObjects . toStringHelper ( this )
 + . omitNullValues ( )
 + . add ( STRING0 , name )
 + . add ( STRING1 , charset )
 + . toString ( ) ;
 + }
 +
 + @ override
 public boolean isFileContainer ( ) {
 return name != null ;
 }


<nb> public class NetworkParameters implements Serializable {
 NetworkParameters n = new NetworkParameters ( ) ;
 n = createTestNet ( n ) ;
 n . proofOfWorkLimit = new BigInteger ( STRING0 , NUMBER0 ) ;
 + n . genesisBlock . setNonce ( NUMBER1 ) ; SINGLE
 n . genesisBlock . setDifficultyTarget ( Block . EASIEST_DIFFICULTY_TARGET ) ;
 n . interval = NUMBER2 ;
 n . targetTimespan = NUMBER3 ; SINGLE

Make unit test genesis block pass verification


<nb> public class EditPostActivity extends AppCompatActivity implements EditorFragmen
 }
 }

 + public void onEventMainThread ( MediaUploadEvents . MediaUploadFailed event ) {
 + if ( mEditorMediaUploadListener != null ) {
 + mEditorMediaUploadListener . onMediaUploadFailed ( event . mLocalId ) ;
 + }
 + }
 +
 public void onEventMainThread ( MediaUploadEvents . MediaUploadProgress event ) {
 if ( mEditorMediaUploadListener != null ) {
 mEditorMediaUploadListener . onMediaUploadProgress ( event . mLocalId , event . mProgress ) ;

Propagated callbacks for failed media uploads to the visual editor


<nb> public final class Xmlns {
 public static final String ROSTER = STRING0 ;
 public static final String REGISTER = STRING1 ;
 public static final String BYTE_STREAMS = STRING2 ;
 - public static final String HTTP_UPLOAD = STRING3 ;
 + public static final String HTTP_UPLOAD = STRING4 ;
 }

changed http upload namespace to reflect the one in the XEP


<nb> public final class TvInputManagerService extends SystemService {
 SINGLE
 serviceState = new ServiceState ( component , userId ) ;
 userState . serviceStateMap . put ( component , serviceState ) ;
 + updateServiceConnectionLocked ( component , userId ) ;
 } else {
 inputList . addAll ( serviceState . inputList ) ;
 }


<nb> public class SocketConnection < T > implements Connection < T > {
 if ( e instanceof EOFException ) {
 return true ;
 }
 - if ( e instanceof IOException && e . getMessage ( ) . equals ( STRING0 ) ) {
 + if ( e instanceof IOException && e . getMessage ( ) != null && e . getMessage ( ) . equals ( STRING0 ) ) {
 return true ;
 }
 return false ;


<nb> public class MaterialViewPagerAnimator {

 private static final String TAG = MaterialViewPagerAnimator . class . getSimpleName ( ) ;

 - private static final Boolean ENABLE_LOG = true ;
 + public static Boolean ENABLE_LOG = true ;

 private Context context ;

allow app developers to enable disable logging


<nb> public class CubeMapWrapper {
 sizes = new int [ NUMBER0 ] ;
 sizes [ NUMBER1 ] = image . getWidth ( ) ;
 }
 - raster = new DefaultImageRaster ( image , NUMBER1 ) ;
 + raster = new DefaultImageRaster ( image , NUMBER1 , NUMBER1 , false ) ;
 }

 COMMENT

fixed CubeMapWrapper after the changes to DefaultImageRaster


<nb> public class Resources
 {
 private static Logger log = Logger . getLogger ( Resources . class ) ;

 - private static final String RESOUCRE_LOCATION
 + private static final String RESOURCE_LOCATION
 = STRING0 ;

 private static final ResourceBundle resourceBundle
 - = ResourceBundle . getBundle ( RESOUCRE_LOCATION ) ;
 + = ResourceBundle . getBundle ( RESOURCE_LOCATION ) ;

 private static final String COLOR_BUNDLE_NAME
 = STRING1 ;


<nb> public class ExecutionGraph implements Serializable {
 }

 SINGLE
 + restartStrategy = null ;
 scheduler = null ;
 checkpointCoordinator = null ;
 executionContext = null ;

hotfix execution graph Null restart strategy field in ExecutionGraph when archiving


<nb> final class BufferedSinkJsonWriter extends JsonWriter {
 COMMENT
 COMMENT
 COMMENT
 - public void flush ( ) throws IOException {
 + @ override public void flush ( ) throws IOException {
 if ( stackSize == NUMBER0 ) {
 throw new IllegalStateException ( STRING0 ) ;
 }
 <nb> final class BufferedSinkJsonWriter extends JsonWriter {
 COMMENT
 COMMENT
 COMMENT
 - public void close ( ) throws IOException {
 + @ override public void close ( ) throws IOException {
 sink . close ( ) ;

 int size = stackSize ;


<nb> public final class AgentIndexRunner implements AgentIndexRunnerMBean , Notificati
 private long lastIndexFinish = NUMBER0 ;
 private long lastIndexUsedTime = NUMBER0 ;
 private Exception lastException = null ;
 - private Set notifListeners = new HashSet ( ) ;
 + private Set < NotificationHolder > notifListeners = new HashSet < NotificationHolder > ( ) ;
 private static long sequenceNo = NUMBER0 ;
 private StringBuilder notifications = new StringBuilder ( ) ;
 private final static int MAXMESSAGELENGTH = NUMBER1 ;


<nb> public class RoundedDrawable extends Drawable {
 mBorderPaint . setAntiAlias ( true ) ;
 mBorderPaint . setColor ( mBorderColor . getColorForState ( getState ( ) , DEFAULT_BORDER_COLOR ) ) ;
 mBorderPaint . setStrokeWidth ( border ) ;
 +
 + mOval = oval ;
 }

 @ override
 <nb> public class RoundedDrawable extends Drawable {
 public void setOval ( boolean oval ) {
 mOval = oval ;
 }
 - }
 + }

Persist the mOval param in RoundedImageDrawable to draw oval shapes


<nb> public class ObserverManager < T extends IActorObserver > implements Serializable
 COMMENT
 public Task < ? > cleanup ( )
 {
 + SINGLE
 + SINGLE
 final Stream < Task < ? > > stream = observers . stream ( )
 . map ( o - >
 ( ( Task < ? > ) ( o ) . ping ( ) ) . whenComplete ( ( final Object pr , final Throwable pe ) - >

Adding a TODO to ObserverManager cleanup