<nb> public class BatchOperationsTest {
 assertEquals ( STRING0 , ops . replaceLocationPlaceholders ( STRING1 , map ) ) ;
 assertEquals ( STRING2 , ops . replaceLocationPlaceholders ( STRING3 , map ) ) ;
 }
 -
 - @ test ( timeout = NUMBER0 )
 - public void testPerformance ( ) throws Exception {
 - Map < Integer , String > map = new HashMap < Integer , String > ( ) ;
 - for ( int i = NUMBER1 ; i < NUMBER2 ; i ++ ) {
 - map . put ( i , STRING4 + i ) ;
 - }
 - assertEquals ( STRING5 , ops . replaceLocationPlaceholders ( STRING6 , map ) ) ;
 - }
 }

Removed performance test from unit tests


<nb> public class StringMutableDictionary extends MutableDictionaryReader {
 @ override
 public Object get ( int dictionaryId ) {
 if ( dictionaryId == NUMBER0 || dictionaryId > length ( ) ) {
 - return STRING0 ;
 + return null ;
 }
 return getRawValueFromBiMap ( dictionaryId ) ;
 }

Fixed TestDimensionsAndMetricsSerDe which was expecting null not the string null


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

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


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Tool {
 if ( ! outputDir . exists ( ) ) {
 outputDir . mkdirs ( ) ;
 }
 - FileWriter fw = new FileWriter ( outputFile ) ;
 - return new BufferedWriter ( fw ) ;
 + FileOutputStream fos = new FileOutputStream ( outputFile ) ;
 + OutputStreamWriter osw ;
 + if ( grammarEncoding != null ) {
 + osw = new OutputStreamWriter ( fos , grammarEncoding ) ;
 + }
 + else {
 + osw = new OutputStreamWriter ( fos ) ;
 + }
 + return new BufferedWriter ( osw ) ;
 }

 public File getImportedGrammarFile ( Grammar g , String fileName ) {

was not paying attention to the encoding from the command line when generating output files


<nb> public class WindowManagerService extends IWindowManager . Stub
 switch ( result ) {
 case INJECT_NO_PERMISSION :
 throw new SecurityException (
 - STRING0 ) ;
 + STRING1 ) ;
 case INJECT_SUCCEEDED :
 return true ;
 }
 <nb> public class WindowManagerService extends IWindowManager . Stub
 switch ( result ) {
 case INJECT_NO_PERMISSION :
 throw new SecurityException (
 - STRING0 ) ;
 + STRING1 ) ;
 case INJECT_SUCCEEDED :
 return true ;
 }
 <nb> public class WindowManagerService extends IWindowManager . Stub
 switch ( result ) {
 case INJECT_NO_PERMISSION :
 throw new SecurityException (
 - STRING0 ) ;
 + STRING1 ) ;
 case INJECT_SUCCEEDED :
 return true ;
 }

Fixs the incorrect message for SecurityException


<nb> public class ReplicatedMapService implements ManagedService , RemoteService ,
 case REMOVED :
 entryListener . entryRemoved ( entryEvent ) ;
 break ;
 + default :
 + throw new IllegalArgumentException ( STRING0 + entryEvent . getEventType ( ) + STRING1 ) ;
 }
 String mapName = ( ( EntryEvent ) event ) . getName ( ) ;
 if ( config . findReplicatedMapConfig ( mapName ) . isStatisticsEnabled ( ) ) {

Added default case on ReplicatedMapService


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

 - COMMENT
 + COMMENT
 COMMENT
 - class TmxMapHelper {
 + public final class TmxMapHelper {
 static final int FLAG_FLIP_HORIZONTALLY = NUMBER0 ;
 static final int FLAG_FLIP_VERTICALLY = NUMBER1 ;
 static final int FLAG_FLIP_DIAGONALLY = NUMBER2 ;
 <nb> class TmxMapHelper {

 }

 - static int [ ] getTileIds ( Element element , int width , int height ) {
 + static public int [ ] getTileIds ( Element element , int width , int height ) {
 Element data = element . getChildByName ( STRING0 ) ;
 String encoding = data . getAttribute ( STRING1 , null ) ;
 if ( encoding == null ) { SINGLE
 <nb> class TmxMapHelper {
 return ids ;
 }

 - static int unsignedByteToInt ( byte b ) {
 + static public int unsignedByteToInt ( byte b ) {
 return ( int ) b & NUMBER3 ;
 }
 }


<nb> import NAMESPACE ;

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

 public class MuninnPageCacheHarnessWithRealFileSystemIT extends MunninPageCacheHarnessTest
 {


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

 COMMENT
 COMMENT
 <nb> public class ManagementServerPropertiesAutoConfiguration {
 SINGLE
 @ bean ( name = STRING0 )
 @ conditionalonmissingbean
 - @ conditionalonclass ( EnableWebSecurity . class )
 + @ conditionalonclass ( name = STRING1 )
 public SecurityProperties securityProperties ( ) {
 return new SecurityProperties ( ) ;
 }

Prevent type not present exception when no security on classpath


<nb> public class BackupManagerService extends IBackupManager . Stub {
 FileOutputStream outstream = new FileOutputStream ( manifestFile ) ;
 outstream . write ( builder . toString ( ) . getBytes ( ) ) ;
 outstream . close ( ) ;
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + manifestFile . setLastModified ( NUMBER0 ) ;
 }

 SINGLE
 <nb> public class BackupManagerService extends IBackupManager . Stub {
 }
 bout . flush ( ) ;
 out . close ( ) ;
 +
 + SINGLE
 + SINGLE
 + destination . setLastModified ( NUMBER0 ) ;
 }

 private void tearDown ( PackageInfo pkg ) {


<nb> import NAMESPACE ;

 import NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;


<nb> public class Compiler extends AbstractCompiler {
 DiagnosticType . error ( STRING0 ,
 STRING1 ) ;

 - private static final CompilerExecutor compilerExecutor = new CompilerExecutor ( ) ;
 + private final CompilerExecutor compilerExecutor = new CompilerExecutor ( ) ;
 +
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 private static final Logger logger =
 Logger . getLogger ( STRING2 ) ;
 <nb> public class Compiler extends AbstractCompiler {
 compilerExecutor . setTimeout ( timeout ) ;
 }

 - < T > T runInCompilerThread ( final Callable < T > callable ) {
 + < T > T runInCompilerThread ( Callable < T > callable ) {
 return compilerExecutor . runInCompilerThread ( callable , options != null && options . tracer . isOn ( ) ) ;
 }


<nb> public class ShareUtils {
 manager . setApiKey ( Constants . TRAKT_API_KEY ) ;

 if ( isCancelled ( ) ) {
 - return STRING0 ;
 + return null ;
 }

 final int season = mTraktData . getInt ( ShareItems . SEASON ) ;


<nb> package NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ReactModalHostView extends ViewGroup {
 mHostView . removeView ( child ) ;
 }

 + @ override
 + public void addChildrenForAccessibility ( ArrayList < View > outChildren ) {
 + SINGLE
 + SINGLE
 + }
 +
 public void dismiss ( ) {
 if ( mDialog != null ) {
 mDialog . dismiss ( ) ;

Fix crash caused by accessibility being turned on and using a Modal


<nb> public class OpenTSDBWriter extends OpenTSDBGenericWriter {
 @ override
 protected void sendOutput ( String metricLine ) throws IOException {
 try {
 - if ( isDebugEnabled ( ) || log . isDebugEnabled ( ) ) {
 - log . debug ( STRING0 , host , port , metricLine ) ;
 +
 + if ( isDebugEnabled ( ) || log . isDebugEnabled ( ) ) {
 + log . debug ( STRING0 , host , port , metricLine ) ;
 }
 +
 this . out . writeBytes ( STRING1 + metricLine + STRING2 ) ;
 } catch ( IOException e ) {
 log . error ( STRING3 , e ) ;


<nb> public interface PlayPlatform extends Platform {
 COMMENT
 COMMENT
 COMMENT
 - public String getPlayVersion ( ) ;
 + String getPlayVersion ( ) ;

 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - public ScalaPlatform getScalaPlatform ( ) ;
 + ScalaPlatform getScalaPlatform ( ) ;

 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - public JavaPlatform getJavaPlatform ( ) ;
 + JavaPlatform getJavaPlatform ( ) ;
 }


<nb> public class Spark {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public synchronized static void setIpAddress ( String ipAddress ) {
 if ( initialized ) {
 <nb> public interface SparkServer {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 + COMMENT
 COMMENT
 void ignite ( String host , int port ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SimplifyExpressions
 public PlanNode rewriteFilter ( FilterNode node , Void context , PlanRewriter < Void > planRewriter )
 {
 PlanNode source = planRewriter . rewrite ( node . getSource ( ) , context ) ;
 - return new FilterNode ( node . getId ( ) , source , simplifyExpression ( node . getPredicate ( ) ) ) ;
 + Expression simplified = simplifyExpression ( node . getPredicate ( ) ) ;
 + if ( simplified . equals ( BooleanLiteral . TRUE_LITERAL ) ) {
 + return source ;
 + }
 + return new FilterNode ( node . getId ( ) , source , simplified ) ;
 }

 @ override

SimplifyExpressions drop filter if the predicate is just TRUE


<nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 -
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FromFtpToFileNoFileNameHeaderTest extends FtpServerTestSupport {
 }

 public void testCorrectFilename ( ) throws Exception {
 - MockEndpoint resultEndpoint = getMockEndpoint ( STRING0 ) ;
 - resultEndpoint . expectedMinimumMessageCount ( NUMBER0 ) ;
 - resultEndpoint . expectedBodiesReceived ( STRING1 ) ;
 - resultEndpoint . assertIsSatisfied ( ) ;
 + MockEndpoint mock = getMockEndpoint ( STRING0 ) ;
 + mock . expectedMinimumMessageCount ( NUMBER0 ) ;
 + mock . expectedBodiesReceived ( STRING1 ) ;
 + mock . expectedFileExists ( STRING2 , STRING1 ) ;

 - SINGLE
 - File file = new File ( STRING2 ) ;
 - assertTrue ( STRING3 , file . exists ( ) ) ;
 - assertTrue ( STRING4 , file . length ( ) > NUMBER1 ) ;
 + mock . assertIsSatisfied ( ) ;
 }

 private void prepareFtpServer ( ) throws Exception {

Fixed unit test failure on AIX reported by TC


<nb> public class PrefPageResultSetMain extends TargetPrefPage
 serverSideOrderingCheck = UIUtils . createLabelCheckbox ( queriesGroup , CoreMessages . pref_page_database_resultsets_label_server_side_order , false ) ;
 useFetchSize = UIUtils . createLabelCheckbox ( queriesGroup , CoreMessages . pref_page_database_resultsets_label_fetch_size , false ) ;
 queryCancelTimeout = UIUtils . createLabelSpinner ( queriesGroup , CoreMessages . pref_page_database_general_label_result_set_cancel_timeout , CoreMessages . pref_page_database_general_label_result_set_cancel_timeout_tip , NUMBER0 , NUMBER0 , Integer . MAX_VALUE ) ;
 + queryCancelTimeout . setEnabled ( false ) ;
 }

 SINGLE


<nb> public class HeuristicReconConfig extends ReconConfig {
 this . typeID = typeID ;
 this . typeName = typeName ;
 this . autoMatch = autoMatch ;
 - this . columnDetails = new ArrayList < ColumnDetail > ( ) ;
 + this . columnDetails = columnDetails ;
 }

 public void write ( JSONWriter writer , Properties options )

Fixed minor bug that prevented column details from getting passed on to recon service


<nb> public class MetaContactImpl
 {
 synchronized ( parentGroupModLock )
 {
 - int totalStatus = NUMBER0 ;
 + this . totalStatus = NUMBER0 ;

 SINGLE
 SINGLE


<nb> public class CustomImportOrderCheckTest extends BaseCheckTestSupport {
 actual = method . invoke ( t , ( DetailAST ) null ) ;
 }
 catch ( Exception e ) {
 - e . printStackTrace ( ) ;
 actual = null ;
 }

Remove call to printStackTrace in test code


<nb> public final class UrlImpl implements Url {
 return scheme ;
 }

 + @ override
 @ nullable
 public String getAuthority ( ) {
 return authority ;


<nb> public class VcsLogManager implements Disposable {
 myToolWindow = ( ToolWindowImpl ) myToolWindowManager . getToolWindow ( TOOLWINDOW_ID ) ;
 myTabName = contentTabName ;

 - Disposer . register ( myToolWindow . getContentManager ( ) , this ) ;
 + Disposer . register ( dataHolder , this ) ;

 myPostponedEventsListener = new MyRefreshPostponedEventsListener ( ) ;
 myToolWindow . getContentManager ( ) . addContentManagerListener ( myPostponedEventsListener ) ;

vcs log properly dispose PostponeableLogRefresher


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

 @ runwith ( SpringRunner . class )
 @ datajpatest ( includeFilters = @ componentscan.filter ( Service . class ) )
 - public class ClinicServiceSpringDataJpaTests {
 + public class ClinicServiceTests {

 @ autowired
 protected ClinicService clinicService ;


<nb> public class PlanGenerator {
 SINGLE
 distance = edgeNarrative . getDistance ( ) ;
 } else if ( step . streetName != streetName
 - && ( step . streetName != null && ! step . streetName . equals ( streetName ) ) ) {
 + && ( step . streetName != null && ! step . streetName . equals ( streetName ) )
 + && ( ! step . bogusName || ! edgeNarrative . hasBogusName ( ) ) ) {
 COMMENT
 if ( roundaboutExit > NUMBER0 ) {
 SINGLE

Reduce extra bogus steps in narrative reported by Grant Humphries


<nb> public class BatchNode extends GeometryGroupNode {
 }
 }
 Geometry geometry ;
 +
 + public final Geometry getGeometry ( ) {
 + return geometry ;
 + }
 }

 protected void setNeedsFullRebatch ( boolean needsFullRebatch ) {

Added public method getGeometry on Batch class


<nb> public final class ColorBlindnessTest extends TestCase {
 compareFilters ( DaltonizationFilter . forTritanopia ( FLOAT0 ) , DaltonizationFilter . tritanopia ) ;
 }

 - public void testProtanopiaSimulation ( ) {
 - testZeroFilter ( SimulationFilter . forProtanopia ( FLOAT1 ) ) ;
 - compareFilters ( SimulationFilter . forProtanopia ( FLOAT0 ) , SimulationFilter . protanopia ) ;
 - }
 -
 - public void testDeuteranopiaSimulation ( ) {
 - testZeroFilter ( SimulationFilter . forDeuteranopia ( FLOAT1 ) ) ;
 - compareFilters ( SimulationFilter . forDeuteranopia ( FLOAT0 ) , SimulationFilter . deuteranopia ) ;
 - }
 -
 - public void testTritanopiaSimulation ( ) {
 - testZeroFilter ( SimulationFilter . forTritanopia ( FLOAT1 ) ) ;
 - compareFilters ( SimulationFilter . forTritanopia ( FLOAT0 ) , SimulationFilter . tritanopia ) ;
 - }
 -
 public void testAchromatopsiaSimulation ( ) {
 testZeroFilter ( SimulationFilter . forAchromatopsia ( FLOAT1 ) ) ;
 compareFilters ( SimulationFilter . forAchromatopsia ( FLOAT0 ) , SimulationFilter . achromatopsia ) ;


<nb> public class SessionManager extends BasicModule {
 public void removeSession ( ClientSession session ) {
 SINGLE
 SINGLE
 - if ( session == null ) {
 + SINGLE
 + SINGLE
 + if ( session == null || serverName == null ) {
 return ;
 }
 SessionMap sessionMap = null ;

Fixed problem when removing a session while the server is shutting down


<nb>
 - package NAMESPACE ;
 + package NAMESPACE ;

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

 COMMENT
 COMMENT

Hide Utility Class Check compilable UT inputs


<nb> public class EditPostContentFragment extends Fragment implements TextWatcher ,
 COMMENT
 COMMENT
 private void queueFileForUpload ( String path ) {
 - if ( path == null || path . equals ( STRING0 ) ) {
 + if ( TextUtils . isEmpty ( path ) ) {
 Toast . makeText ( getActivity ( ) , STRING1 , Toast . LENGTH_SHORT ) . show ( ) ;
 return ;
 }

Using provided convenience method to check for empty path


<nb> public class QuoteOfTheMomentClient {
 b . setOption ( STRING0 , STRING1 ) ;

 SINGLE
 + SINGLE
 + SINGLE
 b . setOption (
 STRING2 ,
 new FixedReceiveBufferSizePredictorFactory ( NUMBER0 ) ) ;
 <nb> public class QuoteOfTheMomentServer {
 b . setOption ( STRING0 , STRING3 ) ;

 SINGLE
 + SINGLE
 + SINGLE
 b . setOption (
 STRING2 ,
 new FixedReceiveBufferSizePredictorFactory ( NUMBER0 ) ) ;

Updated the QOTM example so that people do not ask questions about truncated packets


<nb> final class ExternExportsPass extends NodeTraversal . AbstractPostOrderCallback
 . setOutputTypes ( true )
 . setTypeRegistry ( compiler . getTypeIRegistry ( ) ) ;

 - return builder . build ( ) ;
 + return STRING0
 + + STRING1
 + + STRING2
 + + STRING3
 + + STRING4
 + + builder . build ( ) ;
 }

 @ override
 <nb> public final class ExternExportsPassTest extends TestCase {
 private void compileAndCheck ( String js , String expected ) {
 Result result = compileAndExportExterns ( js ) ;

 - assertEquals ( expected , result . externExport ) ;
 + String fileoverview = Joiner . on ( STRING4 ) . join (
 + STRING0 ,
 + STRING5 ,
 + STRING6 ,
 + STRING7 ,
 + STRING8 ) ;
 +
 + assertEquals ( fileoverview + expected , result . externExport ) ;
 }

 public void testDontWarnOnExportFunctionWithUnknownParameterTypes ( ) {

Add an externs annotation to generated externs files


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

 COMMENT
 <nb> public class JmxReporter extends AbstractReporter implements MetricsRegistryList
 COMMENT
 public JmxReporter ( MetricsRegistry registry ) {
 super ( registry ) ;
 - this . registeredBeans = new HashMap < MetricName , ObjectName > ( ) ;
 + this . registeredBeans = new ConcurrentHashMap < MetricName , ObjectName > ( NUMBER0 ) ;
 this . server = ManagementFactory . getPlatformMBeanServer ( ) ;
 }


<nb> public class FMLModContainer implements ModContainer
 return candidate . getContainedPackages ( ) ;
 }

 + private boolean isTrue ( Boolean value )
 + {
 + if ( value == null ) return false ;
 + return value . booleanValue ( ) ;
 + }
 +
 @ override
 public boolean shouldLoadInEnvironment ( )
 {
 - boolean clientSideOnly = ( Boolean ) this . descriptor . get ( STRING0 ) ;
 - boolean serverSideOnly = ( Boolean ) this . descriptor . get ( STRING1 ) ;
 + boolean clientSideOnly = isTrue ( ( Boolean ) descriptor . get ( STRING0 ) ) ;
 + boolean serverSideOnly = isTrue ( ( Boolean ) descriptor . get ( STRING1 ) ) ;

 if ( clientSideOnly && serverSideOnly )
 throw new RuntimeException ( STRING2 ) ;


<nb> public class CentralAuthenticationServiceImplTests extends AbstractCentralAuthen
 TestUtils . getCredentialsWithSameUsernameAndPassword ( ) ) ;
 final ServiceTicket serviceTicketId = getCentralAuthenticationService ( )
 . grantServiceTicket ( ticketId . getId ( ) , mockService ) ;
 + assertNotNull ( serviceTicketId ) ;
 }

 @ test


<nb> public class PDFRenderTargetBuilder implements RenderTargetBuilder {
 }

 @ override
 + public PdfContentByte getContentByte ( ) {
 + return this . cb ;
 + }
 +
 + @ override
 public void setMargins ( float leftMargin , float rightMargin , float top , float bottom ) {
 this . marginTop = top ;
 this . marginBottom = bottom ;
 <nb> along with Gephi . If not , see < http : SINGLE
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public interface PDFTarget extends RenderTarget {
 public static final String TOP_EDGES = STRING0 ;
 public static final String TOP_NODE_LABELS = STRING1 ;
 public static final String TOP_EDGE_LABELS = STRING2 ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public PdfContentByte getContentByte ( ) ;

 COMMENT
 COMMENT

add getPdfContentByte to PDFTarget and PDFRenderTargetBuilder


<nb> public class FindUsagesManager implements JDOMExternalizable {
 myHandlers . add ( new Function < PsiElement , Factory < FindUsagesHandler > > ( ) {
 @ nullable
 public Factory < FindUsagesHandler > fun ( final PsiElement element ) {
 - if ( element instanceof PsiFile && ( ( PsiFile ) element ) . getVirtualFile ( ) == null ) return null ;
 - if ( ! element . getLanguage ( ) . getFindUsagesProvider ( ) . canFindUsagesFor ( element ) ) return null ;
 + if ( element instanceof PsiFile ) {
 + if ( ( ( PsiFile ) element ) . getVirtualFile ( ) == null ) return null ;
 + } else if ( ! element . getLanguage ( ) . getFindUsagesProvider ( ) . canFindUsagesFor ( element ) ) {
 + return null ;
 + }
 +
 if ( element instanceof PsiDirectory ) {
 final PsiPackage psiPackage = ( ( PsiDirectory ) element ) . getPackage ( ) ;
 return psiPackage == null ? null : new Factory < FindUsagesHandler > ( ) {

fixed inability to find usages of psifile


<nb> public class IdAnnotationHelper extends TargetAnnotationHelper {
 }

 public String extractAnnotationQualifiedId ( Element element ) {
 - int idValue = extractAnnotationValue ( element ) ;
 + int idValue = this . < Integer > extractAnnotationValue ( element ) ;
 IRInnerClass rInnerClass = rClass . get ( Res . ID ) ;
 String clickQualifiedId ;


<nb> public class FootFlagEncoder extends AbstractFlagEncoder {
 add ( STRING0 ) ;
 add ( STRING1 ) ;
 add ( STRING2 ) ;
 - add ( STRING3 ) ;
 + add ( STRING3 ) ;
 add ( STRING4 ) ;
 }
 } ;
 <nb> public class FootFlagEncoder extends AbstractFlagEncoder {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public boolean isAllowedHighway ( String highwayValue ) {
 return allowedHighwayTags . contains ( highwayValue ) ;
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public boolean isSaveHighway ( String highwayValue ) {
 return saveHighwayTags . contains ( highwayValue ) ;


<nb> public class Sprite extends RectangularShape < Mesh > {
 super . preDraw ( pCamera ) ;

 GLState . enableTextures ( ) ;
 - GLES20 . glActiveTexture ( GLES20 . GL_TEXTURE0 ) ;
 this . mTextureRegion . getTexture ( ) . bind ( ) ;

 this . mMesh . preDraw ( this . mShaderProgram ) ;
 <nb> public class UncoloredSprite extends RectangularShape < Mesh > {
 super . preDraw ( pCamera ) ;

 GLState . enableTextures ( ) ;
 - GLES20 . glActiveTexture ( GLES20 . GL_TEXTURE0 ) ;
 this . mTextureRegion . getTexture ( ) . bind ( ) ;

 this . mMesh . preDraw ( this . mShaderProgram ) ;
 <nb> public class SpriteBatch extends Shape < SpriteBatchMesh > {
 }

 GLState . enableTextures ( ) ;
 - GLES20 . glActiveTexture ( GLES20 . GL_TEXTURE0 ) ;
 this . mTexture . bind ( ) ;

 final ShaderProgram shaderProgram = ( this . mShaderProgram == null ) ? PositionColorTextureCoordinatesShaderProgram . getInstance ( ) : this . mShaderProgram ; SINGLE

Removed unnecessary glActiveTexture calls


<nb> public class JdbcDriverTest
 }
 }

 + @ suppresswarnings ( STRING0 )
 @ test
 public void driverTest1 ( ) throws SQLException
 {
 <nb> public class ShutdownTest
 Assert . assertSame ( STRING1 , NUMBER0 , pool . getTotalConnections ( ) ) ;
 }

 + @ suppresswarnings ( STRING0 )
 @ test
 public void testAfterShutdown ( ) throws Exception
 {
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ suppresswarnings ( STRING0 )
 public class TestValidation
 {
 @ test


<nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class NewViolationsDecorator implements Decorator {
 ListMultimap < Rule , Measure > childMeasuresPerRule = ArrayListMultimap . create ( ) ;
 ListMultimap < Rule , Violation > violationsPerRule = ArrayListMultimap . create ( ) ;
 Set < Rule > rules = Sets . newHashSet ( ) ;
 -
 +
 Collection < Measure > children = context . getChildrenMeasures ( MeasuresFilters . rules ( metric ) ) ;
 for ( Measure child : children ) {
 RuleMeasure childRuleMeasure = ( RuleMeasure ) child ;


<nb>
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> class XMLLightweightParser {
 byteBuffer . position ( byteBuffer . position ( ) - NUMBER0 ) ;
 SINGLE
 readByte -- ;
 + SINGLE
 + if ( readByte == NUMBER1 ) {
 + return ;
 + }
 }

 buffer . append ( buf , NUMBER1 , readByte ) ;

Fixed double byte char fix to accept t heart beats and ignore empty strings


<nb> public final class DefaultCasCookieValueManager implements CookieValueManager {
 COMMENT
 COMMENT
 @ autowired
 - public DefaultCasCookieValueManager ( @ qualifier ( STRING0 )
 + public DefaultCasCookieValueManager ( @ qualifier ( STRING1 )
 final CipherExecutor < String , String > cipherExecutor ) {
 this . cipherExecutor = cipherExecutor ;
 LOGGER . debug ( STRING2 ,


<nb> public @ interface Property {
 COMMENT
 String key ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 String defaultValue ( ) default STRING0 ;

 String name ( ) ;

Add a javadoc to org sonar api Property defaultValue


<nb> public class MetaContactListServiceImpl
 COMMENT
 COMMENT
 COMMENT
 - private void synchronizeOpSetWithServerContactList (
 + private void synchronizeOpSetWithLocalContactList (
 ProtocolProviderService provider ,
 OperationSetPersistentPresence presenceOpSet )
 {
 <nb> public class MetaContactListServiceImpl
 SINGLE
 SINGLE
 if ( opSetPersPresence != null ) {
 - synchronizeOpSetWithServerContactList ( provider , opSetPersPresence ) ;
 + synchronizeOpSetWithLocalContactList ( provider , opSetPersPresence ) ;
 }
 else
 logger . debug ( STRING0 ) ;


<nb> public interface DebugEventListener extends EventListener {

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 void resumed ( ) ;

 <nb> public interface SuspendContextManager < CALL_FRAME extends CallFrame > {
 void setOverlayMessage ( @ nullable String message ) ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

we should use dismissContext instead of just set null


<nb> public class Context {

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public void detach ( Context toAttach ) {
 checkNotNull ( toAttach , STRING0 ) ;


<nb> public class StudyUtils {
 throws IOException {
 final StudyTaskManager taskManager = StudyTaskManager . getInstance ( project ) ;
 final Course course = taskManager . getCourse ( ) ;
 - int taskNum = task . getIndex ( ) + NUMBER0 ;
 + int taskNum = task . getIndex ( ) ;
 int lessonNum = task . getLesson ( ) . getIndex ( ) ;
 assert course != null ;
 final String pathToResource = FileUtil . join ( course . getCourseDirectory ( ) , EduNames . LESSON + lessonNum , EduNames . TASK + taskNum ) ;


<nb> public class AeronTest
 }

 @ test
 - public void registeringReceiverNotifiesMediaDriver ( )
 + public void registeringReceiverNotifiesMediaDriver ( ) throws Exception
 {
 final RingBuffer toMediaDriver = adminBuffers . toMediaDriver ( ) ;
 final Aeron aeron = newAeron ( ) ;
 <nb> public class AeronTest
 . channel ( CHANNEL_ID , emptyDataHandler ( ) )
 . channel ( CHANNEL_ID_2 , emptyDataHandler ( ) ) ;

 - aeron . newReceiver ( builder ) ;
 + final Receiver receiver = aeron . newReceiver ( builder ) ;

 aeron . adminThread ( ) . process ( ) ;

 assertEventRead ( toMediaDriver , assertReceiverMessageOfType ( ADD_RECEIVER ) ) ;
 +
 + assertThat ( receiver . process ( ) , is ( NUMBER0 ) ) ;
 }

 @ test


<nb> import NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 +
 public interface PaymentApi {
 Either < PaymentError , PaymentMethodInfo > getPaymentMethod ( @ nullable String accountKey , String paymentMethodId ) ;

 Either < PaymentError , List < PaymentMethodInfo > > getPaymentMethods ( String accountKey ) ;

 Either < PaymentError , Void > updatePaymentGateway ( String accountKey ) ;
 +
 + Either < PaymentError , PaymentProviderPlugin > getPaymentProviderAccount ( String screenName ) ;
 }
 <nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 +
 package NAMESPACE ;

 import NAMESPACE ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class HybridSourceDataBinding extends JAXBDataBinding {
 private static final Logger LOG = LogUtils . getL7dLogger ( SourceDataBinding . class ) ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class ConfigureDocLitWrapperInterceptor extends AbstractInDatabindingInterceptor {

 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class CXFWsdlOnlyPayloadModeMultiPartNoSpringTest extends CamelTestSupport {
 protected static int port1 = CXFTestSupport . getPort1 ( ) ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class CxfConsumerPayloadFaultTest extends CamelTestSupport {
 protected static final String PORT_NAME_PROP = STRING0 ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT

 <nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class AddQueryTest extends Assert {


<nb> public class ParserRuntimeException extends RuntimeException {
 }

 public ParserRuntimeException ( Throwable cause , String message , Object . . . messageArgs ) {
 - super ( String . format ( message , messageArgs ) , cause ) ;
 + super ( messageArgs . length > NUMBER0 ? String . format ( message , messageArgs ) : message , cause ) ;
 }

 public ParserRuntimeException ( Throwable cause ) {

Fix MissingFormatArgumentException in ParseRuntimeException when args array is empty


<nb> public class GitBlit implements ServletContextListener {
 }

 SINGLE
 - List < String > list = new ArrayList < String > ( repositoryListCache . keySet ( ) ) ;
 + List < String > list = new ArrayList < String > ( ) ;
 + for ( RepositoryModel model : repositoryListCache . values ( ) ) {
 + list . add ( model . name ) ;
 + }
 StringUtils . sortRepositorynames ( list ) ;
 return list ;
 }

Fixed case sensitivity bug in repository name enumeration


<nb> public class NeoServerFunctionalTest {
 @ after
 public void stopServer ( ) {
 if ( server != null ) {
 - server . stop ( ) ;
 + server . stop ( ) ;
 }
 }

 <nb> public class NeoServerFunctionalTest {
 server = null ; SINGLE
 assertThat (
 appender . toString ( ) ,
 - containsString ( STRING0 ) ) ;
 + containsString ( STRING1 ) ) ;
 }

 @ test


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

 + import static NAMESPACE $ ;
 import static NAMESPACE ;

 @ usejdbc
 <nb> public class KillIntegrationTest extends SQLTransportIntegrationTest {
 assertBusy ( new Runnable ( ) {
 @ override
 public void run ( ) {
 - SQLResponse logResponse = execute ( STRING0 , new Object [ ] { statement } ) ;
 + SQLResponse logResponse = execute ( STRING0 , $ ( statement ) ) ;
 + if ( logResponse . rowCount ( ) == NUMBER0 ) {
 + logResponse = execute ( STRING1 , $ ( statement ) ) ;
 + if ( logResponse . rowCount ( ) > NUMBER0 L ) {
 + SINGLE
 + SINGLE
 + return ;
 + }
 + }
 assertThat ( logResponse . rowCount ( ) , greaterThan ( NUMBER0 L ) ) ;
 String jobId = logResponse . rows ( ) [ NUMBER0 ] [ NUMBER0 ] . toString ( ) ;
 execute ( STRING2 , new Object [ ] { jobId } ) ;


<nb> public class JavaCreateFieldFromUsageHelper extends CreateFieldFromUsageHelper {
 PsiSubstitutor substitutor ) {
 PsiElementFactory factory = JavaPsiFacade . getElementFactory ( field . getProject ( ) ) ;

 - TemplateBuilderImpl builder = new TemplateBuilderImpl ( field . getParent ( ) ) ;
 + TemplateBuilderImpl builder = new TemplateBuilderImpl ( field ) ;
 if ( ! ( expectedTypes instanceof ExpectedTypeInfo [ ] ) ) {
 expectedTypes = ExpectedTypeInfo . EMPTY_ARRAY ;
 }

create Groovy field from usage in java code


<nb> public class TestStateStorage implements Disposable {

 private void thingsWentWrongLetsReinitialize ( IOException e ) {
 try {
 + if ( myMap != null ) {
 + try {
 + myMap . close ( ) ;
 + }
 + catch ( IOException ignore ) {
 + }
 + }
 myMap = initializeMap ( ) ;
 LOG . error ( STRING0 , e ) ;
 }


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 public class DNSUtil {

 + private static final Logger LOGGER = Logger . getLogger ( DNSUtil . class . getName ( ) ) ;
 private static DNSResolver dnsResolver = null ;

 COMMENT
 <nb> public class DNSUtil {
 srvDomain = domain ;
 }
 List < SRVRecord > srvRecords = dnsResolver . lookupSRVRecords ( srvDomain ) ;
 + if ( LOGGER . isLoggable ( Level . FINE ) ) {
 + String logMessage = STRING0 + srvDomain + STRING1 ;
 + for ( SRVRecord r : srvRecords )
 + logMessage += STRING2 + r ;
 + LOGGER . fine ( logMessage ) ;
 + }
 List < HostAddress > sortedRecords = sortSRVRecords ( srvRecords ) ;
 addresses . addAll ( sortedRecords ) ;


<nb> public class Instruction35s extends InstructionWithReference {
 }

 public Format getFormat ( ) {
 - return Format . Format35c ;
 + return Format . Format35s ;
 }

 public byte getRegisterA ( ) {

return the correct format for Instruction35s


<nb> public interface MenuItem {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class HttpRequest {
 throw new HttpRequestException ( e ) ;
 }

 - String protocol = parsed . getProtocol ( ) ;
 String host = parsed . getHost ( ) ;
 int port = parsed . getPort ( ) ;
 if ( port != - NUMBER0 )
 host = host + STRING0 + Integer . toString ( port ) ;
 - String path = parsed . getPath ( ) ;
 - String query = parsed . getQuery ( ) ;

 URI uri ;
 try {
 - uri = new URI ( protocol , host , path , query , null ) ;
 + uri = new URI ( parsed . getProtocol ( ) , host , parsed . getPath ( ) ,
 + parsed . getQuery ( ) , null ) ;
 } catch ( URISyntaxException e ) {
 IOException io = new IOException ( STRING1 ) ;
 io . initCause ( e ) ;


<nb> public final class LocalBlockInStream extends BufferedBlockInStream {
 mCloser = Closer . create ( ) ;
 mWorkerClient =
 mContext . acquireWorkerClient ( NetworkAddressUtils . getLocalHostName ( ClientContext . getConf ( ) ) ) ;
 - FileChannel localFileChannel = null ;
 + FileChannel localFileChannel ;

 try {
 LockBlockResult result = mWorkerClient . lockBlock ( blockId ) ;


<nb> public class GPIO {
 COMMENT
 COMMENT
 COMMENT
 - protected static void delay ( int ms ) {
 + public static void delay ( int ms ) {
 try {
 Thread . sleep ( ms ) ;
 } catch ( InterruptedException e ) {
 <nb> public class GPIO {
 COMMENT
 COMMENT
 COMMENT
 - protected static void delayMicroseconds ( int us ) {
 + public static void delayMicroseconds ( int us ) {
 int ms = ( int ) ( us / NUMBER0 ) ;
 int ns = ( us - ( ms * NUMBER0 ) ) * NUMBER0 ;
 try {


<nb> public class RealmProcessor extends AbstractProcessor {
 }

 for ( ExecutableElement executableElement : methods ) {
 + if ( executableElement . getModifiers ( ) . contains ( Modifier . STATIC ) ) {
 + continue ; SINGLE
 + }
 +
 if ( ! executableElement . getModifiers ( ) . contains ( Modifier . PUBLIC ) ) {
 error ( STRING0 , executableElement ) ;
 }


<nb> public class InferenceSession {
 SINGLE
 return false ;
 }
 - } while ( myConstraintIdx < myConstraints . size ( ) ) ;

 - do {
 - if ( ! reduceConstraints ( ) ) {
 - SINGLE
 - return false ;
 - }
 if ( incorporate ) {
 if ( ! myIncorporationPhase . incorporate ( ) ) {
 return false ;

perform reduction and incorporation in one step


<nb> public class SQLInsertClause extends AbstractSQLClause < SQLInsertClause > implemen

 listeners . preExecute ( context ) ;
 stmt . executeUpdate ( ) ;
 - listeners . preExecute ( context ) ;
 + listeners . executed ( context ) ;
 } else {
 Collection < PreparedStatement > stmts = createStatements ( true ) ;
 if ( stmts != null && stmts . size ( ) > NUMBER0 ) {


<nb> public class MigratePartitions {
 try {
 VoldemortConfig voldemortConfig = createTempVoldemortConfig ( ) ;
 Cluster currentCluster = new ClusterMapper ( ) . readCluster ( new BufferedReader ( new FileReader ( currentClusterFile ) ) ) ;
 + Cluster targetCluster = new ClusterMapper ( ) . readCluster ( new BufferedReader ( new FileReader ( targetClusterFile ) ) ) ;
 adminClient = RebalanceUtils . createTempAdminClient ( voldemortConfig ,
 currentCluster ,
 - NUMBER0 ,
 + targetCluster . getNumberOfNodes ( ) ,
 NUMBER0 ) ;
 - Cluster targetCluster = new ClusterMapper ( ) . readCluster ( new BufferedReader ( new FileReader ( targetClusterFile ) ) ) ;
 +
 List < StoreDefinition > currentStoreDefs = new StoreDefinitionsMapper ( ) . readStoreList ( new BufferedReader ( new FileReader ( currentStoresFile ) ) ) ;
 List < StoreDefinition > targetStoreDefs = new StoreDefinitionsMapper ( ) . readStoreList ( new BufferedReader ( new FileReader ( targetStoresFile ) ) ) ;

Increase the number of threads in migrate partitions tool


<nb> public interface Player extends HumanEntity , Conversable , CommandSender , Offline
 COMMENT
 COMMENT
 public void setFlying ( boolean value ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setFlySpeed ( float value ) throws IllegalArgumentException ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setWalkSpeed ( float value ) throws IllegalArgumentException ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public float getFlySpeed ( ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public float getWalkSpeed ( ) ;
 }

Add API to set and get movement modifiers


<nb> final class PoolThreadCache {
 }
 if ( freeSweepAllocationThreshold < NUMBER0 ) {
 throw new IllegalArgumentException ( STRING0
 - + maxCachedBufferCapacity + STRING1 ) ;
 + + freeSweepAllocationThreshold + STRING1 ) ;
 }
 this . freeSweepAllocationThreshold = freeSweepAllocationThreshold ;
 this . heapArena = heapArena ;

PoolThreadCache uses wrong variable in IllegalArgumentException


<nb> public class RunBugsTest extends TestSupport {
 object . invokeMethod ( STRING0 , null ) ;
 }

 - public void testStaticMarkupBug ( ) throws Exception {
 - GroovyObject object = compile ( STRING1 ) ;
 - object . invokeMethod ( STRING2 , null ) ;
 - }
 -
 public void testOverloadInvokeMethodBug ( ) throws Exception {
 GroovyObject object = compile ( STRING3 ) ;
 object . invokeMethod ( STRING2 , null ) ;

Removed unnecessary reference to bug class


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

Updating TransferManager javadoc to reflect new situation


<nb> public class PackageManagerService extends IPackageManager . Stub {
 if ( fromSource != null ) {
 packageNames = fromSource . get ( targetUserId ) ;
 }
 - if ( packageNames . contains ( intent . getPackage ( ) ) ) {
 + if ( packageNames != null && packageNames . contains ( intent . getPackage ( ) ) ) {
 return true ;
 }
 SINGLE


<nb> public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi
 myVerticalScrollBar = new MyScrollBar ( Adjustable . VERTICAL ) ;
 myGutterComponent = new EditorGutterComponentImpl ( this ) ;
 initComponent ( ) ;
 -
 myScrollingModel = new ScrollingModelImpl ( this ) ;
 + if ( UISettings . getInstance ( ) . PRESENTATION_MODE ) {
 + setFontSize ( UISettings . getInstance ( ) . PRESENTATION_MODE_FONT_SIZE ) ;
 + }

 myGutterComponent . updateSize ( ) ;
 Dimension preferredSize = getPreferredSize ( ) ;

don t use global font map for presentation mode


<nb> public final class DomainServerMain {
 unmarshaller . start ( Marshalling . createByteInput ( initialInput ) ) ;
 final ServerTask task = unmarshaller . readObject ( ServerTask . class ) ;
 unmarshaller . finish ( ) ;
 - unmarshaller . close ( ) ;
 - initialInput . close ( ) ;
 task . run ( Collections . < ServiceActivator > emptyList ( ) ) ;
 } catch ( Exception e ) {
 e . printStackTrace ( initialError ) ;


<nb> public final class Main {
 projectFilesystem ,
 config . getNdkVersion ( ) ,
 propertyFinder ) ;
 - SINGLE
 + SINGLE
 JavaBuckConfig javaConfig = new JavaBuckConfig ( config ) ;
 JavaCompilerEnvironment javacEnv = javaConfig . getJavaCompilerEnvironment ( processExecutor ) ;


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

 import NAMESPACE ;


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

 - import NAMESPACE ;
 -
 import NAMESPACE ;

 COMMENT

Remove unnecessary import in DisplayUtils


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

 + import NAMESPACE ;
 +
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class SubselectFetch {
 + private static final CoreMessageLogger LOG = Logger . getMessageLogger (
 + CoreMessageLogger . class ,
 + SubselectFetch . class . getName ( )
 + ) ;
 +
 private static final String FROM_STRING = STRING0 ;

 private final Set resultingEntityKeys ;
 <nb> public class SubselectFetch {
 this . queryString = orderByIndex > NUMBER0
 ? queryString . substring ( fromIndex , orderByIndex )
 : queryString . substring ( fromIndex ) ;
 + if ( LOG . isTraceEnabled ( ) ) {
 + LOG . tracef ( STRING1 , queryString ) ;
 + }
 }

 private static int getFromIndex ( String queryString ) {

Add trace logging of generated SubselectFetch query string


<nb> public class ListView extends AbsListView {
 if ( mItemsCanFocus && ( focusResult == null )
 && selectedView != null && selectedView . hasFocus ( ) ) {
 final View focused = selectedView . findFocus ( ) ;
 - if ( distanceToView ( focused ) > NUMBER0 ) {
 + if ( ! isViewAncestorOf ( focused , this ) || distanceToView ( focused ) > NUMBER0 ) {
 focused . clearFocus ( ) ;
 }
 }

Fix exception when a focused item is detached


<nb> public class MainActivity extends ReactActivity {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 @ override
 protected List < ReactPackage > getPackages ( ) {
 return Arrays . < ReactPackage > asList (


<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility
 }
 final AttachInfo ai = mAttachInfo ;
 final ViewParent p = mParent ;
 - if ( p != null && ai != null && ai . mHardwareAccelerated ) {
 - SINGLE
 - SINGLE
 - p . invalidateChild ( this , null ) ;
 - return ;
 - }
 +
 if ( p != null && ai != null ) {
 final Rect r = ai . mTmpInvalRect ;
 r . set ( NUMBER0 , NUMBER0 , mRight - mLeft , mBottom - mTop ) ;

Fix issue where Launcher was not getting redrawn


<nb> public class SetLiteral extends Literal < Set < ? > , SetLiteral > {
 COMMENT
 public SetLiteral intersection ( SetLiteral other ) {
 Preconditions . checkArgument ( itemType == other . itemType ) ;
 - if ( values . containsAll ( other . values ) ) {
 + if ( values . size ( ) == NUMBER0 || other . values . size ( ) == NUMBER0 || values . equals ( other . values ) ) {
 return this ;
 - } else if ( other . values . containsAll ( values ) ) {
 - return other ;
 }
 return new SetLiteral ( itemType , Sets . intersection ( values , other . values ) ) ;
 }

fixed intersection shortcuts in setliteral


<nb> public class RpcChannel implements ChannelListener {
 public final RpcCollectorKey key ;
 public final int options ;
 public int destcnt ;
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public final long timeout ;
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public RpcCollector ( RpcCollectorKey key , int options , int destcnt ,
 - long timeout ) {
 +
 + public RpcCollector ( RpcCollectorKey key , int options , int destcnt ) {
 this . key = key ;
 this . options = options ;
 this . destcnt = destcnt ;
 - this . timeout = timeout ;
 - }
 -
 - public RpcCollector ( RpcCollectorKey key , int options , int destcnt ) {
 - this ( key , options , destcnt , NUMBER0 ) ;
 }

 public void addResponse ( Serializable message , Member sender ) {


<nb> public class FileLockingWriter implements LuceneWriter {
 @ nullable
 protected final ReleaseListener releaseListener ;

 - private volatile boolean leased = false ;
 -
 public FileLockingWriter ( Directory directory , boolean createNew , long defaultLockTimeout ,
 ReleaseListener releaseListener ) {
 IndexWriter . setDefaultWriteLockTimeout ( defaultLockTimeout ) ;
 <nb> public class FileLockingWriter implements LuceneWriter {
 public IndexWriter getIndexWriter ( ) {
 return writer ;
 }
 -
 - public void lease ( ) {
 - leased = true ;
 - }
 -
 - public void release ( ) {
 - leased = false ;
 - }
 -
 - public boolean isLeased ( ) {
 - return leased ;
 - }
 -
 -
 -
 +
 }


<nb> public class XaLogicalLog
 COMMENT
 public synchronized long rotate ( ) throws IOException
 {
 - if ( writeBuffer . getFileChannelPosition ( ) == LogIoUtils . LOG_HEADER_SIZE ) return xaTf . getLastCommittedTx ( ) ;
 + SINGLE
 xaTf . flushAll ( ) ;
 String newLogFile = getLog2FileName ( ) ;
 String currentLogFile = getLog1FileName ( ) ;

Removed the optimization where logs aren t rotated if nothing has been written


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FileListListAdapter extends BaseAdapter implements ListAdapter {
 task . execute ( file ) ;
 }
 }
 +
 + if ( file . getMimetype ( ) . equalsIgnoreCase ( STRING0 ) ) {
 + Drawable backrepeat = mContext . getResources ( ) .
 + getDrawable ( R . drawable . backrepeat ) ;
 + fileIcon . setBackground ( backrepeat ) ;
 + }
 +
 } else {
 fileIcon . setImageResource ( DisplayUtils . getFileTypeIconId ( file . getMimetype ( ) ,
 file . getFileName ( ) ) ) ;


<nb> public class ActionToolbarImpl extends JPanel implements ActionToolbar {
 public void updateActionsImmediately ( ) {
 ApplicationManager . getApplication ( ) . assertIsDispatchThread ( ) ;
 myPresentationFactory . reset ( ) ;
 - updateActions ( true , false , false ) ;
 + updateActions ( true , false , true ) ;
 }

 private void updateActions ( boolean now , final boolean transparentOnly , final boolean forced ) {


<nb> public final class Es6ToEs3ClassSideInheritance implements HotSwapCompilerPass {
 JSDocInfoBuilder info = JSDocInfoBuilder . maybeCopyFrom ( staticMember . getJSDocInfo ( ) ) ;

 Node function = staticMember . getLastChild ( ) ;
 + Node sourceInfoNode = function ;
 if ( function . isFunction ( ) ) {
 + sourceInfoNode = function . getFirstChild ( ) ;
 Node params = NodeUtil . getFunctionParameters ( function ) ;
 Preconditions . checkState ( params . isParamList ( ) , params ) ;
 for ( Node param : params . children ( ) ) {
 <nb> public final class Es6ToEs3ClassSideInheritance implements HotSwapCompilerPass {
 info . addSuppression ( STRING0 ) ;
 assign . setJSDocInfo ( info . build ( ) ) ;
 Node exprResult = IR . exprResult ( assign ) ;
 - exprResult . useSourceInfoIfMissingFromForTree ( superclassNameNode ) ;
 + exprResult . useSourceInfoIfMissingFromForTree ( sourceInfoNode ) ;
 insertionPoint . getParent ( ) . addChildAfter ( exprResult , insertionPoint ) ;
 subclassMethods . add ( assign ) ;
 compiler . reportCodeChange ( ) ;

Fix node positions for inherited static methods


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 class Mapping implements MappingConfiguration {

 <nb> class Mapping implements MappingConfiguration {
 return STRING0 + getSourceExpressionString ( ) + STRING1 + getTargetExpressionString ( ) + STRING2 ;
 }

 + @ override
 + public void setExclude ( ) {
 + SINGLE
 + }
 +
 }

Added an empty implementation of the missing setExclude method so that the class compiles


<nb> final class NodeAndNPMInstaller {
 try {
 log . info ( STRING0 + nodeVersion ) ;
 final String osName = getOsCodeName ( ) ;
 - final String architecture = this . architecture . toString ( ) ;
 - final String longNodeFilename = STRING1 + nodeVersion + STRING2 + osName + STRING2 + architecture ;
 + final String longNodeFilename = STRING1 + nodeVersion + STRING2 + osName + STRING2 + architecture . toString ( ) ;
 downloadUrl = DOWNLOAD_ROOT + nodeVersion + STRING3 + longNodeFilename + STRING4 ;

 final File tmpDirectory = new File ( workingDirectory + File . separator + STRING5 ) ;

Fixed warning Local variable hides field


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

 <nb> public class DefaultConfigurationTest {
 public void getAsPath ( ) {
 File file1 = new File ( STRING0 ) ;
 File file2 = new File ( STRING1 ) ;
 - final Set < File > fileSet = WrapUtil . toSet ( file1 , file2 ) ;
 + final Set < File > fileSet = WrapUtil . toLinkedSet ( file1 , file2 ) ;
 makeResolveReturnFileSet ( fileSet ) ;
 assertThat ( configuration . getAsPath ( ) , equalTo ( file1 . getAbsolutePath ( ) + STRING2 + file2 . getAbsolutePath ( ) ) ) ;
 assertThat ( configuration . getState ( ) , equalTo ( Configuration . State . RESOLVED ) ) ;


<nb> public class Debug {
 }

 public static String whereIs ( Class < ? > clazz ) {
 - return clazz != null ? clazz . getClassLoader ( ) . getResource ( clazz . getName ( ) . replace ( STRING0 , STRING1 ) + STRING2 ) . toString ( ) : null ;
 + if ( clazz == null )
 + return null ;
 + final String resource = clazz . getName ( ) . replace ( STRING0 , STRING1 ) + STRING2 ;
 + URL url = clazz . getResource ( resource ) ;
 + if ( url == null )
 + url = ( clazz . getClassLoader ( ) != null ? clazz . getClassLoader ( ) : ClassLoader . getSystemClassLoader ( ) ) . getResource ( resource ) ;
 + return url != null ? url . toString ( ) : null ;
 }

 private static Class findClass ( String className ) {


<nb> public class HtmlExporterTests extends RefineTest {
 }

 Assert . assertEquals ( writer . toString ( ) , STRING0 +
 - STRING1 + TEST_PROJECT_NAME + STRING2 +
 + STRING3 + STRING4 + TEST_PROJECT_NAME + STRING5 +
 STRING6 +
 STRING7 +
 STRING8 +
 <nb> public class HtmlExporterTests extends RefineTest {
 }

 Assert . assertEquals ( writer . toString ( ) , STRING0 +
 - STRING1 + TEST_PROJECT_NAME + STRING2 +
 + STRING3 + STRING4 + TEST_PROJECT_NAME + STRING5 +
 STRING6 +
 STRING7 +
 STRING8 +
 <nb> public class HtmlExporterTests extends RefineTest {
 }

 Assert . assertEquals ( writer . toString ( ) , STRING0 +
 - STRING1 + TEST_PROJECT_NAME + STRING9 +
 + STRING3 + STRING4 + TEST_PROJECT_NAME + STRING5 +
 + STRING6 +
 + STRING7 +
 STRING8 +
 STRING10 +
 STRING11 +


<nb> public class OrderedMemoryAwareThreadPoolExecutor extends

 @ override
 public void execute ( Runnable command ) {
 + SINGLE
 tasks . add ( command ) ;


<nb> class BaseTransport {
 SINGLE
 SINGLE
 static MultiMap removeCookieHeaders ( MultiMap headers ) {
 - return headers . remove ( STRING0 ) ;
 + SINGLE
 + String jsessionid = null ;
 + for ( String cookie : headers . getAll ( STRING0 ) ) {
 + if ( cookie . startsWith ( STRING1 ) ) {
 + jsessionid = cookie ;
 + }
 + }
 + headers . remove ( STRING0 ) ;
 +
 + SINGLE
 + if ( jsessionid != null ) {
 + headers . add ( STRING0 , jsessionid ) ;
 + }
 +
 + return headers ;
 }
 }

Retain the JSESSIONID cookie for sockjs requests


<nb> public abstract class ComboBoxAction extends AnAction implements CustomComponent

 @ override
 public void paint ( Graphics g ) {
 - UIUtil . paintWithRetina ( getSize ( ) , g , UIUtil . isUnderDarcula ( ) , new Consumer < Graphics2D > ( ) {
 - @ override
 - public void consume ( Graphics2D graphics ) {
 - doPaint ( graphics ) ;
 - }
 - } ) ;
 - }
 -
 - private void doPaint ( Graphics g ) {
 GraphicsUtil . setupAntialiasing ( g ) ;

 final boolean isEmpty = getIcon ( ) == null && StringUtil . isEmpty ( getText ( ) ) ;

do not paint run configurations combobox with retina fix no xor mode anymore


<nb> public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito
 List < ? extends TypeDescription > requiredTypes ,
 List < ? extends TypeDescription > yieldedTypes ,
 int writerFlags ) {
 - return ( writerFlags & ClassWriter . COMPUTE_MAXS ) != NUMBER0 SINGLE
 + return ( writerFlags & ( ClassWriter . COMPUTE_MAXS | ClassWriter . COMPUTE_FRAMES ) ) != NUMBER0
 ? NoOp . INSTANCE
 : new Default ( instrumentedMethod , new TypeList . Explicit ( requiredTypes ) , new TypeList . Explicit ( yieldedTypes ) ) ;
 }

Extended applicability of no op stack frame computer


<nb> public class HandlerController implements Handler . Callback {
 SINGLE
 if ( weakListener == listener ) {
 addListener = false ;
 - break ;
 }
 }
 if ( toRemoveList != null ) {


<nb> public final class Resources {
 return null ;
 SINGLE
 SINGLE
 - if ( file . isDirectory ( ) )
 + try {
 + if ( file . isDirectory ( ) )
 return file ;
 + } catch ( SecurityException e ) {
 + SINGLE
 + }
 return file . getParentFile ( ) ;
 } catch ( IOException e ) { }
 return null ;


<nb> public class TestPaymentApi extends PaymentTestSuiteWithEmbeddedDB {

 @ test ( groups = STRING0 )
 public void testCreatePurchaseWithControlPluginException ( ) throws Exception {
 + mockPaymentControlProviderPlugin . throwsException ( new PaymentControlApiException ( ) ) ;
 +
 + final BigDecimal requestedAmount = BigDecimal . TEN ;
 + final String paymentExternalKey = STRING1 ; ;
 + final String transactionExternalKey = STRING2 ;
 + try {
 + paymentApi . createPurchaseWithPaymentControl (
 + account , account . getPaymentMethodId ( ) , null , requestedAmount , Currency . AED ,
 + paymentExternalKey , transactionExternalKey , ImmutableList . < PluginProperty > of ( ) , CONTROL_PLUGIN_OPTIONS , callContext ) ;
 + fail ( ) ;
 + } catch ( PaymentApiException e ) {
 + assertTrue ( e . getCause ( ) instanceof PaymentControlApiException ) ;
 + }
 + }
 +
 + @ test ( groups = STRING0 )
 + public void testCreatePurchaseWithControlPluginRuntimeException ( ) throws Exception {
 mockPaymentControlProviderPlugin . throwsException ( new IllegalStateException ( ) ) ;

 final BigDecimal requestedAmount = BigDecimal . TEN ;

Adds a test case for a control plugin raising a PaymentControlApiException


<nb> public class SipAccountIDImpl
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public String getSystemProtocolName ( )
 + {
 + return ProtocolNames . SIP ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Moves generic ICE methods from Jabber to service protocol so that they can be reused by SIP


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TaskReportTask extends AbstractReportTask {
 this . detail = detail ;
 }

 - @ input
 + @ console
 public boolean isDetail ( ) {
 return detail ;
 }

Make TaskReportTask detail a Console property


<nb> public class IgnitedGingerbreadLastLocationFinder extends IgnitedAbstractLastLoc
 public void cancel ( ) {
 Log . d ( LOG_TAG , STRING0 ) ;
 locationManager . removeUpdates ( singleUpatePI ) ;
 - if ( singleUpdateReceiverRegistered ) {
 - unregisterSingleUpdateReceiver ( ) ;
 - }
 + unregisterSingleUpdateReceiver ( ) ;
 }

 private void unregisterSingleUpdateReceiver ( ) {
 - context . unregisterReceiver ( singleUpdateReceiver ) ;
 - singleUpdateReceiverRegistered = false ;
 + if ( singleUpdateReceiverRegistered ) {
 + context . unregisterReceiver ( singleUpdateReceiver ) ;
 + singleUpdateReceiverRegistered = false ;
 + }
 }
 }

Before registering the single update receiver check if it has been previously registered


<nb> public class PhoneWindowManager implements WindowManagerPolicy {
 boolean applyWindow = attrs . type >= FIRST_APPLICATION_WINDOW
 && attrs . type <= LAST_APPLICATION_WINDOW ;
 if ( attrs . type == TYPE_DREAM ) {
 - mShowingDream = true ;
 - if ( ! mDreamingLockscreen ) {
 - applyWindow = true ;
 - } else if ( win . isVisibleLw ( ) && win . hasDrawnLw ( ) ) {
 + SINGLE
 + SINGLE
 + if ( ! mDreamingLockscreen
 + || ( win . isVisibleLw ( ) && win . hasDrawnLw ( ) ) ) {
 + mShowingDream = true ;
 applyWindow = true ;
 }
 }
 <nb> public class PhoneWindowManager implements WindowManagerPolicy {
 ? mTopFullscreenOpaqueWindowState . getAttrs ( )
 : null ;

 - SINGLE
 - SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 if ( ! mShowingDream ) {
 mDreamingLockscreen = mShowingLockscreen ;
 }


<nb> public class BackDropperEffect extends FilterGraphEffect {
 if ( parameterKey . equals ( STRING0 ) ) {
 Filter background = mGraph . getFilter ( STRING1 ) ;
 background . setInputValue ( STRING2 , value ) ;
 + } else if ( parameterKey . equals ( STRING3 ) ) {
 + Filter background = mGraph . getFilter ( STRING1 ) ;
 + background . setInputValue ( STRING3 , value ) ;
 }
 }

Add context support to backdropper filter


<nb> public class GoCacheTest {
 goCache . put ( parentKey , STRING0 , STRING1 ) ;
 assertThat ( goCache . get ( parentKey ) , is ( not ( nullValue ( ) ) ) ) ;
 assertThat ( goCache . get ( parentKey + GoCache . SUB_KEY_DELIMITER + STRING0 ) , is ( not ( nullValue ( ) ) ) ) ;
 - Thread . sleep ( NUMBER0 ) ; SINGLE
 + Thread . sleep ( NUMBER1 ) ; SINGLE

 goCache . put ( parentKey , STRING2 , STRING1 ) ;
 assertThat ( goCache . get ( parentKey ) , is ( not ( nullValue ( ) ) ) ) ;


<nb> public class RxPermissions {
 return mCtx . getPackageManager ( ) . isPermissionRevokedByPolicy ( permission , mCtx . getPackageName ( ) ) ;
 }

 - void onDestroy ( ) {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void onDestroy ( ) {
 log ( STRING0 ) ;
 - SINGLE
 - SINGLE
 for ( Subject subject : mSubjects . values ( ) ) {
 subject . onCompleted ( ) ;
 }


<nb> public class PatternRuleTest extends TestCase {
 RuleMatch [ ] matches = getMatches ( rule , badSentence , languageTool ) ;
 if ( ! rule . isWithComplexPhrase ( ) ) {
 assertTrue ( lang + STRING0 + badSentence + STRING1 + rule
 - + STRING2 + matches . length , matches . length == NUMBER0 ) ;
 + + STRING2 + matches . length + STRING3 + rule . getMessage ( ) , matches . length == NUMBER0 ) ;
 assertEquals ( lang + STRING4 + rule ,
 expectedMatchStart , matches [ NUMBER1 ] . getFromPos ( ) ) ;
 assertEquals ( lang + STRING5 + rule ,
 <nb> public class PatternRuleTest extends TestCase {
 final PatternRule badRule = complexRules . get ( iter . next ( ) ) ;
 if ( badRule != null ) {
 badRule . notComplexPhrase ( ) ;
 + badRule . setMessage ( STRING6 ) ;
 badRules . add ( badRule ) ;
 }
 }

add more informative error msg in case of complex phrase based rules


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

 - @ aggregationfunction ( value = STRING0 , alias = STRING1 )
 + @ aggregationfunction ( value = STRING0 , alias = { STRING1 , STRING2 } )
 public final class BooleanAndAggregation
 {
 private BooleanAndAggregation ( ) { }
 <nb> import static NAMESPACE
 import static NAMESPACE ;
 import static NAMESPACE ;

 - @ aggregationfunction ( STRING3 )
 + @ aggregationfunction ( value = STRING3 , alias = STRING4 )
 public final class BooleanOrAggregation
 {
 private BooleanOrAggregation ( ) { }

Restore min max aggregations for booleans


<nb> public class JavaCompletionData extends JavaAwareCompletionData {
 }

 {
 - final CompletionVariant variant = new CompletionVariant ( psiElement ( ) . afterLeaf (
 + final CompletionVariant variant = new CompletionVariant ( PsiElement . class , psiElement ( ) . afterLeaf (
 psiElement ( PsiIdentifier . class ) . afterLeaf (
 psiElement ( ) . withText ( string ( ) . oneOf ( STRING0 , STRING1 ) ) . withParent ( PsiTypeParameterList . class ) ) ) ) ;
 - variant . includeScopeClass ( PsiClass . class , true ) ;
 + SINGLE
 variant . addCompletion ( PsiKeyword . EXTENDS , TailType . SPACE ) ;
 registerVariant ( variant ) ;
 }

fix extends completion in method type parameters


<nb> public abstract class DisplayListFragment < T extends BserObject & ListEngineItem ,

 public void setOnScrollListener ( RecyclerView . OnScrollListener onScrollListener ) {
 this . onScrollListener = onScrollListener ;
 + if ( collection != null ) {
 + collection . addOnScrollListener ( onScrollListener ) ;
 + }
 }

 @ override

force set display list fragment scroll listener


<nb> public class BikeCommonFlagEncoder extends AbstractFlagEncoder
 }

 SINGLE
 - private PriorityCode convertCallValueToPriority ( String tagvalue )
 + private PriorityCode convertClassValueToPriority ( String tagvalue )
 {
 int classvalue ;
 try
 <nb> public class BikeCommonFlagEncoder extends AbstractFlagEncoder
 if ( classBicycleSpecific != null )
 {
 SINGLE
 - weightToPrioMap . put ( NUMBER0 d , convertCallValueToPriority ( classBicycleSpecific ) . getValue ( ) ) ;
 + weightToPrioMap . put ( NUMBER0 d , convertClassValueToPriority ( classBicycleSpecific ) . getValue ( ) ) ;
 } else
 {
 String classBicycle = way . getTag ( STRING0 ) ;
 if ( classBicycle != null )
 - weightToPrioMap . put ( NUMBER0 d , convertCallValueToPriority ( classBicycle ) . getValue ( ) ) ;
 + weightToPrioMap . put ( NUMBER0 d , convertClassValueToPriority ( classBicycle ) . getValue ( ) ) ;
 }
 }

Fix typo convertCallValueToPriority into convertClassValueToPriority


<nb> public class MimeTypesTransformer implements GrailsArtefactClassInjector , Annota
 final ArgumentListExpression args = new ArgumentListExpression ( ) ;
 args . addExpression ( new VariableExpression ( STRING0 ) )
 . addExpression ( new VariableExpression ( STRING1 ) ) ;
 - MethodCallExpression methodCall = new MethodCallExpression ( new VariableExpression ( FIELD_MIME_TYPES_API ) , WITH_FORMAT_METHOD , args ) ;
 - methodCall . setMethodTarget ( mimeTypesApiClass . getMethods ( WITH_FORMAT_METHOD ) . get ( NUMBER0 ) ) ;
 - methodBody . addStatement ( new ExpressionStatement ( methodCall ) ) ;
 + methodBody . addStatement ( new ExpressionStatement ( new MethodCallExpression ( new VariableExpression ( FIELD_MIME_TYPES_API ) , WITH_FORMAT_METHOD , args ) ) ) ;
 MethodNode methodNode = new MethodNode ( WITH_FORMAT_METHOD , Modifier . PUBLIC , new ClassNode ( Object . class ) , CLOSURE_PARAMETER , null , methodBody ) ;
 methodNode . addAnnotation ( getMarkerAnnotation ( ) ) ;
 classNode . addMethod ( methodNode ) ;

makes MimeTypesTransformer compatible with CompileStatic


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

 - import static NAMESPACE ;
 -
 @ api ( value = STRING0 , description = STRING1 )
 @ path ( STRING2 )
 @ consumes ( MediaType . APPLICATION_JSON )


<nb> public final class DependencyResolver
 && found . getArtifactId ( ) . equals ( artifact . getArtifactId ( ) )
 && found . getVersion ( ) . equals ( artifact . getVersion ( ) )
 && found . getType ( ) . equals ( artifact . getType ( ) )
 + && found . getClassifier ( ) . equals ( artifact . getClassifier ( ) )
 ;
 }
 } ;


<nb> public class TestPublicBus extends TestIntegrationBase {

 }

 - @ test ( groups = STRING0 )
 + @ test ( groups = STRING1 )
 public void testSimple ( ) throws Exception {

 final DateTime initialDate = new DateTime ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER3 , testTimeZone ) ;
 <nb> public class TestPublicBus extends TestIntegrationBase {
 } ) ;
 }

 - @ test ( groups = STRING0 )
 + @ test ( groups = STRING1 )
 public void testTenantKVChange ( ) throws Exception {

 final TenantData tenantData = new DefaultTenant ( null , clock . getUTCNow ( ) , clock . getUTCNow ( ) , STRING2 , STRING3 , STRING4 ) ;
 <nb> public class TestPublicBus extends TestIntegrationBase {
 }

 - @ test ( groups = STRING0 )
 + @ test ( groups = STRING1 )
 public void testBroadcastEvent ( ) throws Exception {


<nb> public class TitanGraphConfiguration implements GraphConfiguration {
 jointConfig . addConfiguration ( titanConfig ) ;
 return jointConfig ;
 } catch ( Exception e ) {
 - throw new GraphConfigurationException ( e ) ;
 + SINGLE
 + Throwable cause = e ;
 + while ( cause . getCause ( ) != null ) {
 + cause = cause . getCause ( ) ;
 + }
 + throw new GraphConfigurationException ( cause ) ;
 }
 }
 }

Unroll exceptions for Rexster to have the cause printed to the console


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class AgentInfoServiceImpl implements AgentInfoService {
 if ( unfilteredAgentInfos == null || unfilteredAgentInfos . isEmpty ( ) ) {
 return Collections . emptySet ( ) ;
 }
 + CollectionUtils . filter ( unfilteredAgentInfos , PredicateUtils . notNullPredicate ( ) ) ;
 this . agentLifeCycleDao . populateAgentStatuses ( unfilteredAgentInfos , timestamp ) ;
 Set < AgentInfo > filteredAgentInfos = new HashSet < > ( ) ;
 for ( AgentInfo agentInfo : unfilteredAgentInfos ) {

add null check for querying deleted agent infos


<nb> public class SimpleParserPredicateTest extends ExchangeTestSupport {
 parser = new SimplePredicateParser ( STRING0 , true ) ;
 pre = parser . parsePredicate ( ) ;
 assertTrue ( STRING1 , pre . matches ( exchange ) ) ;
 +
 + SINGLE
 + parser = new SimplePredicateParser ( STRING2 , true ) ;
 + pre = parser . parsePredicate ( ) ;
 + assertFalse ( STRING3 , pre . matches ( exchange ) ) ;
 }

 protected JndiRegistry createRegistry ( ) throws Exception {


<nb> public class EventManager {
 COMMENT
 COMMENT
 COMMENT
 - protected void fire ( Context context , Object event ) {
 + public void fire ( Context context , Object event ) {
 if ( ! isEnabled ( ) ) return ;

 COMMENT


<nb> public class UsageInfo2UsageAdapter implements UsageInModule ,

 @ override
 public boolean isReadOnly ( ) {
 - return isValid ( ) && ! getElement ( ) . isWritable ( ) ;
 + PsiFile psiFile = getPsiFile ( ) ;
 + return psiFile == null || psiFile . isValid ( ) && ! psiFile . isWritable ( ) ;
 }

 @ override
 <nb> public class UsageViewImpl implements UsageView , UsageModelTracker . UsageModelTra
 myTransferToEDTQueue . offer ( runnable ) ;
 }
 } ) ;
 + if ( node != null ) {
 + SINGLE
 + node . update ( this ) ;
 + }
 myUsageNodes . put ( usage , node == null ? NULL_NODE : node ) ;
 return node ;
 }

do not load document to check for isReadOnly


<nb> public final class CheckpointDecisionCoordinator {
 final List < CheckpointDecision > checkpointDecisionList = new SerializableArrayList < CheckpointDecision > ( ) ;

 synchronized ( graph ) {
 - checkpointDecisionList . add ( new CheckpointDecision ( vertex . getID ( ) , false ) ) ; SINGLE
 + checkpointDecisionList . add ( new CheckpointDecision ( vertex . getID ( ) , true ) ) ; SINGLE
 checkpointDecisions . put ( vertex . getAllocatedResource ( ) . getInstance ( ) , checkpointDecisionList ) ;
 }


<nb> public class MinecraftForge
 STRING0 ,
 STRING1 ,
 STRING2 ,
 + STRING3 ,
 + STRING4 ,
 + STRING5 ,
 STRING6 ,
 STRING7 ,
 STRING8 ,

Add missing classes to CrashReport preloading


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 +
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SpringBatchEndpoint extends DefaultEndpoint {
 COMMENT
 COMMENT
 COMMENT
 - public void setJobFromHeader ( Boolean jobFromHeader ) { this . jobFromHeader = jobFromHeader ; }
 + public void setJobFromHeader ( Boolean jobFromHeader ) {
 + this . jobFromHeader = jobFromHeader ;
 + }

 - public Boolean getJobFromHeader ( ) { return jobFromHeader ; }
 + public Boolean getJobFromHeader ( ) {
 + return jobFromHeader ;
 + }

 }


<nb> class FileNormaliser {
 + STRING0 ) ;

 private final FileSystem fileSystem ;
 + private final boolean isWindowsOs ;

 FileNormaliser ( FileSystem fileSystem ) {
 + this ( fileSystem , OperatingSystem . current ( ) ) ;
 + }
 +
 + FileNormaliser ( FileSystem fileSystem , OperatingSystem operatingSystem ) {
 this . fileSystem = fileSystem ;
 + this . isWindowsOs = operatingSystem . isWindows ( ) ;
 }

 SINGLE
 <nb> class FileNormaliser {
 try {
 assert file . isAbsolute ( ) : String . format ( STRING1 , file ) ;

 - if ( OperatingSystem . current ( ) . isWindows ( ) ) {
 + if ( isWindowsOs ) {
 SINGLE
 return file . getCanonicalFile ( ) ;
 }

Eliminate OperatingSystem current calls in FileNormaliser normalise


<nb> public class DDLRecordLocalServiceImpl extends DDLRecordLocalServiceBaseImpl {
 assetEntryLocalService . deleteEntry (
 DDLRecord . class . getName ( ) , record . getRecordId ( ) ) ;

 + SINGLE
 +
 + ratingsStatsLocalService . deleteStats (
 + DDLRecord . class . getName ( ) , record . getRecordId ( ) ) ;
 +
 return record ;
 }


<nb> public class OfflineChangeLogHistoryService extends AbstractChangeLogHistoryServ
 STRING0 ,
 STRING1 ,
 STRING2 ,
 - STRING3
 + STRING3 ,
 + STRING4 ,
 + STRING5
 } ) ;
 } finally {
 if ( writer != null ) {
 <nb> public class OfflineChangeLogHistoryService extends AbstractChangeLogHistoryServ
 csvWriter . writeNext ( line ) ;
 }

 - String [ ] newLine = new String [ NUMBER0 ] ;
 + String [ ] newLine = new String [ NUMBER1 ] ;
 newLine [ COLUMN_ID ] = changeSet . getId ( ) ;
 newLine [ COLUMN_AUTHOR ] = changeSet . getAuthor ( ) ;
 newLine [ COLUMN_FILENAME ] = changeSet . getFilePath ( ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class HikariConnectionProvider implements ConnectionProvider , Configurable , Stoppable
 {
 -
 private static final long serialVersionUID = - NUMBER0 ;

 private static final Logger LOGGER = LoggerFactory . getLogger ( HikariConnectionProvider . class ) ;


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

 public class HeadersBodyParser extends BodyParser
 {
 <nb> public class HeadersBodyParser extends BodyParser
 }

 @ override
 + protected boolean emptyBody ( )
 + {
 + MetaData metaData = headerBlockParser . parse ( BufferUtil . EMPTY_BUFFER , NUMBER0 ) ;
 + boolean result = onHeaders ( NUMBER0 , NUMBER0 , false , metaData ) ;
 + reset ( ) ;
 + return result ;
 + }
 +
 + @ override
 public Result parse ( ByteBuffer buffer )
 {
 boolean loop = false ;

Fixed handling of zero length body that must be HPACK decoded


<nb> public class CppGenerator implements CodeGenerator
 ) ) ;

 sb . append ( String . format (
 - indent + STRING0 +
 + indent + STRING1 +
 indent + STRING2 +
 indent + STRING3 +
 indent + STRING4 +
 <nb> public class CppGenerator implements CodeGenerator
 ) ) ;

 sb . append ( String . format (
 - indent + STRING0 +
 + indent + STRING1 +
 indent + STRING2 +
 indent + STRING5 +
 - indent + STRING6 +
 + indent + STRING7 +
 indent + STRING8 +
 indent + STRING9 +
 indent + STRING10 ,


<nb> public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
 @ notnull final Project project ,
 @ nullable final Runnable postRunnable ,
 @ nullable final String commandName ) {
 + setCurrentScope ( scope ) ;
 final int fileCount = scope . getFileCount ( ) ;
 final ProgressIndicator progressIndicator = ProgressManager . getInstance ( ) . getProgressIndicator ( ) ;
 final List < LocalInspectionToolWrapper > lTools = new ArrayList < LocalInspectionToolWrapper > ( ) ;


<nb> abstract class AbstractResultQuery < R extends Record > extends AbstractQuery imple
 try {
 ResultSet rs = statement . executeQuery ( ) ;

 + SINGLE
 if ( ! many ) {
 FieldList fields = new FieldList ( getFields ( rs . getMetaData ( ) ) ) ;
 cursor = new CursorImpl < R > ( configuration , fields , rs , statement , getRecordType ( ) ) ;
 <nb> abstract class AbstractResultQuery < R extends Record > extends AbstractQuery imple
 cursor = null ;
 }
 }
 +
 + SINGLE
 else {
 results = new ArrayList < Result < Record > > ( ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 <nb> public class JivePropertiesExtension implements ExtensionElement {
 return xml ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static JivePropertiesExtension from ( Message message ) {
 + return message . getExtension ( ELEMENT , NAMESPACE ) ;
 + }
 }
 <nb> public class JivePropertiesExtensionTest extends InitExtensions {
 SINGLE

 Message message = ( Message ) PacketParserUtils . parseStanza ( properties ) ;
 - JivePropertiesExtension jpe = ( JivePropertiesExtension ) message . getExtension ( JivePropertiesExtension . NAMESPACE ) ;
 + JivePropertiesExtension jpe = JivePropertiesExtension . from ( message ) ;
 assertNotNull ( jpe ) ;

 Integer integer = ( Integer ) jpe . getProperty ( STRING0 ) ;

Add JivePropertiesExtension from Message


<nb> public class AnalystWorker implements Runnable {
 router . includeTimes = clusterRequest . includeTimes ;
 envelope = router . route ( ) ;
 envelope . id = clusterRequest . id ;
 - envelope . destinationPointsetId = clusterRequest . destinationPointsetId ;
 ts . success = true ;
 } catch ( Exception ex ) {
 SINGLE
 <nb> public class AnalystWorker implements Runnable {
 SINGLE
 SINGLE
 SINGLE
 + envelope . id = clusterRequest . id ;
 + envelope . jobId = clusterRequest . jobId ;
 + envelope . destinationPointsetId = clusterRequest . destinationPointsetId ;
 if ( clusterRequest . outputLocation != null ) {
 SINGLE
 SINGLE


<nb> public class MaterialCalendarView extends ViewGroup {
 currentMonth = c ;
 int position = adapter . getIndexForDay ( c ) ;
 pager . setCurrentItem ( position , false ) ;
 + updateUi ( ) ;
 }

 public static class SavedState extends BaseSavedState {

Fix issue with arrow not enable when setting maxDate


<nb> public class SignInFragment extends AbstractFragment implements TextWatcher {
 }

 private void requestWPComEmailCheck ( ) {
 - WordPress . getRestClientUtilsV0 ( ) . isAvailable ( mUsername , new RestRequest . Listener ( ) {
 + WordPress . getRestClientUtilsV0 ( ) . isAvailable ( UrlUtils . urlEncode ( mUsername ) , new RestRequest . Listener ( ) {
 @ override
 public void onResponse ( JSONObject response ) {
 try {


<nb> public class ProtoLiteUtils {
 throw new RuntimeException ( STRING0 + buf . length + STRING1 + position ) ;
 }
 cis = CodedInputStream . newInstance ( buf ) ;
 + } else if ( size == NUMBER0 ) {
 + return defaultInstance ;
 }
 }
 } catch ( IOException e ) {


<nb> public class DeepLearning extends SupervisedModelBuilder < DeepLearningModel , DeepL
 }
 model . write_lock ( self ( ) ) ;
 final DeepLearningModel . DeepLearningParameters mp = model . _parms ;
 - Frame tra_fr = _train ;
 - Frame val_fr = _valid ;
 + Frame tra_fr = new Frame ( mp . train ( ) . _key , _train . names ( ) , _train . vecs ( ) ) ;
 + Frame val_fr = _valid != null ? new Frame ( mp . valid ( ) . _key , _valid . names ( ) , _valid . vecs ( ) ) : null ;

 final long model_size = model . model_info ( ) . size ( ) ;
 if ( ! _parms . _quiet_mode ) Log . info ( STRING0 + String . format ( STRING1 , model_size ) ) ;

Keep train valid frame key names to be used by ModelMetrics


<nb> public class CompletionProgressIndicator extends ProgressIndicatorBase implement
 }

 private void trackModifiers ( ) {
 + if ( isAutopopupCompletion ( ) ) {
 + return ;
 + }
 +
 final JComponent contentComponent = myEditor . getContentComponent ( ) ;
 contentComponent . addKeyListener ( new KeyAdapter ( ) {
 public void keyPressed ( KeyEvent e ) {

autopopup completion doesn t need a fine grained modifier key tracking


<nb>
 package NAMESPACE ;

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

 import static NAMESPACE ;

 - public class WireMockClassRule implements MethodRule , TestRule {
 + public class WireMockClassRule implements MethodRule , TestRule , Stubbing {

 private final Options options ;
 private final WireMockServer wireMockServer ;
 <nb> public class WireMockClassRule implements MethodRule , TestRule {
 } ;
 }

 + @ override
 + public void givenThat ( MappingBuilder mappingBuilder ) {
 + wireMock . register ( mappingBuilder ) ;
 + }
 +
 + @ override
 + public void stubFor ( MappingBuilder mappingBuilder ) {
 + givenThat ( mappingBuilder ) ;
 + }
 }


<nb> public abstract class JCVideoPlayer extends FrameLayout implements JCMediaPlayer
 if ( JCVideoPlayerManager . getFirst ( ) != null ) {
 JCVideoPlayerManager . getFirst ( ) . autoFullscreenLeft ( ) ;
 }
 - } else if ( y > FLOAT0 ) {
 - if ( JCVideoPlayerManager . getFirst ( ) != null ) {
 - JCVideoPlayerManager . getFirst ( ) . autoQuitFullscreen ( ) ;
 - }
 }
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE

 }

if you want to quit fullscreen you should press back button or click quit fullscreen button


<nb> public class PeepholeCollectPropertyAssignmentsTest extends CompilerTestCase {
 testSame ( STRING0 ) ;
 }

 + public final void testCompoundAssignment ( ) {
 + testSame ( STRING1 ) ;
 + }
 +
 public final void testNegativeArrayIndex1 ( ) {
 testSame ( STRING2 ) ;
 }


<nb> public class MaterialCalendarView extends ViewGroup {
 setWeekDayTextAppearance ( ss . weekDayTextAppearance ) ;
 setShowOtherDates ( ss . showOtherDates ) ;
 setAllowClickDaysOutsideCurrentMonth ( ss . allowClickDaysOutsideCurrentMonth ) ;
 + minDate = ss . minDate ;
 + maxDate = ss . maxDate ;
 setRangeDates ( ss . minDate , ss . maxDate ) ;
 clearSelection ( ) ;
 for ( CalendarDay calendarDay : ss . selectedDates ) {

Fix issue with min maxDate not respected on rotation


<nb> public class IceUdpTransportPacketExtension
 else if ( childExtension instanceof CandidatePacketExtension )
 addCandidate ( ( CandidatePacketExtension ) childExtension ) ;

 - else if ( childExtension instanceof DtlsFingerprintPacketExtension )
 + else
 super . addChildExtension ( childExtension ) ;
 }
 }

Allows PacketExtensions other than DTLS FP to be added to an IceUdpTransportPacketExtension


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public interface ApplicationComponent {
 Context context ( ) ;
 ThreadExecutor threadExecutor ( ) ;
 PostExecutionThread postExecutionThread ( ) ;
 - UserCache userCache ( ) ;
 UserRepository userRepository ( ) ;
 }


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class LanguageIdentifierTools {

 try {
 LanguageProfile profile = new LanguageProfile ( ) ;
 - String languageFilePath = STRING0 + JLanguageTool . getDataBroker ( ) . getResourceDir ( ) +
 + final String languageFilePath = JLanguageTool . getDataBroker ( ) . getResourceDir ( ) +
 STRING1 + language + STRING1 + language + PROFILE_SUFFIX ;
 - InputStream stream = new FileInputStream ( languageFilePath ) ;
 +
 + InputStream stream = JLanguageTool . class . getResourceAsStream ( languageFilePath ) ;

 try {
 BufferedReader reader =

Actually fixed the path problem for LanguageIdentifierTools


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 public interface RepeatedPostprocessor extends Postprocessor {


<nb> public class KStreamWindowReduce < K , V , W extends Window > implements KStreamAggPr
 return new KTableValueGetterSupplier < Windowed < K > , V > ( ) {

 public KTableValueGetter < Windowed < K > , V > get ( ) {
 - return new KStreamAggregateValueGetter ( ) ;
 + return new KStreamWindowReduceValueGetter ( ) ;
 }

 } ;
 }

 - private class KStreamAggregateValueGetter implements KTableValueGetter < Windowed < K > , V > {
 + private class KStreamWindowReduceValueGetter implements KTableValueGetter < Windowed < K > , V > {

 private WindowStore < K , V > windowStore ;

 <nb> public class KStreamWindowReduce < K , V , W extends Window > implements KStreamAggPr

 SINGLE
 try ( WindowStoreIterator < V > iter = windowStore . fetch ( key , window . start ( ) , window . start ( ) ) ) {
 - return iter . next ( ) . value ;
 + return iter . hasNext ( ) ? iter . next ( ) . value : null ;
 }
 }
 }


<nb> public class AppBarLayout extends LinearLayout {
 @ override
 public WindowInsetsCompat onApplyWindowInsets ( View v ,
 WindowInsetsCompat insets ) {
 - return setWindowInsets ( insets ) ;
 + return onWindowInsetChanged ( insets ) ;
 }
 } ) ;
 }
 <nb> public class AppBarLayout extends LinearLayout {
 return mLastInsets != null ? mLastInsets . getSystemWindowInsetTop ( ) : NUMBER0 ;
 }

 - private WindowInsetsCompat setWindowInsets ( WindowInsetsCompat insets ) {
 - SINGLE
 - mTotalScrollRange = INVALID_SCROLL_RANGE ;
 - mLastInsets = insets ;
 + private WindowInsetsCompat onWindowInsetChanged ( final WindowInsetsCompat insets ) {
 + WindowInsetsCompat newInsets = null ;
 +
 + if ( ViewCompat . getFitsSystemWindows ( this ) ) {
 + SINGLE
 + newInsets = insets ;
 + }
 +
 + SINGLE
 + if ( newInsets != mLastInsets ) {
 + mLastInsets = newInsets ;
 + invalidateScrollRanges ( ) ;
 + }
 +
 return insets ;
 }

Don t always use window insets in AppBarLayout


<nb> public class DragSortListView extends ListView {
 if ( child != oldChild ) {
 SINGLE
 SINGLE
 - v . removeViewAt ( NUMBER0 ) ;
 + if ( oldChild != null ) {
 + v . removeViewAt ( NUMBER0 ) ;
 + }
 v . addView ( child ) ;
 }
 } else {


<nb> public class ResValueFactory {
 public ResScalarValue factory ( int type , int value , String rawValue )
 throws AndrolibException {
 switch ( type ) {
 + case TypedValue . TYPE_NULL :
 + return new ResReferenceValue ( mPackage , NUMBER0 , null ) ;
 case TypedValue . TYPE_REFERENCE :
 return newReference ( value , rawValue ) ;
 case TypedValue . TYPE_ATTRIBUTE :


<nb> public class StackStateAnimator {
 }

 SINGLE
 - child . setDimmed ( viewState . dimmed , mAnimationFilter . animateDimmed ) ;
 + child . setDimmed ( viewState . dimmed , mAnimationFilter . animateDimmed && ! wasAdded ) ;

 SINGLE
 child . setDark ( viewState . dark , mAnimationFilter . animateDark ) ;

Fixed a bug on the notification appear animation


<nb> public class Show {
 @ serializedname ( STRING0 )
 public String imdbId ;

 + @ serializedname ( STRING1 )
 + public Integer traktId ;
 +
 @ serializedname ( STRING2 )
 public String firstAired ;


<nb> public class MemcachedCache implements Cache
 for ( Map . Entry < String , AtomicLong > entry : counters . entrySet ( ) ) {
 builder . put ( entry . getKey ( ) , entry . getValue ( ) . get ( ) ) ;
 }
 + for ( Map . Entry < String , AtomicLong > entry : meters . entrySet ( ) ) {
 + builder . put ( entry . getKey ( ) , entry . getValue ( ) . get ( ) ) ;
 + }
 return builder . build ( ) ;
 }
 } ;


<nb> public class MaterialDialog extends DialogBase implements
 }

 public Builder inputRange ( @ intrange ( from = NUMBER0 , to = Integer . MAX_VALUE ) int minLength ,
 - @ intrange ( from = NUMBER1 , to = Integer . MAX_VALUE ) int maxLength ) {
 + @ intrange ( from = - NUMBER1 , to = Integer . MAX_VALUE ) int maxLength ) {
 return inputRange ( minLength , maxLength , NUMBER0 ) ;
 }


<nb> public class KotlinCallHierarchyBrowser extends CallHierarchyBrowserBase {
 }

 @ override
 - protected PsiElement getOpenFileElementFromDescriptor ( @ notnull HierarchyNodeDescriptor descriptor ) {
 - return getTargetElement ( descriptor ) ;
 - }
 -
 - @ override
 protected boolean isApplicableElement ( @ notnull PsiElement element ) {
 return element instanceof JetNamedDeclaration || element instanceof PsiMethod ;
 }


<nb> public abstract class DBCollection {

 _checkObject ( jo , false , false ) ;

 - SINGLE
 -
 Object id = jo . get ( STRING0 ) ;
 if ( DEBUG ) System . out . println ( STRING1 + id ) ;


<nb> public class TestSubscriber < T > extends Subscriber < T > {
 if ( err . size ( ) > NUMBER0 ) {
 throw new AssertionError ( STRING0 + err . size ( ) , new CompositeException ( err ) ) ;
 } else
 - if ( throwable . equals ( err . get ( NUMBER1 ) ) ) {
 + if ( ! throwable . equals ( err . get ( NUMBER1 ) ) ) {
 throw new AssertionError ( STRING1 + throwable + STRING2 + err . get ( NUMBER1 ) , err . get ( NUMBER1 ) ) ;
 }
 }
 <nb> public class TestSubscriberTest {
 inOrder . verifyNoMoreInteractions ( ) ;
 }

 + @ test
 + public void testAssertError ( ) {
 + RuntimeException e = new RuntimeException ( STRING3 ) ;
 + TestSubscriber subscriber = new TestSubscriber ( ) ;
 + Observable . error ( e ) . subscribe ( subscriber ) ;
 + subscriber . assertError ( e ) ;
 + }
 }


<nb> public abstract class ProcessorType < Type extends ProcessorType > {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public Type processRef ( String ref ) {
 + ProcessorRef answer = new ProcessorRef ( ) ;
 + answer . setRef ( ref ) ;
 + addOutput ( answer ) ;
 + return ( Type ) this ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> class ImapFolderPusher extends ImapFolder {
 delayTime = MAX_DELAY_TIME ;
 }

 - if ( ++ idleFailureCount > IDLE_FAILURE_COUNT_LIMIT ) {
 + idleFailureCount ++ ;
 + if ( idleFailureCount > IDLE_FAILURE_COUNT_LIMIT ) {
 Log . e ( LOG_TAG , STRING0 + getLogId ( ) + STRING1 + idleFailureCount +
 STRING2 ) ;
 pushReceiver . pushError ( STRING3 + getName ( ) + STRING1 + idleFailureCount +

Avoid incrementing field inside expression


<nb> public class ForgeWorld extends AbstractWorld {
 IInventory inv = ( IInventory ) tile ;
 int size = inv . getSizeInventory ( ) ;
 for ( int i = NUMBER0 ; i < size ; i ++ ) {
 - inv . setInventorySlotContents ( i , null ) ;
 + inv . setInventorySlotContents ( i , ItemStack . EMPTY ) ;
 }
 return true ;
 }


<nb> final class GridLayoutManager extends RecyclerView . LayoutManager {
 mFocusPositionOffset = NUMBER0 ;
 }
 saveContext ( recycler , state ) ;
 +
 SINGLE
 SINGLE
 SINGLE
 <nb> final class GridLayoutManager extends RecyclerView . LayoutManager {
 if ( DEBUG ) Log . v ( getTag ( ) , STRING0 + savedFocusPos +
 STRING1 + mFocusPosition ) ;
 }
 + if ( mFocusPosition == NO_POSITION ) {
 + mBaseGridView . clearFocus ( ) ;
 + }

 mWindowAlignment . mainAxis ( ) . invalidateScrollMin ( ) ;
 mWindowAlignment . mainAxis ( ) . invalidateScrollMax ( ) ;
 <nb> final class GridLayoutManager extends RecyclerView . LayoutManager {
 if ( mFocusSearchDisabled ) {
 return true ;
 }
 + if ( getPositionByView ( child ) == NO_POSITION ) {
 + SINGLE
 + SINGLE
 + return true ;
 + }
 if ( ! mInLayout && ! mInSelection ) {
 scrollToView ( child , true ) ;
 }

DO NOT MERGE Fix crash when focus requested on a child that was removed


<nb>
 class GetFoo {
 private int foo ;
 + @ java.lang.suppresswarnings ( STRING0 )
 public int getFoo ( ) {
 - return foo ;
 + return this . foo ;
 }
 }

With the new features some of the delombok based unit tests no longer work


<nb> public class PsiVFSListener extends VirtualFileAdapter {
 public void propertyChanged ( final VirtualFilePropertyEvent event ) {
 final String propertyName = event . getPropertyName ( ) ;
 final VirtualFile vFile = event . getFile ( ) ;
 - if ( vFile . isDirectory ( ) ) return ;

 final FileViewProvider oldFileViewProvider = myFileManager . findCachedViewProvider ( vFile ) ;
 final PsiFile oldPsiFile ;

don t ignore propertyChanged for directories


<nb> public class XAccountManager extends XHook {
 synchronized ( mListener ) {
 OnAccountsUpdateListener listener = ( OnAccountsUpdateListener ) param . args [ NUMBER0 ] ;
 XOnAccountsUpdateListener xlistener = mListener . get ( listener ) ;
 - if ( xlistener != null ) {
 + if ( xlistener == null )
 param . args [ NUMBER0 ] = xlistener ;
 + else
 XUtil . log ( this , Log . INFO , STRING0 + mListener . size ( ) ) ;
 - } else
 - XUtil . log ( this , Log . WARN , STRING1 + mListener . size ( ) ) ;
 }
 }
 }


<nb> public class AudioEffect {
 COMMENT
 public static boolean isEffectTypeAvailable ( UUID type ) {
 AudioEffect . Descriptor [ ] desc = AudioEffect . queryEffects ( ) ;
 + if ( desc == null ) {
 + return false ;
 + }
 +
 for ( int i = NUMBER0 ; i < desc . length ; i ++ ) {
 if ( desc [ i ] . type . equals ( type ) ) {
 return true ;


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CassandraDaemon
 }
 COMMENT
 logger . info ( STRING0 , Runtime . getRuntime ( ) . totalMemory ( ) , Runtime . getRuntime ( ) . maxMemory ( ) ) ;
 + for ( MemoryPoolMXBean pool : ManagementFactory . getMemoryPoolMXBeans ( ) )
 + logger . info ( STRING1 , pool . getName ( ) , pool . getType ( ) , pool . getPeakUsage ( ) ) ;
 logger . info ( STRING2 , System . getProperty ( STRING3 ) ) ;
 CLibrary . tryMlockall ( ) ;


<nb> public class PhoneStateListener {

 private final Handler mHandler ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public PhoneStateListener ( ) {
 this ( SubscriptionManager . DEFAULT_SUB_ID , Looper . myLooper ( ) ) ;
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public PhoneStateListener ( Looper looper ) {
 + this ( SubscriptionManager . DEFAULT_SUB_ID , looper ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public PhoneStateListener ( long subId ) {
 this ( subId , Looper . myLooper ( ) ) ;
 }

 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public PhoneStateListener ( long subId , Looper looper ) {
 if ( DBG ) log ( STRING0 + subId + STRING1 + looper ) ;
 mSubId = subId ;

Add PhoneStateListener Looper looper and some documentation


<nb> public class ReaderAnim {
 animator . addListener ( new AnimatorListenerAdapter ( ) {
 @ override
 public void onAnimationStart ( Animator animation ) {
 - super . onAnimationStart ( animation ) ;
 target . setVisibility ( View . VISIBLE ) ;
 }
 } ) ;
 <nb> public class ReaderAnim {
 animator . addListener ( new AnimatorListenerAdapter ( ) {
 @ override
 public void onAnimationEnd ( Animator animation ) {
 - super . onAnimationStart ( animation ) ;
 target . setVisibility ( endVisibility ) ;
 }
 } ) ;
 <nb> public class ReaderAnim {
 set . addListener ( new AnimatorListenerAdapter ( ) {
 @ override
 public void onAnimationStart ( Animator animation ) {
 - super . onAnimationStart ( animation ) ;
 target . setVisibility ( View . VISIBLE ) ;
 }
 @ override
 public void onAnimationEnd ( Animator animation ) {
 - super . onAnimationEnd ( animation ) ;
 target . setVisibility ( View . GONE ) ;
 }
 } ) ;

Cleaned up ReaderAnim unnecessary super calls


<nb> public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi

 isReleased = true ;
 clearSettingsCache ( ) ;
 + mySizeAdjustmentStrategy . cancelAllRequests ( ) ;

 myFoldingModel . dispose ( ) ;
 mySoftWrapModel . release ( ) ;
 <nb> class EditorSizeAdjustmentStrategy {
 scheduleSizeUpdate ( editor ) ;
 return result ;
 }
 +
 + void cancelAllRequests ( ) {
 + myAlarm . cancelAllRequests ( ) ;
 + }

 COMMENT
 COMMENT

avoid spurious project leak detection in tests related to editor


<nb> public class PhantomJSDriverService extends DriverService {
 COMMENT
 public static final String PHANTOMJS_GHOSTDRIVER_PATH_PROPERTY = STRING0 ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public static final String PHANTOMJS_CLI_ARGS_CAPABILITY = STRING1 ;
 COMMENT
 COMMENT
 <nb> public class PhantomJSDriverService extends DriverService {
 SINGLE
 File ghostDriverfile = findGhostDriver ( desiredCapabilities , GHOSTDRIVER_DOC_LINK , GHOSTDRIVER_DOWNLOAD_LINK ) ;

 + SINGLE
 + String [ ] commandLineArguments = findCommandLineArguments ( desiredCapabilities ) ;
 +
 SINGLE
 return new Builder ( ) . usingPhantomJSExecutable ( phantomjsfile )
 . usingGhostDriver ( ghostDriverfile )
 . usingAnyFreePort ( )
 . withProxy ( proxy )
 - . usingCommandLineArguments ( findCommandLineArguments ( desiredCapabilities ) )
 + . usingCommandLineArguments ( commandLineArguments )
 . build ( ) ;
 }

 <nb> public class PhantomJSDriverService extends DriverService {
 }
 }

 + SINGLE
 + SINGLE
 if ( this . commandLineArguments != null ) {
 argsBuilder . add ( this . commandLineArguments ) ;
 }

add code documentation and refactor for consistency


<nb> public class MockEnvironment implements Environment {
 @ override
 public void registerOutputGate ( final OutputGate < ? extends Record > outputGate ) {

 - throw new IllegalStateException ( STRING0 ) ;
 + SINGLE
 }

 COMMENT
 <nb> public class MockEnvironment implements Environment {
 @ override
 public void registerInputGate ( final InputGate < ? extends Record > inputGate ) {

 - throw new IllegalStateException ( STRING1 ) ;
 + SINGLE
 }

 COMMENT


<nb> public class FinalizerService
 if ( executor . isShutdown ( ) ) {
 throw new IllegalStateException ( STRING0 ) ;
 }
 - finalizerTask = executor . submit ( ( Runnable ) this : : processFinalizerQueue ) ;
 + finalizerTask = executor . submit ( this : : processFinalizerQueue ) ;
 }

 @ predestroy

Remove redundant cast in FinalizerService


<nb> public class DragSortListView extends ListView {

 divider . setBounds ( l , t , r , b ) ;
 divider . draw ( canvas ) ;
 - Log . d ( STRING0 , STRING1 ) ;
 }
 }
 }


<nb> public class BroadcasterTest {

 broadcaster . broadcast ( STRING0 , set ) . get ( ) ;

 - assertEquals ( atmosphereHandler . value . get ( ) , new HashSet ( ) ) ;
 + assertEquals ( atmosphereHandler . value . get ( ) , set ) ;
 }

 public final static class AR implements AtmosphereHandler {


<nb> public abstract class SharedTreeModelBuilder < TM extends DTree . TreeModel > extends
 } finally {
 model . unlock ( self ( ) ) ; SINGLE
 cleanUp ( fr , bm_timer ) ; SINGLE
 - Log . info ( STRING0 + model ) ;
 - SINGLE
 model . start_training ( before ) ;
 model . stop_training ( ) ;
 }


<nb> public class NumberPicker extends LinearLayout {
 , STRING0 ,
 SINGLE
 STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9
 - , STRING10
 + , STRING10 ,
 + SINGLE
 + STRING11 , STRING12 , STRING13 , STRING14 , STRING15 , STRING16 , STRING17 , STRING18 , STRING19
 + , STRING20 ,
 + SINGLE
 + STRING21 , STRING22 , STRING23 , STRING24 , STRING25 , STRING26 , STRING27 , STRING28 , STRING29
 + , STRING30 ,
 + SINGLE
 + STRING31 , STRING32 , STRING33 , STRING34 , STRING35 , STRING36 , STRING37 , STRING38 , STRING39
 + , STRING40
 } ;

 COMMENT

Add additional languages to be accepted by the NumberPicker input filter


<nb> public class PythonSdkDetailsDialog extends DialogWrapper {
 catch ( ConfigurationException ignored ) {
 }

 - final Sdk addedSdk = SdkConfigurationUtil . createAndAddSDK ( sdk . getName ( ) , PythonSdkType . getInstance ( ) ) ;
 + final Sdk addedSdk = SdkConfigurationUtil . setupSdk ( myProjectSdksModel . getSdks ( ) , sdk . getHomeDirectory ( ) ,
 + PythonSdkType . getInstance ( ) , true ,
 + null , null ) ;
 myProjectSdksModel . addSdk ( addedSdk ) ;
 myProjectSdksModel . removeSdk ( sdk ) ;
 refreshSdkList ( ) ;


<nb> public enum Command {
 MCONTAINSKEY ( ) , MCONTAINSVALUE ( ) , ADDLISTENER ( ) , MEVENT ( ) , REMOVELISTENER ( ) , KEYSET ( ) , MENTRYSET ( ) , MGETENTRY ( ) ,
 MLOCK ( ) , MISLOCKED ( ) , MUNLOCK ( ) , MTRYLOCK ( ) , MLOCKMAP ( ) , MUNLOCKMAP ( ) , MFORCEUNLOCK ( ) , MPUTALL ( ) , MPUTIFABSENT ( ) ,
 MREMOVEIFSAME ( ) , MREPLACEIFNOTNULL ( ) , MREPLACEIFSAME ( ) , MTRYLOCKANDGET ( ) , MTRYREMOVE ( ) , MFLUSH ( ) , MEVICT ( ) ,
 - MADDLISTENER ( ) , MREMOVELISTENER ( ) , MSIZE ( ) , MADDINDEX ( ) ,
 + MADDLISTENER ( ) , MREMOVELISTENER ( ) , MSIZE ( ) , MADDINDEX ( ) , MISKEYLOCKED ( ) ,

 QOFFER ( ) , QPUT ( ) , QPOLL ( ) , QTAKE ( ) , QSIZE ( ) , QPEEK ( ) , QREMOVE ( ) , QREMCAPACITY ( ) , QENTRIES ( ) , QADDLISTENER ( ) ,
 QREMOVELISTENER ( ) , QEVENT ( ) ,


<nb> public class Gdx2DPixmap implements Disposable {

 private static native ByteBuffer load ( long [ ] nativeData , byte [ ] buffer , int offset , int len , int requestedFormat ) ; / * MANUAL
 const unsigned char * p_buffer = ( const unsigned char * ) env - > GetPrimitiveArrayCritical ( buffer , NUMBER0 ) ;
 - gdx2d_pixmap * pixmap = gdx2d_load ( p_buffer , len , requestedFormat ) ;
 + gdx2d_pixmap * pixmap = gdx2d_load ( p_buffer + offset , len , requestedFormat ) ;
 env - > ReleasePrimitiveArrayCritical ( buffer , ( char * ) p_buffer , NUMBER0 ) ;

 if ( pixmap == NUMBER0 )

fixed Gdx2DPixmap load byte bytes int offset int len had a pretty sever bug


<nb> public class MuzeiWallpaperService extends GLWallpaperService {
 mMainThreadHandler . postDelayed ( mDoubleTapTimeout , timeout ) ;
 }

 + private final GestureDetector . OnGestureListener mGestureListener = new GestureDetector . SimpleOnGestureListener ( ) {
 @ override
 public boolean onDown ( MotionEvent e ) {
 return true ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 COMMENT
 COMMENT

Configuration java contains import org hamcrest Factory GitHub Issue


<nb> public class EditorMarkupModelImpl extends MarkupModelImpl implements EditorMark
 if ( myDirtyYPositions == null ) myDirtyYPositions = docRange ;
 repaint ( imageGraphics , componentBounds . width , myDirtyYPositions ) ;
 myDirtyYPositions = null ;
 + c . repaint ( ) ; SINGLE
 }
 finally {
 ( ( ApplicationImpl ) ApplicationManager . getApplication ( ) ) . editorPaintFinish ( ) ;

reschedule repaint for editor scrollbar with the right clip


<nb> public abstract class TransportMasterNodeAction < Request extends MasterNodeReques
 listener . onFailure ( blockException ) ;
 return ;
 }
 - logger . trace ( STRING0 , blockException ) ;
 + logger . trace ( STRING1 , blockException ) ;
 observer . waitForNextChange (
 new ClusterStateObserver . Listener ( ) {
 @ override

Fix logging statement in o e a s m TransportMasterNodeAction


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ResAttrDecoder {
 type , value , rawValue ) ;

 String decoded = null ;
 - if ( attrResId != NUMBER0 ) {
 - ResAttr attr = ( ResAttr ) getCurrentPackage ( ) . getResTable ( )
 - . getResSpec ( attrResId ) . getDefaultResource ( ) . getValue ( ) ;
 - decoded = attr . convertToResXmlFormat ( resValue ) ;
 + if ( attrResId > NUMBER0 ) {
 + try {
 + ResAttr attr = ( ResAttr ) getCurrentPackage ( ) . getResTable ( )
 + . getResSpec ( attrResId ) . getDefaultResource ( ) . getValue ( ) ;
 +
 + decoded = attr . convertToResXmlFormat ( resValue ) ;
 + } catch ( UndefinedResObject ex ) {
 + SINGLE
 + }
 }

 return decoded != null ? decoded : resValue . encodeAsResXmlAttr ( ) ;

Catch attr lookup on internal attributes


<nb> public class PackageManagerService extends IPackageManager . Stub {
 pkg . applicationInfo . publicSourceDir = ps . resourcePathString ;
 pkg . applicationInfo . sourceDir = ps . codePathString ;
 pkg . applicationInfo . dataDir =
 - getDataPathForPackage ( ps . pkg . packageName , NUMBER0 ) . getPath ( ) ;
 + getDataPathForPackage ( packageName , NUMBER0 ) . getPath ( ) ;
 pkg . applicationInfo . nativeLibraryDir = ps . nativeLibraryPathString ;
 }
 SINGLE

Fix an NPE in PackageManager when getting the AppInfo for an app


<nb> public class CorbaORBService implements Service < ORB > {
 try {
 SecurityActions . setThreadContextClassLoader ( SecurityActions . getClassLoader ( this . getClass ( ) ) ) ;
 this . orb = ORB . init ( new String [ NUMBER0 ] , properties ) ;
 + SINGLE
 + ORB . init ( ) ;
 } finally {
 SINGLE
 SecurityActions . setThreadContextClassLoader ( loader ) ;

Added a call to ORB init in CorbaORBService to initialize the ORBSingleton implementation