<nb> public class DefaultErrorMessages {
 MAP . put ( USAGE_IS_NOT_INLINABLE , STRING0 , ELEMENT_TEXT , SHORT_NAMES_IN_TYPES ) ;
 MAP . put ( NULLABLE_INLINE_PARAMETER , STRING1 , ELEMENT_TEXT , SHORT_NAMES_IN_TYPES ) ;
 MAP . put ( RECURSION_IN_INLINE , STRING2 , ELEMENT_TEXT , SHORT_NAMES_IN_TYPES ) ;
 - MAP . put ( INLINE_PROPERTY_WITH_BACKING_FIELD , STRING3 ) ;
 + MAP . put ( INLINE_PROPERTY_WITH_BACKING_FIELD , STRING4 ) ;
 SINGLE
 MAP . put ( NON_LOCAL_RETURN_NOT_ALLOWED , STRING5 , ELEMENT_TEXT ) ;
 MAP . put ( INLINE_CALL_CYCLE , STRING6 , NAME ) ;

Fix typo in inline property diagnostic message


<nb> import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 + import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public class MergeBase extends AbstractBaseTest {
 }

 @ test
 - @ excludein ( CUBRID )
 + @ excludein ( { CUBRID , POSTGRES } )
 public void Merge_With_Keys_Null_Id ( ) throws SQLException {
 ResultSet rs = merge ( survey ) . keys ( survey . id )
 . setNull ( survey . id )


<nb> public class CompilerOptions {
 COMMENT
 public boolean removeDeadCode ;

 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public void setCheckMissingReturn ( CheckLevel level ) {
 - }
 -
 public enum ExtractPrototypeMemberDeclarationsMode {
 OFF ,
 USE_GLOBAL_TEMP ,

Remove the CompilerOptions setCheckMissingReturn method in favor of the missingReturn diagnostic group


<nb> public class OutputGate < T extends Record > extends AbstractGate < T > {

 if ( this . isBroadcast ) {

 - SINGLE
 - this . outputChannels . get ( NUMBER0 ) . writeRecord ( record ) ;
 + if ( getChannelType ( ) == ChannelType . INMEMORY ) {
 +
 + final int numberOfOutputChannels = this . outputChannels . size ( ) ;
 + for ( int i = NUMBER0 ; i < numberOfOutputChannels ; ++ i ) {
 + this . outputChannels . get ( i ) . writeRecord ( record ) ;
 + }
 +
 + } else {
 +
 + SINGLE
 + this . outputChannels . get ( NUMBER0 ) . writeRecord ( record ) ;
 + }

 } else {

Finished implementation of optimized broadcast in output gate


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public class ConferenceChatSession
 implements ChatSession ,
 <nb> public class ConferenceChatSession

 if ( eventType . equals ( ChatRoomMemberPresenceChangeEvent . MEMBER_JOINED ) )
 {
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 -
 ConferenceChatContact chatContact
 = new ConferenceChatContact ( chatRoomMember ) ;
 -
 - chatParticipants . add ( chatContact ) ;
 -
 - sessionRenderer . addChatContact ( chatContact ) ;
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + for ( ChatContact cc : chatParticipants )
 + if ( ! cc . getUID ( ) . equals ( chatContact . getUID ( ) ) )
 + chatParticipants . add ( chatContact ) ;
 + sessionRenderer . addChatContact ( chatContact ) ;

 COMMENT
 COMMENT

Fix a bug which makes conference contacts appearing twice in the ChatContactListModel


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PyCharmEduInitialConfigurator {
 }
 }

 + for ( AbstractProjectViewPane pane : Extensions . getExtensions ( AbstractProjectViewPane . EP_NAME , project ) ) {
 + if ( pane . getId ( ) . equals ( ScopeViewPane . ID ) ) {
 + projectArea . getExtensionPoint ( AbstractProjectViewPane . EP_NAME ) . unregisterExtension ( pane ) ;
 + }
 + }
 +
 for ( SelectInTarget target : Extensions . getExtensions ( SelectInTarget . EP_NAME , project ) ) {
 if ( ToolWindowId . STRUCTURE_VIEW . equals ( target . getToolWindowId ( ) ) ) {
 projectArea . getExtensionPoint ( SelectInTarget . EP_NAME ) . unregisterExtension ( target ) ;

do not show scopes pane in project panel


<nb> public interface RLiveObjectService {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class CqlRecordReader extends RecordReader < Long , Row >
 }

 if ( cluster != null )
 - session = cluster . connect ( keyspace ) ;
 + session = cluster . connect ( quote ( keyspace ) ) ;

 if ( session == null )
 throw new RuntimeException ( STRING0 ) ;


<nb> public class InterfaceStaticMethodsTest {
 assumeThat ( SystemUtils . JAVA_VERSION_FLOAT , is ( lessThan ( FLOAT0 ) ) ) ;

 thrown . expect ( NoClassDefFoundError . class ) ;
 - thrown . expectMessage ( STRING0 ) ;
 + thrown . expectMessage ( STRING1 ) ;
 SINGLE
 SINGLE
 Stream . of ( NUMBER0 , NUMBER1 , NUMBER2 ) ;
 <nb> public class InterfaceStaticMethodsTest {
 public void calling_static_methods_of_library_interfaces__new_method_on_old_interface ( ) {
 assumeThat ( SystemUtils . JAVA_VERSION_FLOAT , is ( lessThan ( FLOAT0 ) ) ) ;

 - thrown . expect ( NoSuchMethodError . class ) ;
 - thrown . expectMessage ( STRING2 ) ;
 + thrown . expect ( IncompatibleClassChangeError . class ) ;
 + thrown . expectMessage ( STRING3 ) ;
 SINGLE
 SINGLE
 Comparator . naturalOrder ( ) ;

Fixed assertions to expect the correct errors


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

 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class InAppHelper {
 } else {
 complain ( STRING0
 + obj . getString ( STRING1 )
 - + STRING2 + userId + STRING3 + token + STRING4 ) ;
 + + STRING2 + userId + STRING3 + token + STRING5 + result + STRING4 ) ;
 }
 } catch ( JSONException e ) {
 logError ( STRING6 , e ) ;
 complain ( STRING0
 + ( e . getMessage ( ) != null ? e . getMessage ( ) : STRING7 )
 - + STRING2 + userId + STRING3 + token + STRING4 ) ;
 + + STRING2 + userId + STRING3 + token + STRING5 + result + STRING4 ) ;
 }
 }
 if ( listener != null ) {

Added errorneous response of InApp to toast


<nb> public abstract class AbstractJetFormatterTest extends LightIdeaTestCase {
 configurator . configureSettings ( ) ;
 doTextTest ( originalFileText , new File ( testFileName + STRING0 ) ) ;

 - String afterInvertedFileName = testFileName + STRING1 ;
 + String afterInvertedFileName = testFileName + STRING2 ;
 if ( new File ( afterInvertedFileName ) . exists ( ) ) {
 configurator . configureInvertedSettings ( ) ;
 doTextTest ( originalFileText , new File ( afterInvertedFileName ) ) ;

Fix wrong test file extension prevented a bunch of formatter tests from running


<nb> public class DarculaTextBorder implements Border , UIResource {
 @ override
 public Insets getBorderInsets ( Component c ) {
 int off = DarculaTextFieldUI . isSearchField ( c ) ? NUMBER0 : NUMBER1 ;
 - return new InsetsUIResource ( NUMBER2 , NUMBER3 + off , NUMBER2 , NUMBER3 + off ) ;
 + return new InsetsUIResource ( NUMBER2 , NUMBER3 + off + ( off == NUMBER1 ? NUMBER1 : NUMBER4 ) , NUMBER2 , NUMBER3 + off ) ;
 }

 @ override


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class AbstractAopProxyTests {
 COMMENT
 @ test
 public void testManyProxies ( ) {
 + Assume . group ( TestGroup . PERFORMANCE ) ;
 int howMany = NUMBER0 ;
 StopWatch sw = new StopWatch ( ) ;
 sw . start ( STRING0 + howMany + STRING1 ) ;

Add testMany test to TestGroup PERFORMANCE


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class FileSystemMasterTest {
 COMMENT
 COMMENT
 @ test
 + @ ignore ( STRING0 )
 public void setTtlForFileWithNoTtlTest ( ) throws Exception {
 CreateFileOptions options =
 CreateFileOptions . defaults ( ) . setBlockSizeBytes ( Constants . KB ) . setRecursive ( true ) ;


<nb> public class MeshMultitextureTest implements GdxTest {

 @ override public void render ( ) {
 GL10 gl = Gdx . graphics . getGL10 ( ) ;
 + gl . glViewport ( NUMBER0 , NUMBER0 , Gdx . graphics . getWidth ( ) , Gdx . graphics . getHeight ( ) ) ;
 + gl . glClear ( GL10 . GL_COLOR_BUFFER_BIT ) ;
 gl . glEnable ( GL10 . GL_TEXTURE_2D ) ;
 gl . glActiveTexture ( GL10 . GL_TEXTURE0 ) ;
 tex1 . bind ( ) ;

changed Multitexture test now actually sets the viewport and clears the screen


<nb> public abstract class ScheduledPollConsumer extends DefaultConsumer implements R
 COMMENT
 COMMENT
 public void run ( ) {
 - if ( LOG . isDebugEnabled ( ) ) {
 - LOG . debug ( STRING0 + this . getEndpoint ( ) ) ;
 + if ( LOG . isTraceEnabled ( ) ) {
 + LOG . trace ( STRING0 + this . getEndpoint ( ) ) ;
 }
 try {
 if ( isRunAllowed ( ) ) {

make scheduler more quiet in DEBUG mode as its default polls twice per sec


<nb> public class PluginManager {
 COMMENT
 COMMENT
 public void addPlugin ( Class < ? extends Plugin > plugin , PluginPriority priority ) {
 - utils . getMessager ( ) . printMessage ( Diagnostic . Kind . ERROR ,
 - STRING0 + plugin . toString ( ) + STRING1 + priority ) ;
 switch ( priority ) {
 case LOW :
 lowPriorityPlugins . add ( plugin ) ;

Remove a debug log that was causing an error


<nb> public abstract class AbstractSlideExpandableListAdapter extends WrapperListAdap
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public void setAnimationDuration ( int duration ) {
 - if ( duration > NUMBER0 ) animationDuration = duration ;
 + if ( duration < NUMBER0 ) {
 + throw new IllegalArgumentException ( STRING0 ) ;
 + }
 +
 + animationDuration = duration ;
 }
 COMMENT
 COMMENT

Added IllegalArgumentException to setAnimationDuration


<nb> public class AuthorizeHandler extends ChannelInboundHandlerAdapter implements Di
 HttpResponse res = new DefaultHttpResponse ( HTTP_1_1 , HttpResponseStatus . UNAUTHORIZED ) ;
 channel . writeAndFlush ( res )
 . addListener ( ChannelFutureListener . CLOSE ) ;
 - log . debug ( STRING0 ) ;
 + log . debug ( STRING1 , params , headers ) ;
 return false ;
 }

 <nb> public class AuthorizeHandler extends ChannelInboundHandlerAdapter implements Di
 client . send ( packet ) ;

 client . schedulePingTimeout ( ) ;
 - log . debug ( STRING2 , sessionId ) ;
 + log . debug ( STRING3 , sessionId , params , headers ) ;
 return true ;
 }


<nb> public class OverloadedMethodsWithSameNumberOfParametersInspectionTest

 private void doTest ( BaseInspection inspection ) throws Exception {
 doTest ( STRING0 +
 - getTestName ( true ) , inspection ) ;
 + getTestName ( false ) , inspection ) ;
 }
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public class AVD {
 + static final int DEFAULT_WIDTH = NUMBER0 ;
 + static final int DEFAULT_HEIGHT = NUMBER1 ;

 COMMENT
 public final String name ;
 <nb> class Build {
 }

 protected int [ ] getSketchSize ( ) {
 - int wide = Device . DEFAULT_WIDTH ;
 - int high = Device . DEFAULT_HEIGHT ;
 + int wide = AVD . DEFAULT_WIDTH ;
 + int high = AVD . DEFAULT_HEIGHT ;
 SINGLE

 SINGLE


<nb> public class QuickTour {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public static void main ( final String [ ] args ) throws InterruptedException {
 MongoClient mongoClient ;
 <nb> public class QuickTourAdmin {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public static void main ( final String [ ] args ) throws InterruptedException {
 MongoClient mongoClient ;

Add throws params to the async quick tour examples


<nb> public class ClassesRequest extends Request {
 List < Runner > runners = new ArrayList < Runner > ( ) ;
 for ( Class < ? > each : fClasses ) {
 Runner childRunner = Request . aClass ( each ) . getRunner ( ) ;
 - if ( childRunner != null ) SINGLE
 - runners . add ( childRunner ) ;
 + runners . add ( childRunner ) ; SINGLE
 }
 CompositeRunner runner = new CompositeRunner ( fName , runners ) ;
 return runner ;


<nb> public class LocalTransportThreadModelTest {
 }
 }

 - @ test ( timeout = NUMBER0 )
 + @ test ( timeout = NUMBER1 )
 public void testConcurrentMessageBufferAccess ( ) throws Throwable {
 EventLoopGroup l = new LocalEventLoopGroup ( NUMBER2 , new PrefixThreadFactory ( STRING0 ) ) ;
 EventExecutorGroup e1 = new DefaultEventExecutorGroup ( NUMBER2 , new PrefixThreadFactory ( STRING1 ) ) ;

Double the timeout of LocalTransportThreadModelTest


<nb> import NAMESPACE ;
 public class WebDataSerializerHook implements DataSerializerHook {

 - public static final int F_ID = FactoryIdHelper . getFactoryId ( FactoryIdHelper . WEB_DS_FACTORY , - NUMBER0 ) ;
 - public static final int SESSION_ATTRIBUTE_ID = NUMBER1 ;
 + public static final int F_ID = FactoryIdHelper . getFactoryId ( FactoryIdHelper . WEB_DS_FACTORY , F_ID_OFFSET_WEBMODULE ) ;

 @ override
 <nb> public class WebDataSerializerHook implements DataSerializerHook {
 return new DataSerializableFactory ( ) {
 @ override
 public IdentifiedDataSerializable create ( int typeId ) {
 - if ( typeId == WebDataSerializerHook . SESSION_ATTRIBUTE_ID ) {
 + if ( typeId == SESSION_ATTRIBUTE_ID ) {
 return new SessionAttributePredicate ( ) ;
 }
 throw new IllegalArgumentException ( ) ;
 <nb> package NAMESPACE ;

 public interface DataSerializerHook {

 + public static int F_ID_OFFSET_WEBMODULE = - NUMBER0 ;
 + public static final int SESSION_ATTRIBUTE_ID = NUMBER1 ;
 +
 int getFactoryId ( ) ;

 DataSerializableFactory createFactory ( ) ;

moved up all constants to DataSerializerHook


<nb> public class Capsule implements Runnable {
 throw new IllegalArgumentException ( STRING0 + p + STRING1 + getAppCache ( ) ) ;
 }

 - private static String expandCommandLinePath ( String str ) {
 - if ( str == null )
 - return null ;
 - SINGLE
 - SINGLE
 - SINGLE
 - return str . startsWith ( STRING2 ) ? str . replace ( STRING3 , getProperty ( PROP_USER_HOME ) ) : str ;
 - }
 -
 private static Path toFriendlyPath ( Path p ) {
 if ( p . isAbsolute ( ) ) {
 Path rel = p . getFileSystem ( ) . getPath ( STRING4 ) . toAbsolutePath ( ) . relativize ( p ) ;


<nb> public class MediaConductor extends Agent

 heartbeatTimer = newTimeout ( HEARTBEAT_TIMEOUT_MS , TimeUnit . MILLISECONDS , this : : onHeartbeatCheck ) ;

 - try
 - {
 - conductorByteBuffers = ctx . conductorByteBuffers ( ) ;
 - final ByteBuffer toMediaDriver = conductorByteBuffers . toMediaDriver ( ) ;
 - final ByteBuffer toClient = conductorByteBuffers . toClient ( ) ;
 - toMediaDriverBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( toMediaDriver ) ) ;
 - toClientBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( toClient ) ) ;
 - }
 - catch ( final Exception ex )
 - {
 - throw new IllegalStateException ( STRING0 , ex ) ;
 - }
 + conductorByteBuffers = ctx . conductorByteBuffers ( ) ;
 + final ByteBuffer toMediaDriver = conductorByteBuffers . toMediaDriver ( ) ;
 + final ByteBuffer toClient = conductorByteBuffers . toClient ( ) ;
 + toMediaDriverBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( toMediaDriver ) ) ;
 + toClientBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( toClient ) ) ;
 }

 public ControlFrameHandler frameHandler ( final UdpDestination destination )

Remove try catch that is no longer valid


<nb> public class BtsMeasureCardInflater implements IAdapterViewInflater < BtsMeasureIt
 gpsd_accu = ( TextView ) mRootView . findViewById ( R . id . tv_bts_measure_gpsd_accu ) ;
 SINGLE
 SINGLE
 - bb_power = ( TextView ) mRootView . findViewById ( R . id . tv_bts_measure_bb_power ) ;
 + SINGLE
 SINGLE
 SINGLE
 rx_signal = ( TextView ) mRootView . findViewById ( R . id . tv_bts_measure_rx_signal ) ;


<nb> public class AtmosphereResourceImpl implements AtmosphereResource {
 padding = config . getInitParameter ( ApplicationConfig . STREAMING_PADDING_MODE ) ;
 req . setAttribute ( ApplicationConfig . STREAMING_PADDING_MODE , padding ) ;

 - uuid = response . getHeader ( HeaderConfig . X_ATMOSPHERE_TRACKING_ID ) ;
 + String s = response . getHeader ( HeaderConfig . X_ATMOSPHERE_TRACKING_ID ) ;
 + uuid = s == null ? UUID . randomUUID ( ) . toString ( ) : s ;

 if ( config . isSupportSession ( ) ) {
 SINGLE


<nb> public abstract class AbstractClockTest extends HazelcastTestSupport {
 Method method = instanceClass . getMethod ( STRING0 ) ;
 method . invoke ( isolatedNode ) ;
 isolatedNode = null ;
 + System . gc ( ) ;
 } catch ( Exception e ) {
 throw new RuntimeException ( STRING1 , e ) ;
 }

Added forced GC to AbstractClockTest to counterfeit PermGen OOME


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

 + import NAMESPACE ;
 import NAMESPACE ;

 public class TestVersionedCatalogLoader extends CatalogTestSuiteNoDB {
 <nb> public class TestVersionedCatalogLoader extends CatalogTestSuiteNoDB {

 @ test ( groups = STRING0 )
 public void testLoadCatalogFromExternalFile ( ) throws CatalogApiException , IOException , URISyntaxException {
 - URL originURL = Resources . getResource ( STRING1 ) ;
 - File originFile = new File ( originURL . toURI ( ) ) ;
 - File destinationFile = new File ( STRING2 ) ;
 + File originFile = new File ( Resources . getResource ( STRING1 ) . toURI ( ) ) ;
 + File destinationFile = new File ( Files . createTempDir ( ) . toString ( ) + STRING3 ) ;
 destinationFile . deleteOnExit ( ) ;
 Files . copy ( originFile , destinationFile ) ;
 final VersionedCatalog c = loader . loadDefaultCatalog ( destinationFile . toURI ( ) . toString ( ) ) ;

Fix Unit Tests based on comments during Pull Request


<nb> public abstract class TransactionBlock extends Transaction {
 public void setClient ( Client client ) {
 super . setClient ( client ) ;
 }
 -
 - public String discard ( ) {
 - return super . discard ( ) ;
 - }
 }


<nb> public class RestClientUtils {
 SINGLE
 String deviceLanguageCode = context != null ? context . getResources ( ) . getConfiguration ( ) . locale . toString ( ) : Locale . getDefault ( ) . getLanguage ( ) ;
 if ( ! TextUtils . isEmpty ( deviceLanguageCode ) ) {
 + SINGLE
 + COMMENT
 + < p > Note that Java uses several deprecated two - letter codes . The Hebrew ( STRING0 ) language
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + if ( deviceLanguageCode . startsWith ( STRING1 ) )
 + deviceLanguageCode = deviceLanguageCode . replace ( STRING1 , STRING0 ) ;
 + else if ( deviceLanguageCode . startsWith ( STRING2 ) )
 + deviceLanguageCode = deviceLanguageCode . replace ( STRING2 , STRING3 ) ;
 + else if ( deviceLanguageCode . startsWith ( STRING4 ) )
 + deviceLanguageCode = deviceLanguageCode . replace ( STRING4 , STRING5 ) ;
 +
 params . put ( STRING6 , deviceLanguageCode ) ;
 }
 return params ;

patched deprecated locale codes for Hebrew iw Indonesian in and Yiddish ji


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

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

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

 import NAMESPACE ;


<nb> public class BaseProcessInstanceResource extends SecuredResource {

 case GREATER_THAN :
 processInstanceQuery . variableValueGreaterThan ( variable . getName ( ) , actualValue ) ;
 + break ;

 case GREATER_THAN_OR_EQUALS :
 processInstanceQuery . variableValueGreaterThanOrEqual ( variable . getName ( ) , actualValue ) ;
 + break ;

 case LESS_THAN :
 processInstanceQuery . variableValueLessThan ( variable . getName ( ) , actualValue ) ;
 + break ;

 case LESS_THAN_OR_EQUALS :
 processInstanceQuery . variableValueLessThanOrEqual ( variable . getName ( ) , actualValue ) ;
 + break ;

 default:
 throw new ActivitiIllegalArgumentException ( STRING0 + variable . getVariableOperation ( ) ) ;

Fixed issue in Process instance query break


<nb> public class DefaultAndroidDirectoryResolver implements AndroidDirectoryResolver
 public Path findAndroidSdkDir ( ) {
 Optional < Path > androidSdkDir = findAndroidSdkDirSafe ( ) ;
 Preconditions . checkState ( androidSdkDir . isPresent ( ) ,
 - STRING0 +
 + STRING1 +
 STRING2 ) ;
 return androidSdkDir . get ( ) ;
 }


<nb> import NAMESPACE ;
 COMMENT
 public class RepositoriesViewModel {
 private static final String TAG = RepositoriesViewModel . class . getSimpleName ( ) ;
 - final private CompositeSubscription compositeSubscription = new CompositeSubscription ( ) ;
 + private CompositeSubscription compositeSubscription ;

 @ inject
 DataLayer dataLayer ;
 <nb> public class RepositoriesViewModel {
 public void subscribeToDataStore ( ) {
 Log . v ( TAG , STRING0 ) ;

 + if ( compositeSubscription == null ) {
 + compositeSubscription = new CompositeSubscription ( ) ;
 + }
 +
 compositeSubscription . add (
 Observable . switchOnNext (
 Observable . switchOnNext ( searchString )
 <nb> public class RepositoriesViewModel {
 public void unsubscribeFromDataStore ( ) {
 Log . v ( TAG , STRING1 ) ;
 compositeSubscription . clear ( ) ;
 + compositeSubscription = null ;
 }

 public void setSearchStringObservable ( Observable < String > searchStringObservable ) {

Fix problem with CompositeSubscription reusability


<nb> public class Match {
 }

 } else {
 - SINGLE
 if ( synthesizer == null ) {
 formattedString [ NUMBER0 ] = formattedToken . getToken ( ) ;
 } else if ( postagRegexp ) {


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

 import NAMESPACE ;
 <nb> public enum FileFormat
 }
 }

 - @ notnull
 private static Properties createSchema ( HiveStorageFormat format , List < String > columnNames , List < Type > columnTypes )
 {
 Properties schema = new Properties ( ) ;


<nb> public class IQAuthHandler extends IQHandler implements IQAuthInfo {
 private IQ login ( String username , Element iq , IQ packet , String password , LocalClientSession session , String digest )
 throws UnauthorizedException , UserNotFoundException , ConnectionException , InternalUnauthenticatedException {
 SINGLE
 + if ( username == null || username . trim ( ) . length ( ) == NUMBER0 ) {
 + throw new UnauthorizedException ( STRING0 ) ;
 + }
 try {
 Stringprep . nodeprep ( username ) ;
 } catch ( StringprepException e ) {

Prevents a nasty indexoutofbounds when illegal input occurs


<nb> public final class Configuration implements Parcelable , Comparable < Configuration
 case NUMBER0 :
 parts . add ( STRING0 ) ;
 break ;
 + case NUMBER1 :
 + parts . add ( STRING1 ) ;
 + break ;
 + case NUMBER2 :
 + parts . add ( STRING2 ) ;
 + break ;
 default :
 parts . add ( config . densityDpi + STRING3 ) ;
 break ;
 <nb> public final class Configuration implements Parcelable , Comparable < Configuration
 break ;
 }

 - parts . add ( STRING4 + Build . VERSION . SDK_INT ) ;
 + parts . add ( STRING4 + Build . VERSION . RESOURCES_SDK_INT ) ;
 return TextUtils . join ( STRING5 , parts ) ;
 }
 }

Report the right resource version in am get config


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

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


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

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

 setCoreSettings ( coreSettings ) ;

 + SINGLE
 + VMRuntime . registerAppInfo ( appInfo . dataDir , appInfo . processName ) ;
 +
 AppBindData data = new AppBindData ( ) ;
 data . processName = processName ;
 data . appInfo = appInfo ;

Add a call to registerAppInfo for the VMRuntime


<nb> public class LocalMUCRoom implements MUCRoom {
 COMMENT
 private void kickPresence ( Presence kickPresence , JID actorJID ) {
 SINGLE
 - List < MUCRole > occupants = occupantsByNickname . get ( kickPresence . getFrom ( ) . getResource ( ) . toLowerCase ( ) ) ;
 + List < MUCRole > occupants = new ArrayList < MUCRole > ( occupantsByNickname . get ( kickPresence . getFrom ( ) . getResource ( ) . toLowerCase ( ) ) ) ;
 for ( MUCRole kickedRole : occupants ) {
 kickPresence = kickPresence . createCopy ( ) ;
 SINGLE

Fix ConcurrentModificationException in kickPresence


<nb> public enum BlockStoreContext {
 private BlockMasterClientPool mBlockMasterClientPool ;
 private BlockWorkerClientPool mLocalBlockWorkerClientPool ;

 - private static boolean sLocalBlockWorkerClientPoolInitialized = false ;
 + private boolean mLocalBlockWorkerClientPoolInitialized = false ;

 COMMENT
 COMMENT
 <nb> public enum BlockStoreContext {
 COMMENT
 COMMENT
 private synchronized void initializeLocalBlockWorkerClientPool ( ) {
 - if ( ! sLocalBlockWorkerClientPoolInitialized ) {
 + if ( ! mLocalBlockWorkerClientPoolInitialized ) {
 NetAddress localWorkerAddress =
 getWorkerAddress ( NetworkAddressUtils . getLocalHostName ( ClientContext . getConf ( ) ) ) ;
 SINGLE
 <nb> public enum BlockStoreContext {
 } else {
 mLocalBlockWorkerClientPool = new BlockWorkerClientPool ( localWorkerAddress ) ;
 }
 - sLocalBlockWorkerClientPoolInitialized = true ;
 + mLocalBlockWorkerClientPoolInitialized = true ;
 }
 }

 <nb> public enum BlockStoreContext {
 mLocalBlockWorkerClientPool . close ( ) ;
 }
 mBlockMasterClientPool = new BlockMasterClientPool ( ClientContext . getMasterAddress ( ) ) ;
 - BlockStoreContext . sLocalBlockWorkerClientPoolInitialized = false ;
 + mLocalBlockWorkerClientPoolInitialized = false ;
 }
 }

Changed the variable to be instance variable


<nb> public class CxfHttpJmsClientServerTest extends CamelSpringTestSupport {
 private static final String ROUTER_ADDRESS = STRING0 ;

 @ test
 - SINGLE
 - SINGLE
 public void testClientInvocation ( ) throws MalformedURLException {
 Client client = new Client ( ROUTER_ADDRESS + STRING1 ) ;
 Greeter proxy = client . getProxy ( ) ;
 -
 +
 String resp ;
 resp = proxy . sayHi ( ) ;
 assertEquals ( STRING2 , STRING3 , resp ) ;
 -
 +
 resp = proxy . greetMe ( STRING4 ) ;
 assertEquals ( STRING2 , STRING5 , resp ) ;
 -
 +
 proxy . greetMeOneWay ( System . getProperty ( STRING6 ) ) ;

 try {
 <nb> public class CxfHttpJmsClientServerTest extends CamelSpringTestSupport {
 }

 @ override
 - protected AbstractXmlApplicationContext createApplicationContext ( ) {
 - return new ClassPathXmlApplicationContext ( new String [ ] { STRING7 } ) ;
 + protected AbstractXmlApplicationContext createApplicationContext ( ) {
 + return new ClassPathXmlApplicationContext ( new String [ ] { STRING7 } ) ;
 }

 }


<nb> public class WindowManagerService extends IWindowManager . Stub
 final DisplayContent displayContent = getDisplayContentLocked ( displayId ) ;
 mDisplayContents . delete ( displayId ) ;
 WindowList windows = displayContent . getWindowList ( ) ;
 - for ( int i = windows . size ( ) - NUMBER0 ; i >= NUMBER1 ; -- i ) {
 - final WindowState win = windows . get ( i ) ;
 + while ( ! windows . isEmpty ( ) ) {
 + final WindowState win = windows . get ( windows . size ( ) - NUMBER0 ) ;
 removeWindowLocked ( win . mSession , win ) ;
 }
 mAnimator . removeDisplayLocked ( displayId ) ;

Fix bug removing all windows that belong to a display


<nb> public class DnsServiceCallServerListStrategiesTest {

 for ( ServiceCallServer server : servers ) {
 assertFalse ( server . getMetadata ( ) . isEmpty ( ) ) ;
 - assertNotNull ( server . getMetadata ( ) . get ( STRING0 ) ) ;
 - assertNotNull ( server . getMetadata ( ) . get ( STRING1 ) ) ;
 + assertNotNull ( server . getMetadata ( ) . get ( STRING2 ) ) ;
 + assertNotNull ( server . getMetadata ( ) . get ( STRING3 ) ) ;
 }
 }
 }


<nb> public class XmlEmmetConfigurable implements SearchableConfigurable , Disposable ,
 public void actionPerformed ( ActionEvent e ) {
 boolean selected = myEnableEmmetJBCheckBox . isSelected ( ) ;
 myEnablePreviewJBCheckBox . setEnabled ( selected ) ;
 + myAddEditPointAtTheEndOfTemplateJBCheckBox . setEnabled ( selected ) ;
 myFiltersListPanel . setEnabled ( selected ) ;
 myEnableHrefAutodetectJBCheckBox . setEnabled ( selected ) ;
 for ( JBCheckBox checkBox : myFilterCheckboxes . values ( ) ) {
 <nb> public class XmlEmmetConfigurable implements SearchableConfigurable , Disposable ,
 myEnablePreviewJBCheckBox . setSelected ( emmetOptions . isPreviewEnabled ( ) ) ;
 myEnableHrefAutodetectJBCheckBox . setEnabled ( emmetOptions . isEmmetEnabled ( ) ) ;
 myEnableHrefAutodetectJBCheckBox . setSelected ( emmetOptions . isHrefAutoDetectEnabled ( ) ) ;
 + myAddEditPointAtTheEndOfTemplateJBCheckBox . setEnabled ( emmetOptions . isEmmetEnabled ( ) ) ;
 myAddEditPointAtTheEndOfTemplateJBCheckBox . setSelected ( emmetOptions . isAddEditPointAtTheEndOfTemplate ( ) ) ;

 Set < String > enabledByDefault = emmetOptions . getFiltersEnabledByDefault ( ) ;

disable edit point checkbox on disabling emmet support


<nb> public class UnknownType extends LiquibaseDataType {
 || getName ( ) . equalsIgnoreCase ( STRING0 )
 || getName ( ) . equalsIgnoreCase ( STRING1 )
 || getName ( ) . equalsIgnoreCase ( STRING2 )
 - || getName ( ) . equalsIgnoreCase ( STRING3 )
 + || getName ( ) . equalsIgnoreCase ( STRING4 )
 + || getName ( ) . equalsIgnoreCase ( STRING3 )
 ) ) {
 parameters = new Object [ NUMBER0 ] ;
 }


<nb> public class ChangesListView extends Tree implements TypeSafeDataProvider , Advan
 SmartExpander . installOn ( this ) ;
 myCopyProvider = new TreeCopyProvider ( this ) ;
 new TreeLinkMouseListener ( new ChangesBrowserNodeRenderer ( myProject , false , false ) ) . install ( this ) ;
 - setCellRenderer ( new ChangesBrowserNodeRenderer ( myProject , isShowFlatten ( ) , true ) ) ;
 }

 public DefaultTreeModel getModel ( ) {
 <nb> public class ChangesListView extends Tree implements TypeSafeDataProvider , Advan

 storeState ( ) ;
 setModel ( model ) ;
 + setCellRenderer ( new ChangesBrowserNodeRenderer ( myProject , isShowFlatten ( ) , true ) ) ;
 expandPath ( new TreePath ( ( ( ChangesBrowserNode ) model . getRoot ( ) ) . getPath ( ) ) ) ;
 restoreState ( ) ;
 }

revert incorrect part of changes view cosmetics


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SlidingTab extends ViewGroup {
 SINGLE
 @ override
 protected void dispatchDraw ( Canvas canvas ) {
 + int orientation = getResources ( ) . getConfiguration ( ) . orientation ;
 + if ( mOrientation == HORIZONTAL && orientation != Configuration . ORIENTATION_PORTRAIT
 + || mOrientation == VERTICAL && orientation != Configuration . ORIENTATION_LANDSCAPE ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + return ;
 + }
 super . dispatchDraw ( canvas ) ;
 }

Don t draw tabs if view is not in the correct orientation for the layout


<nb> public class ChatView extends LinearLayout {

 @ override
 protected void onQueryComplete ( int token , Object cookie , Cursor c ) {
 + mExpectingDelivery = false ;
 + setDeliveryIcon ( ) ;
 Cursor cursor = new DeltaCursor ( c ) ;

 if ( Log . isLoggable ( ImApp . LOG_TAG , Log . DEBUG ) ) {
 <nb> public class ChatView extends LinearLayout {
 if ( mChatId != oldChatId ) {
 startQuery ( ) ;
 mComposeMessage . setText ( STRING0 ) ;
 - mExpectingDelivery = false ;
 mOtrChatSession = null ;
 }


<nb> public class WPPrefUtils {

 String [ ] entryStrings = new String [ languageCodes . length ] ;
 for ( int i = NUMBER0 ; i < languageCodes . length ; ++ i ) {
 + SINGLE
 entryStrings [ i ] = StringUtils . capitalize (
 getLanguageString ( languageCodes [ i ] . toString ( ) , locale ) ) + STRING0 + languageCodes [ i ] ;
 }
 <nb> public class WPPrefUtils {
 String [ ] sortedValues = new String [ languageCodes . length ] ;

 for ( int i = NUMBER0 ; i < entryStrings . length ; ++ i ) {
 + SINGLE
 String [ ] split = entryStrings [ i ] . split ( STRING0 ) ;
 sortedEntries [ i ] = split [ NUMBER0 ] ;
 sortedValues [ i ] = split [ NUMBER1 ] ;

Added comments to createSortedLanguageDisplayStrings method


<nb> public class ServerTestUtils {

 public static StoreDefinition getStoreDef ( String storeName ,
 int replicationFactor ,
 - int rreads ,
 int preads ,
 - int rwrites ,
 + int rreads ,
 int pwrites ,
 + int rwrites ,
 String strategyType ) {
 SerializerDefinition serDef = new SerializerDefinition ( STRING0 ) ;
 return new StoreDefinition ( storeName ,
 <nb> public class ServerTestUtils {
 RoutingTier . SERVER ,
 strategyType ,
 replicationFactor ,
 - rreads ,
 preads ,
 - rwrites ,
 + rreads ,
 pwrites ,
 + rwrites ,
 NUMBER0 ) ;
 }

Fix bug where getStoreDef was passing required preferred reads writes in the wrong order


<nb> public class HTreeMap2Test {
 . make ( ) ;
 long time = System . currentTimeMillis ( ) ;
 long counter = NUMBER0 ;
 - try {
 while ( time + NUMBER1 > System . currentTimeMillis ( ) ) {
 m . put ( counter ++ , counter ++ ) ;
 }
 - } catch ( Throwable e ) {
 - Set others = new TreeSet ( ) ;
 - for ( Object key : m . keySet ( ) ) {
 - if ( others . contains ( key ) ) throw new InternalError ( STRING0 ) ;
 - others . add ( key ) ;
 - }
 -
 - }
 m . clear ( ) ;
 }


<nb> import NAMESPACE ;

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

 COMMENT
 <nb> public class EncryptionUtils {

 private static void isValidKey ( String key ) {
 Assert . hasText ( key , STRING0 ) ;
 - Validate . isTrue ( key . length ( ) >= NUMBER0 , STRING1 ) ;
 + Assert . isTrue ( key . length ( ) >= NUMBER0 , STRING1 ) ;
 }

 public static class EncryptionException extends AcegiSecurityException {


<nb> public final class AuthenticationUtils {
 AuthType authType = conf . getEnum ( Constants . SECURITY_AUTHENTICATION_TYPE , AuthType . class ) ;
 switch ( authType ) {
 case NOSASL :
 - return new TFramedTransport . Factory ( ( int ) conf . getBytes ( Constants . THRIFT_FRAME_SIZE_BYTES_MAX ) ) ;
 + return new TFramedTransport . Factory ( ( int )
 + conf . getBytes ( Constants . THRIFT_FRAME_SIZE_BYTES_MAX ) ) ;
 case SIMPLE : SINGLE
 case CUSTOM :
 return PlainSaslUtils . getPlainServerTransportFactory ( authType , conf ) ;
 <nb> public final class AuthenticationUtils {
 conf . getInt ( Constants . SECURITY_AUTHENTICATION_SOCKET_TIMEOUT_MS ) ) ;
 switch ( authType ) {
 case NOSASL :
 - return new TFramedTransport ( tTransport , ( int ) conf . getBytes ( Constants . THRIFT_FRAME_SIZE_BYTES_MAX ) ) ;
 + return new TFramedTransport ( tTransport ,
 + ( int ) conf . getBytes ( Constants . THRIFT_FRAME_SIZE_BYTES_MAX ) ) ;
 case SIMPLE : SINGLE
 case CUSTOM :
 String username = LoginUser . get ( conf ) . getName ( ) ;


<nb> public class ImplementationSymbolVisitor extends SymbolVisitor < ImplementationSym
 }
 return new FunctionExpression < > ( ( Scalar < ? > ) functionImplementation , argumentInputs ) ;
 } else {
 - throw new CrateException ( STRING0 ) ;
 + throw new IllegalArgumentException (
 + String . format ( STRING1 , function ) ) ;
 }
 }

throw more accurate exception if function implmentation is not found


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


<nb> package NAMESPACE ;

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

 - import NAMESPACE ;
 -

 COMMENT
 COMMENT


<nb> public abstract class JCVideoPlayer extends FrameLayout implements View . OnClickL

 @ override
 public void onProgressChanged ( SeekBar seekBar , int progress , boolean fromUser ) {
 + if ( mCurrentState != CURRENT_STATE_PLAYING &&
 + mCurrentState != CURRENT_STATE_PAUSE ) return ;
 if ( fromUser ) {
 int time = progress * getDuration ( ) / NUMBER0 ;
 JCMediaManager . instance ( ) . mediaPlayer . seekTo ( time ) ;

can not seek progress when the state is not right


<nb> public class IncrementalCompilerFactory {
 File privateCacheDir = new File ( cacheDir , cacheKey ) ;
 PersistentCache cache = cacheFactory . open ( privateCacheDir , STRING0 , CacheUsage . ON , null , Collections . < String , Object > emptyMap ( ) , FileLockManager . LockMode . Exclusive , null ) ;

 - PersistentIndexedCache < File , FileState > stateCache = createCache ( cache , STRING1 , File . class , new DefaultSerializer < FileState > ( ) ) ;
 + PersistentIndexedCache < File , FileState > stateCache = createCache ( cache , STRING1 , File . class , new DefaultSerializer < FileState > ( FileState . class . getClassLoader ( ) ) ) ;

 SINGLE
 PersistentIndexedCache < String , List < File > > listCache = createCache ( cache , STRING2 , String . class , new DefaultSerializer < List < File > > ( ) ) ;

Provide classloader when constructing Serializer for custom class


<nb> public final class BlockData {
 case BlockID . WOODEN_DOOR :
 case BlockID . IRON_DOOR :
 case BlockID . COCOA_PLANT :
 + case BlockID . TRIPWIRE_HOOK :
 int extra = data & ~ NUMBER0 ;
 int withoutFlags = data & NUMBER0 ;
 switch ( withoutFlags ) {
 <nb> public final class BlockData {
 case BlockID . WOODEN_DOOR :
 case BlockID . IRON_DOOR :
 case BlockID . COCOA_PLANT :
 + case BlockID . TRIPWIRE_HOOK :
 int extra = data & ~ NUMBER0 ;
 int withoutFlags = data & NUMBER0 ;
 switch ( withoutFlags ) {
 <nb> public final class BlockData {
 case BlockID . REDSTONE_REPEATER_OFF :
 case BlockID . REDSTONE_REPEATER_ON :
 case BlockID . COCOA_PLANT :
 + case BlockID . TRIPWIRE_HOOK :
 switch ( data & NUMBER0 ) {
 case NUMBER1 :
 case NUMBER2 :


<nb> import NAMESPACE ;

 public class Requirements {

 + @ suppresswarnings ( STRING0 )
 public static void check ( final Context context ) {
 SINGLE
 if ( Build . VERSION . SDK_INT != Build . VERSION_CODES . ICE_CREAM_SANDWICH_MR1
 <nb> public class Requirements {
 SINGLE
 try {
 if ( PrivacyService . getClient ( ) != null ) {
 - @ suppresswarnings ( STRING0 )
 List < String > listError = ( List < String > ) PrivacyService . getClient ( ) . check ( ) ;
 if ( listError . size ( ) > NUMBER0 )
 - sendSupportInfo ( TextUtils . join ( STRING1 , listError ) , context ) ;
 + sendSupportInfo ( TextUtils . join ( STRING2 , listError ) , context ) ;
 }
 } catch ( Throwable ex ) {
 sendSupportInfo ( ex . toString ( ) , context ) ;


<nb> public abstract class RenderLivingEvent extends Event
 this . entity = entity ;
 this . renderer = renderer ;
 }
 +
 + @ cancelable
 + public static class Pre extends RenderLivingEvent
 + {
 + public Pre ( EntityLivingBase entity , RendererLivingEntity renderer ) { super ( entity , renderer ) ; }
 + }
 + public static class Post extends RenderLivingEvent
 + {
 + public Post ( EntityLivingBase entity , RendererLivingEntity renderer ) { super ( entity , renderer ) ; }
 + }

 public abstract static class Specials extends RenderLivingEvent
 {

Add Pre and Post events for RenderLivingEvent


<nb>
 package NAMESPACE ;

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

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

 public class ShardStateActionTests extends ESTestCase {
 private static ThreadPool THREAD_POOL ;

Remove unused imports in o e c a s ShardStateActionTests


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PeopleFilterExposer extends BroadcastReceiver {
 User user = new User ( ) ;
 for ( users . moveToFirst ( ) ; ! users . isAfterLast ( ) ; users . moveToNext ( ) ) {
 user . readFromCursor ( users ) ;
 + if ( user . getValue ( User . REMOTE_ID ) == ActFmPreferenceService . userId ( ) )
 + continue ;
 Filter currFilter = filterFromUserData ( user ) ;
 if ( currFilter != null )
 items . add ( currFilter ) ;

Don t show the currently logged in user in the peopel view


<nb> public class ODatabaseRaw implements ODatabase {

 @ override
 public String toString ( ) {
 - return STRING0 + ( getStorage ( ) != null ? getStorage ( ) . getURL ( ) : STRING1 ) + STRING2 ;
 + final StringBuilder buffer = new StringBuilder ( ) ;
 + buffer . append ( STRING0 ) ;
 + buffer . append ( url != null ? url : STRING1 ) ;
 + buffer . append ( STRING3 ) ;
 + if ( getStorage ( ) != null ) {
 + buffer . append ( STRING4 ) ;
 + buffer . append ( getStorage ( ) . getUsers ( ) ) ;
 + buffer . append ( STRING5 ) ;
 + }
 + return buffer . toString ( ) ;
 }

 public Object get ( final ATTRIBUTES iAttribute ) {

Improved database toString showing also the active users


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class AudioplayerActivity extends MediaplayerActivity {

 @ override
 protected void onCreate ( Bundle savedInstanceState ) {
 + requestWindowFeature ( Window . FEATURE_INDETERMINATE_PROGRESS ) ;
 super . onCreate ( savedInstanceState ) ;
 detachedFragments = new Fragment [ NUM_CONTENT_FRAGMENTS ] ;
 }
 <nb> public class AudioplayerActivity extends MediaplayerActivity {

 @ override
 protected void postStatusMsg ( int resId ) {
 -
 + setSupportProgressBarIndeterminateVisibility ( resId == R . string . player_preparing_msg
 + || resId == R . string . player_seeking_msg
 + || resId == R . string . player_buffering_msg ) ;
 }

 @ override
 protected void clearStatusMsg ( ) {
 -
 + setSupportProgressBarIndeterminateVisibility ( false ) ;
 }

 COMMENT


<nb>
 COMMENT
 package NAMESPACE ;

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

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SimpleTest extends LanguageTestSupport {

 assertExpression ( STRING0 , NUMBER0 ) ;
 assertExpression ( STRING1 , STRING2 ) ;
 +
 + assertExpression ( STRING3 , NUMBER1 ) ;
 }

 public void testBodyOGNLList ( ) throws Exception {

Add a new assertion condition to test size of the array


<nb> public class DownloadManager {
 Downloads . COLUMN_LAST_MODIFICATION ,
 Downloads . COLUMN_DESTINATION ,
 Downloads . Impl . COLUMN_FILE_NAME_HINT ,
 + Downloads . Impl . _DATA ,
 } ;

 private static final Set < String > LONG_COLUMNS = new HashSet < String > (
 <nb> public class DownloadManager {
 return getUnderlyingString ( Downloads . Impl . COLUMN_FILE_NAME_HINT ) ;
 }

 + if ( destinationType == Downloads . Impl . DESTINATION_EXTERNAL ) {
 + SINGLE
 + return Uri . fromFile ( new File ( getUnderlyingString ( Downloads . Impl . _DATA ) ) ) . toString ( ) ;
 + }
 +
 SINGLE
 long downloadId = getUnderlyingLong ( Downloads . Impl . _ID ) ;
 return ContentUris . withAppendedId ( mBaseUri , downloadId ) . toString ( ) ;

Have DownloadManager pass file URIs for legacy external downloads


<nb> public class DynamicView {
 for ( int i = NUMBER0 ; i < count ; i ++ ) {
 COMMENT
 View dynamicChildView = DynamicView . createViewInternal ( context , jViews . getJSONObject ( i ) , parent , ids ) ;
 - views . add ( dynamicChildView ) ;
 - viewGroup . addView ( dynamicChildView ) ;
 + if ( dynamicChildView != null ) {
 + views . add ( dynamicChildView ) ;
 + viewGroup . addView ( dynamicChildView ) ;
 + }
 }
 }
 COMMENT


<nb> public class HazelcastParametersRunnerFactory implements ParametersRunnerFactory
 return false ;
 }

 - private HazelcastSerialClassRunner getSerialClassRunner ( Class < ? > testClass , Object [ ] parameters , String testName )
 + SINGLE
 + protected HazelcastSerialClassRunner getSerialClassRunner ( Class < ? > testClass , Object [ ] parameters , String testName )
 throws InitializationError {
 return new HazelcastSerialClassRunner ( testClass , parameters , testName ) ;
 }

 - private HazelcastParallelClassRunner getParallelClassRunner ( Class < ? > testClass , Object [ ] parameters , String testName )
 + SINGLE
 + protected HazelcastParallelClassRunner getParallelClassRunner ( Class < ? > testClass , Object [ ] parameters , String testName )
 throws InitializationError {
 return new HazelcastParallelClassRunner ( testClass , parameters , testName ) ;
 }

Fixed HazelcastParametersRunnerFactory for Hazelcast Enterprise


<nb> public class ChannelManager
 SINGLE
 SINGLE
 LOGGER . trace ( STRING0
 - + channelName ) ;
 + + channelName + STRING1 ) ;
 SINGLE
 SINGLE
 SINGLE

Added closing apostrophe to trace log message


<nb> public class LwjglGraphics extends BaseLwjglSubsystem {
 lwjglDisplay . setFullscreen ( config . isFullscreen ( ) , false ) ;

 Display . setLocation ( config . getWindowPosX ( ) , config . getWindowPosY ( ) ) ;
 - Display . setTitle ( STRING0 + STRING1 + STRING2 ) ;
 + Display . setTitle ( STRING0 + STRING1 + STRING3 ) ;
 try {

 String root = STRING4 ;
 <nb> public final class MainWindow extends JFrame implements ActionListener , WindowLi
 verticalSplitPane . setResizeWeight ( FLOAT0 ) ;
 getContentPane ( ) . add ( verticalSplitPane , BorderLayout . CENTER ) ;

 - setTitle ( STRING5 + STRING1 + STRING2 ) ;
 + setTitle ( STRING5 + STRING1 + STRING3 ) ;

 mainMenuBar = new JMenuBar ( ) ;
 setJMenuBar ( mainMenuBar ) ;


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class ReflectionFactoryImpl extends ReflectionFactory {

 @ override
 public KFunction function ( FunctionReference f ) {
 - return new KFunctionFromReferenceImpl ( f ) ;
 + try {
 + return new KFunctionFromReferenceImpl ( f ) ;
 + }
 + catch ( KotlinReflectionNotSupportedError e ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + return f ;
 + }
 }

 SINGLE

Make function references compiled with old compiler work with new runtime


<nb> public class MavenModuleNameMapper {

 for ( NameItem name : names ) {
 if ( name . module != null ) {
 - existingNames . add ( name . getResultName ( ) ) ;
 + boolean wasAdded = existingNames . add ( name . getResultName ( ) ) ;
 + assert wasAdded : name . getResultName ( ) ;
 }
 }


<nb> public class AceEditor implements DocDisplay ,

 private void syncWrapLimit ( )
 {
 + SINGLE
 + if ( fileType_ == null )
 + return ;
 +
 SINGLE
 SINGLE
 SINGLE


<nb> public class Conversation extends AbstractEntity implements Blockable {
 builder . insert ( NUMBER0 , STRING0 ) ;
 builder . insert ( NUMBER1 , STRING0 ) ;
 this . otrFingerprint = builder . toString ( ) ;
 - } catch ( final OtrCryptoException ignored ) {
 + } catch ( final OtrCryptoException | UnsupportedOperationException ignored ) {

 }
 }

catch another exception in fingerprint generation


<nb> public class ORecordLazyList extends ORecordTrackedList {
 if ( converted || ! convertToRecord )
 return ;

 - if ( sourceRecord == null || sourceRecord . getDatabase ( ) == null )
 + if ( database == null )
 return ;

 final Object o = super . get ( iIndex ) ;
 <nb> public class ORecordLazySet extends ORecordTrackedSet {
 if ( converted || ! convertToRecord )
 return iElement ;

 + if ( database == null )
 + return iElement ;
 +
 if ( iElement != null && iElement instanceof ORecordId ) {
 final ORecordInternal < ? > record = ORecordFactory . newInstance ( recordType ) ;
 final ORecordId rid = ( ORecordId ) iElement ;


<nb> public class EntityRobot extends EntityRobotBase implements
 laser . isVisible = false ;
 entityCollisionReduction = FLOAT0 ;

 - width = FLOAT1 ;
 - height = FLOAT1 ;
 + width = FLOAT2 ;
 + height = FLOAT2 ;
 }

 @ override
 <nb> public class EntityRobot extends EntityRobotBase implements

 super . setDead ( ) ;
 }
 +
 + @ override
 + public boolean canBePushed ( ) {
 + return false ;
 + }
 +
 + @ override
 + protected void collideWithEntity ( Entity par1Entity ) {
 +
 + }
 +
 + @ override
 + public void applyEntityCollision ( Entity par1Entity ) {
 +
 + }
 }

fixed robot size deactivate robot collisions


<nb> public final class BridgeContext extends Context {
 new IdentityHashMap < Object , Map < String , String > > ( ) ;

 SINGLE
 + @ nullable
 private Map < Integer , StyleResourceValue > mDynamicIdToStyleMap ;
 private Map < StyleResourceValue , Integer > mStyleToDynamicIdMap ;
 private int mDynamicIdGenerator = NUMBER0 ; SINGLE
 <nb> public final class BridgeContext extends Context {
 }
 }
 } else if ( defStyleRes != NUMBER1 ) {
 - StyleResourceValue item = mDynamicIdToStyleMap . get ( defStyleRes ) ;
 + StyleResourceValue item = getStyleByDynamicId ( defStyleRes ) ;
 if ( item != null ) {
 defStyleValues = item ;
 } else {

Fix NPE in BridgeContext obtainStyledAttributes DO NOT MERGE


<nb> public class JingleConnection {
 this . cancel ( ) ;
 return ;
 } else {
 - this . file . setKey ( conversation . getSymmetricKey ( ) ) ;
 + this . file . setKey ( key ) ;
 }
 }
 this . file . setExpectedSize ( size ) ;

avoid race condition for otr key in jingle


<nb> public class CouchdbRiver extends AbstractRiverComponent implements River {
 }
 }

 - String file = STRING0 + couchDb + STRING1 ;
 + String file = STRING0 + couchDb + STRING2 ;
 if ( couchFilter != null ) {
 file = file + STRING3 + couchFilter ;
 }

remove double in the url though seems like couchdb does not mind


<nb> public abstract class ContentResolver {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void setIsSyncable ( Account account , String authority , int syncable ) {
 try {


<nb> public class PeerGroup extends AbstractIdleService {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Fix s connectionTimeoutMillis connectTimeoutMillis in a javadoc


<nb> public class PShader {
 parent = null ;
 pgMain = null ;
 pgl = null ;
 - context = pgl . createEmptyContext ( ) ;
 + context = - NUMBER0 ;

 this . vertexURL = null ;
 this . fragmentURL = null ;


<nb> public class TransitBoardAlight extends PatternEdge implements OnBoardForwardEdg

 if ( options . isReverseOptimizeOnTheFly ( ) ) {
 int thisDeparture = state0 . getTripTimes ( ) . getDepartureTime ( stopIndex ) ;
 - int numTrips = getPattern ( ) . getNumTrips ( ) ;
 + int numTrips = getPattern ( ) . getNumScheduledTrips ( ) ;
 int nextDeparture ;

 s1 . setLastNextArrivalDelta ( Integer . MAX_VALUE ) ;


<nb> public class CompileContext extends UserDataHolderBase implements MessageHandler
 myDelegateMessageHandler . processMessage ( msg ) ;
 }

 + public boolean errorsDetected ( ) {
 + return myErrorsFound ;
 + }
 +
 public void processFilesToRecompile ( ModuleChunk chunk , FileProcessor processor ) throws IOException {
 for ( Module module : chunk . getModules ( ) ) {
 myFsState . processFilesToRecompile ( this , module , processor ) ;
 <nb> public abstract class ModuleLevelBuilder extends Builder {
 COMMENT
 COMMENT
 public final boolean updateMappings ( CompileContext context , final Mappings delta , ModuleChunk chunk , Collection < File > filesToCompile , Collection < File > successfullyCompiled ) throws IOException {
 + if ( context . errorsDetected ( ) ) {
 + return false ;
 + }
 try {
 boolean additionalPassRequired = false ;

do not differentiate integrate files for the chunk where compilation errors occurred


<nb> public class MapAggregation
 if ( state . get ( ) != null && otherState . get ( ) != null ) {
 Block keys = otherState . get ( ) . getKeys ( ) ;
 Block values = otherState . get ( ) . getValues ( ) ;
 + KeyValuePairs pairs = state . get ( ) ;
 + long startSize = pairs . estimatedInMemorySize ( ) ;
 for ( int i = NUMBER0 ; i < keys . getPositionCount ( ) ; i ++ ) {
 - state . get ( ) . add ( keys , values , i ) ;
 + pairs . add ( keys , values , i ) ;
 }
 + state . addMemoryUsage ( pairs . estimatedInMemorySize ( ) - startSize ) ;
 }
 else if ( state . get ( ) == null ) {
 state . set ( otherState . get ( ) ) ;

Fix memory usage accounting in MapAggregation


<nb> public class ValueBuilder < E extends Exchange > implements Expression < E > {
 return expression ;
 }

 + @ override
 + public String toString ( ) {
 + return expression . toString ( ) ;
 + }
 +
 SINGLE
 SINGLE

fixed a failing test case that I broke bad James for breaking it in the first place


<nb> public class BeeLine implements Closeable {

 int code = NUMBER0 ;
 if ( ! commands . isEmpty ( ) ) {
 - SINGLE
 - getOpts ( ) . setColor ( false ) ;
 - getOpts ( ) . setHeaderInterval ( - NUMBER1 ) ;
 -
 for ( Iterator < String > i = commands . iterator ( ) ; i . hasNext ( ) ; ) {
 String command = i . next ( ) . toString ( ) ;
 debug ( loc ( STRING0 , command ) ) ;

Beeline does not honor headerInterval and color when executing with e Naveen via Xuefu


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

Fix comment to make it clear that target cancel has to be called when exception is thrown


<nb> public class KeyguardUpdateMonitor implements TrustManager . TrustListener {
 }

 private boolean isTrustDisabled ( int userId ) {
 - final DevicePolicyManager dpm =
 - ( DevicePolicyManager ) mContext . getSystemService ( Context . DEVICE_POLICY_SERVICE ) ;
 - if ( dpm != null ) {
 - SINGLE
 - final boolean disabledByGlobalActions = false ;
 - final boolean disabledBySettings = false ;
 -
 - SINGLE
 - SINGLE
 - SINGLE
 - final boolean disabledBySimPin = isSimPinSecure ( ) ;
 -
 - final boolean disabledByDpm = ( dpm . getKeyguardDisabledFeatures ( null , userId )
 - & DevicePolicyManager . KEYGUARD_DISABLE_TRUST_AGENTS ) != NUMBER0 ;
 - return disabledByDpm || disabledByGlobalActions || disabledBySettings
 - || disabledBySimPin ;
 - }
 - return false ;
 + SINGLE
 + SINGLE
 + SINGLE
 + final boolean disabledBySimPin = isSimPinSecure ( ) ;
 + return disabledBySimPin ;
 }

 private boolean isFingerprintDisabled ( int userId ) {

Remove leftover code causing trust agent issues


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class CommitPanel extends JBPanel {
 }

 private void customizeLinks ( ) {
 - EditorKit editorKit = getEditorKit ( ) ;
 - if ( editorKit instanceof HTMLEditorKit ) {
 - StyleSheet styleSheet = ( ( HTMLEditorKit ) editorKit ) . getStyleSheet ( ) ;
 + Document document = getDocument ( ) ;
 + if ( document instanceof HTMLDocument ) {
 + StyleSheet styleSheet = ( ( HTMLDocument ) document ) . getStyleSheet ( ) ;
 String linkColor = STRING0 + ColorUtil . toHex ( UI . getColor ( STRING1 ) ) ;
 styleSheet . addRule ( STRING2 + linkColor + STRING3 ) ;
 }

Don t apply the stylesheet to the whole IDE just to the commit details


<nb> public class RenameJavaMethodProcessor extends RenameJavaMemberProcessor {
 else {
 ref = element . getReference ( ) ;
 }
 + if ( ref instanceof PsiImportStaticReferenceElement && ( ( PsiImportStaticReferenceElement ) ref ) . multiResolve ( false ) . length > NUMBER0 ) {
 + continue ;
 + }
 if ( ref != null ) {
 PsiElement e = processRef ( ref , newName ) ;
 if ( e != null ) {

leave static imports on overloaded methods untouched


<nb> public class TachyonFile implements Comparable < TachyonFile > {
 COMMENT
 COMMENT
 COMMENT
 + @ deprecated
 public TachyonByteBuffer readByteBuffer ( int blockIndex ) throws IOException {
 if ( ! isComplete ( ) ) {
 return null ;


<nb> public class MvcModuleStructureUtil {
 return LocalFileSystem . getInstance ( ) . findFileByIoFile ( file ) ;
 }
 }
 +
 + public static boolean isEnabledStructureUpdate ( ) {
 + return ! Boolean . parseBoolean ( System . getProperty ( STRING0 ) ) ;
 + }
 }

manual mvc structure update switch community


<nb> public abstract class Editor extends JFrame implements RunnerListener {
 SINGLE
 SINGLE

 - System . out . println ( e . context ( ) ) ;
 + SINGLE
 boolean openedFile = false ;
 if ( ( ( Path ) e . context ( ) ) . getFileName ( ) . toString ( ) . startsWith ( STRING0 ) ) {
 openedFile = true ;
 }
 if ( ! openedFile ) {
 for ( SketchCode sc : sketch . getCode ( ) ) {
 - System . err . println ( STRING1 + sc . getFileName ( ) + STRING2 + e . context ( ) + STRING3 ) ;
 + SINGLE
 SINGLE
 if ( sc . getFileName ( ) . equals ( ( ( Path ) e . context ( ) ) . getFileName ( ) . toString ( ) ) ) {
 openedFile = true ;


<nb> public class VirtualFilePointerContainerImpl extends TraceableDisposable impleme
 assert ! myDisposed ;
 dropCaches ( ) ;

 - List < VirtualFilePointer > thatList = ( ( VirtualFilePointerContainerImpl ) that ) . myList ;
 - for ( final VirtualFilePointer pointer : thatList ) {
 + for ( final VirtualFilePointer pointer : that . getList ( ) ) {
 myList . add ( duplicate ( pointer ) ) ;
 }
 }

allow other VFPC implementations requested by UpSource


<nb> public class ParticleEmitter {
 }

 public void update ( float delta ) {
 - accumulator += Math . min ( delta * NUMBER0 , NUMBER1 ) ;
 + accumulator += delta * NUMBER0 ;
 if ( accumulator < NUMBER2 ) return ;
 int deltaMillis = ( int ) accumulator ;
 accumulator -= deltaMillis ;
 <nb> public class ParticleEmitter {
 COMMENT
 COMMENT
 public void draw ( Batch batch , float delta ) {
 - accumulator += Math . min ( delta * NUMBER0 , NUMBER1 ) ;
 + accumulator += delta * NUMBER0 ;
 if ( accumulator < NUMBER2 ) {
 draw ( batch ) ;
 return ;


<nb> public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl
 SINGLE
 Set < Integer > selections = getSelections ( ) ;
 while ( selections . size ( ) > NUMBER0 ) {
 - RelativeInfo relativeInfo = getRelativePosition ( selections . iterator ( ) . next ( ) ) ;
 + Iterator < Integer > iterator = selections . iterator ( ) ;
 + RelativeInfo relativeInfo = getRelativePosition ( iterator . next ( ) ) ;
 if ( relativeInfo . adapter instanceof IItemAdapter ) {
 deletedItems . add ( ( Item ) relativeInfo . adapter . getAdapterItem ( relativeInfo . relativePosition ) ) ;
 ( ( IItemAdapter ) relativeInfo . adapter ) . remove ( relativeInfo . relativePosition ) ;
 + } else {
 + SINGLE
 + iterator . remove ( ) ;
 }
 selections = getSelections ( ) ;
 }

make sure we don t run into an endless loop if an item can t be found anymore


<nb> class FileDownloadMgr {
 break ;
 }

 - if ( checkReuse ( downloadId , model ) ) {
 - break ;
 - }
 -
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 needStart = true ;

 } while ( false ) ;

In the case of BaseDownloadTask setForceReDownload true and the task has already downloaded will trigger warn callback


<nb> LazilyPersistentVector ( IPersistentMap meta , Object [ ] array , PersistentVector v ) {
 }

 public Object [ ] toArray ( ) {
 - return array ;
 + return array . clone ( ) ;
 }

 public Object nth ( int i ) {


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public final class CompoundProcessor implements Processor {
 + public class CompoundProcessor implements Processor {
 static final String ON_FAILURE_MESSAGE_FIELD = STRING0 ;
 static final String ON_FAILURE_PROCESSOR_FIELD = STRING1 ;


<nb> public class FileUtils
 }
 catch ( Exception e1 )
 {
 - logger . debug ( STRING0 , e ) ;
 + logger . debug ( STRING0 , e1 ) ;
 }
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 public class ClassLanguage extends AbstractProgrammingLanguage {
 <nb> public class ClassLanguage extends AbstractProgrammingLanguage {

 protected void prepareScenario ( ) throws Throwable {
 clearHooksAndStepDefinitions ( ) ;
 +
 + objectFactory . addClass ( DefaultJavaTransforms . class ) ;
 objectFactory . createObjects ( ) ;
 +
 for ( ClassAnalyzer analyzer : analyzers ) {
 - analyzer . addDefaultTransforms ( objectFactory , this ) ;
 + analyzer . addDefaultTransforms ( this , objectFactory ) ;
 for ( Class < ? > clazz : classes ) {
 analyzer . populateStepDefinitionsAndHooksFor ( clazz , objectFactory , this ) ;
 }

Added a hack to add DefaultJavaTransforms to PicoContainer


<nb> public class StorageService extends NotificationBroadcasterSupport implements IE

 public boolean isRPCServerRunning ( )
 {
 - if ( daemon == null )
 + if ( ( daemon == null ) || ( daemon . thriftServer == null ) )
 {
 return false ;
 }
 <nb> public class StorageService extends NotificationBroadcasterSupport implements IE

 public boolean isNativeTransportRunning ( )
 {
 - if ( daemon == null )
 + if ( ( daemon == null ) || ( daemon . nativeServer == null ) )
 {
 return false ;
 }

Fix NPE in nodetool on booting instances


<nb> public final class InputMethodManager {
 final boolean isImmediate = ( mCursorAnchorInfoMonitorMode &
 CursorAnchorInfoRequest . FLAG_CURSOR_ANCHOR_INFO_IMMEDIATE ) != NUMBER0 ;
 if ( ! isImmediate && Objects . equals ( mCursorAnchorInfo , cursorAnchorInfo ) ) {
 - Log . w ( TAG , STRING0 + cursorAnchorInfo ) ;
 + SINGLE
 + SINGLE
 + if ( DEBUG ) {
 + Log . w ( TAG , STRING0
 + + cursorAnchorInfo ) ;
 + }
 return ;
 }
 if ( DEBUG ) Log . v ( TAG , STRING1 + cursorAnchorInfo ) ;

Suppress warnings of redundant calls of updateCursorAnchorInfo


<nb> public class LwjglRenderingProcess {

 takeScreenshot = false ;
 overwriteRtWidth = NUMBER0 ;
 - overwriteRtWidth = NUMBER0 ;
 + overwriteRtHeight = NUMBER0 ;

 createOrUpdateFullscreenFbos ( ) ;
 }
 <nb> public class LwjglRenderingProcess {
 fboLookup . put ( title , fbo2 ) ;
 fboLookup . put ( title + STRING0 , fbo1 ) ;
 }
 -
 }
 +

to take a screenshot the game video resolution is temporarily lowered or increased to match screenshot size


<nb> public class HiveQueryTest extends HiveTest {
 + STRING0
 + STRING1
 + STRING2
 - + STRING3 ) ;
 + + STRING4 ) ;
 Results results = query ( STRING5 ) ;
 assertEquals ( NUMBER0 , results . size ( ) ) ;

Don t use eq operator in tests since it s not available in older server versions


<nb> public class ApnsConnectionTest {

 assertArrayEquals ( msg1 . marshall ( ) , server . received . toByteArray ( ) ) ;
 }
 -
 - @ test ( timeout = NUMBER0 )
 - @ ignore
 - public void sendOneMina ( ) throws InterruptedException {
 - server . stopAt ( msg1 . length ( ) ) ;
 -
 - @ suppresswarnings ( STRING0 )
 - ApnsService service =
 - APNS . newService ( ) . withCert ( clientCertPath ( ) , CLIENT_PASSWD )
 - . withGatewayDestination ( TEST_HOST , TEST_GATEWAY_PORT )
 - . asNonBlocking ( )
 - . build ( ) ;
 -
 - service . push ( msg1 ) ;
 - server . messages . acquire ( ) ;
 -
 - assertArrayEquals ( msg1 . marshall ( ) , server . received . toByteArray ( ) ) ;
 - }
 }


<nb> public abstract class PluginComponentFactory
 if ( p == null )
 {
 p = getPluginInstance ( ) ;
 + pluginInstances . put ( parent , p ) ;
 }

 return p ;

Fixes caching plugin components reported by Marin Dzhigarov


<nb> public final class AudioTrack {
 SINGLE
 SINGLE
 long bufferStartTime = presentationTimeUs - framesToDurationUs ( bytesToFrames ( size ) ) ;
 - if ( startMediaTimeUs == START_NOT_SET ) {
 + if ( startMediaTimeState == START_NOT_SET ) {
 startMediaTimeUs = Math . max ( NUMBER0 , bufferStartTime ) ;
 startMediaTimeState = START_IN_SYNC ;
 } else {
 <nb> public final class AudioTrack {
 if ( isInitialized ( ) ) {
 submittedBytes = NUMBER0 ;
 temporaryBufferSize = NUMBER0 ;
 - startMediaTimeUs = START_NOT_SET ;
 + startMediaTimeState = START_NOT_SET ;
 latencyUs = NUMBER0 ;
 resetSyncParams ( ) ;
 int playState = audioTrack . getPlayState ( ) ;
 <nb> public final class AudioTrack {

 COMMENT
 private boolean hasCurrentPositionUs ( ) {
 - return isInitialized ( ) && startMediaTimeUs != START_NOT_SET ;
 + return isInitialized ( ) && startMediaTimeState != START_NOT_SET ;
 }

 COMMENT


<nb> public class RoundBasedProfileRouter {
 SINGLE
 SINGLE

 + SINGLE
 + SINGLE
 Multimap < TransitStop , ProfileState > touchedStops ;
 Map < TransitStop , ProfileState > singleTouchedStops ;

 <nb> public class RoundBasedProfileRouter {
 }

 DESTSTOPS: for ( int j = i + NUMBER0 ; j < pattern . stopVertices . length ; j ++ ) {
 - SINGLE
 + SINGLE
 int minRideTime = Integer . MAX_VALUE ;
 int maxRideTime = Integer . MIN_VALUE ;

 <nb> public class RoundBasedProfileRouter {
 SINGLE
 continue DESTSTOPS ;

 + if ( minRideTime < NUMBER1 || maxRideTime < NUMBER1 ) {
 + LOG . error ( STRING0 ,
 + pattern , pattern . stopVertices [ i ] . getStop ( ) , pattern . stopVertices [ j ] . getStop ( ) ) ;
 + continue DESTSTOPS ;
 + }
 +
 SINGLE
 SINGLE

add check for trips that run backwards in round based profile router


<nb> package NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MessageParser {
 String body = packet . getBody ( ) ;
 if ( ! conversation . hasValidOtrSession ( ) ) {
 conversation . startOtrSession ( service . getApplicationContext ( ) , fromParts [ NUMBER0 ] ) ;
 + } else {
 + if ( body . startsWith ( STRING0 ) ) {
 + Log . d ( STRING1 , STRING2 ) ;
 + try {
 + conversation . getOtrSession ( ) . endSession ( ) ;
 + } catch ( OtrException e ) {
 + Log . d ( STRING1 , STRING3 ) ;
 + }
 + Log . d ( STRING1 , STRING4 + fromParts [ NUMBER0 ] ) ;
 + conversation . startOtrSession ( service . getApplicationContext ( ) , fromParts [ NUMBER0 ] ) ;
 + }
 }
 try {
 Session otrSession = conversation . getOtrSession ( ) ;


<nb> public class ProjectFileIndexImpl extends FileIndexBase implements ProjectFileIn

 @ override
 public boolean isInLibrarySource ( @ notnull VirtualFile fileOrDir ) {
 - return getInfoForFileOrDirectory ( fileOrDir ) . isInLibrarySource ( ) ;
 + DirectoryInfo info = getInfoForFileOrDirectory ( fileOrDir ) ;
 + return info . isInProject ( ) && info . isInLibrarySource ( ) ;
 }

 SINGLE
 public boolean isInLibrary ( @ notnull VirtualFile fileOrDir ) {
 DirectoryInfo info = getInfoForFileOrDirectory ( fileOrDir ) ;
 - return info . isInProject ( ) && info . hasLibraryClassRoot ( ) || info . isInLibrarySource ( ) ;
 + return info . isInProject ( ) && ( info . hasLibraryClassRoot ( ) || info . isInLibrarySource ( ) ) ;
 }

 @ override

added isInProject check to isInLibrarySource method for consistency currently it shouldn t change behavior


<nb> public class PrivacyService {
 alertDialog . show ( ) ;
 holder . dialog = alertDialog ;

 - SINGLE
 - SINGLE
 - if ( Build . VERSION . SDK_INT >= NUMBER0 )
 - alertDialog . getWindow ( ) . getDecorView ( )
 - . setSystemUiVisibility ( View . SYSTEM_UI_FLAG_FULLSCREEN ) ;
 -
 SINGLE
 final ProgressBar mProgress = ( ProgressBar ) alertDialog
 . findViewById ( R . id . pbProgress ) ;


<nb> import NAMESPACE ;

 import NAMESPACE ;

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


<nb> public abstract class Box2DTest implements RenderListener , InputListener
 public void render ( Application app )
 {
 SINGLE
 - world . step ( NUMBER0 / FLOAT0 , NUMBER1 , NUMBER2 ) ;
 + world . step ( app . getGraphics ( ) . getDeltaTime ( ) , NUMBER1 , NUMBER2 ) ;

 SINGLE
 GL10 gl = app . getGraphics ( ) . getGL10 ( ) ;

fixed bug in Box2DTest used fixed time step stupid me


<nb> public class StreetVertexIndexServiceImpl implements StreetVertexIndexService {
 }
 List < String > uniqueNames = new ArrayList < String > ( uniqueNameSet ) ;

 - ResourceBundle resources = ResourceBundle . getBundle ( STRING0 , locale ) ;
 -
 - ResourceBundle resources_names = ResourceBundle . getBundle ( STRING1 , locale ) ;
 String fmt = ResourceBundleSingleton . INSTANCE . localize ( STRING2 , locale ) ;
 if ( uniqueNames . size ( ) > NUMBER0 ) {
 calculatedName = String . format ( fmt , uniqueNames . get ( NUMBER1 ) ,

Removed unused resources from StreetVertexIndexServiceImpl


<nb> public class HttpRequest {
 COMMENT
 public HttpRequest useProxy ( final String proxyHost , final int proxyPort ) {
 if ( connection != null )
 - throw new IllegalStateException ( STRING0 ) ;
 + throw new IllegalStateException ( STRING1 ) ;
 +
 this . httpProxyHost = proxyHost ;
 this . httpProxyPort = proxyPort ;
 return this ;


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

 - class IOHelper {
 + final class IOHelper {

 private IOHelper ( ) {
 }


<nb> public class AuthenticationManagerBeanDefinitionParserTests {
 setContext ( CONTEXT , STRING0 ) ;
 AuthListener listener = new AuthListener ( ) ;
 appContext . addApplicationListener ( listener ) ;
 - appContext . refresh ( ) ;

 ProviderManager pm = ( ProviderManager ) appContext . getBeansOfType ( ProviderManager . class ) . values ( ) . toArray ( ) [ NUMBER0 ] ;
 Object eventPublisher = FieldUtils . getFieldValue ( pm , STRING1 ) ;

authentication manager does not register default event handler DefaultAuthenticationEventPublisher


<nb> public class ForgeModContainer extends DummyModContainer implements WorldAccessC
 MinecraftForge . EVENT_BUS . register ( MinecraftForge . INTERNAL_HANDLER ) ;
 ForgeChunkManager . captureConfig ( evt . getModConfigurationDirectory ( ) ) ;
 FMLCommonHandler . instance ( ) . bus ( ) . register ( this ) ;
 +
 + if ( ! ForgeModContainer . disableVersionCheck )
 + {
 + ForgeVersion . startVersionCheck ( ) ;
 + }
 }

 @ subscribe
 <nb> public class MinecraftForge

 OreDictionary . getOreName ( NUMBER0 ) ;

 - if ( ! ForgeModContainer . disableVersionCheck )
 - {
 - ForgeVersion . startVersionCheck ( ) ;
 - }
 -
 SINGLE
 new CrashReport ( STRING0 , new Exception ( STRING1 ) ) ;

Moving the start of the update thread to the pre init of the forge mod container


<nb> public class BeanELResolver extends ELResolver {
 }
 }
 }
 + Object result = null ;
 try {
 - return matchingMethod . invoke ( base , parameters ) ;
 + result = matchingMethod . invoke ( base , parameters ) ;
 } catch ( IllegalArgumentException e ) {
 throw new ELException ( e ) ;
 } catch ( IllegalAccessException e ) {
 <nb> public class BeanELResolver extends ELResolver {
 throw new ELException ( e . getCause ( ) ) ;
 }

 + context . setPropertyResolved ( true ) ;
 + return result ;
 }

 }

If the method is found mark the property as resolved


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 COMMENT
 - public class DefaultIdeaLibraryDependency implements IdeaLibraryDependency {
 + public class DefaultIdeaLibraryDependency implements IdeaLibraryDependency , Serializable {

 private File file ;
 private File source ;
 <nb> package NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 - public class DefaultIdeaModuleDependency implements IdeaModuleDependency {
 + public class DefaultIdeaModuleDependency implements IdeaModuleDependency , Serializable {

 private String scope ;
 private String dependencyModuleName ;

ToolingAPI for IDEA Fixed issue with some implementation classes not being serializable exposed by the idea sample test


<nb> public abstract class AbstractReplicatedMap < K , V >
 if ( this . rpcChannel != null ) {
 this . rpcChannel . breakdown ( ) ;
 }
 - try { broadcast ( MapMessage . MSG_STOP , false ) ; } catch ( Exception ignore ) { }
 - SINGLE
 if ( this . channel != null ) {
 + try { broadcast ( MapMessage . MSG_STOP , false ) ; } catch ( Exception ignore ) { }
 + SINGLE
 this . channel . removeChannelListener ( this ) ;
 this . channel . removeMembershipListener ( this ) ;
 }

Fix potential NPE in AbstractReplicatedMap breakdown


<nb> import NAMESPACE ;

 public class ConvertContextFactory {
 public static ConvertContext createConvertContext ( final DomElement element ) {
 - return createConvertContext ( DomManagerImpl . getDomInvocationHandler ( element ) ) ;
 + return new ConvertContextImpl ( DomManagerImpl . getDomInvocationHandler ( element ) ) {
 + public DomElement getInvocationElement ( ) {
 + return element ;
 + }
 + } ;
 }

 public static ConvertContext createConvertContext ( final DomInvocationHandler element ) {
 <nb> public class ConvertContextImpl extends AbstractConvertContext {
 }

 @ notnull
 - public final DomElement getInvocationElement ( ) {
 + public DomElement getInvocationElement ( ) {
 return myHandler . getProxy ( ) ;
 }


<nb> public class CommaFeedApplication extends AuthenticatedWebApplication {
 public String renderUrl ( Url url ) {
 String publicUrl = applicationSettingsService . get ( ) . getPublicUrl ( ) ;
 if ( StringUtils . isNotBlank ( publicUrl ) ) {
 - url . setProtocol ( Url . parse ( publicUrl ) . getProtocol ( ) ) ;
 + Url parsed = Url . parse ( publicUrl ) ;
 +
 + String protocol = parsed . getProtocol ( ) ;
 + url . setProtocol ( protocol ) ;
 +
 + Integer port = parsed . getPort ( ) ;
 + url . setPort ( port != null ? port : StringUtils . equalsIgnoreCase ( protocol , STRING0 ) ? NUMBER0 : NUMBER1 ) ;
 }
 return super . renderUrl ( url ) ;
 }


<nb> package NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class DetailASTTest extends TestCase {


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

 COMMENT
 COMMENT
 <nb> public final class WebmExtractor implements Extractor {
 int seconds = ( int ) ( timeUs / NUMBER0 ) ;
 timeUs -= ( seconds * NUMBER0 ) ;
 int milliseconds = ( int ) ( timeUs / NUMBER1 ) ;
 - timeCodeData = String . format ( STRING0 , hours , minutes , seconds , milliseconds )
 - . getBytes ( ) ;
 + timeCodeData = String . format ( Locale . US , STRING0 ,
 + hours , minutes , seconds , milliseconds ) . getBytes ( ) ;
 }
 System . arraycopy ( timeCodeData , NUMBER2 , subripSampleData , SUBRIP_PREFIX_END_TIMECODE_OFFSET ,
 SUBRIP_TIMECODE_LENGTH ) ;


<nb> public class MavenIndicesConfigurable extends BaseConfigurable {
 }

 public String getHelpTopic ( ) {
 - return null ;
 + return STRING0 ;
 }

 public JComponent createComponent ( ) {
 <nb> public abstract class MavenGeneralConfigurable implements Configurable {
 @ nullable
 @ nonnls
 public String getHelpTopic ( ) {
 - return null ;
 + return STRING1 ;
 }
 }
 <nb> public class MavenIgnoreConfigurable implements Configurable {
 @ nullable
 @ nonnls
 public String getHelpTopic ( ) {
 - return null ;
 + return STRING2 ;
 }

 public JComponent createComponent ( ) {
 <nb> public class MavenImportingConfigurable implements Configurable {
 @ nullable
 @ nonnls
 public String getHelpTopic ( ) {
 - return null ;
 + return STRING3 ;
 }

 public JComponent createComponent ( ) {
 <nb> public abstract class MavenRunnerConfigurable implements Configurable {
 @ nullable
 @ nonnls
 public String getHelpTopic ( ) {
 - return null ;
 + return STRING4 ;
 }

 public void disposeUIResources ( ) {


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 @ hasinternalprotocol
 @ nonextensible

Added a note to the class header that using getFile with filters are not supported


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TestDataLineMarkerProvider implements LineMarkerProvider {
 if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
 return null ;
 }
 + final VirtualFile file = PsiUtilCore . getVirtualFile ( element ) ;
 + if ( file == null || ! ProjectFileIndex . SERVICE . getInstance ( element . getProject ( ) ) . isInTestSourceContent ( file ) ) {
 + return null ;
 + }
 if ( element instanceof PsiMethod ) {
 final PsiMethod method = ( PsiMethod ) element ;
 if ( isTestMethod ( method ) ) {

disable test navigation outside test roots


<nb> public class CpdSensor implements Sensor {

 for ( String language : fs . languages ( ) ) {
 if ( settings . hasKey ( STRING0 + language + STRING1 ) ) {
 - LOG . warn ( STRING2 + language + STRING3 ) ;
 + LOG
 + . warn ( STRING2 + language + STRING3 ) ;
 }

 if ( isSkipped ( language ) ) {
 <nb> public class ComponentDto extends Dto < String > implements Component {
 return this ;
 }

 + @ override
 public String key ( ) {
 return kee ;
 }
 <nb> public class ComponentDto extends Dto < String > implements Component {
 return this ;
 }

 + @ override
 public String qualifier ( ) {
 return qualifier ;
 }


<nb> public class RealmTest extends AndroidTestCase {

 public void testRealmQueryContainsAndCaseSensitive ( ) {
 RealmResults < AllTypes > resultList = testRealm . where ( AllTypes . class ) . beginGroup ( ) . contains ( STRING0 , STRING1 , false ) . or ( ) . contains ( STRING0 , STRING2 ) . endGroup ( ) . findAll ( ) ;
 + assertEquals ( NUMBER0 , resultList . size ( ) ) ;
 +
 + resultList = testRealm . where ( AllTypes . class ) . contains ( STRING0 , STRING3 ) . findAll ( ) ;
 + assertEquals ( NUMBER1 , resultList . size ( ) ) ;
 +
 + resultList = testRealm . where ( AllTypes . class ) . contains ( STRING0 , STRING4 , false ) . findAll ( ) ;
 assertEquals ( TEST_DATA_SIZE , resultList . size ( ) ) ;
 }

added extra checks and corrected a error


<nb> public class MathJax
 SINGLE
 if ( BrowseCap . isWindowsDesktop ( ) )
 {
 - style . setProperty ( STRING0 , STRING1 ) ;
 + style . setFontSize ( NUMBER0 , Unit . PCT ) ;
 style . setProperty ( STRING2 , STRING3 ) ;
 }


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Parse extends Request {
 PSetup setup = _source . value ( ) ;
 if ( setup == null ) return null ;
 String n = setup . _keys . get ( NUMBER0 ) . toString ( ) ;
 + int sep = n . lastIndexOf ( File . separatorChar ) ;
 + if ( sep > NUMBER0 ) n = n . substring ( sep + NUMBER1 ) ;
 int dot = n . lastIndexOf ( STRING0 ) ;
 if ( dot > NUMBER0 ) n = n . substring ( NUMBER0 , dot ) ;
 int i = NUMBER0 ;

Shorten default parsed filenames to just the trailing filename parts


<nb> public class BiomeDictionary
 MAGICAL ;
 }

 - private static final int BIOME_LIST_SIZE = NUMBER0 ;
 + private static final int BIOME_LIST_SIZE = BiomeGenBase . getBiomeGenArray ( ) . length ;
 private static BiomeInfo [ ] biomeList = new BiomeInfo [ BIOME_LIST_SIZE ] ;
 @ suppresswarnings ( STRING0 )
 private static ArrayList < BiomeGenBase > [ ] typeInfoList = new ArrayList [ Type . values ( ) . length ] ;

Use BiomeGenBase s array size instead of hardcoding it in BiomeDictionary


<nb> public class IQAuthHandler extends IQHandler implements IQAuthInfo {
 throw new IllegalArgumentException ( STRING0 + resource ) ;
 }
 }
 + else {
 + SINGLE
 + response = IQ . createResultIQ ( packet ) ;
 + response . setChildElement ( packet . getChildElement ( ) . createCopy ( ) ) ;
 + response . setError ( PacketError . Condition . not_acceptable ) ;
 + }

 SINGLE
 SINGLE

Answer a not_acceptable error if no resource was not supplied during login


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class NewPostActivity extends BaseActivity {
 User user = dataSnapshot . getValue ( User . class ) ;

 SINGLE
 - SINGLE
 - writeNewPost ( userId , user . username , title , body ) ;
 + if ( user == null ) {
 + SINGLE
 + Log . e ( TAG , STRING0 + userId + STRING1 ) ;
 + Toast . makeText ( NewPostActivity . this ,
 + STRING2 ,
 + Toast . LENGTH_SHORT ) . show ( ) ;
 + } else {
 + SINGLE
 + writeNewPost ( userId , user . username , title , body ) ;
 + }

 SINGLE
 finish ( ) ;


<nb> public interface MapMergePolicy extends DataSerializable {

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


<nb> public class GitUtil {

 GitSimpleHandler h = new GitSimpleHandler ( project , root , GitHandler . LOG ) ;
 h . setNoSSH ( true ) ;
 - h . addParameters ( STRING0 + GitChangeUtils . COMMITTED_CHANGELIST_FORMAT ) ;
 + h . addParameters ( STRING0 + GitChangeUtils . COMMITTED_CHANGELIST_FORMAT , STRING1 ) ;
 parametersSpecifier . consume ( h ) ;

 String output = h . run ( ) ;

when ask committed change lists ask changes too


<nb> public class LuceneLanguageModel implements LanguageModel {
 RegexpQuery query = new RegexpQuery ( new Term ( STRING0 , STRING1 ) ) ;
 TopDocs docs = luceneSearcher . searcher . search ( query , NUMBER0 ) ; SINGLE
 if ( docs . totalHits == NUMBER1 ) {
 - throw new RuntimeException ( STRING2 ) ;
 + throw new RuntimeException ( STRING3 + luceneSearcher . directory ) ;
 } else if ( docs . totalHits > NUMBER0 ) {
 - throw new RuntimeException ( STRING4 + docs . totalHits ) ;
 + throw new RuntimeException ( STRING4 + docs . totalHits + STRING5 + luceneSearcher . directory ) ;
 } else {
 long result = NUMBER1 ;
 for ( ScoreDoc scoreDoc : docs . scoreDocs ) {


<nb> public class AnimatedGifEncoder {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void setQuality ( int quality ) {
 if ( quality < NUMBER0 )

Fix javadoc warning in AnimatedGifEncoder


<nb> public class ConnectivityService extends IConnectivityManager . Stub {
 int j = NUMBER0 ;
 for ( String dns : dnsList ) {
 if ( dns != null && ! TextUtils . equals ( dns , STRING0 ) ) {
 + if ( DBG ) Log . d ( TAG , STRING1 + dns ) ;
 SystemProperties . set ( STRING2 + j ++ , dns ) ;
 }
 }
 for ( int k = j ; k < mNumDnsEntries ; k ++ ) {
 - SystemProperties . set ( STRING2 + j , STRING3 ) ;
 + if ( DBG ) Log . d ( TAG , STRING4 + k ) ;
 + SystemProperties . set ( STRING2 + k , STRING3 ) ;
 }
 mNumDnsEntries = j ;
 } else {


<nb> public class JavaScriptBuild
 SINGLE
 String scriptFiles = STRING0 ;

 - scriptFiles += STRING1 +
 - STRING2 + sketchID + STRING3 ;
 + scriptFiles += STRING4 +
 + STRING5 + sketchID + STRING3 ;

 SINGLE
 SINGLE

missing forum images and tiny js fix for js mode


<nb> public abstract class CrashReportingApplication extends Application implements
 errorReporter . setCrashResources ( getCrashResources ( ) ) ;

 SINGLE
 - errorReporter . init ( this ) ;
 + errorReporter . init ( getApplicationContext ( ) ) ;

 SINGLE

Give ErrorReporter a reference to the application Context instead of Application object


<nb> public class GenerateSQLContributor extends CompoundContributionItem {
 }
 IEditorPart activeEditor = DBeaverUI . getActiveWorkbenchWindow ( ) . getActivePage ( ) . getActiveEditor ( ) ;
 boolean showDialog = true ;
 + COMMENT
 if ( activeEditor instanceof AbstractTextEditor ) {
 AbstractTextEditor textEditor = ( AbstractTextEditor ) activeEditor ;
 ITextSelection selection = ( ITextSelection ) textEditor . getSelectionProvider ( ) . getSelection ( ) ;
 <nb> public class GenerateSQLContributor extends CompoundContributionItem {
 activeEditor . setFocus ( ) ;
 showDialog = false ;
 }
 + COMMENT
 if ( showDialog ) {
 DBPDataSource dataSource = null ;
 if ( runnable . getObject ( ) instanceof DBSObject ) {


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

 - import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> import NAMESPACE ;
 public class AudioManager {

 private final Context mContext ;
 - private final Handler mHandler ;
 private long mVolumeKeyUpTime ;
 private int mVolumeControlStream = - NUMBER0 ;
 private static String TAG = STRING0 ;
 - private static boolean localLOGV = false ;

 COMMENT
 COMMENT
 <nb> public class AudioManager {
 COMMENT
 public AudioManager ( Context context ) {
 mContext = context ;
 - mHandler = new Handler ( context . getMainLooper ( ) ) ;
 }

 private static IAudioService getService ( )

Remove unused variable and imports in AudioManager


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CypherAdapterStreamTest
 when ( result . getQueryStatistics ( ) ) . thenReturn ( queryStatistics ) ;
 when ( result . getQueryExecutionType ( ) ) . thenReturn ( query ( READ_WRITE ) ) ;

 - when ( result . getNotifications ( ) ) . thenReturn ( Arrays . asList (
 + when ( result . getNotifications ( ) ) . thenReturn ( Arrays . < Notification > asList (
 NotificationCode . INDEX_HINT_UNFULFILLABLE . notification ( InputPosition . empty ) ,
 NotificationCode . PLANNER_UNSUPPORTED . notification ( new InputPosition ( NUMBER0 , NUMBER1 , NUMBER2 ) )
 ) ) ;


<nb> public class IdClassGeneratedValueTest extends TestCase {
 s . close ( ) ;
 }

 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 -
 protected Class [ ] getAnnotatedClasses ( ) {
 return new Class [ ] {
 - SINGLE
 - SINGLE
 - SINGLE
 Simple . class ,
 Simple2 . class ,
 Multiple . class


<nb> public class TestHyperLogLogPlus
 b . offer ( in ) ;
 }

 - SINGLE
 - SINGLE
 - System . out . println ( STRING0 ) ;
 -
 assertEquals ( NUMBER0 , testSet . size ( ) ) ;
 assertEquals ( NUMBER1 , a . cardinality ( ) ) ;
 assertEquals ( NUMBER2 , b . cardinality ( ) ) ;


<nb> public abstract class DataBuffer {
 COMMENT
 public abstract long getLength ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public abstract ByteBuffer getReadOnlyByteBuffer ( ) ;
 }


<nb> public final class Call {
 builder . append ( STRING0 ) ;
 }
 if ( hasProperty ( properties , PROPERTY_EMERGENCY_CALLBACK_MODE ) ) {
 - builder . append ( STRING1 ) ;
 + builder . append ( STRING2 ) ;
 }
 builder . append ( STRING3 ) ;
 return builder . toString ( ) ;

Fix typo in Call Details propertiesToString


<nb> public class RetryQueryRunner < T > implements QueryRunner < T >
 }

 final List < SegmentDescriptor > finalMissingSegs = getMissingSegments ( context ) ;
 - if ( ! config . returnPartialResults ( ) && ! finalMissingSegs . isEmpty ( ) ) {
 + if ( ! finalMissingSegs . isEmpty ( ) ) {
 throw new SegmentMissingException ( STRING0 , finalMissingSegs ) ;
 }
 }
 <nb> public class RetryQueryRunnerConfig
 @ jsonproperty
 private int numTries = NUMBER0 ;

 - @ jsonproperty
 - private boolean returnPartialResults = false ;
 -
 public int numTries ( )
 {
 return numTries ;
 }
 -
 - public boolean returnPartialResults ( )
 - {
 - return returnPartialResults ;
 - }
 }


<nb> public class NavigationView extends ScrimInsetsFrameLayout {
 COMMENT
 COMMENT
 public void inflateMenu ( int resId ) {
 - mPresenter . setUpdateSuspended ( true ) ;
 + if ( mPresenter != null ) {
 + mPresenter . setUpdateSuspended ( true ) ;
 + }
 getMenuInflater ( ) . inflate ( resId , mMenu ) ;
 - mPresenter . setUpdateSuspended ( false ) ;
 - mPresenter . updateMenuView ( false ) ;
 + if ( mPresenter != null ) {
 + mPresenter . setUpdateSuspended ( false ) ;
 + mPresenter . updateMenuView ( false ) ;
 + }
 }

 COMMENT


<nb> public class PGraphicsOpenGL2 extends PGraphics {
 noTexture ( ) ;
 }

 - public void mergeRecord ( ) {
 + public void mergeShapes ( boolean val ) {
 SINGLE
 SINGLE
 SINGLE
 SINGLE
 SINGLE
 - mergeRecShapes = true ;
 + mergeRecShapes = val ;
 }

 - public void noMergeRecord ( ) {
 - mergeRecShapes = false ;
 - }
 -
 public void shapeName ( String name ) {
 recShapeName = name ;
 }


<nb> public class SearchSourceBuilderTests extends ESTestCase {
 }
 if ( randomBoolean ( ) ) {
 String field = randomBoolean ( ) ? null : randomAsciiOfLengthBetween ( NUMBER0 , NUMBER1 ) ;
 - int max = randomInt ( NUMBER2 ) ;
 + int max = between ( NUMBER3 , NUMBER2 ) ;
 int id = randomInt ( max - NUMBER4 ) ;
 if ( field == null ) {
 builder . slice ( new SliceBuilder ( id , max ) ) ;

Build valid slices in SearchSourceBuilderTests


<nb> public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static boolean isEmpty ( Iterable self ) {
 + return ! self . iterator ( ) . hasNext ( ) ;
 + }
 +
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

add org codehaus groovy runtime DefaultGroovyMethods isEmpty Iterable


<nb> public class Immutable2DSumRangeQuery {
 }
 }

 - public int sumRegion ( int row1 , int col1 , int row2 , int col2 ) {
 + public int sumQuery ( int row1 , int col1 , int row2 , int col2 ) {
 row1 ++ ;
 col1 ++ ;
 row2 ++ ;
 <nb> public class Immutable2DSumRangeQuery {

 int [ ] [ ] input1 = { { NUMBER0 , NUMBER1 , - NUMBER2 , NUMBER3 } , { NUMBER4 , NUMBER2 , NUMBER0 , - NUMBER5 } , { NUMBER6 , NUMBER3 , NUMBER7 , NUMBER2 } , { NUMBER0 , - NUMBER4 , NUMBER8 , NUMBER5 } } ;
 Immutable2DSumRangeQuery isr = new Immutable2DSumRangeQuery ( input1 ) ;
 - System . out . println ( isr . sumRegion ( NUMBER5 , NUMBER5 , NUMBER0 , NUMBER0 ) ) ;
 + System . out . println ( isr . sumQuery ( NUMBER5 , NUMBER5 , NUMBER0 , NUMBER0 ) ) ;
 }
 }


<nb> public class HttpSession extends LocalClientSession {
 int pauseDuration = HttpBindServlet . getIntAttribute ( rootNode . attributeValue ( STRING0 ) , - NUMBER0 ) ;

 if ( STRING1 . equals ( type ) ) {
 - close ( ) ;
 connection . deliverBody ( createEmptyBody ( true ) ) ;
 + close ( ) ;
 lastRequestID = connection . getRequestId ( ) ;
 }
 else if ( STRING2 . equals ( restartStream ) && rootNode . elements ( ) . size ( ) == NUMBER1 ) {


<nb> public class CurrentBranchDialog extends DialogWrapper {
 protected JComponent createCenterPanel ( ) {
 return myPanel ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + @ override
 + protected String getHelpId ( ) {
 + return STRING0 ;
 + }
 }

added help identifier for CurrentBranch dialog


<nb> import NAMESPACE ;
 COMMENT
 public class AppLog {
 SINGLE
 - public enum T { READER , EDITOR , MEDIA , NUX , API , STATS , UTILS , NOTIFS , DB , POSTS , COMMENTS , THEMES , TESTS , PROFILING , SIMPERIUM }
 + public enum T { READER , EDITOR , MEDIA , NUX , API , STATS , UTILS , NOTIFS , DB , POSTS , COMMENTS , THEMES , TESTS , PROFILING , SIMPERIUM , SUGGESTION }
 public static final String TAG = STRING0 ;
 public static final int HEADER_LINE_COUNT = NUMBER0 ;

Initial commit adding mentions to notification comments


<nb> public class DimensionManager

 public static void loadDimensionDataMap ( NBTTagCompound compoundTag )
 {
 + dimensionMap . clear ( ) ;
 if ( compoundTag == null )
 {
 - dimensionMap . clear ( ) ;
 for ( Integer id : dimensions . keySet ( ) )
 {
 if ( id >= NUMBER0 )
 <nb> public class ForgeModContainer extends DummyModContainer implements WorldAccessC
 @ override
 public void readData ( SaveHandler handler , WorldInfo info , Map < String , NBTBase > propertyMap , NBTTagCompound tag )
 {
 - if ( tag . hasKey ( STRING0 ) )
 - {
 - DimensionManager . loadDimensionDataMap ( tag . hasKey ( STRING0 ) ? tag . getCompoundTag ( STRING0 ) : null ) ;
 - }
 + DimensionManager . loadDimensionDataMap ( tag . hasKey ( STRING0 ) ? tag . getCompoundTag ( STRING0 ) : null ) ;
 }

 @ subscribe

Fully clear DimensionManager s DimensionID bitset when world is loaded


<nb> public class BaseLiquibaseTask extends Task {

 URLClassLoader loader = AccessController . doPrivileged ( new PrivilegedAction < URLClassLoader > ( ) {
 public URLClassLoader run ( ) {
 - return new URLClassLoader ( taskClassPath . toArray ( new URL [ taskClassPath . size ( ) ] ) ) ;
 + return new URLClassLoader ( taskClassPath . toArray ( new URL [ taskClassPath . size ( ) ] ) , Database . class . getClassLoader ( ) ) ;
 }
 } ) ;

use database classloader to work better with extensions


<nb>
 COMMENT
 package NAMESPACE ;

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


<nb> class LanguageToolSupport {
 try {
 h . addHighlight ( span . start , span . end , bluePainter ) ;
 } catch ( BadLocationException ex ) {
 - SINGLE
 + ex . printStackTrace ( ) ;
 }
 }
 for ( Span span : spellErrors ) {
 try {
 h . addHighlight ( span . start , span . end , redPainter ) ;
 } catch ( BadLocationException ex ) {
 - SINGLE
 + ex . printStackTrace ( ) ;
 }
 }
 }
 <nb> class LanguageToolSupport {
 try {
 _check ( caller ) ;
 } catch ( IOException ex ) {
 + ex . printStackTrace ( ) ;
 }
 }
 }


<nb> import NAMESPACE ;
 COMMENT
 public class PresenceUpdateHandler extends BasicModule implements ChannelHandler , ClusterEventListener {

 - private static final String PRESENCE_CACHE_NAME = STRING0 ;
 + public static final String PRESENCE_CACHE_NAME = STRING0 ;

 COMMENT
 COMMENT
 <nb> public class PresenceUpdateHandler extends BasicModule implements ChannelHandler

 if ( affectedDirectedPresence == null ) {
 affectedDirectedPresence = new DirectedPresence ( handlerJID ) ;
 + directedPresences . add ( affectedDirectedPresence ) ;
 }
 affectedDirectedPresence . addReceiver ( jid ) ;


<nb> public class PGraphicsOpenGL extends PGraphics {
 float [ ] vertices = tessGeo . polyVertices ;
 int [ ] color = tessGeo . polyColors ;
 float [ ] uv = tessGeo . polyTexCoords ;
 - short [ ] indices = tessGeo . polyIndices ;
 + SINGLE

 sortTriangles ( ) ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class NonClientDecorView extends LinearLayout implements View . OnClickListener {
 + public class NonClientDecorView extends LinearLayout
 + implements View . OnClickListener , View . OnTouchListener {
 private final static String TAG = STRING0 ;
 SINGLE
 private final int DECOR_SHADOW_FOCUSED_HEIGHT_IN_DIP = NUMBER0 ;
 <nb> public class NonClientDecorView extends LinearLayout implements View . OnClickList
 }

 @ override
 - public boolean onTouchEvent ( MotionEvent e ) {
 + public boolean onTouch ( View v , MotionEvent e ) {
 SINGLE
 SINGLE
 SINGLE
 <nb> public class NonClientDecorView extends LinearLayout implements View . OnClickList
 boolean invisible = isFillingScreen ( ) || ! mShowDecor ;
 View caption = getChildAt ( NUMBER1 ) ;
 caption . setVisibility ( invisible ? GONE : VISIBLE ) ;
 + caption . setOnTouchListener ( this ) ;
 mVisible = ! invisible ;
 }

Only send touch event in NonClientDecorView to caption bar


<nb> public class PsiDocumentManagerImpl extends PsiDocumentManager implements Projec
 }
 SINGLE
 if ( FileDocumentManagerImpl . areTooManyDocumentsInTheQueue ( myUncommittedDocuments ) ) {
 + if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
 + try {
 + LOG . error ( STRING0 + myProject + STRING1 + myUncommittedDocuments ) ;
 + }
 + finally {
 + clearUncommitedDocuments ( ) ;
 + }
 + }
 commitAllDocuments ( ) ;
 }
 }

cdr an assertion for too many uncommitted documents hanging in tests


<nb> public class UdcKernelExtensionFactory extends KernelExtensionFactory < UdcKernelE
 public Lifecycle newKernelExtension ( UdcKernelExtensionFactory . Dependencies dependencies ) throws Throwable
 {
 return new UdcKernelExtension ( loadConfig ( dependencies . getConfig ( ) ) , dependencies . getXaDataSourceManager ( ) ,
 - dependencies . getKernelData ( ) , new Timer ( STRING0 , COMMENT true ) ) ;
 + dependencies . getKernelData ( ) , new Timer ( STRING0 , isAlwaysDaemon ( ) ) ) ;
 + }
 +
 + private boolean isAlwaysDaemon ( )
 + {
 + return true ;
 }

 private Config loadConfig ( Config config )


<nb> public class MiniAapt implements Step {
 Collection < Path > contents = filesystem . getDirectoryContents ( resDirectory ) ;
 for ( Path dir : contents ) {
 if ( ! filesystem . isDirectory ( dir ) && ! filesystem . isIgnored ( dir ) ) {
 - eventBus . post ( ConsoleEvent . warning ( STRING0 , dir ) ) ;
 + if ( ! shouldIgnoreFile ( dir , filesystem ) ) {
 + eventBus . post ( ConsoleEvent . warning ( STRING0 , dir ) ) ;
 + }
 continue ;
 }

mini aapt Do not warn about ignored files immediately under the res dir


<nb> public class YoutubeVideoUrlIdHandler implements VideoUrlIdHandler {
 }
 }
 else if ( url . contains ( STRING0 ) ) {
 - id = Parser . matchGroup1 ( STRING1 , url ) ;
 + if ( url . contains ( STRING2 ) ) {
 + id = Parser . matchGroup1 ( STRING3 , url ) ;
 + } else {
 + id = Parser . matchGroup1 ( STRING1 , url ) ;
 + }
 }
 else {
 throw new ParsingException ( STRING4 + url ) ;
 <nb> public class YoutubeVideoUrlIdHandler implements VideoUrlIdHandler {

 if ( ! id . isEmpty ( ) ) {
 - SINGLE
 return id ;
 } else {
 throw new ParsingException ( STRING5 + url ) ;


<nb> public class PatternRule extends AbstractPatternRule {
 }

 if ( allElementsMatch && matchingTokens == patternSize ) {
 - final RuleMatch rM = createRuleMatch ( tokenPositions , tokens ,
 + final RuleMatch ruleMatch = createRuleMatch ( tokenPositions , tokens ,
 firstMatchToken , lastMatchToken , matchingTokens ) ;
 - if ( rM != null ) {
 - ruleMatches . add ( rM ) ;
 + if ( ruleMatch != null ) {
 + ruleMatches . add ( ruleMatch ) ;
 }
 }
 i ++ ;


<nb> public class DBMaker {
 protected boolean _asyncWriteEnabled = true ;
 protected boolean _asyncSerializationEnabled = true ;
 protected int _asyncFlushDelay = NUMBER0 ;
 - protected boolean _asyncThreadDeamon = false ;
 + protected boolean _asyncThreadDaemon = false ;

 protected boolean _deleteFilesAfterClose = false ;
 protected boolean _readOnly = false ;
 <nb> public class DBMaker {
 COMMENT
 COMMENT
 COMMENT
 - public DBMaker asyncThreadSetDeamon ( ) {
 - this . _asyncThreadDeamon = true ;
 + public DBMaker asyncThreadSetDaemon ( ) {
 + this . _asyncThreadDaemon = true ;
 return this ;
 }

 <nb> public class DBMaker {
 new StorageDirect ( _file , _asyncWriteEnabled , _deleteFilesAfterClose , _readOnly , _appendOnlyEnabled , _ifInMemoryUseDirectBuffer ) ;

 if ( _asyncWriteEnabled && ! _readOnly )
 - engine = new AsyncWriteEngine ( engine , _asyncSerializationEnabled , _asyncFlushDelay , _asyncThreadDeamon ) ;
 + engine = new AsyncWriteEngine ( engine , _asyncSerializationEnabled , _asyncFlushDelay , _asyncThreadDaemon ) ;

 if ( _checksumEnabled ) {
 engine = new ByteTransformEngine ( engine , new ChecksumCRC32Serializer ( ) ) ;


<nb> public class TestReplicatedContext extends TomcatBaseTest {
 }

 File root = new File ( STRING0 ) ;
 - Context context = tomcat . addWebapp ( host , STRING1 , STRING1 , root . getAbsolutePath ( ) ) ;
 + Context context = tomcat . addWebapp ( host , STRING1 , root . getAbsolutePath ( ) ) ;

 Tomcat . addServlet ( context , STRING2 , new AccessContextServlet ( ) ) ;
 context . addServletMapping ( STRING3 , STRING2 ) ;

Don t use deprecated and now removed method


<nb> public final class LocalBlockInStreamIntegrationTest {
 }

 private static List < CreateFileOptions > getOptionSet ( ) {
 - List < CreateFileOptions > ret = new ArrayList < CreateFileOptions > ( NUMBER0 ) ;
 + List < CreateFileOptions > ret = new ArrayList < > ( NUMBER0 ) ;
 ret . add ( sWriteBoth ) ;
 ret . add ( sWriteAlluxio ) ;
 return ret ;

SMALLFIX Removed explicit argument type in LocalBlockInStreamIntegrationTest


<nb> public final class Iterators {
 COMMENT
 COMMENT
 COMMENT
 - @ beta
 public static int advance ( Iterator < ? > iterator , int numberToAdvance ) {
 checkNotNull ( iterator ) ;
 checkArgument ( numberToAdvance >= NUMBER0 , STRING0 ) ;
 <nb> public final class Iterators {
 COMMENT
 COMMENT
 COMMENT
 - @ beta
 public static int advance ( Iterator < ? > iterator , int numberToAdvance ) {
 checkNotNull ( iterator ) ;
 checkArgument ( numberToAdvance >= NUMBER0 , STRING0 ) ;