<nb> import NAMESPACE ;
 COMMENT
 public class SedaRemoveRouteThenAddAgainTest extends ContextTestSupport {

 - @ override
 - protected RouteBuilder createRouteBuilder ( ) throws Exception {
 - return new RouteBuilder ( ) {
 -
 - @ override
 - public void configure ( ) throws Exception {
 - from ( STRING0 ) . id ( STRING1 ) . to ( STRING2 ) ;
 - }
 - } ;
 - }
 -
 public void testRemoveRouteAndThenAddAgain ( ) throws Exception {
 MockEndpoint out = getMockEndpoint ( STRING2 ) ;
 out . expectedMessageCount ( NUMBER0 ) ;
 <nb> public class SedaRemoveRouteThenAddAgainTest extends ContextTestSupport {

 out . assertIsSatisfied ( ) ;
 }
 +
 + @ override
 + protected RouteBuilder createRouteBuilder ( ) throws Exception {
 + return new RouteBuilder ( ) {
 + @ override
 + public void configure ( ) throws Exception {
 + from ( STRING0 ) . routeId ( STRING1 ) . to ( STRING2 ) ;
 + }
 + } ;
 + }
 +
 }


<nb>
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 +
 package NAMESPACE ;

 import NAMESPACE ;
 <nb> public class Async502Loop
 public Async502Loop ( )
 {
 proxyServlet = new AsyncProxyServlet ( ) ;
 + SINGLE
 }

 private void startServer ( HttpServlet servlet ) throws Exception


<nb> public class DfaPsiUtil {

 @ notnull
 public static Nullness getElementNullability ( @ nullable PsiType resultType , @ nullable PsiModifierListOwner owner ) {
 - if ( owner == null ) {
 + if ( owner == null || resultType instanceof PsiPrimitiveType ) {
 return Nullness . UNKNOWN ;
 }

values of primitive types have unknown nullability


<nb> public class HttpSender {
 public static final int MANUAL_REQUEST_INITIATOR = NUMBER0 ;
 public static final int CHECK_FOR_UPDATES_INITIATOR = NUMBER1 ;
 public static final int BEAN_SHELL_INITIATOR = NUMBER2 ;
 + public static final int ACCESS_CONTROL_SCANNER_INITIATOR = NUMBER3 ;

 private static Logger log = Logger . getLogger ( HttpSender . class ) ;

Added HttpSender initiator constant for Access Control Scanner


<nb> public class XMLLanguage extends Language {
 protected static final CDATAOnAnyEncodedPolicy CDATA_ON_ANY_ENCODED_POLICY = new CDATAOnAnyEncodedPolicy ( ) ;
 protected static final EncodeEachSymbolPolicy ENCODE_EACH_SYMBOL_POLICY = new EncodeEachSymbolPolicy ( ) ;
 private final FormattingModelBuilder myFormattingModelBuilder ;
 + private XmlFindUsagesProvider myXmlFindUsagesProvider ;

 public XMLLanguage ( ) {
 this ( STRING0 , STRING1 ) ;
 <nb> public class XMLLanguage extends Language {
 return new XMLParserDefinition ( ) ;
 }

 + @ notnull
 public FindUsagesProvider getFindUsagesProvider ( ) {
 - return new XmlFindUsagesProvider ( ) ;
 + if ( myXmlFindUsagesProvider == null ) myXmlFindUsagesProvider = new XmlFindUsagesProvider ( ) ;
 + return myXmlFindUsagesProvider ;
 }

 @ notnull public SurroundDescriptor [ ] getSurroundDescriptors ( ) {


<nb> public abstract class MappedBufferWrapper {

 public final void unmap ( ) {
 long started = IOStatistics . DEBUG ? System . currentTimeMillis ( ) : NUMBER0 ;
 - if ( ! unmapMappedByteBuffer142b19 ( this ) ) {
 + MappedByteBuffer buffer = getIfCached ( ) ;
 + myBuffer = null ;
 + if ( ! unmapMappedByteBuffer142b19 ( buffer ) ) {
 LOG . error ( STRING0 + myFile ) ;
 }
 - myBuffer = null ;

 if ( IOStatistics . DEBUG ) {
 long finished = System . currentTimeMillis ( ) ;
 <nb> public abstract class MappedBufferWrapper {
 }

 - private static boolean unmapMappedByteBuffer142b19 ( MappedBufferWrapper holder ) {
 - return clean ( holder . getIfCached ( ) ) ;
 + private static boolean unmapMappedByteBuffer142b19 ( MappedByteBuffer buffer ) {
 + return clean ( buffer ) ;
 }

 private static boolean clean ( final MappedByteBuffer buffer ) {


<nb> public class InterceptingXaLogicalLog extends XaLogicalLog
 ( ( Command ) commandEntry . getXaCommand ( ) ) . accept ( first ) ;
 }
 }
 + else if ( entry instanceof LogEntry . Start )
 + {
 + first . setStartEntry ( ( LogEntry . Start ) entry ) ;
 + }
 + else if ( entry instanceof LogEntry . Commit )
 + {
 + first . setCommitEntry ( ( LogEntry . Commit ) entry ) ;
 + }
 }
 first . complete ( ) ;
 }
 <nb> import NAMESPACE ;
 public interface TransactionInterceptor extends CommandRecordVisitor
 {
 public void complete ( ) ;
 +
 + public void setStartEntry ( LogEntry . Start entry ) ;
 +
 + public void setCommitEntry ( LogEntry . Commit entry ) ;
 }

Added methods in TransactionInterceptor to set the Commit and Start log entries


<nb> public class ThreadsDefinition extends OutputDefinition < ThreadsDefinition > imple
 private TimeUnit timeUnit ;
 @ xmlattribute
 private Integer maxQueueSize ;
 - @ xmltransient ( )
 + @ xmlattribute
 private String threadName ;
 @ xmlattribute
 private ThreadPoolRejectedPolicy rejectedPolicy ;

threadsName should be attribute in threads DSL


<nb> public class CommandLineRunner extends
 @ option ( name = STRING0 ,
 usage = STRING1
 + STRING2
 - + STRING3
 - + STRING4
 - + STRING5 )
 + + STRING6
 + + STRING7
 + + STRING8 )
 private int summary_detail_level = NUMBER0 ;

 @ option ( name = STRING9 ,

Remove reference to internal command line option from the external


<nb> public final class CentralAuthenticationServiceImpl implements CentralAuthentica
 final Principal principal = authentication . getPrincipal ( ) ;

 final String principalId = determinePrincipalIdForRegisteredService ( principal , registeredService , serviceTicket ) ;
 - Map < String , Object > attributesToRelease = new HashMap < String , Object > ( ) ;
 + final Map < String , Object > attributesToRelease = new HashMap < String , Object > ( ) ;

 if ( ! registeredService . isIgnoreAttributes ( ) ) {
 for ( final String attribute : registeredService . getAllowedAttributes ( ) ) {

CASImpl ignores authentication attributes when registered service is set to ignore attribute release policy of svc registry


<nb> public class JavaGenerator implements CodeGenerator
 {
 final String enumName = formatClassName ( token . name ( ) ) ;
 final Encoding encoding = token . encoding ( ) ;
 - final String typePrefix = encoding . primitiveType ( ) . primitiveName ( ) ;

 if ( token . isConstantEncoding ( ) )
 {


<nb> public class Request implements HttpServletRequest
 try
 {
 if ( _connection != null )
 - _connection . _generator . sendError ( HttpStatus . BAD_REQUEST_400 , STRING0 + hostPort , null ,
 - true ) ;
 + _connection . _generator . sendError ( HttpStatus . BAD_REQUEST_400 , STRING1 , null , true ) ;
 }
 catch ( IOException e1 )
 {
 - throw new IllegalArgumentException ( STRING2 + hostPort , e1 ) ;
 + throw new RuntimeException ( e1 ) ;
 }
 }
 return _serverName ;


<nb> public final class HikariPool implements HikariPoolMBean , IBagStateListener
 connection . unclose ( ) ;

 final long now = System . currentTimeMillis ( ) ;
 - if ( ( now - connection . getCreationTime ( ) > maxLife ) || ( now - connection . getLastAccess ( ) > NUMBER0 && ! isConnectionAlive ( connection , timeout ) ) )
 + if ( ( maxLife > NUMBER1 && now - connection . getCreationTime ( ) > maxLife ) || ( now - connection . getLastAccess ( ) > NUMBER0 && ! isConnectionAlive ( connection , timeout ) ) )
 {
 closeConnection ( connection ) ; SINGLE
 timeout -= ( System . currentTimeMillis ( ) - start ) ;

Restore max lifetime check to getConnection rather than only in the


<nb>
 package NAMESPACE ;

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

 protected void beforeCreateProcess ( ) throws SvnBindException {
 - EncodingEnvironmentUtil . setLocaleEnvironmentIfMac ( myCommandLine ) ;
 setupLocale ( ) ;
 ensureMessageFile ( ) ;
 ensureTargetsAdded ( ) ;

Removed unnecessary explicit locale setting for svn command line client for mac see EnvironmentUtil getEnvironmentMap for details


<nb> public class WorkerConf extends Utils {
 public final String USER_TEMP_RELATIVE_FOLDER = STRING0 ;

 private WorkerConf ( ) {
 - MASTER_HOSTNAME = getProperty ( STRING1 ) ;
 + MASTER_HOSTNAME = getProperty ( STRING1 , STRING2 ) ;
 MASTER_PORT = getIntProperty ( STRING3 , Constants . DEFAULT_MASTER_PORT ) ;

 PORT = getIntProperty ( STRING4 , Constants . DEFAULT_WORKER_PORT ) ;

add master hostname default config in Workerconf


<nb> public class FileTypeManagerImpl extends FileTypeManagerEx implements NamedJDOME
 private void registerStandardFileTypes ( FileTypeFactoryImpl factory ) {
 try {
 for ( final Field field : StdFileTypes . class . getDeclaredFields ( ) ) {
 - FileType fileType = ( FileType ) field . get ( null ) ;
 - registerFileTypeWithoutNotification ( fileType , parse ( factory . getDefaultExtensions ( fileType ) ) ) ;
 + if ( FileType . class . isAssignableFrom ( field . getType ( ) ) ) {
 + FileType fileType = ( FileType ) field . get ( null ) ;
 + registerFileTypeWithoutNotification ( fileType , parse ( factory . getDefaultExtensions ( fileType ) ) ) ;
 + }
 }
 }
 catch ( IllegalAccessException e ) {


<nb> public class Measurement
 {
 return new Dijkstra ( _graph , vehicle , type ) ;
 }
 - } . setGraph ( g ) ;
 + } . setGraph ( g ) ;
 + SINGLE
 + SINGLE
 printTimeOfRouteQuery ( prepare2 , count / NUMBER0 , STRING0 ) ;

 System . gc ( ) ;


<nb> public class MultipleEpochsIterator implements DataSetIterator {
 @ override
 public DataSet next ( int num ) {
 if ( ! iter . hasNext ( ) ) {
 + passes ++ ;
 log . info ( STRING0 + passes + STRING1 + batch ) ;
 if ( passes < numPasses ) {
 - passes ++ ;
 batch = NUMBER0 ;
 iter . reset ( ) ;
 }


<nb> public class DefaultJsonRender implements JsonRender {
 this . viewClass = viewClass ;
 }

 + @ override
 public Object getObject ( ) {
 return object ;
 }

 + @ override
 public ObjectWriter getObjectWriter ( ) {
 return objectWriter ;
 }

 + @ override
 public Class < ? > getViewClass ( ) {
 return viewClass ;
 }


<nb> public class OsmandSettings {
 new IntPreference ( STRING0 , ActivityInfo . SCREEN_ORIENTATION_UNSPECIFIED , true ) ;

 SINGLE
 - public final CommonPreference < Boolean > SHOW_VIEW_ANGLE = new BooleanPreference ( STRING1 , false , true , true ) ;
 + public final CommonPreference < Boolean > SHOW_VIEW_ANGLE = new BooleanPreference ( STRING1 , false , false , true ) ;
 {
 SHOW_VIEW_ANGLE . setModeDefaultValue ( ApplicationMode . BICYCLE , true ) ;
 SHOW_VIEW_ANGLE . setModeDefaultValue ( ApplicationMode . PEDESTRIAN , true ) ;
 <nb> public class OsmandSettings {
 }

 SINGLE
 - public final CommonPreference < Boolean > AUTO_ZOOM_MAP = new BooleanPreference ( STRING2 , false , true ) ;
 + public final CommonPreference < Boolean > AUTO_ZOOM_MAP = new BooleanPreference ( STRING2 , false , false ) ;
 {
 AUTO_ZOOM_MAP . setModeDefaultValue ( ApplicationMode . CAR , true ) ;
 }


<nb> public class SimpleNonceManager implements SessionNonceManager {
 return false ;
 }

 - if ( nonce . timeStamp > earliestAccepted && nonce . timeStamp < now ) {
 + if ( nonce . timeStamp > earliestAccepted && nonce . timeStamp <= now ) {
 knownNonces . put ( nonce . nonce , nonce ) ;
 long timeTillExpiry = nonce . timeStamp - earliestAccepted ;
 nonce . executorKey = executor . executeAfter ( new KnownNonceCleaner ( nonce . nonce ) , timeTillExpiry ,

Fix intermittent failure in digest tests


<nb> class ProcessHyperlinkAction extends FBAndroidAction {
 toast . setOnClickWrapper ( new OnClickWrapper ( STRING0 , new SuperToast . OnClickListener ( ) {
 @ override
 public void onClick ( View view , Parcelable token ) {
 + Reader . getTextView ( ) . hideOutline ( ) ;
 Reader . tryOpenFootnote ( hyperlink . Id ) ;
 }
 } ) ) ;

hide outline on clicking footnote s more


<nb> package NAMESPACE ;
 COMMENT
 public class Animation {
 final TextureRegion [ ] keyFrames ;
 - final float frameDuration ;
 + public float frameDuration ;

 COMMENT
 COMMENT
 <nb> public class Animation {
 frameNumber = frameNumber % keyFrames . length ;
 }
 return keyFrames [ frameNumber ] ;
 - }
 + }
 }

changed made Animation frameDuration public


<nb> public class PluginManager {
 public synchronized static IdeaPluginDescriptor [ ] getPlugins ( ) {
 if ( ourPlugins == null ) {
 initializePlugins ( ) ;
 + getLogger ( ) . info ( STRING0 + StringUtil . join ( ourPlugins , new Function < IdeaPluginDescriptorImpl , String > ( ) {
 + public String fun ( IdeaPluginDescriptorImpl descriptor ) {
 + final String version = descriptor . getVersion ( ) ;
 + return descriptor . getName ( ) + ( version != null ? STRING1 + version + STRING2 : STRING3 ) ;
 + }
 + } , STRING4 ) ) ;
 ClassloaderUtil . clearJarURLCache ( ) ;
 }
 return ourPlugins ;


<nb> public class WhitespaceAroundCheck
 return ;
 }

 + SINGLE
 + if ( ( aAST . getType ( ) == TokenTypes . STAR )
 + && ( aAST . getParent ( ) . getType ( ) == TokenTypes . DOT ) )
 + {
 + return ;
 + }
 +
 final String [ ] lines = getLines ( ) ;
 final String line = lines [ aAST . getLineNo ( ) - NUMBER0 ] ;
 final int before = aAST . getColumnNo ( ) - NUMBER0 ;
 <nb>
 SINGLE
 SINGLE
 package NAMESPACE ;
 -
 + import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT

Fix bug with needing whitespace around using in import blah


<nb> class Verifier
 final String line = mLines [ aLineNo - NUMBER0 ] ;
 final int before = aColNo - NUMBER1 ;
 if ( before >= NUMBER2 ) {
 - if ( Character . isWhitespace ( line . charAt ( before ) ) ) {
 + if ( Character . isWhitespace ( line . charAt ( before ) )
 + && ! Utils . whitespaceBefore ( before , line ) )
 + {
 log ( aLineNo , before , STRING0 ) ;
 }
 }
 <nb> class InputLeftCurlyOther
 x = NUMBER3 ;
 } while ( x == NUMBER3 ) ;
 }
 +
 + this . wait ( NUMBER4
 + ) ; SINGLE
 }
 }

Fixed bug with handling padding around s


<nb> public class RxBookApp extends Application {
 private Graph mGraph ;

 @ inject
 - ApplicationInstrumentation mApplicationInstrumentation ;
 + ApplicationInstrumentation instrumentation ;

 @ override
 public void onCreate ( ) {
 <nb> public class RxBookApp extends Application {
 mGraph = Graph . Initializer . init ( this ) ;
 getGraph ( ) . inject ( this ) ;

 - mApplicationInstrumentation . init ( ) ;
 + instrumentation . init ( ) ;
 }

 @ nonnull


<nb> public class HostConfig
 canonicalDocBase =
 ( new File ( docBase . toString ( ) ) ) . getCanonicalPath ( ) ;

 - SINGLE
 + SINGLE
 SINGLE
 if ( canonicalDocBase . endsWith ( File . separator ) ) {
 docBase . append ( File . separator ) ;


<nb> import static NAMESPACE ;
 import static NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> final class ServerCallImpl < ReqT , RespT > extends ServerCall < RespT > {

 @ override
 public void messageRead ( final InputStream message ) {
 + Throwable t = null ;
 try {
 if ( call . cancelled ) {
 return ;
 <nb> final class ServerCallImpl < ReqT , RespT > extends ServerCall < RespT > {
 messageReceived = true ;

 listener . onMessage ( call . method . parseRequest ( message ) ) ;
 + } catch ( Throwable e ) {
 + t = e ;
 } finally {
 try {
 message . close ( ) ;
 } catch ( IOException e ) {
 + if ( t != null ) {
 + SINGLE
 + Throwables . propagateIfPossible ( t ) ;
 + throw new RuntimeException ( t ) ;
 + }
 throw new RuntimeException ( e ) ;
 }
 }

Don t lose server call exception when message fails to close


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

 import NAMESPACE ;


<nb> public class ATNConfigSet implements Set < ATNConfig > {

 @ override
 public boolean equals ( Object o ) {
 + if ( o == this ) {
 + return true ;
 + }
 + else if ( ! ( o instanceof ATNConfigSet ) ) {
 + return false ;
 + }
 +
 SINGLE
 ATNConfigSet other = ( ATNConfigSet ) o ;
 boolean same = configs != null &&

equals should check the argument type before attempting a cast


<nb>
 package NAMESPACE ;

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

 public static void deleteSubst ( @ notnull String substRoot ) throws InterruptedException , IOException {
 - runCommand ( new ProcessBuilder ( STRING0 , substRoot , STRING1 ) ) ;
 + runCommand ( new ProcessBuilder ( STRING0 , StringUtil . trimEnd ( substRoot , STRING2 ) , STRING1 ) ) ;
 }

 private static char getFirstFreeDriveLetter ( ) {


<nb> public abstract class MediaBrowserService extends Service {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public class Result < T > {
 private Object mDebug ;

Removed broken link to non existent method


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


<nb> public class Files {
 COMMENT
 class Native {
 static {
 - System . loadLibrary ( STRING0 ) ;
 + System . loadLibrary ( STRING1 ) ;
 }

 static native void sync ( String path ) ;

Restore native synchronization functionality by loading proper module


<nb> public class GitHistoryUtils {
 AUTHOR_NAME , AUTHOR_EMAIL ) ;
 h . setStdoutSuppressed ( true ) ;
 h . addParameters ( parser . getPretty ( ) , STRING0 ) ;
 - h . addParameters ( LOG_ALL ) ;
 h . addParameters ( STRING1 , STRING2 ) ;
 h . addParameters ( STRING3 ) ;
 h . addParameters ( parameters ) ;
 <nb> public class GitLogProvider implements VcsLogProvider {
 return Collections . emptyList ( ) ;
 }

 - return GitHistoryUtils . readCommits ( myProject , root , userRegistry , Collections . < String > emptyList ( ) ) ;
 + return GitHistoryUtils . readCommits ( myProject , root , userRegistry , GitHistoryUtils . LOG_ALL ) ;
 }

 @ notnull

git log don t query ALL when branches to query are specified


<nb> public class TileEngine extends TileBuildCraft implements IPowerReceptor , IInven
 }

 public Engine newEngine ( int meta ) {
 - if ( meta == NUMBER0 )
 - return new EngineWood ( this ) ;
 - else if ( meta == NUMBER1 )
 + if ( meta == NUMBER1 )
 return new EngineStone ( this ) ;
 else if ( meta == NUMBER2 )
 return new EngineIron ( this ) ;
 else
 - return null ;
 + return new EngineWood ( this ) ;
 }

 @ override


<nb> public class DataStructures {
 bst . add ( unsorted [ next ] ) ;
 System . out . println ( bst . toString ( ) ) ;

 - SINGLE
 + SINGLE
 next = random . nextInt ( unsorted . length ) ;
 System . out . println ( STRING0 + unsorted [ next ] ) ;
 bst . remove ( unsorted [ next ] ) ;
 System . out . println ( bst . toString ( ) ) ;
 +
 + SINGLE
 + next = random . nextInt ( unsorted . length * NUMBER0 ) ;
 + System . out . println ( STRING0 + next ) ;
 + bst . remove ( next ) ;
 + System . out . println ( bst . toString ( ) ) ;
 }
 }

Added a test for a remove on an absent node


<nb> public class OsgiPackageScanClassResolver extends DefaultPackageScanClassResolve
 while ( paths != null && paths . hasMoreElements ( ) ) {
 URL path = paths . nextElement ( ) ;
 String pathString = path . getPath ( ) ;
 - urls . add ( pathString . substring ( pathString . indexOf ( packageName ) ) ) ;
 + String urlString = pathString . substring ( pathString . indexOf ( packageName ) ) ;
 + urls . add ( urlString ) ;
 + if ( LOG . isTraceEnabled ( ) ) {
 + LOG . trace ( STRING0 + urlString ) ;
 + }
 }
 }
 return urls ;


<nb> public abstract class BuildTargetPatternParser < T > {
 buildTargetPattern . startsWith ( CELL_PREFIX ) ||
 buildTargetPattern . startsWith ( ALT_CELL_PREFIX ) ,
 String . format (
 - STRING0 ,
 + STRING1 ,
 buildTargetPattern ) ) ;

 if ( buildTargetPattern . equals ( WILDCARD_BUILD_RULE_SUFFIX ) ||


<nb> public class OSGiServiceUtil {
 }
 }

 - private static final _log = LogFactoryUtil . getLog ( OSGiServiceUtil . class ) ;
 + private static Log _log = LogFactoryUtil . getLog ( OSGiServiceUtil . class ) ;

 private static OSGiServiceUtil _instance = new OSGiServiceUtil ( ) ;


<nb> public class JetChangeSignatureUsageProcessor implements ChangeSignatureUsagePro
 Set < UsageInfo > result = new HashSet < UsageInfo > ( ) ;

 if ( info instanceof JetChangeInfo ) {
 - findAllMethodUsages ( ( JetChangeInfo ) info , result ) ;
 + findAllMethodUsages ( ( JetChangeInfo ) info , result ) ;
 }

 return result . toArray ( new UsageInfo [ result . size ( ) ] ) ;
 <nb> public class JetChangeSignatureUsageProcessor implements ChangeSignatureUsagePro
 for ( UsageInfo usage : javaUsageInfos ) {
 if ( usage instanceof OverriderUsageInfo && beforeMethodChange ) continue ;
 for ( ChangeSignatureUsageProcessor processor : processors ) {
 + if ( processor instanceof JetChangeSignatureUsageProcessor ) continue ;
 if ( usage instanceof OverriderUsageInfo ) {
 processor . processUsage ( javaChangeInfo , usage , true , javaUsageInfos ) ;
 }

Do not invoke our usage processor recursively


<nb> public class AndroidTranslatorUnitTest {

 @ before public void setUp ( ) throws Exception {
 classPool = new ClassPool ( true ) ;
 - androidTranslator = new AndroidTranslator ( null ) {
 + androidTranslator = new AndroidTranslator ( null , null ) {
 @ override protected int getIndex ( ) {
 return NUMBER0 ;
 }


<nb> public abstract class JobScheduler {
 Object unwrapped ;
 if ( elapsed > TASK_LIMIT && ( unwrapped = info ( r ) ) != null ) {
 @ nonnls String msg = TASK_LIMIT + STRING0 + unwrapped + STRING1 + elapsed + STRING2 ;
 - LOG . warn ( msg ) ;
 + LOG . info ( msg ) ;
 }
 }
 }

avoid LOG warn as it writes to console too


<nb> public class PatternRuleHandler extends XMLRuleHandler {
 if ( defaultOff ) {
 rule . setDefaultOff ( ) ;
 }
 + if ( category == null ) {
 + throw new RuntimeException ( STRING0 + id + STRING1 ) ;
 + }
 if ( category . isDefaultOff ( ) && ! defaultOn ) {
 rule . setDefaultOff ( ) ;
 }

throw better error message if a rule is outside a category


<nb> public class SwipeDismissListViewTouchListener implements View . OnTouchListener {
 ViewHelper . setAlpha ( pendingDismiss . view , FLOAT0 ) ;
 ViewHelper . setTranslationX ( pendingDismiss . view , NUMBER0 ) ;
 lp = pendingDismiss . view . getLayoutParams ( ) ;
 - lp . height = originalHeight ;
 + lp . height = NUMBER0 ;
 pendingDismiss . view . setLayoutParams ( lp ) ;
 }

Fixed height problems when using list items with different heights in combination with swipe to dismiss thanks to Tony Owen


<nb> public class ActionToolbarImpl extends JPanel implements ActionToolbar {
 add ( mySecondaryActionsButton ) ;
 }

 - if ( Registry . is ( STRING0 ) && ( ActionPlaces . MAIN_TOOLBAR . equals ( myPlace ) || ActionPlaces . NAVIGATION_BAR . equals ( myPlace ) ) ) {
 + if ( ( ActionPlaces . MAIN_TOOLBAR . equals ( myPlace ) || ActionPlaces . NAVIGATION_BAR . equals ( myPlace ) ) ) {
 final AnAction searchEverywhereAction = ActionManager . getInstance ( ) . getAction ( STRING1 ) ;
 if ( searchEverywhereAction != null ) {
 try {


<nb> class HttpChannelOverHttp extends HttpChannel implements HttpParser . RequestHandl
 public void abort ( )
 {
 super . abort ( ) ;
 - _generator . setPersistent ( false ) ;
 + _httpConnection . _generator . setPersistent ( false ) ;
 }

 @ override
 <nb> public class HttpConnection extends AbstractConnection implements Runnable , Http
 _sendCallback . iterate ( ) ;
 }

 - super . abort ( ) ;
 private class SendCallback extends IteratingCallback
 {
 private ResponseInfo _info ;
 <nb> public class DecoderReaderTest
 }

 SINGLE
 - @ ignore
 @ test
 @ ignore ( STRING0 )
 public void testTwoQuotes ( ) throws Exception


<nb> public interface UndertowServletMessages {

 @ message ( id = NUMBER0 , value = STRING0 )
 IllegalArgumentException invalidRequestResponseType ( ServletRequest request , ServletResponse response ) ;
 +
 + @ message ( id = NUMBER1 , value = STRING1 )
 + IllegalStateException asyncRequestAlreadyReturnedToContainer ( ) ;
 }
 <nb> public class AsyncContextImpl implements AsyncContext {

 @ override
 public void setTimeout ( final long timeout ) {
 - this . timeout = timeout ;
 if ( initialRequestDone ) {
 - updateTimeout ( ) ;
 + throw UndertowServletMessages . MESSAGES . asyncRequestAlreadyReturnedToContainer ( ) ;
 }
 + this . timeout = timeout ;
 }

 @ override

Throw IllegalStateException when calling setTimeout if request has already returned to container


<nb> public class BlockScanner implements Iterable < BlockPos > {
 if ( pos . getY ( ) < box . yMax ) {
 pos = pos . up ( ) ;
 } else {
 - pos = new BlockPos ( pos . getX ( ) , box . yMax , pos . getZ ( ) + NUMBER0 ) ;
 + pos = new BlockPos ( pos . getX ( ) , box . yMin , pos . getZ ( ) + NUMBER0 ) ;
 }
 }

 <nb> public class PipeTransportPower extends PipeTransport implements IDebuggable {
 PacketPowerUpdate packet = new PacketPowerUpdate ( container ) ;

 packet . displayPower = displayPower ;
 + packet . displayFlow = displayFlow ;
 packet . overload = isOverloaded ( ) ;
 BuildCraftTransport . instance . sendToPlayers ( packet , container . getWorld ( ) , container . getPos ( ) , DefaultProps . PIPE_CONTENTS_RENDER_DIST ) ;
 }

Fix a crash with power packets and fix architects not scanning properly


<nb> public class WelcomeActivity extends Activity {
 @ override
 public void onClick ( DialogInterface dialog , int which ) {

 - Locale locale = new Locale ( getResources ( ) . getStringArray ( R . array . languages_values ) [ which ] ) ;
 - ImApp . setNewLocale ( WelcomeActivity . this . getBaseContext ( ) , locale ) ;
 -
 - Intent intent = getIntent ( ) ;
 - finish ( ) ;
 - startActivity ( intent ) ;
 + String [ ] locs = getResources ( ) . getStringArray ( R . array . languages_values ) ;

 + if ( which < locs . length )
 + {
 + Locale locale = new Locale ( locs [ which ] ) ;
 + ImApp . setNewLocale ( WelcomeActivity . this . getBaseContext ( ) , locale ) ;
 +
 + Intent intent = getIntent ( ) ;
 + finish ( ) ;
 + startActivity ( intent ) ;
 + }
 }
 } ) ;

setup menu based locale selection instead of system locales


<nb> public class CompilerOptions implements Serializable , Cloneable {
 boolean acceptConstKeyword ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + boolean inferConsts = true ;
 +
 + SINGLE
 + public void setInferConst ( boolean value ) {
 + inferConsts = value ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DefaultPassConfig extends PassConfig {
 }

 checks . add ( checkVars ) ;
 - checks . add ( inferConsts ) ;
 +
 + if ( options . inferConsts ) {
 + checks . add ( inferConsts ) ;
 + }

 if ( options . computeFunctionSideEffects ) {
 checks . add ( checkRegExp ) ;
 <nb> public class DefaultPassConfig extends PassConfig {
 passes . add ( collapseProperties ) ;
 }

 - passes . add ( inferConsts ) ;
 + if ( options . inferConsts ) {
 + passes . add ( inferConsts ) ;
 + }

 SINGLE
 SINGLE

Re allow the option to turn off the inferConst pass


<nb> public abstract class AbstractTestResourceSet {
 SINGLE
 optional . add ( getMount ( ) + STRING0 ) ;
 optional . add ( STRING1 ) ;
 - SINGLE
 - optional . add ( STRING2 ) ;

 for ( String result : results ) {
 Assert . assertTrue ( result ,

Remove the hack for running tests in parallel without failures


<nb> public class PackageManagerService extends IPackageManager . Stub {
 }
 }

 + SINGLE
 + mDefaultPermissionPolicy . grantDefaultPermissions ( userId ) ;
 +
 if ( needsWrite ) {
 mSettings . writeRuntimePermissionsForUserLPr ( userId , true ) ;
 }

Ensure default permissions not dropped on data wipe


<nb> public abstract class Structure {
 }
 else if ( nativeType == String . class ) {
 Pointer p = memory . getPointer ( offset ) ;
 - result = p != null ? new NativeString ( p , false ) . toString ( ) : null ;
 + result = p != null ? p . getString ( NUMBER0 , false ) : null ;
 }
 else if ( nativeType == WString . class ) {
 Pointer p = memory . getPointer ( offset ) ;
 - result = p != null ? new NativeString ( p , true ) . toString ( ) : null ;
 + result = p != null ? new WString ( p . getString ( NUMBER0 , true ) ) : null ;
 }
 else if ( Callback . class . isAssignableFrom ( nativeType ) ) {
 SINGLE


<nb> public abstract class AbstractFuture < V > implements ListenableFuture < V > {
 COMMENT
 COMMENT
 private static final class Waiter {
 - static final Waiter TOMBSTONE ;
 -
 - static {
 - Waiter waiter = new Waiter ( ) ;
 - waiter . next = null ;
 - TOMBSTONE = waiter ;
 - }
 + static final Waiter TOMBSTONE = new Waiter ( false COMMENT ) ;

 @ nullable volatile Thread thread ;
 @ nullable volatile Waiter next ;

 + SINGLE
 + SINGLE
 + Waiter ( boolean ignored ) { }
 +
 Waiter ( ) {
 SINGLE
 ATOMIC_HELPER . putThread ( this , Thread . currentThread ( ) ) ;

Fix a class loading ordering bug on android


<nb> public abstract class Neurons {
 }
 ncats ++ ;
 }
 - final int n = data . length - ( _dinfo . _weights ? NUMBER0 : NUMBER1 ) - ( _dinfo . _offset ? NUMBER0 : NUMBER1 ) ;
 - for ( ; i < n ; ++ i ) {
 + for ( ; i < data . length ; ++ i ) {
 double d = data [ i ] ;
 if ( _dinfo . _normMul != null ) d = ( d - _dinfo . _normSub [ i - _dinfo . _cats ] ) * _dinfo . _normMul [ i - _dinfo . _cats ] ;
 nums [ i - _dinfo . _cats ] = d ; SINGLE

Was not activating the last input neuron during cross validation


<nb>
 package NAMESPACE ;

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

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

 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public class WebServer {
 private static final Logger LOG = Logger . getInstance ( WebServer . class ) ;

 public WebServer ( ) {
 - ExecutorService executor = Executors . newCachedThreadPool ( ) ;
 - channelFactory = new NioServerSocketChannelFactory ( executor , executor , NUMBER0 ) ;
 + final Executor pooledThreadExecutor = new Executor ( ) {
 + @ override
 + public void execute ( Runnable command ) {
 + ApplicationManager . getApplication ( ) . executeOnPooledThread ( command ) ;
 + }
 + } ;
 + channelFactory = new NioServerSocketChannelFactory ( pooledThreadExecutor , pooledThreadExecutor , NUMBER0 ) ;
 }

 public boolean isRunning ( ) {


<nb> public class Settings {
 URL url = new URL ( urlAsString ) ;
 List < ResolveInfo > tempResolveInfos = new ArrayList < > ( ) ;
 if ( ! urlAsString . equals ( mContext . getString ( R . string . empty_bubble_page ) ) ) {
 - tempResolveInfos = Settings . get ( ) . getAppsThatHandleUrl ( urlAsString , packageManager ) ;
 + tempResolveInfos = getAppsThatHandleUrl ( urlAsString , packageManager ) ;
 }
 final List < ResolveInfo > resolveInfos = tempResolveInfos ;


<nb> public class GrailsClassUtils {
 }
 }

 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static PropertyDescriptor getPropertyDescriptorForValue ( Object instance , Object propertyValue ) {
 + if ( instance == null || propertyValue == null )
 + return null ;
 +
 + BeanWrapper wrapper = new BeanWrapperImpl ( instance ) ;
 + PropertyDescriptor [ ] descriptors = wrapper . getPropertyDescriptors ( ) ;
 +
 + for ( int i = NUMBER0 ; i < descriptors . length ; i ++ ) {
 + Object value = wrapper . getPropertyValue ( descriptors [ i ] . getName ( ) ) ;
 + if ( propertyValue . equals ( value ) )
 + return descriptors [ i ] ;
 + }
 + return null ;
 + }
 COMMENT
 COMMENT
 COMMENT

Added new method to retrieve a property descriptor by value


<nb> public class StackedFragment extends Fragment {
 . setXLabels ( XController . LabelPosition . OUTSIDE )
 . setYAxis ( false )
 . setYLabels ( YController . LabelPosition . NONE )
 - . setThresholdLine ( NUMBER0 , thresPaint ) ;
 + . setValueThreshold ( FLOAT0 , FLOAT0 , thresPaint ) ;

 int [ ] order = { NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , NUMBER7 , NUMBER8 , NUMBER9 , NUMBER10 , NUMBER11 , NUMBER12 } ;
 stackedChart . show ( new Animation ( )

Adapted code to setThresholdValue implementation


<nb> public abstract class FragmentManager {
 public static final int POP_BACK_STACK_INCLUSIVE = NUMBER0 < < NUMBER1 ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public abstract void popBackStack ( ) ;


<nb> public class SQLServer2005Dialect extends SQLServerDialect {

 @ override
 public int convertToFirstRowValue ( int zeroBasedFirstResult ) {
 - SINGLE
 + SINGLE
 return zeroBasedFirstResult + NUMBER0 ;
 }


<nb> public class Constants {

 public static final String CUSTOM_ANALYSIS_SETTINGS_PREFIX = STRING0 ;

 + public static final int MAX_SHARD_MISSING_RETRIES = NUMBER0 ;
 }
 <nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class TransportBaseSQLAction < TRequest extends SQLBaseRequest , TR

 public static final String NODE_READ_ONLY_SETTING = STRING1 ;

 - public static final int MAX_SHARD_MISSING_RETRIES = NUMBER0 ;
 private static final int DEFAULT_SOFT_LIMIT = NUMBER1 ;

 <nb> public abstract class TransportBaseSQLAction < TRequest extends SQLBaseRequest , TR

 @ override
 public void onFailure ( Throwable e ) {
 - if ( attempt <= MAX_SHARD_MISSING_RETRIES && Exceptions . isShardFailure ( e ) ) {
 + if ( attempt <= Constants . MAX_SHARD_MISSING_RETRIES && Exceptions . isShardFailure ( e ) ) {
 attempt += NUMBER2 ;
 killAndRetry ( ) ;
 } else {

moves MAX_SHARD_MISSING_RETRIES to Constants


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class RequestMappingIntegrationTests extends AbstractHttpHandlerIntegrati

 @ requestmapping ( STRING0 )
 public Publisher < Long > stringStreamResponseBody ( ) {
 - COMMENT
 - TODO: replace the following line with :
 - return Flux . interval ( Duration . ofMillis ( NUMBER0 ) ) . take ( NUMBER1 ) ;
 - to make the build last shorter . Unfortunately , this hangs the build as of
 - FLOAT0
 - COMMENT
 - return Flux . interval ( Duration . ofSeconds ( NUMBER2 ) ) . take ( NUMBER1 ) ;
 + return Flux . interval ( NUMBER0 ) . take ( NUMBER1 ) ;
 }

 @ requestmapping ( STRING1 )


<nb>

 package NAMESPACE ;

 + import static NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BazelJavaSemantics implements JavaSemantics {
 boolean createExecutable = ruleContext . attributes ( ) . get ( STRING0 , Type . BOOLEAN ) ;
 String mainClass = getMainClassInternal ( ruleContext , javaCommon ) ;

 - if ( ! createExecutable && ! mainClass . isEmpty ( ) ) {
 + if ( ! createExecutable && ! isNullOrEmpty ( mainClass ) ) {
 ruleContext . ruleError ( STRING1 ) ;
 }

 - if ( createExecutable && mainClass . isEmpty ( ) ) {
 + if ( createExecutable && isNullOrEmpty ( mainClass ) ) {
 if ( javaCommon . getSrcsArtifacts ( ) . isEmpty ( ) ) {
 ruleContext . ruleError ( STRING2 ) ;
 }

Fixes an NPE in BazelJavaSemantics checkMainClass that would occur when


<nb> public class PeopleListFragment extends Fragment {
 mFilteredRecyclerView . setLogT ( AppLog . T . PEOPLE ) ;
 mFilteredRecyclerView . setSwipeToRefreshEnabled ( false ) ;

 + SINGLE
 + mFilteredRecyclerView . setToolbarBackgroundColor ( ContextCompat . getColor ( getActivity ( ) , R . color . blue_medium ) ) ;
 + mFilteredRecyclerView . setToolbarSpinnerTextColor ( ContextCompat . getColor ( getActivity ( ) , R . color . white ) ) ;
 + mFilteredRecyclerView . setToolbarSpinnerDrawable ( R . drawable . arrow ) ;
 + mFilteredRecyclerView . setToolbarLeftAndRightPadding (
 + getResources ( ) . getDimensionPixelSize ( R . dimen . margin_filter_spinner ) ,
 + getResources ( ) . getDimensionPixelSize ( R . dimen . margin_none ) ) ;
 +
 mFilteredRecyclerView . setFilterListener ( new FilteredRecyclerView . FilterListener ( ) {
 @ override
 public List < FilterCriteria > onLoadFilterCriteriaOptions ( boolean refresh ) {


<nb> public final class ShellUtils {
 }
 }

 - COMMENT
 + COMMENT
 public String getOutput ( ) {
 return ( mOutput == null ) ? STRING0 : mOutput . toString ( ) ;
 }
 <nb> public class TachyonConfTest {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 @ test
 public void commonDefaultTest ( ) {


<nb> public class EncodingManager
 COMMENT
 public List < FlagEncoder > fetchEdgeEncoders ( )
 {
 - if ( edgeEncoders . isEmpty ( ) )
 - throw new IllegalStateException ( STRING0 ) ;
 -
 List < FlagEncoder > list = new ArrayList < FlagEncoder > ( ) ;
 list . addAll ( edgeEncoders ) ;
 return list ;
 <nb> public final class GraphHopperStorage implements GraphStorage , Graph
 SINGLE
 String flagEncodersStr = properties . get ( STRING1 ) ;

 - if ( encodingManager == null )
 - throw new IllegalStateException ( STRING2 ) ;
 -
 if ( ! flagEncodersStr . isEmpty ( ) && ! encodingManager . toDetailsString ( ) . equalsIgnoreCase ( flagEncodersStr ) )
 {
 throw new IllegalStateException ( STRING3 + encodingManager . toDetailsString ( )


<nb> public class UsersResource extends RestResource {
 }

 Map < String , Object > result = Maps . newHashMap ( ) ;
 - result . put ( STRING0 , id . toStringMongod ( ) ) ;
 + result . put ( STRING1 , id . toStringMongod ( ) ) ;

 return Response . status ( Response . Status . CREATED ) . entity ( json ( result ) ) . build ( ) ;
 }
 <nb> public class UsersResource extends RestResource {

 private HashMap < String , Object > toMap ( User user , boolean includePermissions ) {
 final HashMap < String , Object > map = Maps . newHashMap ( ) ;
 + map . put ( STRING1 , user . getId ( ) . toString ( ) ) ;
 map . put ( STRING2 , user . getName ( ) ) ;
 map . put ( STRING3 , user . getFullName ( ) ) ;
 if ( includePermissions ) {

include user id even though it s deprecated in the response


<nb>
 package NAMESPACE ;

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

 public final class DebuggerSupportUtils {
 @ nullable
 - public static PsiElement getContextElement ( @ notnull VirtualFile virtualFile , int offset , @ notnull Project project ) {
 - return XDebuggerUtil . getInstance ( ) . findContextElement ( virtualFile , offset , project , true ) ;
 + public static XSourcePosition calcSourcePosition ( @ nullable PsiElement element ) {
 + if ( element != null ) {
 + PsiElement navigationElement = element . getNavigationElement ( ) ;
 + VirtualFile file = navigationElement . getContainingFile ( ) . getVirtualFile ( ) ;
 + if ( file != null ) {
 + return XDebuggerUtil . getInstance ( ) . createPositionByOffset ( file , navigationElement . getTextOffset ( ) ) ;
 + }
 + }
 + return null ;
 }
 }


<nb> public class IrcStack

 SINGLE
 SINGLE
 - final IrcConnection connection =
 - new IrcConnection ( this . provider , this . params ,
 - new SynchronizedIRCApi ( irc ) ) ;
 - this . session . set ( connection ) ;
 -
 - SINGLE
 - this . provider
 - . setCurrentRegistrationState ( RegistrationState . REGISTERED ) ;
 + this . session . set ( new IrcConnection ( this . provider , this . params ,
 + new SynchronizedIRCApi ( irc ) ) ) ;
 }
 catch ( IOException e )
 {
 <nb> public class IrcStack
 throw e ;
 }
 }
 +
 + SINGLE
 + SINGLE
 + this . provider
 + . setCurrentRegistrationState ( RegistrationState . REGISTERED ) ;
 }

 COMMENT

Move fireRegistration informing listeners outside of critical section


<nb> public class JavaMode extends Mode {
 if ( suggestionsMap . containsKey ( key ) ) {
 suggestionsMap . get ( key ) . add ( val ) ;
 } else {
 - HashSet < String > al = new HashSet < > ( ) ;
 - al . add ( val ) ;
 - suggestionsMap . put ( key , al ) ;
 + HashSet < String > set = new HashSet < > ( ) ;
 + set . add ( val ) ;
 + suggestionsMap . put ( key , set ) ;
 }
 }
 }
 }
 + br . close ( ) ;
 } catch ( IOException e ) {
 Messages . loge ( STRING0
 + suggestionsListFile . getAbsolutePath ( ) ) ;

making sure to close the buffered reader


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - @ runwith ( Arquillian . class )
 + SINGLE
 public class ExecutorInvokeAllServletTest {

 @ resource ( name = STRING0 )
 <nb> public class ExecutorInvokeAllServletTest {
 COMMENT
 COMMENT
 COMMENT
 - @ deployment
 - @ targetscontainer ( STRING1 )
 + SINGLE
 + SINGLE
 public static WebArchive createDeployment ( ) {
 WebArchive war = ShrinkWrap . create ( WebArchive . class ) .
 addClass ( MyCallableTask . class ) .

Commenting Arquillian dependencies for now


<nb> public class StorageService implements IEndpointStateChangeSubscriber , StorageSe
 operationMode = m ;
 if ( log )
 logger_ . info ( m ) ;
 + else
 + logger_ . debug ( m ) ;
 }

 private void bootstrap ( Token token ) throws IOException

include all mode setting messages at debug level


<nb> public class JsonSchemaMappingsView implements Disposable {
 }

 private static String getRelativePath ( @ notnull Project project , @ notnull String text ) {
 + text = text . trim ( ) ;
 if ( project . isDefault ( ) ) return text ;
 if ( StringUtil . isEmptyOrSpaces ( text ) ) return text ;
 - final String relativePath = FileUtil . getRelativePath ( new File ( project . getBasePath ( ) ) , new File ( text ) ) ;
 + final File ioFile = new File ( text ) ;
 + if ( ! ioFile . isAbsolute ( ) ) return text ;
 + final String relativePath = FileUtil . getRelativePath ( new File ( project . getBasePath ( ) ) , ioFile ) ;
 return relativePath == null ? text : relativePath ;
 }
 }

improve fields values validation in Add JSON Schema Mapping dialog


<nb> public class AbstractQueueVisitor {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - public void interrupt ( ) {
 - setInterrupted ( ) ;
 - reallyAwaitTermination ( true ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Delete unused method in AbstractQueueVisitor


<nb> public class EditorFragment extends EditorFragmentAbstract {
 AppLog . e ( T . EDITOR , e . getMessage ( ) ) ;
 }

 - SINGLE
 + SINGLE
 + mWebView . loadUrl ( STRING0 + STRING1 + STRING2 ) ;
 mWebView . loadUrl ( STRING3 + htmlFile + STRING2 ) ;
 }
 } ) ;


<nb> public class TestAuthorizationCodeAccessTokenProvider {
 assertEquals ( STRING0 , params . getFirst ( STRING1 ) ) ;
 assertEquals ( STRING2 , params . getFirst ( STRING3 ) ) ;
 assertEquals ( STRING4 , params . getFirst ( STRING5 ) ) ;
 - assertEquals ( STRING6 , params . getFirst ( STRING7 ) ) ;
 + SINGLE
 + assertEquals ( null , params . getFirst ( STRING7 ) ) ;
 }

 }

fix broken test making wrong assumption about state parameter


<nb> public class TMXLoader {
 SINGLE

 public TMXTiledMap load ( final Context pContext , final InputStream pInputStream ) throws IOException , SAXException , ParserConfigurationException {
 - COMMENT
 final SAXParserFactory spf = SAXParserFactory . newInstance ( ) ;
 final SAXParser sp = spf . newSAXParser ( ) ;

 <nb> public class TMXLoader {
 final TMXParser tmxParser = new TMXParser ( ) ;
 xr . setContentHandler ( tmxParser ) ;

 - COMMENT
 - SINGLE
 - SINGLE
 - SINGLE
 xr . parse ( new InputSource ( new BufferedInputStream ( pInputStream ) ) ) ;

 return tmxParser . getTMXTiledMap ( ) ;


<nb> public class LuceneDocCollector extends Collector implements CrateCollector , Row
 visitorEnabled = fieldsVisitor . required ( ) ;
 shardContext . acquireContext ( ) ;
 Query query = searchContext . query ( ) ;
 - if ( query == null ) {
 - query = new MatchAllDocsQuery ( ) ;
 - }
 + assert query != null : STRING0 ;

 SINGLE
 try {

remove query null handling in LuceneDocCollector


<nb> public class PrincipalGroupCallback {
 return callerPrincipalCallback . getSubject ( ) ;
 }
 if ( groupPrincipalCallback != null ) {
 - return callerPrincipalCallback . getSubject ( ) ;
 + return groupPrincipalCallback . getSubject ( ) ;
 }
 return null ;
 }

Fix copy paste error spotted by FindBugs


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 - @ contextconfiguration
 public class SpringElasticsearchTest extends CamelSpringTestSupport {

 @ produce ( uri = STRING0 )

Removed the obsolete ContextConfiguration annotation


<nb> public class Scope implements StaticScope {
 COMMENT
 Scope ( Scope parent , Node rootNode ) {
 Preconditions . checkNotNull ( parent ) ;
 + Preconditions . checkNotNull ( rootNode ) ;
 Preconditions . checkArgument (
 rootNode != parent . rootNode ,
 STRING0 , rootNode , parent . rootNode ) ;
 <nb> public class Scope implements StaticScope {
 }

 protected Scope ( Node rootNode ) {
 + Preconditions . checkNotNull ( rootNode ) ;
 this . parent = null ;
 this . rootNode = rootNode ;
 this . depth = NUMBER0 ;
 <nb> public class Scope implements StaticScope {
 return isBlockScope ( ) && parent != null && parent . getRootNode ( ) . isFunction ( ) ;
 }

 + public boolean isFunctionScope ( ) {
 + return getRootNode ( ) . isFunction ( ) ;
 + }
 +
 public Scope getClosestHoistScope ( ) {
 Scope current = this ;
 while ( current != null ) {

Added an isFunctionScope and scopeRoot null check to Scope java


<nb> public class HlsSampleSource implements SampleSource , Loader . Callback {
 if ( ! currentLoadableExceptionFatal ) {
 clearCurrentLoadable ( ) ;
 }
 - if ( enabledTrackCount > NUMBER0 ) {
 + if ( enabledTrackCount > NUMBER0 || ! prepared ) {
 maybeStartLoading ( ) ;
 - } else {
 - clearState ( ) ;
 - loadControl . trimAllocator ( ) ;
 }
 }

Allow multiple chunk loads to prepare a HLS stream


<nb> public class LeveledManifest
 logger . debug ( STRING0 , old ) ;
 }
 }
 - logger . warn ( STRING1 , cfs . columnFamily ) ;
 + logger . warn ( STRING1 , cfs . getColumnFamilyName ( ) ) ;
 }
 }


<nb> final class SimpleConfig implements Config , MergeableValue , Serializable {
 l . add ( n ) ;
 } else {
 throw new ConfigException . WrongType ( v . origin ( ) , path ,
 - STRING0 + unit . name ( ) ,
 + STRING1 ,
 v . valueType ( ) . name ( ) ) ;
 }
 }

Fix exception text for bad duration value


<nb> public class Post implements Serializable {
 private String password ;
 private String postFormat ;
 private String slug ;
 + private String postThumbnail ;
 private boolean localDraft ;
 private boolean uploaded ;
 private boolean mIsUploading ;
 <nb> public class Post implements Serializable {
 public boolean isPublishable ( ) {
 return ! ( getContent ( ) . isEmpty ( ) && getPostExcerpt ( ) . isEmpty ( ) && getTitle ( ) . isEmpty ( ) ) ;
 }
 +
 + public void setPostThumbnail ( String thumbnail ) {
 + this . postThumbnail = StringUtils . notNullStr ( thumbnail ) ;
 + }
 + public String getPostThumbnail ( ) {
 + return StringUtils . notNullStr ( postThumbnail ) ;
 + }
 + public boolean hasPostThumbnail ( ) {
 + return ! TextUtils . isEmpty ( postThumbnail ) ;
 + }
 }


<nb> public final class K2JSCompiler implements TranslatingCompiler {
 args . add ( STRING0 ) ;
 args . add ( libLocationAndTarget . second ) ;
 }
 +
 + SINGLE
 + args . add ( STRING1 ) ;
 }

 private static void addPathToSourcesDir ( @ notnull VirtualFile [ ] sourceFiles , @ notnull ArrayList < String > args ) {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class ViewOverlayPreJellybean extends FrameLayout {
 }

 @ override
 + public boolean dispatchTouchEvent ( MotionEvent ev ) {
 + SINGLE
 + return false ;
 + }
 +
 + @ override
 public void removeView ( View view ) {
 super . removeView ( view ) ;
 ViewUtils . setLayoutParamsSilently ( view , ( ViewGroup . LayoutParams )

disable touch handling for backported overlay


<nb> public class GroovyAnnotator extends GroovyElementVisitor implements Annotator {
 private void highlightNamedArgs ( GrNamedArgument [ ] namedArguments ) {
 for ( GrNamedArgument namedArgument : namedArguments ) {
 final GrArgumentLabel label = namedArgument . getLabel ( ) ;
 - if ( label != null && label . getExpression ( ) == null ) {
 + if ( label != null && label . getExpression ( ) == null && label . getNameElement ( ) . getNode ( ) . getElementType ( ) != GroovyTokenTypes . mSTAR ) {
 myHolder . createInfoAnnotation ( label , null ) . setTextAttributes ( DefaultHighlighter . MAP_KEY ) ;
 }
 }

don t highlight in named argument label as string


<nb> public class PyResolveUtil {
 COMMENT
 @ nullable
 public static PsiElement treeCrawlUp ( PsiScopeProcessor processor , boolean fromunder , PsiElement elt , PsiElement roof ) {
 - if ( elt == null ) return null ; SINGLE
 + if ( elt == null || ! elt . isValid ( ) ) return null ; SINGLE
 PsiElement seeker = elt ;
 PsiElement cap = PyUtil . getConcealingParent ( elt ) ;
 final boolean is_outside_param_list = PsiTreeUtil . getParentOfType ( elt , PyParameterList . class ) == null ;
 do {
 ProgressManager . checkCanceled ( ) ;
 - if ( ! seeker . isValid ( ) ) return null ;
 if ( fromunder ) {
 fromunder = false ; SINGLE
 seeker = getPrevNodeOf ( PsiTreeUtil . getDeepestLast ( seeker ) , processor ) ;


<nb> public abstract class MRTask < T extends MRTask < T > > extends DTask < T > implements Fo
 COMMENT
 @ override public final void dinvoke ( H2ONode sender ) {
 setupLocal0 ( ) ; SINGLE
 - try {
 - compute2 ( ) ; SINGLE
 - } catch ( Throwable ex ) { setException ( ex ) ; throw ex ; }
 - SINGLE
 + H2O . submitTask ( this ) ;
 }

 SINGLE

Changed MRTask s dinvoke to call submitTask to get standard fj error handling


<nb> public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public void clearFocus ( ) {
 if ( DBG ) {


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

Remove cyclic package dependency in xmlsecurity component


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

 <nb> public class FileTreeWatcherTest {

 Thread . sleep ( NUMBER0 ) ;

 - verify ( notificationHandler ) . started ( eq ( testDirectory ) ) ;
 + verify ( notificationHandler , timeout ( NUMBER1 ) ) . started ( eq ( testDirectory ) ) ;
 }

 @ test
 <nb> public class FileTreeWatcherTest {
 fileWatcherTestTree . createFile ( STRING0 ) ;
 Thread . sleep ( NUMBER2 ) ;

 - verify ( notificationHandler ) . errorOccurred ( eq ( testDirectory ) , eq ( error ) ) ;
 + verify ( notificationHandler , timeout ( NUMBER1 ) ) . errorOccurred ( eq ( testDirectory ) , eq ( error ) ) ;
 }

 private FileWatcherNotificationHandler aNotificationHandler ( ) {
 return mock ( FileWatcherNotificationHandler . class ) ;
 }
 - }
 + }


<nb> public class Nio2Endpoint extends AbstractJsseEndpoint < Nio2Channel > {
 COMMENT
 COMMENT
 protected boolean setSocketOptions ( AsynchronousSocketChannel socket ) {
 - SINGLE
 try {
 socketProperties . setProperties ( socket ) ;
 Nio2Channel channel = nioChannels . pop ( ) ;

Remove redundant comment trigger another CI run


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class WelcomeScreenHider implements OnWelcomeScreenPageChangeListener {
 if ( ! enabled )
 return ;

 - if ( position == mLastPage - NUMBER0 ) {
 + if ( Build . VERSION . SDK_INT >= NUMBER1 && position == mLastPage - NUMBER0 ) {
 mView . setAlpha ( NUMBER0 - positionOffset ) ;
 }


<nb> public class ShellWidget extends Composite implements ShellDisplay ,
 RootPanel . get ( ) . remove ( widthChecker ) ;

 SINGLE
 - int pointsPerCharacter = labelWidth / text . length ( ) ;
 + float pointsPerCharacter = ( float ) labelWidth / ( float ) text . length ( ) ;

 SINGLE
 int clientWidth = getElement ( ) . getClientWidth ( ) ;
 <nb> public class ShellWidget extends Composite implements ShellDisplay ,

 SINGLE
 final int RIGHT_CHARACTER_PAD = NUMBER0 ;
 - int width = ( clientWidth / pointsPerCharacter ) - RIGHT_CHARACTER_PAD ;
 -
 + int width = Math . round ( ( float ) clientWidth / pointsPerCharacter ) -
 + RIGHT_CHARACTER_PAD ;
 +
 SINGLE
 final int MINIMUM_WIDTH = NUMBER1 ;
 return Math . max ( width , MINIMUM_WIDTH ) ;

avoid integer truncation while computing console width


<nb> public class IQOwnerHandler {
 field = completedForm . getField ( STRING0 ) ;
 if ( field != null ) {
 values = field . getValues ( ) ;
 - room . setName ( ( values . hasNext ( ) ? ( String ) values . next ( ) : STRING1 ) ) ;
 + room . setNaturalLanguageName ( ( values . hasNext ( ) ? ( String ) values . next ( ) : STRING1 ) ) ;
 }

 field = completedForm . getField ( STRING2 ) ;
 <nb> public class IQOwnerHandler {
 try {
 FormField field = configurationForm . getField ( STRING0 ) ;
 field . clearValues ( ) ;
 - field . addValue ( room . getName ( ) ) ;
 + field . addValue ( room . getNaturalLanguageName ( ) ) ;

 field = configurationForm . getField ( STRING2 ) ;
 field . clearValues ( ) ;

Modified configuration form to edit the property naturalLanguageName instead of Name


<nb> import NAMESPACE ;
 public class PythonCompletionTest extends LightCodeInsightTestCase {

 private void doTest ( ) throws Exception {
 - final String testName = getTestName ( false ) ;
 + final String testName = getTestName ( true ) ;
 configureByFile ( testName + STRING0 ) ;
 new CodeCompletionHandler ( ) . invoke ( getProject ( ) , getEditor ( ) , getFile ( ) ) ;
 checkResultByFile ( testName + STRING1 ) ;


<nb> import NAMESPACE ;

 import NAMESPACE ;

 - abstract class ZLTreeAdapter extends BaseAdapter implements AdapterView . OnItemClickListener , View . OnCreateContextMenuListener {
 + public abstract class ZLTreeAdapter extends BaseAdapter implements AdapterView . OnItemClickListener , View . OnCreateContextMenuListener {
 final ZLTree < ? > Root ;
 private final ListView myParent ;
 private ZLTree < ? > [ ] myItems ;
 private final HashSet < ZLTree < ? > > myOpenItems = new HashSet < ZLTree < ? > > ( ) ;
 - protected ZLTree < ? > mySelectedTree ;

 protected ZLTreeAdapter ( ListView parent , ZLTree < ? > root ) {
 myParent = parent ;
 <nb> abstract class ZLTreeAdapter extends BaseAdapter implements AdapterView . OnItemCl
 }

 public final void selectItem ( ZLTree < ? > tree ) {
 - mySelectedTree = tree ;
 if ( tree == null ) {
 return ;
 }


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public abstract class ImmutableCollection < E >

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - abstract static class Builder < E > {
 + @ beta
 + public abstract static class Builder < E > {
 +
 + Builder ( ) {
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class NetworkClassLoader extends ClassLoader {
 SINGLE
 SINGLE
 SINGLE
 + SINGLE
 + SINGLE
 String filename = cl . getName ( ) . replace ( STRING0 , STRING1 ) + STRING2 ;
 InputStream in = null ;
 logger . debug ( STRING3 + cl . getCanonicalName ( ) ) ;

Added url explaining the problem in deep


<nb> public class CustomMaven3ArtifactResolver
 }
 }

 - private RepositorySystemSession getSession ( ArtifactRepository localRepository ) {
 - RepositorySystemSession session =
 - LegacyLocalRepositoryManager . overlay ( localRepository , legacySupport . getRepositorySession ( ) , repoSystem ) ;
 + public static RepositorySystemSession createSession ( ArtifactRepository localRepository , RepositorySystemSession session , RepositorySystem repoSystem ) {
 + RepositorySystemSession res =
 + LegacyLocalRepositoryManager . overlay ( localRepository , session , repoSystem ) ;

 - return new FilterRepositorySystemSession ( session ) {
 + return new FilterRepositorySystemSession ( res ) {
 @ override
 public LocalRepository getLocalRepository ( ) {
 return getLocalRepositoryManager ( ) . getRepository ( ) ; SINGLE
 <nb> public class CustomMaven3ArtifactResolver
 } ;
 }

 + private RepositorySystemSession getSession ( ArtifactRepository localRepository ) {
 + return createSession ( localRepository , legacySupport . getRepositorySession ( ) , repoSystem ) ;
 + }
 +
 private void injectSession1 ( RepositoryRequest request , MavenSession session )
 {
 if ( session != null )


<nb> import NAMESPACE ;
 public interface GL4 extends GL3 {
 public static final int GL_TESS_CONTROL_SHADER = NUMBER0 ;
 public static final int GL_TESS_EVALUATION_SHADER = NUMBER1 ;
 + public static final int GL_PATCHES = NUMBER2 ;
 }


<nb> public class TerrainFractalGridTest extends SimpleApplication {
 this . mat_terrain . setTexture ( STRING0 , rock ) ;
 this . mat_terrain . setVector3 ( STRING1 , new Vector3f ( NUMBER0 , NUMBER1 , this . rockScale ) ) ;

 - SINGLE
 this . mat_terrain . setTexture ( STRING2 , rock ) ;
 this . mat_terrain . setVector3 ( STRING3 , new Vector3f ( NUMBER0 , NUMBER1 , this . rockScale ) ) ;

 <nb> public class TerrainGridTest extends SimpleApplication {
 BulletAppState bulletAppState = new BulletAppState ( ) ;
 stateManager . attach ( bulletAppState ) ;

 -
 this . getCamera ( ) . setLocation ( new Vector3f ( NUMBER2 , NUMBER3 , NUMBER2 ) ) ;

 this . viewPort . setBackgroundColor ( new ColorRGBA ( FLOAT0 , FLOAT1 , FLOAT2 , FLOAT2 ) ) ;

fixed white terrain effect according to the forum


<nb> public class MongoOptions {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 @ deprecated
 public boolean slaveOk ;


<nb> public class GsmAlphabet {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static byte [ ] stringToGsm7BitPackedWithHeader ( String data , byte [ ] header )
 + throws EncodeException {
 + return stringToGsm7BitPackedWithHeader ( data , header , NUMBER0 , NUMBER0 ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add wrapper method to GsmAlphabet for API compatibility


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

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

 import NAMESPACE ;


<nb> public class ImportsResolver {
 }

 private void processImports ( boolean onlyClasses ) {
 - TemporaryBindingTrace temporaryTrace = TemporaryBindingTrace . create ( trace ) ; SINGLE
 for ( JetFile file : context . getNamespaceDescriptors ( ) . keySet ( ) ) {
 JetScope rootScope = context . getRootScope ( ) ;
 WritableScope namespaceScope = context . getNamespaceScopes ( ) . get ( file ) ;
 <nb> public class ImportsResolver {
 Collection < JetImportDirective > defaultImportDirectives = Lists . newArrayList ( ) ;
 configuration . addDefaultImports ( defaultImportDirectives ) ;
 for ( JetImportDirective defaultImportDirective : defaultImportDirectives ) {
 + TemporaryBindingTrace temporaryTrace = TemporaryBindingTrace . create ( trace ) ; SINGLE
 qualifiedExpressionResolver . processImportReference ( defaultImportDirective , rootScope , namespaceScope , delayedImporter , temporaryTrace , onlyClasses ) ;
 }

 <nb> public class ImportsResolver {
 trace . report ( USELESS_SIMPLE_IMPORT . on ( importedReference ) ) ;
 }
 }
 - }
 + }


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ResolvableType implements Serializable {
 COMMENT
 COMMENT
 COMMENT
 - private Object readResolve ( ) throws ObjectStreamException {
 + private Object readResolve ( ) {
 return ( this . type == null ? NONE : this ) ;
 }

Removed superfluous ObjectStreamException declaration


<nb> final class BasicOperationService implements InternalOperationService {
 Data data = packet . getData ( ) ;
 Response response = ( Response ) nodeEngine . toObject ( data ) ;

 - if ( response instanceof NormalResponse ) {
 - notifyRemoteCall ( ( NormalResponse ) response ) ;
 + if ( response instanceof NormalResponse || response instanceof CallTimeoutResponse ) {
 + notifyRemoteCall ( response ) ;
 } else if ( response instanceof BackupResponse ) {
 notifyBackupCall ( response . getCallId ( ) ) ;
 } else {
 <nb> final class BasicOperationService implements InternalOperationService {
 }

 SINGLE
 - private void notifyRemoteCall ( NormalResponse response ) {
 + private void notifyRemoteCall ( Response response ) {
 BasicInvocation invocation = invocations . get ( response . getCallId ( ) ) ;
 if ( invocation == null ) {
 if ( nodeEngine . isActive ( ) ) {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class XmlEmmetParser extends EmmetParser {
 super ( tokens , callback , generator ) ;
 PsiElement context = callback . getContext ( ) ;
 XmlTag parentTag = PsiTreeUtil . getParentOfType ( context , XmlTag . class ) ;
 - if ( surroundWithTemplate && parentTag != null ) {
 + if ( surroundWithTemplate && parentTag != null && context . getNode ( ) . getElementType ( ) == XmlTokenType . XML_START_TAG_START ) {
 parentTag = PsiTreeUtil . getParentOfType ( parentTag , XmlTag . class ) ;
 }
 if ( parentTag != null ) {


<nb> public class Image
 COMMENT
 COMMENT
 COMMENT
 - public int termLength ( )
 + public int termBufferLength ( )
 {
 return logBuffers . termLength ( ) ;
 }
 <nb> public class Publication implements AutoCloseable
 COMMENT
 COMMENT
 COMMENT
 - public int termLength ( )
 + public int termBufferLength ( )
 {
 return logBuffers . termLength ( ) ;
 }

Rename termLength to termBufferLength in Image and Publication


<nb> final class MultiServerCluster extends BaseCluster {

 @ override
 public void close ( ) {
 - if ( ! isClosed ( ) ) {
 - synchronized ( this ) {
 + synchronized ( this ) {
 + if ( ! isClosed ( ) ) {
 for ( final ServerTuple serverTuple : addressToServerTupleMap . values ( ) ) {
 serverTuple . server . close ( ) ;
 }
 <nb> final class MultiServerCluster extends BaseCluster {
 }

 private void onChange ( final ChangeEvent < ServerDescription > event ) {
 - if ( isClosed ( ) ) {
 - return ;
 - }
 -
 boolean shouldUpdateDescription = true ;
 synchronized ( this ) {
 + if ( isClosed ( ) ) {
 + return ;
 + }
 +
 ServerDescription newDescription = event . getNewValue ( ) ;

 if ( LOGGER . isTraceEnabled ( ) ) {

Fix race condition in MultiServerCluster checking whether the instance is closed


<nb> public final class NumberConversions {
 return floor == num ? floor : floor - ( int ) ( Double . doubleToRawLongBits ( num ) > > > NUMBER0 ) ;
 }

 + public static int ceil ( final double num ) {
 + final int floor = ( int ) num ;
 + return floor == num ? floor : floor + ( int ) ( ~ Double . doubleToRawLongBits ( num ) > > > NUMBER0 ) ;
 + }
 +
 public static int round ( double num ) {
 return floor ( num + FLOAT0 ) ;
 }


<nb> public class RefParameter extends AbstractParameter implements Parameter {
 if ( ref . startsWith ( STRING0 ) )
 return ref ;
 else
 - return STRING1 + ref ;
 + return STRING2 + ref ;
 }
 public void set$ref ( String ref ) {
 if ( ref . indexOf ( STRING2 ) == NUMBER0 )


<nb> public class MethodActionTransformer implements GrailsArtefactClassInjector {
 final MethodCallExpression validateMethodCallExpression = new MethodCallExpression (
 new VariableExpression ( paramName ) , STRING0 , EMPTY_TUPLE ) ;
 MethodNode validateMethod =
 - classNode . getMethod ( STRING0 , new Parameter [ NUMBER0 ] ) ;
 + paramTypeClassNode . getMethod ( STRING0 , new Parameter [ NUMBER0 ] ) ;
 if ( validateMethod != null ) {
 validateMethodCallExpression . setMethodTarget ( validateMethod ) ;
 }

get the validate method from the command object type not the controller type


<nb> public class NotificationsDetailActivity extends ActionBarActivity implements
 return ;
 }

 - SINGLE
 - if ( ! getIntent ( ) . getBooleanExtra ( NotificationsListFragment . NOTE_INSTANT_REPLY_EXTRA , false ) ) {
 - getWindow ( ) . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_STATE_HIDDEN ) ;
 - }
 -
 if ( SimperiumUtils . getNotesBucket ( ) != null ) {
 try {
 Note note = SimperiumUtils . getNotesBucket ( ) . get ( noteId ) ;
 <nb> public class NotificationsDetailActivity extends ActionBarActivity implements
 getSupportActionBar ( ) . setTitle ( StringUtils . notNullStr ( savedInstanceState . getString ( ARG_TITLE ) ) ) ;
 }

 + SINGLE
 + if ( ! getIntent ( ) . getBooleanExtra ( NotificationsListFragment . NOTE_INSTANT_REPLY_EXTRA , false ) ) {
 + getWindow ( ) . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_STATE_HIDDEN ) ;
 + }
 +
 GCMIntentService . clearNotificationsMap ( ) ;
 }

Always run the keyboard check in onCreate


<nb> public class Node implements Serializable {
 return token ;
 }

 - public Token getType ( ) {
 - return getToken ( ) ;
 - }
 -
 public void setToken ( Token token ) {
 this . token = token ;
 }

 - public void setType ( Token token ) {
 - setToken ( token ) ;
 - }
 -
 public boolean hasChildren ( ) {
 return first != null ;
 }

Remove getType and setType in favor of getToken and setToken


<nb>
 + 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 ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class SpecializedConcurrentBag < T >
 {
 static final int NOT_IN_USE = NUMBER0 ;

Add license header and class level javadoc


<nb> public class LeftRecursiveRuleTransformer {

 public RuleAST parseArtificialRule ( final Grammar g , String ruleText ) {
 ANTLRLexer lexer = new ANTLRLexer ( new ANTLRStringStream ( ruleText ) ) ;
 - GrammarASTAdaptor adaptor = new GrammarASTAdaptor ( ) ;
 + GrammarASTAdaptor adaptor = new GrammarASTAdaptor ( lexer . getCharStream ( ) ) ;
 CommonTokenStream tokens = new CommonTokenStream ( lexer ) ;
 lexer . tokens = tokens ;
 ToolANTLRParser p = new ToolANTLRParser ( tokens , tool ) ;

Construct GrammarASTAdaptor with CharStream from lexer


<nb> public class HttpServer {
 this . maxBody = maxBody ;
 }

 - void accept ( SelectionKey key , Selector selector ) throws IOException {
 + void accept ( SelectionKey key , Selector selector ) {
 ServerSocketChannel ch = ( ServerSocketChannel ) key . channel ( ) ;
 SocketChannel s ;
 - while ( ( s = ch . accept ( ) ) != null ) {
 - s . configureBlocking ( false ) ;
 - s . register ( selector , OP_READ , new HttpServerAtta ( maxBody , maxLine ) ) ;
 + try {
 + while ( ( s = ch . accept ( ) ) != null ) {
 + s . configureBlocking ( false ) ;
 + s . register ( selector , OP_READ , new HttpServerAtta ( maxBody , maxLine ) ) ;
 + }
 + } catch ( Exception e ) {
 + SINGLE
 + HttpUtils . printError ( STRING0 , e ) ;
 }
 }

do not shutdown server when Too many open files in system


<nb> package NAMESPACE ;

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

 <nb> public class RmStep extends ShellStep {
 args . add ( STRING0 ) ;
 }

 - args . add ( patternToDelete ) ;
 + Function < String , String > pathRelativizer = context . getProjectFilesystem ( ) . getPathRelativizer ( ) ;
 + args . add ( pathRelativizer . apply ( patternToDelete ) ) ;

 return args . build ( ) ;
 }


<nb>
 package NAMESPACE ;

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

 import NAMESPACE ;
 <nb> public class Group implements Cacheable {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 public boolean isUser ( JID user ) {
 + SINGLE
 + if ( user != null && user . getResource ( ) != null ) {
 + user = new JID ( user . toBareJID ( ) ) ;
 + }
 return user != null && ( members . contains ( user ) || administrators . contains ( user ) ) ;
 }


<nb> public class OnesideDiffViewer extends TextDiffViewerBase {
 @ override
 public JComponent getPreferredFocusedComponent ( ) {
 if ( ! myPanel . isGoodContent ( ) ) return null ;
 - return myEditor . getComponent ( ) ;
 + return myEditor . getContentComponent ( ) ;
 }

 @ notnull


<nb> public class Util {
 STRING0 ,
 STRING1 ,
 STRING2 ,
 + STRING3 ,
 + STRING4 ,
 + STRING5 , SINGLE
 + STRING6 , SINGLE
 STRING7 ,
 STRING8 ,
 STRING9 ,
 <nb> public class Util {
 }

 public static boolean isValidBrowserPackageName ( String packageName ) {
 - if ( packageName . equals ( BuildConfig . APPLICATION_ID ) || packageName . contains ( STRING10 ) || packageName . contains ( STRING11 ) ) {
 + if ( packageName . equals ( BuildConfig . APPLICATION_ID ) || packageName . contains ( STRING10 ) ) {
 + return false ;
 + }
 + if ( BuildConfig . APPLICATION_ID . contains ( STRING11 ) && packageName . contains ( STRING11 ) ) {
 + return false ;
 + }
 + else if ( BuildConfig . APPLICATION_ID . contains ( STRING12 ) && packageName . contains ( STRING12 ) ) {
 return false ;
 }

Removed linkbubble icon in brave and vice versa


<nb> public class CallTimeoutResponse extends Response implements IdentifiedDataSeria
 public int getId ( ) {
 return SpiDataSerializerHook . CALL_TIMEOUT_RESPONSE ;
 }
 +
 + @ override
 + public String toString ( ) {
 + final StringBuilder sb = new StringBuilder ( ) ;
 + sb . append ( STRING0 ) ;
 + sb . append ( STRING1 ) . append ( callId ) ;
 + sb . append ( STRING2 ) . append ( urgent ) ;
 + sb . append ( STRING3 ) ;
 + return sb . toString ( ) ;
 + }
 }


<nb> import static NAMESPACE ;
 public final class IssueAuthorizationDto extends Dto < String > implements Serializable {

 private String projectUuid ;
 - private String permission ;
 private List < String > groups = newArrayList ( ) ;
 private List < String > users = newArrayList ( ) ;


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb>
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public final class FileSystemMaster extends MasterBase {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


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

 SINGLE
 SINGLE
 <nb> public class MapExplorer implements OnGestureListener , IContextMenuProvider {
 @ override
 public boolean onFling ( MotionEvent e1 , MotionEvent e2 , float velocityX , float velocityY ) {
 if ( ( Build . VERSION . SDK_INT >= NUMBER0 ) || mapView . getSettings ( ) . SCROLL_MAP_BY_GESTURES . get ( ) )
 - return fallback . onFling ( e1 , e2 , velocityX , velocityY ) ;
 + return fallback . onFling ( e1 , e2 , velocityX / NUMBER1 , velocityY / NUMBER1 ) ;
 return true ;
 }


<nb> public class FancyButton extends LinearLayout {

 SINGLE
 private int mDefaultTextColor = Color . WHITE ;
 + private int mDefaultIconColor = Color . WHITE ;
 private int mTextPosition = NUMBER0 ;
 private int mDefaultTextSize = NUMBER1 ;
 private int mDefaultTextGravity = NUMBER2 ; SINGLE
 <nb> public class FancyButton extends LinearLayout {
 mFocusBackgroundColor = attrsArray . getColor ( R . styleable . FancyButtonsAttrs_focusColor , mFocusBackgroundColor ) ;

 mDefaultTextColor = attrsArray . getColor ( R . styleable . FancyButtonsAttrs_textColor , mDefaultTextColor ) ;
 + SINGLE
 + mDefaultIconColor = attrsArray . getColor ( R . styleable . FancyButtonsAttrs_iconColor , mDefaultTextColor ) ;
 mDefaultTextSize = ( int ) attrsArray . getDimension ( R . styleable . FancyButtonsAttrs_textSize , mDefaultTextSize ) ;
 mDefaultTextGravity = attrsArray . getInt ( R . styleable . FancyButtonsAttrs_textGravity , mDefaultTextGravity ) ;

Adding defaultIconColor and reading it from attributes


<nb> public class I18nManager implements I18n , ServerExtension , BatchExtension {
 LOG . debug ( String . format ( STRING0 , propertyToBundles . size ( ) ) ) ;
 }

 + public void stop ( ) {
 + i18nClassloader = null ;
 + propertyToBundles = null ;
 + fileContentCache = null ;
 + }
 +
 public String message ( Locale locale , String key , String defaultValue , Object . . . parameters ) {
 String bundleKey = propertyToBundles . get ( key ) ;
 String value = null ;
 <nb> public class PluginClassloaders {
 } catch ( Exception e ) {
 SINGLE
 }
 - world = null ;
 }
 + world = null ;
 + baseClassloader = null ;
 }
 }


<nb> public abstract class PythonCommandLineState extends CommandLineState {
 private ProcessHandler startRemoteProcess ( Sdk sdk , GeneralCommandLine commandLine ) throws ExecutionException {
 PythonRemoteInterpreterManager manager = PythonRemoteInterpreterManager . getInstance ( ) ;
 if ( manager != null ) {
 -
 ProcessHandler processHandler =
 null ;

 <nb> public abstract class PythonCommandLineState extends CommandLineState {
 }

 return pythonPath ;
 -
 -
 }

 @ notnull


<nb> import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 + import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public class WindowFilterPushDown
 @ override
 public PlanNode visitWindow ( WindowNode node , RewriteContext < Void > context )
 {
 + checkState ( node . getWindowFunctions ( ) . size ( ) == NUMBER0 , STRING0 ) ;
 PlanNode rewrittenSource = context . rewrite ( node . getSource ( ) ) ;

 if ( canReplaceWithRowNumber ( node ) ) {

Enforce only one Function per WindowNode in WindowFilterPushDown


<nb> public class BridgeWindowManager implements IWindowManager {
 @ override
 public void clearForcedDisplaySize ( int displayId ) throws RemoteException {
 SINGLE
 + }

 + @ override
 + public void clearForcedDisplayDensity ( int displayId ) throws RemoteException {
 + SINGLE
 }

 @ override
 <nb> public class BridgeWindowManager implements IWindowManager {
 @ override
 public void setForcedDisplaySize ( int displayId , int arg0 , int arg1 ) throws RemoteException {
 SINGLE
 + }

 + @ override
 + public void setForcedDisplayDensity ( int displayId , int density ) throws RemoteException {
 + SINGLE
 }

 @ override


<nb> public class DrawHandler extends Handler {
 case RESUME :
 quitFlag = false ;
 if ( mReady ) {
 + mDrawTimes . clear ( ) ;
 mTimeBase = System . currentTimeMillis ( ) - pausedPostion ;
 timer . update ( pausedPostion ) ;
 removeMessages ( RESUME ) ;


<nb> import NAMESPACE ;
 COMMENT
 public abstract class AsyncCompletionHandler < T > implements AsyncHandler < T > , ProgressAsyncHandler < T > {

 - private static final Logger log = LoggerFactory . getLogger ( AsyncCompletionHandler . class ) ;
 + private static final Logger LOGGER = LoggerFactory . getLogger ( AsyncCompletionHandler . class ) ;
 private final Response . ResponseBuilder builder = new Response . ResponseBuilder ( ) ;

 COMMENT
 <nb> public abstract class AsyncCompletionHandler < T > implements AsyncHandler < T > , Prog
 COMMENT
 COMMENT
 public void onThrowable ( Throwable t ) {
 - log . debug ( t . getMessage ( ) , t ) ;
 + LOGGER . debug ( t . getMessage ( ) , t ) ;
 }

 COMMENT

Made logger static to improve performance


<nb> public class ImagePresenter < T > {
 if ( exceptionHandler != null ) {
 exceptionHandler . onException ( e , model , relevant ) ;
 }
 - if ( relevant && canSetPlaceholder ( ) ) {
 + if ( relevant && canSetPlaceholder ( ) && errorDrawable != null ) {
 target . setPlaceholder ( errorDrawable ) ;
 }
 }


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class VersionFetchSubPhase implements FetchSubPhase {
 SINGLE
 SINGLE
 SINGLE
 - long version = UidField . loadVersion ( hitContext . reader ( ) , UidFieldMapper . TERM_FACTORY . createTerm ( hitContext . doc ( ) . get ( UidFieldMapper . NAME ) ) ) ;
 + long version = UidField . loadVersion ( hitContext . readerContext ( ) , new Term ( UidFieldMapper . NAME , hitContext . doc ( ) . get ( UidFieldMapper . NAME ) ) ) ;
 if ( version < NUMBER0 ) {
 version = - NUMBER1 ;
 }

Fixed TERM_FACTORY usage in VersionFetchSubPhase class


<nb> public final class SimilarityService extends AbstractIndexComponent {
 static class PerFieldSimilarity extends PerFieldSimilarityWrapper {

 private final Similarity defaultSimilarity ;
 - private final Similarity baseSimilarity ;
 private final MapperService mapperService ;

 PerFieldSimilarity ( Similarity defaultSimilarity , Similarity baseSimilarity , MapperService mapperService ) {
 + super ( baseSimilarity ) ;
 this . defaultSimilarity = defaultSimilarity ;
 - this . baseSimilarity = baseSimilarity ;
 this . mapperService = mapperService ;
 }

Pass baseSimilarity to super PerFieldSimilarityWrapper


<nb> public class ChildrenBlocksBuilder {
 List < Block > blocks = ContainerUtil . newArrayList ( ) ;

 for ( ASTNode child : node . getChildren ( null ) ) {
 - if ( FormatterUtil . isWhitespaceOrEmpty ( child ) ) {
 - continue ;
 + if ( FormatterUtil . isWhitespaceOrEmpty ( child ) || child . getTextLength ( ) == NUMBER0 ) {
 + continue ;
 }

 Alignment alignment = myConfig . getAlignment ( child ) ;
 <nb> public void testSCR260 ( ) throws Exception {
 STRING0
 ) ;
 }
 +
 + public void testReformatCodeWithErrorElementsWithoutAssertions ( ) {
 + doTextTest ( STRING1 +
 + STRING2 +
 + STRING2 +
 + STRING3 ,
 + STRING4 +
 + STRING5 +
 + STRING6 +
 + STRING7 +
 + STRING5 +
 + STRING6 +
 + STRING8 +
 + STRING9 ) ;
 + }
 }

Do not build blocks for empty elements like PsiErrorElement


<nb> public class MediaRecorderStressTest extends ActivityInstrumentationTestCase2 < Me
 mRecorder . setVideoSize ( video_width , video_height ) ;
 mRecorder . setVideoEncoder ( video_encoder ) ;
 mRecorder . setAudioEncoder ( audio_encoder ) ;
 + mRecorder . setVideoEncodingBitRate ( bit_rate ) ;
 Log . v ( TAG , STRING0 ) ;
 mRecorder . setPreviewDisplay ( mSurfaceHolder . getSurface ( ) ) ;
 mRecorder . prepare ( ) ;

Set the video encoding bit rate for the media


<nb> public class MetricsServlet extends HttpServlet {
 protected void doGet ( HttpServletRequest req ,
 HttpServletResponse resp ) throws ServletException , IOException {
 resp . setContentType ( CONTENT_TYPE ) ;
 + resp . setHeader ( STRING0 , STRING1 ) ;
 resp . setHeader ( STRING2 , STRING3 ) ;
 resp . setStatus ( HttpServletResponse . SC_OK ) ;

 <nb> public class MetricsServletTest extends AbstractServletTest {

 assertThat ( response . getStatus ( ) )
 . isEqualTo ( NUMBER0 ) ;
 + assertThat ( response . getHeader ( STRING0 ) )
 + . isEqualTo ( STRING1 ) ;
 assertThat ( response . getContent ( ) )
 . isEqualTo ( STRING4 +
 STRING5 +
 <nb> public class MetricsServletTest extends AbstractServletTest {

 assertThat ( response . getStatus ( ) )
 . isEqualTo ( NUMBER0 ) ;
 + assertThat ( response . getHeader ( STRING0 ) )
 + . isEqualTo ( STRING1 ) ;
 assertThat ( response . getContent ( ) )
 . isEqualTo ( String . format ( STRING6 +
 STRING7 +


<nb> public abstract class ScmMaterialConfig extends AbstractMaterialConfig implement
 this . folder = folder ;
 }
 this . setAutoUpdate ( STRING0 . equals ( map . get ( AUTO_UPDATE ) ) ) ;
 + this . setInvertFilter ( STRING0 . equals ( map . get ( INVERT_FILTER ) ) ) ;
 if ( map . containsKey ( FILTER ) ) {
 String pattern = ( String ) map . get ( FILTER ) ;
 if ( ! StringUtil . isBlank ( pattern ) ) {

add code for INVERT_FILTER in ScmMaterialConfig setConfigAttributes


<nb> public class HazelcastParallelClassRunner extends AbstractHazelcastClassRunner {

 private final Properties globalProperties ;

 - private final ThreadLocal < Properties > localProperties = new InheritableThreadLocal < Properties > ( ) {
 - @ override
 - protected Properties initialValue ( ) {
 - return init ( new Properties ( ) ) ;
 - }
 - } ;
 + private final ThreadLocal < Properties > localProperties = new InheritableThreadLocal < Properties > ( ) ;

 private ThreadLocalProperties ( Properties properties ) {
 this . globalProperties = properties ;
 <nb> public class HazelcastParallelClassRunner extends AbstractHazelcastClassRunner {
 }

 private Properties getThreadLocal ( ) {
 - return localProperties . get ( ) ;
 + Properties properties = localProperties . get ( ) ;
 + if ( properties == null ) {
 + properties = init ( new Properties ( ) ) ;
 + localProperties . set ( properties ) ;
 + }
 + return properties ;
 }

 @ override

Fixed ThreadLocal subclassing in HazelcastParallelClassRunner


<nb> public class AccountItem extends ConnectionItem {
 return new Presence ( Type . unavailable ) ;
 else {
 int priority ;
 - if ( AccountManager . getInstance ( ) . isXa ( ) )
 - statusMode = StatusMode . xa ;
 - else if ( AccountManager . getInstance ( ) . isAway ( ) )
 - statusMode = StatusMode . away ;
 + if ( statusMode != StatusMode . dnd ) {
 + if ( AccountManager . getInstance ( ) . isXa ( ) )
 + statusMode = StatusMode . xa ;
 + else if ( AccountManager . getInstance ( ) . isAway ( ) )
 + statusMode = StatusMode . away ;
 + }
 if ( SettingsManager . connectionAdjustPriority ( ) ) {
 if ( statusMode == StatusMode . available )
 priority = SettingsManager . connectionPriorityAvailable ( ) ;

Disable auto away status while on do not disturb


<nb> public class OCommandExecutorSQLCreateIndex extends OCommandExecutorSQLPermissio
 final String [ ] parts = name . split ( STRING0 ) ;

 final OClass cls = database . getMetadata ( ) . getSchema ( ) . getClass ( parts [ NUMBER0 ] ) ;
 + if ( cls == null )
 + throw new OCommandExecutionException ( STRING1 + parts [ NUMBER0 ] + STRING2 ) ;
 +
 final OProperty prop = cls . getProperty ( parts [ NUMBER1 ] ) ;
 + if ( prop == null )
 + throw new IllegalArgumentException ( STRING3 + parts [ NUMBER1 ] + STRING4 + parts [ NUMBER0 ] + STRING5 ) ;
 keyType = prop . getType ( ) ;
 }
 } else

Improved message on create index command when the property is not found reported by Paul in ML


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


<nb> public class Translog extends AbstractIndexShardComponent implements IndexShardC
 SINGLE
 SINGLE
 SINGLE
 - assert Files . exists ( nextTranslogFile ) == false || Files . size ( nextTranslogFile ) <= TranslogWriter . getHeaderLength ( translogUUID ) ;
 + assert Files . exists ( nextTranslogFile ) == false || Files . size ( nextTranslogFile ) <= TranslogWriter . getHeaderLength ( translogUUID ) : STRING0 + nextTranslogFile + STRING1 ;
 if ( Files . exists ( currentCheckpointFile ) SINGLE
 && Files . deleteIfExists ( nextTranslogFile ) ) { SINGLE
 - logger . warn ( STRING2 , nextTranslogFile . getFileName ( ) ) ;
 + logger . warn ( STRING3 , nextTranslogFile . getFileName ( ) ) ;
 }
 this . recoveredTranslogs = recoverFromFiles ( translogGeneration , checkpoint ) ;
 if ( recoveredTranslogs . isEmpty ( ) ) {


<nb> public class DataSourceHealthIndicator extends AbstractHealthIndicator implement
 queries . put ( STRING0 , STRING1 ) ;
 queries . put ( STRING2 , STRING3 ) ;
 queries . put ( STRING4 , STRING3 ) ;
 + queries . put ( STRING5 , STRING6 ) ;
 PRODUCT_SPECIFIC_QUERIES = Collections . unmodifiableMap ( queries ) ;
 }


<nb> public class TextureUtil {

 if ( ! NPOT ) {
 SINGLE
 - if ( ! FastMath . isPowerOfTwo ( width ) || width != height ) {
 + if ( ! FastMath . isPowerOfTwo ( width ) || ! FastMath . isPowerOfTwo ( height ) ) {
 throw new RendererException ( STRING0
 + STRING1
 + STRING2 + img ) ;

Remove requirement for buffer type images to have width height on Android devices that do not support NPOT


<nb> public class RotateDrawable extends Drawable implements Drawable . Callback {

 state . mFromDegrees = a . getFloat ( R . styleable . RotateDrawable_fromDegrees , state . mFromDegrees ) ;
 state . mToDegrees = a . getFloat ( R . styleable . RotateDrawable_toDegrees , state . mToDegrees ) ;
 + state . mCurrentDegrees = state . mFromDegrees ;

 final Drawable dr = a . getDrawable ( R . styleable . RotateDrawable_drawable ) ;
 if ( dr != null ) {

Set current degrees when updating RotateDrawable from typed array


<nb> public class BeanInfo {
 }

 private static Class < ? > getTargetClass ( Class < ? > clazz ) {
 - if ( clazz . getName ( ) . indexOf ( CGLIB_CLASS_SEPARATOR ) != - NUMBER0 ) {
 - return clazz . getSuperclass ( ) ;
 + if ( clazz != null && clazz . getName ( ) . contains ( CGLIB_CLASS_SEPARATOR ) ) {
 + Class < ? > superClass = clazz . getSuperclass ( ) ;
 + if ( superClass != null && ! Object . class . equals ( superClass ) ) {
 + return superClass ;
 + }
 }
 return clazz ;
 }

Fixed issue with CGLib enhanced beans being invoked from camel bean


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class CrossFoldLearner extends AbstractVectorClassifier implements OnlineLearner {
 - private int record ;
 + SINGLE
 + private static final double MIN_SCORE = FLOAT0 ;
 +
 + private int record = NUMBER0 ;
 private OnlineAuc auc = new OnlineAuc ( ) ;
 private double logLikelihood ;
 private final List < OnlineLogisticRegression > models = Lists . newArrayList ( ) ;

Make log likelihood behavior better in the corners


<nb> public abstract class HttpMessageDecoder extends ReplayingDecoder < HttpMessageDec
 String [ ] header = splitHeader ( line ) ;
 message . addHeader ( header [ NUMBER0 ] , header [ NUMBER1 ] ) ;
 lastHeader = header [ NUMBER0 ] ;
 - line = readHeader ( buffer ) ;
 }
 +
 + line = readHeader ( buffer ) ;
 } while ( line . length ( ) != NUMBER0 ) ;
 }


<nb> public class SystemResource extends RestResource {
 @ put
 @ timed
 @ apioperation ( value = STRING0 ,
 - notes = STRING1 +
 - STRING2 )
 + notes = STRING3 +
 + STRING4 )
 @ path ( STRING5 )
 public void pauseProcessing ( ) {
 checkPermission ( RestPermissions . PROCESSING_CHANGESTATE , serverStatus . getNodeId ( ) . toString ( ) ) ;

mention message journal in system processing docs


<nb> public class MessageWebView extends TitleBarWebView {
 String content = STRING0 ;
 if ( K9 . getK9MessageViewTheme ( ) == K9 . Theme . DARK ) {
 content += STRING1 +
 - STRING2 +
 + STRING3 +
 STRING4 +
 STRING5 ;
 }

Use very light grey instead of white for message text in dark theme


<nb> package NAMESPACE ;

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

 public class BerkeleyJEOLAPTest extends FulgoraOLAPTest {
 <nb> import NAMESPACE ;

 import NAMESPACE ;

 - public class HBaseGraphTest extends FulgoraOLAPTest {
 + public class HBaseOLAPTest extends FulgoraOLAPTest {
 @ beforeclass
 public static void startHBase ( ) throws IOException {
 HBaseStorageSetup . startHBase ( ) ;


<nb> public class EvaluationResultSubject extends Subject < EvaluationResultSubject , Ev
 getSubject ( ) . getWalkableGraph ( ) . getDirectDeps ( ImmutableList . of ( parent ) ) . get ( parent ) )
 . named ( STRING0 + parent + STRING1 + getDisplaySubject ( ) ) ;
 }
 +
 + public IterableSubject hasReverseDepsInGraphThat ( SkyKey child ) {
 + return assertThat (
 + getSubject ( ) . getWalkableGraph ( ) . getReverseDeps ( ImmutableList . of ( child ) ) . get ( child ) )
 + . named ( STRING2 + child + STRING1 + getDisplaySubject ( ) ) ;
 + }
 }

Add EvaluationResultSubject hasReverseDepsInGraphThat method


<nb> public class LocationManagerService extends ILocationManager . Stub {
 mWakeLockAcquireTime = SystemClock . elapsedRealtime ( ) ;
 log ( STRING0 ) ;

 - mNetworkLocationProvider . wakeLockAcquired ( ) ;
 - mGpsLocationProvider . wakeLockAcquired ( ) ;
 + if ( mNetworkLocationProvider != null ) {
 + mNetworkLocationProvider . wakeLockAcquired ( ) ;
 + }
 + if ( mGpsLocationProvider != null ) {
 + mGpsLocationProvider . wakeLockAcquired ( ) ;
 + }
 }

 private void releaseWakeLockLocked ( ) {
 <nb> public class LocationManagerService extends ILocationManager . Stub {
 }

 private void releaseWakeLockXLocked ( ) {
 - mNetworkLocationProvider . wakeLockReleased ( ) ;
 - mGpsLocationProvider . wakeLockReleased ( ) ;
 + if ( mNetworkLocationProvider != null ) {
 + mNetworkLocationProvider . wakeLockReleased ( ) ;
 + }
 + if ( mGpsLocationProvider != null ) {
 + mGpsLocationProvider . wakeLockReleased ( ) ;
 + }

 SINGLE
 mWakeLockAcquireTime = NUMBER0 ;


<nb> public class DistinctLimitOperator
 distinctChannels . add ( i ) ;
 }

 - this . groupByHash = new GroupByHash ( distinctTypes . build ( ) , Ints . toArray ( distinctChannels . build ( ) ) , NUMBER0 ) ;
 + this . groupByHash = new GroupByHash ( distinctTypes . build ( ) , Ints . toArray ( distinctChannels . build ( ) ) , Math . min ( ( int ) limit , NUMBER0 ) ) ;

 this . cursors = new BlockCursor [ types . size ( ) ] ;
 this . pageBuilder = new PageBuilder ( getTypes ( ) ) ;

Reduce default memory reservation for DistinctLimitOperator


<nb> public class DeferredResult < T > {
 return false ;
 }
 this . result = result ;
 - if ( this . resultHandler != null ) {
 - this . resultHandler . handleResult ( this . result ) ;
 - }
 + }
 + if ( this . resultHandler != null ) {
 + this . resultHandler . handleResult ( this . result ) ;
 }
 return true ;
 }


<nb> public class ScopeProvider {

 @ notnull
 public JetScope getResolutionScopeForDeclaration ( @ notnull PsiElement elementOfDeclaration ) {
 - JetDeclaration jetDeclaration = PsiTreeUtil . getParentOfType ( elementOfDeclaration , JetDeclaration . class , false ) ;
 + JetDeclaration jetDeclaration = JetStubbedPsiUtil . getContainingDeclaration ( elementOfDeclaration , JetDeclaration . class , false ) ;

 assert ! ( elementOfDeclaration instanceof JetDeclaration ) || jetDeclaration == elementOfDeclaration :
 STRING0 ;
 + assert jetDeclaration != null : STRING1 ;

 - JetDeclaration parentDeclaration = PsiTreeUtil . getParentOfType ( jetDeclaration , JetDeclaration . class ) ;
 + JetDeclaration parentDeclaration = JetStubbedPsiUtil . getContainingDeclaration ( jetDeclaration ) ;

 if ( jetDeclaration instanceof JetPropertyAccessor ) {
 parentDeclaration = PsiTreeUtil . getParentOfType ( parentDeclaration , JetDeclaration . class ) ;


<nb> public class JmxReporter {
 final ObjectName objectName = createName ( STRING0 , name ) ;
 mBeanServer . registerMBean ( new JmxCounter ( counter , objectName ) , objectName ) ;
 } catch ( InstanceAlreadyExistsException e ) {
 - LOGGER . debug ( STRING1 , e ) ;
 + LOGGER . debug ( STRING2 , e ) ;
 } catch ( JMException e ) {
 - LOGGER . warn ( STRING1 , e ) ;
 + LOGGER . warn ( STRING2 , e ) ;
 }
 }


<nb> public class AIMSICD extends BaseActivity implements AsyncResponse {
 public void onCreate ( Bundle savedInstanceState ) {
 super . onCreate ( savedInstanceState ) ;

 - moveData ( ) ;
 -
 mNavConf = new DrawerMenuActivityConfiguration . Builder ( this ) . build ( ) ;

 setContentView ( mNavConf . getMainLayout ( ) ) ;
 <nb> public class AIMSICD extends BaseActivity implements AsyncResponse {
 super . onStart ( ) ;
 ( ( AppAIMSICD ) getApplication ( ) ) . attach ( this ) ;
 }
 -
 }


<nb> package NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class LocationManager {
 COMMENT
 COMMENT
 COMMENT
 + @ systemapi
 public void requestLocationUpdates ( LocationRequest request , LocationListener listener ,
 Looper looper ) {
 checkListener ( listener ) ;
 <nb> public class LocationManager {
 COMMENT
 COMMENT
 COMMENT
 + @ systemapi
 public void requestLocationUpdates ( LocationRequest request , PendingIntent intent ) {
 checkPendingIntent ( intent ) ;
 requestLocationUpdates ( request , null , null , intent ) ;

Add SystemApi to LocationManager methods used by GmsCore with reflection


<nb> abstract class IonBitmapRequestBuilder implements BitmapFutureBuilder , Builders .
 return LocallyCachedStatus . NOT_CACHED ;
 }

 +
 + @ override
 + public void removeCachedBitmap ( ) {
 + final String decodeKey = computeDecodeKey ( ) ;
 + addDefaultTransform ( ) ;
 + String bitmapKey = computeBitmapKey ( decodeKey ) ;
 + ion . responseCache . getFileCache ( ) . remove ( decodeKey ) ;
 + ion . responseCache . getFileCache ( ) . remove ( bitmapKey ) ;
 + builder . ion . bitmapCache . remove ( bitmapKey ) ;
 + builder . ion . bitmapCache . remove ( decodeKey ) ;
 + }
 +
 @ override
 public BitmapInfo asCachedBitmap ( ) {
 final String decodeKey = computeDecodeKey ( ) ;
 <nb> public interface BitmapFutureBuilder {
 public BitmapInfo asCachedBitmap ( ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + public void removeCachedBitmap ( ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add method to remove cached bitmap if it exists


<nb> public abstract class SlidingActivity extends AppCompatActivity {
 COMMENT
 public void disableHeader ( ) {
 scroller . disableHeader ( ) ;
 + content . setPadding ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ;
 }

 COMMENT

Set the padding on the content of the sliding activity to zero if you disable the header


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

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

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

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

 import NAMESPACE ;


<nb> public class WikiIndexer {
 try {
 String lat_dir = readProperty ( STRING0 , h , e ) ;
 String lon_dir = readProperty ( STRING1 , h , e ) ;
 + if ( lat_dir . length ( ) == NUMBER0 || lon_dir . length ( ) == NUMBER0 ) {
 + return ;
 + }
 float lat_deg = Float . parseFloat ( readProperty ( STRING2 , h , e ) ) ;
 float lon_deg = Float . parseFloat ( readProperty ( STRING3 , h , e ) ) ;
 float lat_min = zeroParseFloat ( readProperty ( STRING4 , h , e ) ) ;


<nb> public final class DHistogram extends Iced {
 SINGLE
 SINGLE
 void incr ( double col_data , double y , double w ) {
 - assert ! Double . isNaN ( col_data ) ;
 + if ( Double . isNaN ( col_data ) ) {
 + _wNA . addAndGet ( w ) ;
 + _wYNA . addAndGet ( w * y ) ;
 + _wYYNA . addAndGet ( w * y * y ) ;
 + return ;
 + }
 assert Double . isInfinite ( col_data ) || ( _min <= col_data && col_data < _maxEx ) : STRING0 + col_data + STRING1 + this ;
 int b = bin ( col_data ) ; SINGLE
 water . util . AtomicUtils . DoubleArray . add ( _w , b , w ) ; SINGLE


<nb> public class TestPlan implements Closeable {
 SINGLE
 if ( ! fileSink . getFormatClass ( ) . equals ( SequentialOutputFormat . class ) ) {
 TestRecords expectedValues = this . expectedOutputs . get ( fileSink ) ;
 - SINGLE
 - if ( expectedValues == null )
 - continue ;

 final FileDataSink safeSink = createDefaultSink ( fileSink . getName ( ) ) ;

 <nb> public class TestPlan implements Closeable {
 wrappedSinks . add ( fileSink ) ;
 wrappedSinks . add ( safeSink ) ;

 - this . expectedOutputs . put ( safeSink , expectedValues ) ;
 + SINGLE
 + if ( expectedValues != null )
 + this . expectedOutputs . put ( safeSink , expectedValues ) ;
 this . actualOutputs . put ( safeSink , this . getActualOutput ( fileSink ) ) ;
 this . getActualOutput ( fileSink ) . fromFile ( SequentialInputFormat . class , safeSink . getFilePath ( ) ) ;

Fixed test plan for tests without expected values


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 public class Variable
 <nb> public class Variable
 return new SetVariableByteCodeExpression ( this , value ) ;
 }

 + public ByteCodeExpression increment ( )
 + {
 + return new SetVariableByteCodeExpression ( this , add ( this , constantInt ( NUMBER0 ) ) ) ;
 + }
 +
 @ override
 public ByteCodeNode getByteCode ( MethodGenerationContext generationContext )
 {

Add increment to Variable bytecode expression


<nb> public class TextEditingTarget implements EditingTarget ,

 HandlerRegistration addCursorChangedHandler ( CursorChangedHandler handler ) ;
 Position getCursorPosition ( ) ;
 - void setCursorPosition ( Position position ) ;
 - void moveCursorNearTop ( ) ;
 -
 +
 FunctionStart getCurrentFunction ( ) ;
 JsArray < FunctionStart > getFunctionTree ( ) ;

eliminate unused functions from EditingTarget interface


<nb> public class LibrarySourcesConfig extends Config {
 String moduleName = UNKNOWN_EXTERNAL_MODULE_NAME ;
 for ( String path : files ) {
 File file = new File ( path ) ;
 + if ( ! file . exists ( ) ) continue ; SINGLE
 try {
 String name = file . getName ( ) ;
 if ( path . charAt ( NUMBER0 ) == STRING0 ) {
 <nb> public class LibrarySourcesConfig extends Config {
 }
 }
 catch ( IOException e ) {
 - LOG . error ( e ) ;
 + LOG . error ( STRING1 + file , e ) ;
 }
 }


<nb> import static NAMESPACE ;

 COMMENT
 COMMENT
 - @ elasticsearchintegrationtest.clusterscope ( scope = ElasticsearchIntegrationTest . Scope . TEST , numDataNodes = NUMBER0 )
 + @ elasticsearchintegrationtest.clusterscope ( scope = ElasticsearchIntegrationTest . Scope . TEST , numDataNodes = NUMBER1 , numClientNodes = NUMBER1 )
 public class SearchScrollWithFailingNodesTests extends ElasticsearchIntegrationTest {

 @ override
 <nb> public class SearchScrollWithFailingNodesTests extends ElasticsearchIntegrationT
 @ test
 @ testlogging ( STRING0 )
 public void testScanScrollWithShardExceptions ( ) throws Exception {
 + cluster ( ) . startNode ( ) ;
 + cluster ( ) . startNode ( ) ;
 assertAcked (
 prepareCreate ( STRING1 )
 SINGLE


<nb> public class BaseClientDetails implements ClientDetails {
 registeredRedirectUris ) ;
 }

 - @ suppresswarnings ( STRING0 )
 @ jsonproperty ( STRING1 )
 private List < String > getAuthoritiesAsStrings ( ) {
 return new ArrayList < String > ( AuthorityUtils . authorityListToSet ( authorities ) ) ;
 }

 - @ suppresswarnings ( STRING0 )
 @ jsonproperty ( STRING1 )
 @ jsondeserialize ( using = ArrayOrStringDeserializer . class )
 private void setAuthoritiesAsStrings ( Set < String > values ) {


<nb> public class TreeTraversalInSpiralOrder {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void spiralWithOneDeque ( Node root ) {
 if ( root == null ) {


<nb> public class WebXml {
 }

 if ( dest . getLoadOnStartup ( ) == null ) {
 - dest . setLoadOnStartup ( src . getServletClass ( ) ) ;
 + dest . setLoadOnStartup ( src . getLoadOnStartup ( ) . toString ( ) ) ;
 } else if ( src . getLoadOnStartup ( ) != null ) {
 if ( failOnConflict &&
 ! src . getLoadOnStartup ( ) . equals ( dest . getLoadOnStartup ( ) ) ) {


<nb> public abstract class ElementPresentationManager {
 public static void registerDocumentationProvider ( Function < Object , String > function ) { ourDocumentationProviders . add ( function ) ; }
 public static void registerIconProvider ( Function < Object , Icon > function ) { ourIconProviders . add ( function ) ; }

 - public static void unregisterNameProvider ( Function < Object , String > function ) { ourNameProviders . remove ( function ) ; }
 -
 COMMENT
 public static void registerIcon ( Class aClass , Icon icon ) { registerIcons ( aClass , icon ) ; }
 public static void registerIcons ( Class aClass , Icon . . . icon ) { ourIcons . put ( aClass , icon ) ; }

remove superfluous FacesPresentation calls