<nb> public class DispatchCommand extends BaseCommand {
 }
 CommandMetaData meta = cmd . getAnnotation ( CommandMetaData . class ) ;
 if ( meta . admin ( ) && user . canAdmin ( ) ) {
 - log . debug ( MessageFormat . format ( STRING0 , meta . name ( ) , user . username ) ) ;
 + log . debug ( MessageFormat . format ( STRING1 , meta . name ( ) , user . username ) ) ;
 return ;
 }
 commands . add ( cmd ) ;


<nb> public class SkylarkRuleImplementationFunctions {
 Boolean collectData , Boolean collectDefault ,
 Location loc ) throws EvalException , ConversionException {
 Runfiles . Builder builder = new Runfiles . Builder ( ) ;
 + builder . setSuffix ( ctx . getWorkspaceName ( ) ) ;
 if ( EvalUtils . toBoolean ( collectData ) ) {
 builder . addRunfiles ( ctx . getRuleContext ( ) , RunfilesProvider . DATA_RUNFILES ) ;
 }

Always set Runfiles suffix in runfiles Skylark function


<nb>
 package NAMESPACE ;

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

 import NAMESPACE ;

 - public class TransferTable {
 + public class TransferTable implements Serializable {
 +
 + private static final long serialVersionUID = NUMBER0 ;
 +
 public static final int UNKNOWN_TRANSFER = - NUMBER1 ;

 public static final int PREFERRED_TRANSFER = - NUMBER2 ;


<nb> import NAMESPACE ;
 COMMENT
 public class SimpleDialogFragment extends BaseDialogFragment {

 - protected static String ARG_MESSAGE = STRING0 ;
 - protected static String ARG_TITLE = STRING1 ;
 - protected static String ARG_POSITIVE_BUTTON = STRING2 ;
 - protected static String ARG_NEGATIVE_BUTTON = STRING3 ;
 - protected static String ARG_NEUTRAL_BUTTON = STRING4 ;
 + protected final static String ARG_MESSAGE = STRING0 ;
 + protected final static String ARG_TITLE = STRING1 ;
 + protected final static String ARG_POSITIVE_BUTTON = STRING2 ;
 + protected final static String ARG_NEGATIVE_BUTTON = STRING3 ;
 + protected final static String ARG_NEUTRAL_BUTTON = STRING4 ;

 protected int mRequestCode ;


<nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class DelegateWithDefaultParamValueIntentionAction extends PsiElementBaseIntentionAction implements Iconable {
 + public class DelegateWithDefaultParamValueIntentionAction extends PsiElementBaseIntentionAction implements Iconable , LowPriorityAction {
 public static final Icon REFACTORING_BULB = IconLoader . getIcon ( STRING0 ) ;
 @ override
 public boolean isAvailable ( @ notnull Project project , Editor editor , @ notnull PsiElement element ) {
 final PsiParameter parameter = PsiTreeUtil . getParentOfType ( element , PsiParameter . class ) ;
 if ( parameter != null ) {
 + if ( ! parameter . getLanguage ( ) . isKindOf ( StdLanguages . JAVA ) ) return false ;
 final PsiElement declarationScope = parameter . getDeclarationScope ( ) ;
 if ( declarationScope instanceof PsiMethod ) {
 final PsiMethod method = ( PsiMethod ) declarationScope ;


<nb> public final class H2O {
 startupFinalize ( ) ; SINGLE
 Log . POST ( NUMBER0 , STRING0 ) ;

 - postStartupGAEvents ( ) ;
 + if ( SELF == H2O . CLOUD . _memary [ NUMBER1 ] ) SINGLE
 + postStartupGAEvents ( ) ;
 }

 COMMENT
 <nb> public class GoogleAnalytics {
 config . getRequestParameterDiscoverer ( ) . discoverParameters ( config , defaultRequest ) ;
 }

 - Log . info ( STRING1 + config + STRING2 + defaultRequest ) ;
 + Log . debug ( STRING1 + config + STRING2 + defaultRequest ) ;

 this . config = config ;
 this . defaultRequest = defaultRequest ;

Only one node reports the cloud size and hadoop version now


<nb> public class DefaultCacheAccess implements CacheAccess {
 this ( cacheDisplayName , lockFile , lockManager , new CacheAccessOperationsStack ( ) ) ;
 }

 - public DefaultCacheAccess ( String cacheDisplayName , File lockFile , FileLockManager lockManager , CacheAccessOperationsStack operations ) {
 + DefaultCacheAccess ( String cacheDisplayName , File lockFile , FileLockManager lockManager , CacheAccessOperationsStack operations ) {
 this . cacheDiplayName = cacheDisplayName ;
 this . lockFile = lockFile ;
 this . lockManager = lockManager ;


<nb> public final class Settings {
 public static final String ENHANCED_4G_MODE_ENABLED = STRING0 ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String LTE_SERVICE_FORCED = STRING1 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DatabaseHelper extends SQLiteOpenHelper {
 SINGLE
 SINGLE
 int type ;
 - type = SystemProperties . getInt ( STRING2 ,
 - RILConstants . PREFERRED_NETWORK_MODE ) ;
 + type = RILConstants . PREFERRED_NETWORK_MODE ;
 loadSetting ( stmt , Settings . Global . PREFERRED_NETWORK_MODE , type ) ;

 SINGLE
 <nb> package NAMESPACE ;
 COMMENT
 COMMENT

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface RILConstants {
 COMMENT
 COMMENT
 COMMENT
 - int PREFERRED_NETWORK_MODE = NETWORK_MODE_WCDMA_PREF ;
 + int PREFERRED_NETWORK_MODE = SystemProperties . getInt ( STRING2 ,
 + NETWORK_MODE_WCDMA_PREF ) ;

 int CDMA_CELL_BROADCAST_SMS_DISABLED = NUMBER0 ;
 int CDMA_CELL_BROADCAST_SMS_ENABLED = NUMBER1 ;


<nb> public class CypherDocIT extends AbstractRestFunctionalTestBase {
 assertThat ( ( ( String ) responseMap . get ( STRING0 ) ) , containsString ( STRING1 ) ) ;
 }

 - private String cypherRestCall ( String script , Status status , Pair < String , String > . . . params )
 + @ safevarargs
 + private final String cypherRestCall ( String script , Status status , Pair < String , String > . . . params )
 {
 return doCypherRestCall ( cypherUri ( ) , script , status , params ) ;
 }

Add SafeVarargs in CypherDocIT to get rid of some warnings


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

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

removed unnecessary javascript import in CgRuleConverter


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


<nb>
 package NAMESPACE ;

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

 package NAMESPACE ;

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


<nb>
 package NAMESPACE ;

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

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

 + @ runwith ( HazelcastParallelClassRunner . class )
 + @ category ( { QuickTest . class , ParallelTest . class } )
 @ suppresswarnings ( STRING0 )
 public class MapKeyLoaderUtilTest {

Added missing annotations to MapKeyLoaderUtilTest


<nb> public final class SkyKey implements Serializable {
 return false ;
 }
 SkyKey other = ( SkyKey ) obj ;
 + if ( hashCode ( ) != other . hashCode ( ) ) {
 + return false ;
 + }
 return functionName . equals ( other . functionName ) && argument . equals ( other . argument ) ;
 }

Use the precomputed skykey hash to short circuit equality comparison


<nb> public class AsyncHttpClient {
 ConnManagerParams . setMaxTotalConnections ( httpParams , DEFAULT_MAX_CONNECTIONS ) ;

 HttpConnectionParams . setSoTimeout ( httpParams , socketTimeout ) ;
 + HttpConnectionParams . setConnectionTimeout ( httpParams , socketTimout ) ;
 HttpConnectionParams . setTcpNoDelay ( httpParams , true ) ;
 HttpConnectionParams . setSocketBufferSize ( httpParams , DEFAULT_SOCKET_BUFFER_SIZE ) ;

Add http timeout as well as socket timeout


<nb> public class QueryResource

 requestLogger . log (
 new RequestLogLine (
 - new DateTime ( ) ,
 + new DateTime ( start ) ,
 req . getRemoteAddr ( ) ,
 theQuery ,
 new QueryStats (
 <nb> public class QueryResource
 ) ;
 requestLogger . log (
 new RequestLogLine (
 - new DateTime ( ) ,
 + new DateTime ( start ) ,
 req . getRemoteAddr ( ) ,
 query ,
 new QueryStats (
 <nb> public class QueryResource
 ) ;
 requestLogger . log (
 new RequestLogLine (
 - new DateTime ( ) ,
 + new DateTime ( start ) ,
 req . getRemoteAddr ( ) ,
 query ,
 new QueryStats ( ImmutableMap . < String , Object > of (

request log should reflect time the query was received as opposed to processed


<nb> public class GpxSelectionHelper {
 name += STRING0 ;
 name += GpxUiHelper . getColorValue ( speedClr , OsmAndFormatter . getFormattedSpeed ( analysis . avgSpeed , app ) ) ;
 }
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 + SINGLE
 + if ( analysis . isElevationSpecified ( ) ) {
 + if ( name . length ( ) != NUMBER0 )
 + name += STRING0 ;
 + name += GpxUiHelper . getColorValue ( descClr , OsmAndFormatter . getFormattedAlt ( analysis . minElevation , app ) ) ;
 + name += STRING1 ;
 + name += GpxUiHelper . getColorValue ( ascClr , OsmAndFormatter . getFormattedAlt ( analysis . maxElevation , app ) ) ;
 + }
 if ( analysis . isElevationSpecified ( ) && ( analysis . diffElevationUp > eleThreshold ||
 analysis . diffElevationDown > eleThreshold ) ) {
 if ( name . length ( ) != NUMBER0 )

add min max elevation data to split track analysis to facilitate easier track segment identification


<nb> public class CVSRepositoryTest {
 COMMENT
 @ test
 public void getDirectoryHistoryParser ( ) {
 - Class < ? extends HistoryParser > expResult = CVSHistoryParser . class ;
 - SINGLE
 - Class result = null ;
 - assertEquals ( expResult , result ) ;
 + Class < ? extends HistoryParser > result = instance . getDirectoryHistoryParser ( ) ;
 + assertNull ( result ) ;
 }

 COMMENT


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public interface CometFilter {
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public interface CometFilterChain {


<nb> public class PrimitiveTypeUtils
 {
 return Integer . class . isAssignableFrom ( type ) || int . class . isAssignableFrom ( type ) ;
 }
 + private PrimitiveTypeUtils ( )
 + {
 + }
 }


<nb> public class BroadcasterLifeCyclePolicy {
 public enum ATMOSPHERE_RESOURCE_POLICY {

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 IDLE ,
 <nb> public class BroadcasterLifeCyclePolicy {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 IDLE_DESTROY ,

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + IDLE_RESUME ,
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add a new Policy that also resume all suspended AtmosphereResource


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

 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public interface LoadingCache < K , V > extends Cache < K , V > , Function < K , V > {
 COMMENT
 COMMENT
 void refresh ( K key ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + @ override
 + ConcurrentMap < K , V > asMap ( ) ;
 }

specify that asMap never auto loads entries


<nb> public class PatchFixes {
 }

 public static byte [ ] runPostCompiler ( byte [ ] bytes , String fileName ) {
 + if ( System . getProperty ( STRING0 , null ) != null ) return bytes ;
 byte [ ] transformed = PostCompiler . applyTransformations ( bytes , fileName , DiagnosticsReceiver . CONSOLE ) ;
 return transformed == null ? bytes : transformed ;
 }

 public static OutputStream runPostCompiler ( OutputStream out ) throws IOException {
 + if ( System . getProperty ( STRING0 , null ) != null ) return out ;
 return PostCompiler . wrapOutputStream ( out , STRING1 , DiagnosticsReceiver . CONSOLE ) ;
 }

 public static BufferedOutputStream runPostCompiler ( BufferedOutputStream out , String path , String name ) throws IOException {
 + if ( System . getProperty ( STRING0 , null ) != null ) return out ;
 String fileName = path + STRING2 + name ;
 return new BufferedOutputStream ( PostCompiler . wrapOutputStream ( out , fileName , DiagnosticsReceiver . CONSOLE ) ) ;
 }

added support for lombok disablePostCompiler


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

eclipse hates it when there s no package info btw a license would be nice


<nb> public class PSurfaceAWT extends PSurfaceNone {
 SINGLE
 Component canvas ;

 - PGraphics graphics ;
 + SINGLE

 int sketchWidth ;
 int sketchHeight ;

remove local that was masking the superclass field


<nb> public class ShadowCameraParameters {
 @ implementation
 public List < int [ ] > getSupportedPreviewFpsRange ( ) {
 List < int [ ] > supportedRanges = new ArrayList < int [ ] > ( ) ;
 - addRange ( supportedRanges , NUMBER0 , NUMBER0 ) ;
 - addRange ( supportedRanges , NUMBER1 , NUMBER2 ) ;
 + addRange ( supportedRanges , NUMBER3 , NUMBER3 ) ;
 + addRange ( supportedRanges , NUMBER4 , NUMBER5 ) ;
 return supportedRanges ;
 }


<nb> public class SocketConnector extends AbstractConnector
 throws IOException
 {
 Connection connection = ( Connection ) endpoint ;
 - if ( connection . _sotimeout != _maxIdleTime )
 + int lrmit = isLowResources ( ) ? _lowResourceMaxIdleTime : _maxIdleTime ;
 + if ( connection . _sotimeout != lrmit )
 {
 - connection . _sotimeout = _maxIdleTime ;
 - ( ( Socket ) endpoint . getTransport ( ) ) . setSoTimeout ( _maxIdleTime ) ;
 + connection . _sotimeout = lrmit ;
 + ( ( Socket ) endpoint . getTransport ( ) ) . setSoTimeout ( lrmit ) ;
 }

 super . customize ( endpoint , request ) ;
 <nb> public class SocketConnector extends AbstractConnector
 {
 if ( _connection . isIdle ( ) )
 {
 - if ( getServer ( ) . getThreadPool ( ) . isLowOnThreads ( ) )
 + if ( isLowResources ( ) )
 {
 int lrmit = getLowResourceMaxIdleTime ( ) ;
 if ( lrmit >= NUMBER0 && _sotimeout != lrmit )


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

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class UrlImpl implements Url {

 @ override
 public boolean isInLocalFileSystem ( ) {
 - return StandardFileSystems . FILE_PROTOCOL . equals ( scheme ) ;
 + return URLUtil . FILE_PROTOCOL . equals ( scheme ) ;
 }

 @ nullable


<nb> public class EventLog implements Notifications {
 myHyperlinkSupport = new EditorHyperlinkSupport ( myLogEditor , project ) ;
 }

 - private static DefaultActionGroup createPopupActions ( ActionManager actionManager ) {
 + private DefaultActionGroup createPopupActions ( ActionManager actionManager ) {
 DefaultActionGroup group = new DefaultActionGroup ( ) ;
 group . add ( new DumbAwareAction ( STRING0 ) {
 @ override
 <nb> public class EventLog implements Notifications {
 if ( editor != null ) {
 editor . getDocument ( ) . deleteString ( NUMBER0 , editor . getDocument ( ) . getTextLength ( ) ) ;
 }
 + for ( Notification notification : myProjectModel . getNotifications ( ) ) {
 + myProjectModel . removeNotification ( notification ) ;
 + }
 }
 } ) ;
 group . add ( new EditorCopyAction ( ) ) ;

clear the log model on clearing the console


<nb> public class LinearLayoutManagerTest extends BaseRecyclerViewInstrumentationTest

 @ override
 String describe ( ) {
 - return STRING0 ;
 + return STRING1 + position ;
 }

 @ override
 void onAfterReLayout ( Config config ) {
 if ( mTestAdapter . getItemCount ( ) > NUMBER0 ) {
 - assertEquals ( STRING2 ,
 + assertEquals ( config + STRING3 ,
 position ,
 - mLayoutManager . findLastCompletelyVisibleItemPosition ( ) ) ;
 + config . mStackFromEnd ?
 + mLayoutManager . findLastCompletelyVisibleItemPosition ( )
 + : mLayoutManager . findFirstCompletelyVisibleItemPosition ( ) ) ;
 }
 }
 }
 <nb> public class LinearLayoutManagerTest extends BaseRecyclerViewInstrumentationTest
 savedStateTest ( ( Config ) config . clone ( ) , waitForLayout , postLayoutRunnable ,
 postRestoreRunnable ) ;
 removeRecyclerView ( ) ;
 - return ;
 }

 }

Fixed LinearLayoutManager unit tests which end prematurely


<nb> public class GuiIngameForge extends GuiIngame

 protected void renderPlayerList ( int width , int height )
 {
 - if ( pre ( PLAYER_LIST ) ) return ;
 ScoreObjective scoreobjective = this . mc . theWorld . getScoreboard ( ) . func_96539_a ( NUMBER0 ) ;
 NetClientHandler handler = mc . thePlayer . sendQueue ;

 if ( mc . gameSettings . keyBindPlayerList . pressed && ( ! mc . isIntegratedServerRunning ( ) || handler . playerInfoList . size ( ) > NUMBER1 || scoreobjective != null ) )
 {
 + if ( pre ( PLAYER_LIST ) ) return ;
 this . mc . mcProfiler . startSection ( STRING0 ) ;
 List players = handler . playerInfoList ;
 int maxPlayers = handler . currentServerMaxPlayers ;
 <nb> public class GuiIngameForge extends GuiIngame
 zLevel -= FLOAT0 ;
 }
 }
 + post ( PLAYER_LIST ) ;
 }
 - post ( PLAYER_LIST ) ;
 }

 protected void renderHealthMount ( int width , int height )

Moved PLAYER_LIST event inside display check


<nb> public class DataTableCustomSerDe extends DataTableJavaSerDe {
 if ( _brokerMetrics != null ) {
 _brokerMetrics . addMeteredGlobalValue ( BrokerMeter . DATA_TABLE_OBJECT_DESERIALIZATION , NUMBER0 ) ;
 }
 - LOGGER . warn ( STRING0 , object . getClass ( ) . getName ( ) ) ;
 }
 return object ;
 }

Remove log message that warns on Java ser de


<nb> public class XmlDocumentFragment extends XmlNode {

 private static Pattern qname_pattern = Pattern . compile ( STRING0 ) ;
 private static Pattern starttag_pattern = Pattern . compile ( STRING1 ) ;
 - private static Pattern wellformed_pattern = Pattern . compile ( STRING2 ) ;
 + private static Pattern wellformed_pattern = Pattern . compile ( STRING3 ) ;

 private static String addRootTagIfNeeded ( ThreadContext context , XmlDocument doc , String tags ) {
 IRubyObject isHtml = RuntimeHelpers . invoke ( context , doc , STRING4 ) ;


<nb> public class AggregratedJmsRouteTest extends ContextTestSupport {
 private String multicastEndpointUri = STRING0 ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void testJmsBatchTimeoutExpiryWithAggregrationDelay ( ) throws Exception {
 MockEndpoint resultEndpoint = resolveMandatoryEndpoint ( STRING1 , MockEndpoint . class ) ;
 <nb> public class AggregratedJmsRouteTest extends ContextTestSupport {
 MockEndpoint resultEndpoint = resolveMandatoryEndpoint ( STRING2 , MockEndpoint . class ) ;

 resultEndpoint . expectedMessageCount ( NUMBER0 ) ;
 - for ( int i = NUMBER1 ; i <= NUMBER2 ; i ++ ) {
 + for ( int i = NUMBER1 ; i <= NUMBER0 ; i ++ ) {
 String body = STRING3 + i ;
 - sendExchange ( STRING4 , body ) ;
 + sendExchange ( multicastEndpointUri , body ) ;
 }

 resultEndpoint . assertIsSatisfied ( ) ;

Just found some typo in the AggregratedJmsRouteTest


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class GrIntentionTestCase extends LightCodeInsightFixtureTestCase {
 + public abstract class GrIntentionTestCase extends LightCodeInsightFixtureTestCase {
 COMMENT
 @ override
 protected LightProjectDescriptor getProjectDescriptor ( ) {


<nb> public abstract class ModalDialogBase extends DialogBox

 protected void onDialogShown ( )
 {
 + if ( okButton_ != null )
 + FocusHelper . setFocusDeferred ( okButton_ ) ;
 }

 protected void addOkButton ( ThemedButton okButton )

always focus ok button in message dialog


<nb> public class CyclicBarrier {
 final ReentrantLock lock = this . lock ;
 lock . lock ( ) ;
 try {
 + SINGLE
 + SINGLE
 + SINGLE
 @ retainedlocalref
 final Generation g = generation ;

Adds a comment explaining the need for RetainedLocalRef


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;

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

 public class FirebirdTemplates extends SQLTemplates {

 - protected static final Set < String > FIREBIRD_RESERVED_WORDS
 - = ImmutableSet . of ( ) ;
 private String limitOffsetTemplate = STRING0 ;

 private String limitTemplate = STRING1 ;


<nb> public class RequestServer extends NanoHTTPD {
 registerRequest ( new TypeaheadFileRequest ( ) ) ;
 registerRequest ( new TypeaheadS3BucketRequest ( ) ) ;
 registerRequest ( new TypeaheadHdfsPathRequest ( ) ) ;
 + registerRequest ( new TypeaheadRFModelKeyRequest ( ) ) ;
 + registerRequest ( new TypeaheadGLMModelKeyRequest ( ) ) ;

 SINGLE
 registerRequest ( new TestPoll ( ) ) ;

Fixed missing typeahed requests for models


<nb> public final class AgentIndexRunner implements AgentIndexRunnerMBean , Notificati

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 @ suppresswarnings ( STRING0 )
 public static synchronized AgentIndexRunner getInstance ( boolean enabledParam ) {


<nb> public class DiscreteSeekBar extends View {
 }

 }
 +
 private void notifyProgress ( int value , boolean fromUser ) {
 if ( mPublicChangeListener != null ) {
 mPublicChangeListener . onProgressChanged ( DiscreteSeekBar . this , value , fromUser ) ;
 <nb> public class DiscreteSeekBar extends View {
 }
 break ;
 case MotionEvent . ACTION_UP :
 + if ( ! isDragging ( ) && mAllowTrackClick ) {
 + startDragging ( event , false ) ;
 + updateDragging ( event ) ;
 + }
 + stopDragging ( ) ;
 + break ;
 case MotionEvent . ACTION_CANCEL :
 stopDragging ( ) ;
 break ;

Improve touch to seek code using as base model the code from AbsSeekBar from AOSP


<nb> public class MainTransform implements ASTTransformation {
 SourceLookup lookup = null ;

 try {
 - Assert . that ( nodes . length >= NUMBER0 ) ;
 - Assert . that ( nodes [ NUMBER1 ] instanceof ModuleNode ) ;
 ModuleNode module = ( ModuleNode ) nodes [ NUMBER1 ] ;

 lookup = new SourceLookup ( sourceUnit , new Janitor ( ) ) ;

moved JUnitIgnoreTest java from src test groovy to src test java


<nb> public class PublisherLimit
 COMMENT
 COMMENT
 COMMENT
 - public static final String NAME = STRING0 ;
 + public static final String NAME = STRING1 ;

 public static Position allocate (
 final CountersManager countersManager ,
 <nb> public class ReceiverHwm
 COMMENT
 COMMENT
 COMMENT
 - public static final String NAME = STRING2 ;
 + public static final String NAME = STRING3 ;

 public static Position allocate (
 final CountersManager countersManager ,
 <nb> public class SenderPos
 COMMENT
 COMMENT
 COMMENT
 - public static final String NAME = STRING4 ;
 + public static final String NAME = STRING5 ;

 public static Position allocate (
 final CountersManager countersManager ,
 <nb> public class SubscriberPos
 COMMENT
 COMMENT
 COMMENT
 - public static final String NAME = STRING6 ;
 + public static final String NAME = STRING7 ;

 public static Position allocate (
 final CountersManager countersManager ,

Java Name stream counters the same length for alignment


<nb> public final class InodeFileTest extends AbstractInodeTest {
 mThrown . expect ( InvalidFileSizeException . class ) ;
 mThrown . expectMessage ( STRING0 ) ;
 InodeFile inodeFile = createInodeFile ( NUMBER0 ) ;
 - inodeFile . complete ( - NUMBER0 ) ;
 + inodeFile . complete ( - NUMBER1 ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + @ test
 + public void setUnknownLengthTest ( ) throws Exception {
 + InodeFile inodeFile = createInodeFile ( NUMBER0 ) ;
 + inodeFile . complete ( Constants . UNKNOWN_SIZE ) ;
 }

 COMMENT
 <nb> public final class InodeFileTest extends AbstractInodeTest {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + @ test
 + public void completeUnknownTest ( ) throws Exception {
 + InodeFile inodeFile = createInodeFile ( NUMBER0 ) ;
 + inodeFile . complete ( Constants . UNKNOWN_SIZE ) ;
 + inodeFile . complete ( LENGTH ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 @ test


<nb> public class Install {
 + STRING0
 + STRING1
 + STRING2
 - + STRING3 +
 + + STRING3
 + distDir . getAbsolutePath ( )
 + STRING4 ) ;
 }


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

 + SINGLE
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SampleCamelApplication {
 }

 }
 + SINGLE


<nb> public class RequestParams {
 result . append ( STRING0 ) ;

 ArrayList < String > values = entry . getValue ( ) ;
 - for ( String value : values ) {
 - if ( values . indexOf ( value ) != NUMBER0 )
 + for ( int i = NUMBER0 ; i < values . size ( ) ; i ++ ) {
 + if ( i != NUMBER0 )
 result . append ( STRING0 ) ;
 result . append ( entry . getKey ( ) ) ;
 result . append ( STRING1 ) ;
 - result . append ( value ) ;
 + result . append ( values . get ( i ) ) ;
 }
 }


<nb> public class Indicator extends PointSet {
 TimeSurface surface ; SINGLE

 public Indicator ( PointSet targets , TimeSurface surface ) {
 + super ( NUMBER0 ) ; SINGLE
 this . targets = targets ;
 this . surface = surface ;
 - this . capacity = NUMBER0 ;
 - this . lons = new double [ NUMBER0 ] ;
 - this . lats = new double [ NUMBER0 ] ;
 SINGLE
 for ( Category cat : targets . categories . values ( ) ) {
 this . categories . put ( cat . id , new Category ( cat ) ) ;
 <nb> public class PointSet {
 return new PointSet ( NUMBER1 ) ;
 }

 - public PointSet ( ) {
 -
 - }
 -
 COMMENT
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 COMMENT
 public class ClientDetailsUserDetailsServiceTests {

 + @ suppresswarnings ( STRING0 )
 @ test ( expected = UsernameNotFoundException . class )
 public void shouldThrowUsernameNotFoundExceptionWhenNoSuchClient ( ) throws Exception {

 <nb> public class ClientDetailsUserDetailsServiceTests {
 testee . loadUserByUsername ( STRING1 ) ;
 }

 + @ suppresswarnings ( STRING0 )
 @ test ( expected = ClientRegistrationException . class )
 public void shouldConductOriginalException ( ) throws Exception {


<nb> interface ChannelOutboundInvoker {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 ChannelFuture write ( Object msg ) ;
 ChannelFuture write ( MessageList < ? > msgs ) ;
 <nb> interface ChannelOutboundInvoker {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 ChannelFuture write ( Object msg , ChannelPromise promise ) ;
 ChannelFuture write ( MessageList < ? > msgs , ChannelPromise promise ) ;
 <nb>
 package NAMESPACE ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 + @ deprecated
 public class IncompleteFlushException extends ChannelException {

 private static final long serialVersionUID = - NUMBER0 ;

Deprecate IncompleteFlushException as its not used anymore


<nb> public class ServletContextImpl implements ServletContext {
 if ( file != null ) {
 File base = res . getResourceManagerRoot ( ) ;
 String filePath = file . getAbsolutePath ( ) . substring ( base . getAbsolutePath ( ) . length ( ) ) ;
 - filePath . replace ( STRING0 , STRING1 ) ; SINGLE
 + filePath = filePath . replace ( STRING0 , STRING1 ) ; SINGLE
 if ( file . isDirectory ( ) ) {
 filePath = filePath + STRING2 ;
 }


<nb> public class UserProfileActivity extends BaseActivity implements RevealBackgroun
 }
 } ) ;
 } else {
 - userPhotosAdapter . setLockedAnimations ( true ) ;
 vRevealBackground . setToFinishedFrame ( ) ;
 + userPhotosAdapter . setLockedAnimations ( true ) ;
 }
 }

Fixed NPE for restoring user profile state


<nb> public final class ConcurrentHashMap < K , V > extends AbstractMap < K , V >
 currentTable = null ;
 nextEntry = null ;
 lastReturned = null ;
 + currentKey = null ;
 advance ( ) ;
 }

 <nb> public final class ConcurrentIdentityHashMap < K , V > extends AbstractMap < K , V >
 currentTable = null ;
 nextEntry = null ;
 lastReturned = null ;
 + currentKey = null ;
 advance ( ) ;
 }

 <nb> public final class ConcurrentIdentityWeakHashMap < K , V > extends AbstractMap < K , V >
 currentTable = null ;
 nextEntry = null ;
 lastReturned = null ;
 + currentKey = null ;
 advance ( ) ;
 }


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

 import NAMESPACE ;
 <nb> public abstract class BaseModelQueriable < ModelClass extends Model > implements Mo
 }

 @ override
 + public DatabaseStatement compileStatement ( ) {
 + return FlowManager . getDatabaseForTable ( table ) . getWritableDatabase ( ) . compileStatement ( getQuery ( ) ) ;
 + }
 +
 + @ override
 public String toString ( ) {
 return getQuery ( ) ;
 }
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public interface ModelQueriable < ModelClass extends Model > extends Queriable {
 AsyncQuery < ModelClass > async ( ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + DatabaseStatement compileStatement ( ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

new compile statement method from ModelQueriableObject


<nb> import static NAMESPACE ;
 COMMENT
 public abstract class AbstractLoadJavaTest extends TestCaseWithTmpdir {

 - public void doTest ( @ notnull String javaFileName ) throws Exception {
 + protected void doTest ( @ notnull String javaFileName ) throws Exception {
 Assert . assertTrue ( STRING0 + javaFileName , javaFileName . endsWith ( STRING1 ) ) ;
 File javaFile = new File ( javaFileName ) ;
 File ktFile = new File ( javaFile . getPath ( ) . replaceFirst ( STRING2 , STRING3 ) ) ;
 <nb> public abstract class AbstractLoadJavaTest extends TestCaseWithTmpdir {
 }
 }

 - public static void checkLoadedNamespaces (
 + private static void checkLoadedNamespaces (
 final File txtFile ,
 final NamespaceDescriptor kotlinNamespace ,
 final Pair < NamespaceDescriptor , BindingContext > javaNamespaceAndContext
 <nb> public abstract class AbstractLoadJavaTest extends TestCaseWithTmpdir {
 } ) ;
 }

 - public static void checkJavaNamespace (
 + private static void checkJavaNamespace (
 final File txtFile ,
 final Pair < NamespaceDescriptor , BindingContext > javaNamespaceAndContext
 ) {


<nb> public class PsiClassImplUtil {

 private static final Function < ClassIconRequest , Icon > FULL_ICON_EVALUATOR = new Function < ClassIconRequest , Icon > ( ) {
 public Icon fun ( ClassIconRequest r ) {
 - if ( ! r . psiClass . isValid ( ) && r . psiClass . getProject ( ) . isDisposed ( ) ) return null ;
 + if ( ! r . psiClass . isValid ( ) || r . psiClass . getProject ( ) . isDisposed ( ) ) return null ;

 final boolean isLocked = ( r . flags & Iconable . ICON_FLAG_READ_STATUS ) != NUMBER0 && ! r . psiClass . isWritable ( ) ;
 Icon symbolIcon = ElementPresentationUtil . getClassIconOfKind ( r . psiClass , ElementPresentationUtil . getClassKind ( r . psiClass ) ) ;


<nb> public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow
 setContentView ( R . layout . theme_browser_activity ) ;
 configureToolbar ( ) ;
 addBrowserFragment ( ) ;
 - mThemeSearchFragment = new ThemeSearchFragment ( ) ;
 }

 @ override
 <nb> public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow
 protected void onResume ( ) {
 super . onResume ( ) ;
 mIsRunning = true ;
 + mThemeSearchFragment = new ThemeSearchFragment ( ) ;
 ActivityId . trackLastActivity ( ActivityId . THEMES ) ;

 fetchThemesIfNoneAvailable ( ) ;

Moving initialization to onResume to handle context better


<nb> public class TaskMasterLifecycle
 leaderLifecycle . addManagedInstance ( taskRunner ) ;
 Initialization . makeServiceDiscoveryClient ( curator , serviceDiscoveryConfig , leaderLifecycle ) ;
 leaderLifecycle . addManagedInstance ( taskConsumer ) ;
 - leaderLifecycle . start ( ) ;

 leading = true ;

 try {
 + leaderLifecycle . start ( ) ;
 +
 while ( leading ) {
 mayBeStopped . await ( ) ;
 }

Stop leaderLifecycle if it dies while starting


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


<nb> public class TestNonBlockingAPI extends TomcatBaseTest {
 SINGLE
 SINGLE
 int count = NUMBER0 ;
 - while ( count < NUMBER1 ||
 - ! ( servlet . wlistener . onErrorInvoked || servlet . rlistener . onErrorInvoked ) ||
 + while ( count < NUMBER1 &&
 + ! ( servlet . wlistener . onErrorInvoked || servlet . rlistener . onErrorInvoked ) &&
 alv . getEntryCount ( ) < NUMBER2 ) {
 Thread . sleep ( NUMBER3 ) ;
 count ++ ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class OHttpResponse {
 - public static final String JSON_FORMAT = STRING0 ;
 + public static final String JSON_FORMAT = STRING1 ;
 public static final char [ ] URL_SEPARATOR = { STRING2 } ;

 private final OutputStream out ;

Fixed problem on fetch types in JSON called from Http requests


<nb> public class RegTestParams extends TestNet2Params {

 public RegTestParams ( ) {
 super ( ) ;
 - interval = NUMBER0 ;
 + SINGLE
 + SINGLE
 + interval = Integer . MAX_VALUE ;
 maxTarget = MAX_TARGET ;
 subsidyDecreaseBlockCount = NUMBER1 ;
 port = NUMBER2 ;


<nb> public class UserSwitcherController {
 switchToUserId ( id ) ;
 }

 + public void switchTo ( int userId ) {
 + final int count = mUsers . size ( ) ;
 + for ( int i = NUMBER0 ; i < count ; ++ i ) {
 + UserRecord record = mUsers . get ( i ) ;
 + if ( record . info != null && record . info . id == userId ) {
 + switchTo ( record ) ;
 + return ;
 + }
 + }
 +
 + Log . e ( TAG , STRING0 + userId ) ;
 + }
 +
 private void switchToUserId ( int id ) {
 try {
 pauseRefreshUsers ( ) ;


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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public abstract class AbstractService < T extends Configuration > {
 static {
 + SINGLE
 LoggingFactory . bootstrap ( ) ;
 }

 <nb> public abstract class AbstractService < T extends Configuration > {
 addCommand ( new ServerCommand < T > ( getConfigurationClass ( ) ) ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + @ suppresswarnings ( STRING0 )
 protected abstract void subclassServiceInsteadOfThis ( ) ;

 - public String getName ( ) {
 + public final String getName ( ) {
 return name ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 @ suppresswarnings ( STRING1 )
 public final Class < T > getConfigurationClass ( ) {
 return ( Class < T > ) ( ( ParameterizedType ) getClass ( ) . getGenericSuperclass ( ) ) . getActualTypeArguments ( ) [ NUMBER0 ] ;


<nb> public class ParameterDeclarationList implements GroovyElementTypes {
 GroovyElementType result = ParameterDeclaration . parse ( builder , ending ) ;

 if ( ! PARAMETER . equals ( result ) ) {
 - pdlMarker . rollbackTo ( ) ;
 + SINGLE
 + pdlMarker . done ( PARAMETERS_LIST ) ;
 return WRONGWAY ;
 }

 <nb> public class ParameterDeclarationList implements GroovyElementTypes {
 pdlMarker . done ( PARAMETERS_LIST ) ;
 return PARAMETERS_LIST ;
 } else {
 - pdlMarker . rollbackTo ( ) ;
 + SINGLE
 + pdlMarker . done ( PARAMETERS_LIST ) ;
 return WRONGWAY ;
 }

method always has parameter list even if it s incorrect


<nb> class Connection implements ManagedResource
 final int termOffset = ( int ) position & termLengthMask ;

 final TermReader termReader = termReaders [ activeIndex ] ;
 - final int messagesRead = termReader . read ( termOffset , fragmentHandler , fragmentCountLimit ) ;
 -
 - final long newPosition = position + ( termReader . offset ( ) - termOffset ) ;
 - if ( newPosition > position )
 + int messagesRead = NUMBER0 ;
 + try
 + {
 + messagesRead = termReader . read ( termOffset , fragmentHandler , fragmentCountLimit ) ;
 + }
 + finally
 {
 - subscriberPosition . setOrdered ( newPosition ) ;
 + final long newPosition = position + ( termReader . offset ( ) - termOffset ) ;
 + if ( newPosition > position )
 + {
 + subscriberPosition . setOrdered ( newPosition ) ;
 + }
 }

 return messagesRead ;

Handle case of progressing past poison message resulting in exception on connection poll


<nb> public class LanguageTokenSeparatorGenerators extends LanguageExtension < TokenSep
 @ override
 public ASTNode generateWhitespaceBetweenTokens ( ASTNode left , ASTNode right ) {
 Language l = PsiUtilCore . getNotAnyLanguage ( left ) ;
 + Language rightLang = PsiUtilCore . getNotAnyLanguage ( right ) ;
 + if ( rightLang . isKindOf ( l ) ) {
 + l = rightLang ; SINGLE
 + }
 final ParserDefinition parserDefinition = LanguageParserDefinitions . INSTANCE . forLanguage ( l ) ;
 if ( parserDefinition != null ) {
 PsiManager manager = right . getTreeParent ( ) . getPsi ( ) . getManager ( ) ;

on renaming property used in SPEL expression the extra space is inserted into SPEL after property name


<nb> public class ORecordIteratorClassDescendentOrder < REC extends ORecord > extends OR
 String iClassName , boolean iPolymorphic , boolean iUseCache , boolean iterateThroughTombstones ,
 OStorage . LOCKING_STRATEGY iLockingStrategy ) {
 super ( iDatabase , iLowLevelDatabase , iClassName , iPolymorphic , iUseCache , iterateThroughTombstones , iLockingStrategy ) ;
 +
 + currentClusterIdx = clusterIds . length - NUMBER0 ; SINGLE
 }

 @ override

Allow DESC iterator to safely override initial cluster position


<nb> public class FVecParseReader implements ParseReader {
 @ override public long getGlobalByteOffset ( ) {
 return _goffset ;
 }
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public Chunk getChunk ( ) { return _chk ; }
 }

Added JavaDoc to a new method on FVecParseReader


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class JavaPlugin implements Plugin {
 }
 }

 - public void onLoad ( ) { } SINGLE
 + public void onLoad ( ) { }
 +
 + public void onDisable ( ) { }
 +
 + public void onEnable ( ) { }

 public ChunkGenerator getDefaultWorldGenerator ( String worldName , String id ) {
 getServer ( ) . getLogger ( ) . severe ( STRING0 + getDescription ( ) . getFullName ( ) + STRING1 ) ;

onEnable and onDisable are no longer required implementations for JavaPlugins


<nb> public final class SQLiteDatabase extends SQLiteClosable {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public long insertWithOnConflict ( String table , String nullColumnHack ,
 ContentValues initialValues , int conflictAlgorithm ) {


<nb> public class BiomeManager
 public static ImmutableList < BiomeEntry > getBiomes ( BiomeType type )
 {
 int idx = type . ordinal ( ) ;
 - List < BiomeEntry > list = idx > biomes . length ? null : biomes [ idx ] ;
 + List < BiomeEntry > list = idx >= biomes . length ? null : biomes [ idx ] ;

 return list != null ? ImmutableList . copyOf ( list ) : null ;
 }
 <nb> public class BiomeManager

 if ( ret . ordinal ( ) >= biomes . length )
 {
 - biomes = Arrays . copyOf ( biomes , ret . ordinal ( ) ) ;
 + biomes = Arrays . copyOf ( biomes , ret . ordinal ( ) + NUMBER0 ) ;
 }

 return ret ;


<nb> public class Chronometer extends TextView {
 @ android.view.remotableviewmethod
 public void setCountDown ( boolean countDown ) {
 mCountDown = countDown ;
 + updateText ( SystemClock . elapsedRealtime ( ) ) ;
 }

 COMMENT

Fixed a bug where the chronometer wasn t updating the time


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 -
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class WebSocketUpgradeFilter extends ContainerLifeCycle implements Filter

 FilterHolder fholder = new FilterHolder ( filter ) ;
 fholder . setName ( name ) ;
 + fholder . setAsyncSupported ( true ) ;
 fholder . setInitParameter ( CONTEXT_ATTRIBUTE_KEY , WebSocketUpgradeFilter . class . getName ( ) ) ;
 context . addFilter ( fholder , pathSpec , dispatcherTypes ) ;

 <nb> public class WebSocketUpgradeFilter extends ContainerLifeCycle implements Filter
 String urlPatterns [ ] = { pathSpec } ;

 FilterRegistration . Dynamic dyn = context . addFilter ( name , filter ) ;
 + dyn . setAsyncSupported ( true ) ;
 dyn . setInitParameter ( CONTEXT_ATTRIBUTE_KEY , WebSocketUpgradeFilter . class . getName ( ) ) ;
 dyn . addMappingForUrlPatterns ( dispatcherTypes , isMatchAfter , urlPatterns ) ;

WebSocketUpgradeFilter must support async


<nb> public class RestPutRepositoryAction extends BaseRestHandler {
 putRepositoryRequest . source ( request . content ( ) . toUtf8 ( ) ) ;
 putRepositoryRequest . masterNodeTimeout ( request . paramAsTime ( STRING0 , putRepositoryRequest . masterNodeTimeout ( ) ) ) ;
 putRepositoryRequest . timeout ( request . paramAsTime ( STRING1 , putRepositoryRequest . timeout ( ) ) ) ;
 - putRepositoryRequest . masterNodeTimeout ( request . paramAsTime ( STRING0 , putRepositoryRequest . masterNodeTimeout ( ) ) ) ;
 client . admin ( ) . cluster ( ) . putRepository ( putRepositoryRequest , new AcknowledgedRestResponseActionListener < PutRepositoryResponse > ( request , channel , logger ) ) ;
 }
 }

Removed double masterNodeTimeout set in RestPutRepositoryAction


<nb> public interface Player extends HumanEntity , Conversable , CommandSender , Offline
 COMMENT
 public boolean canSee ( Player player ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean isFlying ( ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setFlying ( boolean value ) ;
 }

Added player isFlying setFlying to check if a player is flying or make them fly not


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MainActivity extends AppCompatActivity {
 deviceDataMap . put ( STRING0 , easyAppMod . getActivityName ( ) ) ;
 deviceDataMap . put ( STRING1 , easyAppMod . getAppVersion ( ) ) ;
 deviceDataMap . put ( STRING2 , easyAppMod . getAppVersionCode ( ) ) ;
 + deviceDataMap . put ( STRING3 ,
 + String . valueOf ( easyAppMod . isPermissionGranted ( Manifest . permission . CAMERA ) ) ) ;

 SINGLE
 EasyNetworkMod easyNetworkMod = new EasyNetworkMod ( this ) ;
 <nb> public class EasyAppMod {
 }
 return CheckValidityUtil . checkValidData ( result ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean isPermissionGranted ( String permission ) {
 + return context . checkCallingPermission ( permission ) == PackageManager . PERMISSION_GRANTED ;
 + }
 }

added isPermissionGranted function to EasyAppMod and sample app


<nb> public class LocalMUCRoom implements MUCRoom , GroupEventListener {

 @ override
 public void sendInvitationRejection ( JID to , String reason , JID sender ) {
 + if ( ( ( MultiUserChatServiceImpl ) mucService ) . getMUCDelegate ( ) != null ) {
 + switch ( ( ( MultiUserChatServiceImpl ) mucService ) . getMUCDelegate ( ) . sendingInvitationRejection ( this , to , sender , reason ) ) {
 + case HANDLED_BY_DELEGATE :
 + SINGLE
 + return ;
 + case HANDLED_BY_OPENFIRE :
 + SINGLE
 + break ;
 + }
 + }
 +
 Message message = new Message ( ) ;
 message . setFrom ( role . getRoleAddress ( ) ) ;
 message . setTo ( to ) ;


<nb> import static NAMESPACE ;
 public class HookSteps extends SuperSteps {
 private String b4WithoutArgs ;
 private static String myStatic = STRING0 ;
 + private static int beforeHookCount ;
 +
 + public HookSteps ( ) {
 + beforeHookCount = NUMBER0 ;
 + }

 @ before ( STRING1 )
 public void cryWolf ( ) {
 <nb> public class HookSteps extends SuperSteps {

 @ before
 public void setB4WithoutArgs ( ) {
 + beforeHookCount ++ ;
 b4WithoutArgs = STRING2 ;
 }

 <nb> public class HookSteps extends SuperSteps {
 public void setAfter ( Object scenario ) {
 myStatic = STRING0 ;
 assertEquals ( STRING2 , b4WithoutArgs ) ;
 + assertEquals ( NUMBER1 , beforeHookCount ) ;
 }
 }

add assertion that shows hooks not being cleared for each scenario


<nb> public class Nat464Xlat extends BaseNetworkObserver {
 mIsStarted = false ;
 mIsRunning = false ;
 mLP = new LinkProperties ( ) ;
 +
 + SINGLE
 + SINGLE
 + try {
 + if ( mNMService . isClatdStarted ( ) ) {
 + mNMService . stopClatd ( ) ;
 + }
 + } catch ( RemoteException e ) { } SINGLE
 }

 COMMENT
 <nb> public class Nat464Xlat extends BaseNetworkObserver {
 NetworkUtils . resetConnections (
 CLAT_INTERFACE_NAME ,
 NetworkUtils . RESET_IPV4_ADDRESSES ) ;
 + mBaseLP . removeStackedLink ( mLP ) ;
 + updateConnectivityService ( ) ;
 }
 Slog . i ( TAG , STRING0 + CLAT_INTERFACE_NAME +
 STRING1 + mIsRunning + STRING2 ) ;
 mIsRunning = false ;
 - mBaseLP . removeStackedLink ( mLP ) ;
 mLP . clear ( ) ;
 - updateConnectivityService ( ) ;
 Slog . i ( TAG , STRING3 + mLP ) ;
 }
 }

Stop clatd when starting the Nat464Xlat service


<nb> public class LocalSocket {
 if ( ! implCreated ) {
 synchronized ( this ) {
 if ( ! implCreated ) {
 - implCreated = true ;
 - impl . create ( true ) ;
 + try {
 + impl . create ( true ) ;
 + } finally {
 + implCreated = true ;
 + }
 }
 }
 }

Fix double checked locking bug in LocalSocket


<nb> public class ActionToolbarImpl extends JPanel implements ActionToolbar {
 if ( inside ) {
 if ( eachComp == mySecondaryActionsButton ) {
 assert isLast ;
 - eachBound . x = sizeToFit . width - eachBound . width ;
 - eachX = ( int ) eachBound . getMaxX ( ) ;
 + if ( sizeToFit . width != Integer . MAX_VALUE ) {
 + eachBound . x = sizeToFit . width - eachBound . width ;
 + eachX = ( int ) eachBound . getMaxX ( ) ;
 + }
 + else {
 + eachBound . x = eachX ;
 + }
 } else {
 eachBound . x = eachX ;
 eachX += eachBound . width ;

fix preferred size calculation for toolbar with secondary buttons


<nb> public final class AudioTrack {
 @ override
 public void run ( ) {
 try {
 + toRelease . flush ( ) ;
 toRelease . release ( ) ;
 } finally {
 releasingConditionVariable . open ( ) ;

Call AudioTrack flush before AudioTrack release


<nb> public abstract class ResizeToolWindowAction extends AnAction implements DumbAwa
 return ;
 }

 + Component owner = KeyboardFocusManager . getCurrentKeyboardFocusManager ( ) . getFocusOwner ( ) ;
 + if ( owner == null || ! ( SwingUtilities . getWindowAncestor ( owner ) instanceof IdeFrame ) ) {
 + setDisabled ( e ) ;
 + return ;
 + }
 +
 +
 ToolWindowManager mgr = ToolWindowManager . getInstance ( project ) ;

 ToolWindow window = myToolWindow ;

toolwindow resized by keybaord only when focused a fix


<nb> public class CRF implements SequenceLabeler < double [ ] > {
 COMMENT
 COMMENT
 COMMENT
 - public Trainer setMaximumLeafNodes ( int maxLeaves ) {
 + public Trainer setMaxNodes ( int maxLeaves ) {
 if ( maxLeaves < NUMBER0 ) {
 throw new IllegalArgumentException ( STRING0 + maxLeaves ) ;
 }
 <nb> public class CRF implements SequenceLabeler < double [ ] > {
 return this ;
 }

 - public Trainer setNumIterations ( int iters ) {
 + public Trainer setNumTrees ( int iters ) {
 if ( iters < NUMBER1 ) {
 throw new IllegalArgumentException ( STRING1 + iters ) ;
 }


<nb> public class AnalyzingCompletionLookupProvider extends CompletionLookupProvider
 output . writeVInt ( XAnalyzingSuggester . SEP_LABEL ) ;
 output . writeVInt ( XAnalyzingSuggester . END_BYTE ) ;
 output . writeVInt ( XAnalyzingSuggester . PAYLOAD_SEP ) ;
 + output . writeVInt ( XAnalyzingSuggester . HOLE_CHARACTER ) ;
 }
 }
 } ;


<nb> public class Table
 ByteBuffer name = iter . next ( ) ;
 IColumn newColumn = cf . getColumn ( name ) ; SINGLE
 if ( newColumn != null && cf . isMarkedForDelete ( ) )
 - {
 - SINGLE
 - SINGLE
 - SINGLE
 - if ( newColumn . timestamp ( ) <= cf . getMarkedForDeleteAt ( ) )
 - {
 - SINGLE
 - newColumn = null ;
 - }
 - }
 + throw new UnsupportedOperationException ( STRING0 ) ;
 IColumn oldColumn = oldIndexedColumns . getColumn ( name ) ;

 SINGLE


<nb> public class AdaptiveLogisticRegression implements OnlineLearner {
 private int poolSize = NUMBER0 ;
 private State < Wrapper > seed ;
 private int numFeatures ;
 + private double averagingWindow ;

 SINGLE
 private AdaptiveLogisticRegression ( ) {
 <nb> public class AdaptiveLogisticRegression implements OnlineLearner {
 this . numFeatures = numFeatures ;
 }

 + public void setAveragingWindow ( int averagingWindow ) {
 + seed . getPayload ( ) . getLearner ( ) . setWindowSize ( averagingWindow ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class WebAppClassLoader extends URLClassLoader
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void addClassFileTransformer ( ClassFileTransformer transformer )
 {
 _transformers . add ( transformer ) ;
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public boolean removeClassFileTransformer ( ClassFileTransformer transformer )
 {
 return _transformers . remove ( transformer ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void addTransformer ( ClassFileTransformer transformer )
 + {
 + _transformers . add ( transformer ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean removeTransformer ( ClassFileTransformer transformer )
 + {
 + return _transformers . remove ( transformer ) ;
 + }
 +

 COMMENT
 @ override


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class IndexShardTests extends ESSingleNodeTestCase {
 assertEquals ( NUMBER0 , indexShard . getOperationsCount ( ) ) ;
 }

 + @ testlogging ( STRING0 )
 public void testMarkAsInactiveTriggersSyncedFlush ( ) throws Exception {
 assertAcked ( client ( ) . admin ( ) . indices ( ) . prepareCreate ( STRING1 )
 . setSettings ( SETTING_NUMBER_OF_SHARDS , NUMBER1 , SETTING_NUMBER_OF_REPLICAS , NUMBER0 , IndexShard . INDEX_SHARD_INACTIVE_TIME_SETTING , STRING2 ) ) ;

TEST use TRACE Logging for syncFlush tests


<nb> public class ModelProcessor {
 COMMENT
 if ( ! isAbstractClass ( enclosingElement ) ) {
 GeneratedClassHolder holder = processHolder . getGeneratedClassHolder ( enclosingElement ) ;
 - processThrowing ( annotationHandler , annotatedElement , holder ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + if ( holder != null ) {
 + processThrowing ( annotationHandler , annotatedElement , holder ) ;
 + }
 } else {
 LOGGER . trace ( STRING0 , annotatedElement , enclosingElement ) ;
 }

Skip processing annotation when holder is null


<nb> public abstract class BaseBarChart extends BaseChart {
 onDataChanged ( ) ;
 }

 + public boolean isScrollEnabled ( ) {
 + return mScrollEnabled ;
 + }
 +
 + public void setScrollEnabled ( boolean _scrollEnabled ) {
 + mScrollEnabled = _scrollEnabled ;
 + onDataChanged ( ) ;
 + }
 +
 + public int getVisibleBars ( ) {
 + return mVisibleBars ;
 + }
 +
 + public void setVisibleBars ( int _visibleBars ) {
 + mVisibleBars = _visibleBars ;
 + onDataChanged ( ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT

added missing getter and setter for bar chart ScrollEnabled and VisibleBars


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class VideoDumpView extends GLSurfaceView implements MediaPlayerControl {
 mSurface = new SurfaceTexture ( mTextureID ) ;
 mSurface . setOnFrameAvailableListener ( this ) ;

 - mMediaPlayer . setTexture ( mSurface ) ;
 + Surface surface = new Surface ( mSurface ) ;
 + mMediaPlayer . setSurface ( surface ) ;
 + surface . release ( ) ;

 try {
 mMediaPlayer . prepare ( ) ;


<nb> public class JavaTextAreaPainter extends TextAreaPainter

 public JavaTextAreaPainter ( JavaTextArea textArea , TextAreaDefaults defaults ) {
 super ( textArea , defaults ) ;
 - new Exception ( ) . printStackTrace ( System . out ) ;

 addMouseListener ( new MouseAdapter ( ) {
 public void mouseClicked ( MouseEvent evt ) {


<nb> public class PercolatorService extends AbstractIndexComponent {
 throw new PercolatorException ( index , STRING0 ) ;
 } finally {
 searcher . release ( ) ;
 + indexService . cache ( ) . clear ( searcher . reader ( ) ) ;
 }
 }

clear the percolator reader from the cache explicitly


<nb> public abstract class JSType implements Serializable {
 return true ;
 }
 FunctionType ctor = objType . getConstructor ( ) ;
 - return ctor != null && ctor . makesDicts ( ) ;
 + SINGLE
 + if ( ctor == null ) {
 + JSDocInfo info = objType . getJSDocInfo ( ) ;
 + return info != null && info . makesDicts ( ) ;
 + } else {
 + return ctor . makesDicts ( ) ;
 + }
 }
 return false ;
 }
 <nb> public class TypeCheckTest extends CompilerTypeTestCase {
 STRING0 ) ;
 }

 + public void testGetpropDict7 ( ) throws Exception {
 + testTypes ( STRING1 ,
 + STRING0 ) ;
 + }
 +
 public void testGetelemStruct1 ( ) throws Exception {
 testTypes ( STRING2 +
 STRING3 +

Do type checks for obj lits annotated with dict


<nb> public class UnindexedFilesUpdater implements CacheUpdater {
 @ override
 public void updatingDone ( ) {
 if ( myFinishedUpdate . compareAndSet ( false , true ) ) {
 - IndexingStamp . flushCache ( null ) ;
 myIndex . filesUpdateFinished ( ) ;
 LOG . info ( STRING0 + ( System . currentTimeMillis ( ) - myStarted ) + STRING1 ) ;
 }

revert flush remaining indexing stamps once we finished indexed files updating as we need to also flush indices data


<nb> public class Connection {

 public void setTimeoutInfinite ( ) {
 try {
 + socket . setKeepAlive ( true ) ;
 socket . setSoTimeout ( NUMBER0 ) ;
 } catch ( SocketException ex ) {
 throw new JedisException ( ex ) ;
 <nb> public class Connection {
 public void rollbackTimeout ( ) {
 try {
 socket . setSoTimeout ( timeout ) ;
 + socket . setKeepAlive ( false ) ;
 } catch ( SocketException ex ) {
 throw new JedisException ( ex ) ;
 }

set keepAlive on pub sub sockets infinite timeout in case we don t see the connection close


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class ExasolTable extends ExasolTableBase implements DBPRefreshableObject , DBPNamedObject2 , DBDPseudoAttributeContainer , ExasolSourceObject {
 + public class ExasolTable extends ExasolTableBase implements DBPRefreshableObject , DBPNamedObject2 , ExasolSourceObject {

 private Boolean hasDistKey ;
 private Timestamp lastCommit ;
 <nb> public class ExasolTable extends ExasolTableBase implements DBPRefreshableObject
 return DBSObjectState . NORMAL ;
 }

 - @ override
 - public DBDPseudoAttribute [ ] getPseudoAttributes ( ) throws DBException {
 - return new DBDPseudoAttribute [ ] { ExasolConstants . PSEUDO_ATTR_RID_BIT } ;
 - }
 -
 }

Removed PseudoAttributes not supported in Exasol


<nb> public class MainActivityTest extends ActivityInstrumentationTestCase2 < MainActiv
 openNavDrawer ( ) ;
 solo . clickOnText ( solo . getString ( R . string . add_feed_label ) ) ;
 solo . enterText ( NUMBER0 , feed . getDownload_url ( ) ) ;
 - solo . clickOnButton ( NUMBER0 ) ;
 + solo . clickOnButton ( solo . getString ( R . string . confirm_label ) ) ;
 solo . waitForActivity ( DefaultOnlineFeedViewActivity . class ) ;
 solo . waitForView ( R . id . butSubscribe ) ;
 assertEquals ( solo . getString ( R . string . subscribe_label ) , solo . getButton ( NUMBER0 ) . getText ( ) . toString ( ) ) ;

fixed test that was broken in prior PR wasn t getting the right button for adding a feed


<nb> public class IOUtils {
 COMMENT
 public static String slurpFile ( String filename , String encoding )
 throws IOException {
 - Reader r = readerFromString ( filename , encoding ) ;
 + Reader r = getBufferedReaderFromClasspathOrFileSystem ( filename , encoding ) ;
 return IOUtils . slurpReader ( r ) ;
 }


<nb> public class PhoneWindowManager implements WindowManagerPolicy {
 IShortcutService shortcutService = mShortcutKeyServices . get ( shortcutCode ) ;
 if ( shortcutService != null ) {
 try {
 - shortcutService . notifyShortcutKeyPressed ( shortcutCode ) ;
 + if ( isUserSetupComplete ( ) ) {
 + shortcutService . notifyShortcutKeyPressed ( shortcutCode ) ;
 + }
 } catch ( RemoteException e ) {
 mShortcutKeyServices . delete ( shortcutCode ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class NUIEditorScreen extends CoreScreenLayer {
 return false ;
 }

 + @ override
 + public boolean onKeyEvent ( NUIKeyEvent event ) {
 + if ( event . isDown ( ) && event . getKey ( ) == Keyboard . Key . ESCAPE ) {
 + getAnimationSystem ( ) . stop ( ) ;
 + nuiEditorSystem . toggleEditor ( ) ;
 + return true ;
 + }
 + return false ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class IngestBootstrapper extends AbstractLifecycleComponent implements Cl
 }

 void forkAndInstallIngestIndexTemplate ( ) {
 - threadPool . executor ( ThreadPool . Names . GENERIC ) . execute ( ( ) - > {
 - try {
 - installIngestIndexTemplate ( ) ;
 - } catch ( IOException e ) {
 - logger . debug ( STRING0 , e ) ;
 - }
 - } ) ;
 + try {
 + threadPool . executor ( ThreadPool . Names . GENERIC ) . execute ( ( ) - > {
 + try {
 + installIngestIndexTemplate ( ) ;
 + } catch ( IOException e ) {
 + logger . debug ( STRING0 , e ) ;
 + }
 + } ) ;
 + } catch ( RejectedExecutionException e ) {
 + logger . debug ( STRING1 , e ) ;
 + }
 }

 void installIngestIndexTemplate ( ) throws IOException {

Also ignore rejected execution exception when installing index template


<nb>
 COMMENT
 package NAMESPACE ;

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

Remove unused import in o e p PluginManagerIT


<nb> public class StickyListHeadersListView extends FrameLayout {
 SINGLE
 SINGLE
 SINGLE
 - final boolean isFirstViewBelowTop = mList . getFirstVisiblePosition ( ) == NUMBER0
 + final boolean doesListHaveChildren = mList . getChildCount ( ) != NUMBER0 ;
 + final boolean isFirstViewBelowTop = doesListHaveChildren && mList . getFirstVisiblePosition ( ) == NUMBER0
 && mList . getChildAt ( NUMBER0 ) . getTop ( ) > NUMBER0 ;
 final boolean isFirstVisibleItemOutsideAdapterRange = realFirstVisibleItem > adapterCount - NUMBER1
 || realFirstVisibleItem < NUMBER0 ;
 - final boolean doesListHaveChildren = mList . getChildCount ( ) != NUMBER0 ;
 if ( ! doesListHaveChildren || isFirstVisibleItemOutsideAdapterRange
 || isFirstViewBelowTop ) {
 clearHeader ( ) ;


<nb> public class EntityRegainHealthEvent extends EntityEvent implements Cancellable
 public enum RegainReason {

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 REGEN ,
 COMMENT

Changed documentation for RegainReason REGEN ENUM to reflect latest code


<nb> public class ParseTests extends TestCase {
 + STRING0
 + STRING1
 + STRING2
 - + STRING3
 - + STRING4 +
 + + STRING5
 + + STRING6 +
 STRING7 ;

 protected String makeImports ( ) {


<nb> public abstract class TWAbsLayoutManager extends LayoutManager {
 }
 }

 - private int getStartWithPadding ( ) {
 + protected int getStartWithPadding ( ) {
 return ( mIsVertical ? getPaddingTop ( ) : getPaddingLeft ( ) ) ;
 }

 - private int getEndWithPadding ( ) {
 + protected int getEndWithPadding ( ) {
 if ( mIsVertical ) {
 return ( getHeight ( ) - getPaddingBottom ( ) ) ;
 } else {

core Make getEndWithPadding and getStartWithPadding public


<nb> public class LockPatternKeyguardView extends KeyguardViewBase {
 COMMENT
 static private class FastBitmapDrawable extends Drawable {
 private Bitmap mBitmap ;
 + private int mOpacity ;

 private FastBitmapDrawable ( Bitmap bitmap ) {
 mBitmap = bitmap ;
 + mOpacity = mBitmap . hasAlpha ( ) ? PixelFormat . TRANSLUCENT : PixelFormat . OPAQUE ;
 }

 @ override
 <nb> public class LockPatternKeyguardView extends KeyguardViewBase {

 @ override
 public int getOpacity ( ) {
 - return PixelFormat . TRANSLUCENT ;
 + return mOpacity ;
 }

 @ override

Improve the rendering speed of the lock screen by reporting the appropriate opacity for the background wallpaper


<nb> public class PutAllOperation extends AbstractMapOperation implements PartitionAw
 mapServiceContext . interceptAfterPut ( name , dataValue ) ;
 EntryEventType eventType = dataOldValue == null ? EntryEventType . ADDED : EntryEventType . UPDATED ;
 final MapEventPublisher mapEventPublisher = mapServiceContext . getMapEventPublisher ( ) ;
 - dataValue = getPostProcessedValueIfAvailable ( mapServiceContext , recordStore , dataKey , dataValue ) ;
 + dataValue = getValueOrPostProcessedValue ( mapServiceContext , recordStore , dataKey , dataValue ) ;
 mapEventPublisher . publishEvent ( getCallerAddress ( ) , name , eventType , dataKey , dataOldValue , dataValue ) ;
 keysToInvalidate . add ( dataKey ) ;

 <nb> public class PutAllOperation extends AbstractMapOperation implements PartitionAw
 evict ( false ) ;
 }

 - private Data getPostProcessedValueIfAvailable ( MapServiceContext mapServiceContext , RecordStore recordStore ,
 - Data dataKey , Data dataValue ) {
 + private Data getValueOrPostProcessedValue ( MapServiceContext mapServiceContext , RecordStore recordStore ,
 + Data dataKey , Data dataValue ) {
 if ( ! recordStore . getMapDataStore ( ) . isPostProcessingMapStore ( ) ) {
 return dataValue ;
 }

rename getPostProcessedValueIfAvailable to getValueOrPostProcessedValue


<nb> public class ControlFlowAnalyzer extends JavaElementVisitor {
 myAssertionError = createClassType ( manager , scope , JAVA_LANG_ASSERTION_ERROR ) ;
 myString = myFactory . createTypeValue ( createClassType ( manager , scope , JAVA_LANG_STRING ) , Nullness . NOT_NULL ) ;

 - PsiParameter mockVar = JavaPsiFacade . getElementFactory ( manager . getProject ( ) ) . createParameter ( STRING0 , createClassType ( manager , scope , JAVA_LANG_OBJECT ) ) ;
 + PsiParameter mockVar = JavaPsiFacade . getElementFactory ( manager . getProject ( ) ) . createParameterFromText ( STRING1 , null ) ;
 myExceptionHolder = myFactory . getVarFactory ( ) . createVariableValue ( mockVar , false ) ;

 myFields = new HashSet < DfaVariableValue > ( ) ;

don t reformat mock variable during control flow building


<nb> public class JobCollectContext implements ExecutionSubContext , RowUpstream , Exec
 LOGGER . trace ( STRING0 , jobSearchContextId , numActive ) ;

 shardQueryContext . addCallback ( new RemoveQueryContextCallback ( jobSearchContextId ) ) ;
 - EngineSearcherDelegate searcherDelegate = acquireSearcher ( shardQueryContext . indexShard ( ) ) ;
 + EngineSearcherDelegate searcherDelegate ;
 try {
 + searcherDelegate = acquireSearcher ( shardQueryContext . indexShard ( ) ) ;
 shardQueryContext . searcher ( searcherDelegate ) ;
 } catch ( Exception e ) {
 SINGLE

handle exception while acquiring a searcher


<nb> public class JsonArray extends JsonElement implements Iterable < Object > {
 return Json . encode ( this . list ) ;
 }

 + public String encodePrettily ( ) throws EncodeException {
 + return Json . encodePrettily ( this . list ) ;
 + }
 +
 public JsonArray copy ( ) {
 return new JsonArray ( encode ( ) ) ;
 }
 <nb> public class JsonObject extends JsonElement {
 return Json . encode ( this . map ) ;
 }

 + public String encodePrettily ( ) {
 + return Json . encodePrettily ( this . map ) ;
 + }
 +
 public JsonObject copy ( ) {
 return new JsonObject ( encode ( ) ) ;
 }

Expose encodePrettily on JsonObject and JsonArray


<nb> public class ProxyServletTest
 {
 final String target = STRING0 ;
 final String query = STRING1 ;
 - prepareServer ( new HttpServlet ( )
 + startServer ( new HttpServlet ( )
 {
 @ override
 protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException


<nb> public class MediaCommandPlayerImpl extends AbstractPrologCommandPlayer implemen
 if ( mediaPlayer != null ) {
 mediaPlayer . stop ( ) ;
 }
 - SINGLE
 - SINGLE
 - mediaPlayer . release ( ) ;
 - mediaPlayer = null ;
 - SINGLE
 + SINGLE
 if ( ctx != null ) {
 abandonAudioFocus ( ) ;
 }
 <nb> public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer {
 if ( mTts != null ) {
 mTts . stop ( ) ;
 }
 - SINGLE
 - SINGLE
 - mTts = null ;
 - SINGLE
 + SINGLE
 if ( ctx != null ) {
 abandonAudioFocus ( ) ;
 }


<nb> public class ConfiguringDefaultReturnValuesTest extends TestBase {
 @ after
 public void resetDefaultReturnValues ( ) {
 MockitoConfiguration . instance ( ) . resetReturnValues ( ) ;
 -
 }

 private final class MyDefaultReturnValues implements ReturnValues {


<nb> public class Function extends Pointer {
 return false ;
 }

 + COMMENT
 + equivalent .
 + COMMENT
 + public int hashCode ( ) {
 + return callFlags + options . hashCode ( ) + peer . hashCode ( ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class PidFileTests extends ElasticsearchTestCase {
 if ( randomBoolean ( ) ) {
 try {
 Path link = dir . resolve ( STRING0 ) ;
 - Files . createSymbolicLink ( link , parent ) ;
 + Files . createSymbolicLink ( link , parent . getFileName ( ) ) ;
 parent = link ;
 } catch ( UnsupportedOperationException ex ) {
 SINGLE


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

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

 COMMENT
 COMMENT
 <nb> public class GenerateEqualsWizard extends AbstractWizard {
 myNonNullPanel = new MemberSelectionPanel ( CodeInsightBundle . message ( STRING0 ) ,
 new MemberInfo [ NUMBER0 ] , null ) ;
 myFieldsToNonNull = createFieldToMemberInfoMap ( false ) ;
 + for ( final Map . Entry < PsiElement , MemberInfo > entry : myFieldsToNonNull . entrySet ( ) ) {
 + entry . getValue ( ) . setChecked ( ( ( PsiField ) entry . getKey ( ) ) . getModifierList ( ) . findAnnotation ( NotNull . class . getName ( ) ) != null ) ;
 + }

 final MyTableModelListener listener = new MyTableModelListener ( ) ;
 if ( myEqualsPanel != null ) {

take NotNull into account on hashCode generation


<nb> public class QNMinimizer implements Minimizer < DiffFunction > , HasEvaluators {
 DIAGONAL , SCALAR
 }

 - eLineSearch lsOpt = eLineSearch . MINPACK ; SINGLE
 - eScaling scaleOpt = eScaling . DIAGONAL ; SINGLE
 - eState state = eState . CONTINUE ;
 + private eLineSearch lsOpt = eLineSearch . MINPACK ;
 + private eScaling scaleOpt = eScaling . DIAGONAL ;
 + private eState state = eState . CONTINUE ;

 public QNMinimizer ( ) {
 <nb> public class QNMinimizer implements Minimizer < DiffFunction > , HasEvaluators {
 }

 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class QNMinimizer implements Minimizer < DiffFunction > , HasEvaluators {
 return dfunc . valueAt ( x ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void useOWLQN ( boolean use , double lambda ) {
 this . useOWLQN = use ;
 this . lambdaOWL = lambda ;

Add javadoc make a few more things private


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

 COMMENT


<nb> public class PyCondaPackageService implements PersistentStateComponent < PyCondaPa
 @ nullable
 private static String findExecutable ( String condaName , VirtualFile condaFolder ) {
 if ( condaFolder != null ) {
 - final VirtualFile bin = condaFolder . findChild ( STRING0 ) ;
 + final VirtualFile bin = condaFolder . findChild ( SystemInfo . isWindows ? STRING1 : STRING0 ) ;
 if ( bin != null ) {
 final VirtualFile [ ] children = bin . getChildren ( ) ;
 if ( children . length == NUMBER0 ) return null ;


<nb> public class Util {
 mHasLBEDetermined = true ;
 try {
 File apps = new File ( Environment . getDataDirectory ( ) + File . separator + STRING0 ) ;
 - if ( apps != null )
 - for ( File file : apps . listFiles ( ) )
 + File [ ] files = ( apps == null ? null : apps . listFiles ( ) ) ;
 + if ( files != null )
 + for ( File file : files )
 if ( file . getName ( ) . startsWith ( STRING1 ) )
 mHasLBE = true ;
 } catch ( Throwable ex ) {


<nb> public class Options
 private void createDefaultOptions ( )
 {
 addOption ( new ToggleOption ( STRING0 , STRING1 , false ) ) ;
 - addOption ( new ToggleOption ( STRING2 , STRING3 , false ) ) ;
 + SINGLE
 addOption ( new ToggleOption ( STRING4 , STRING5 , false ) ) ;
 - addOption ( new ToggleOption ( STRING6 , STRING7 , false ) ) ;
 + SINGLE
 addOption ( new ListOption ( STRING8 , STRING9 , new String [ ] { STRING10 , STRING11 , STRING12 } , STRING13 ) ) ;
 addOption ( new ToggleOption ( STRING14 , STRING14 , true ) ) ;
 addOption ( new NumberOption ( STRING15 , STRING16 , NUMBER0 ) ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class Functions {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static Function < Object , String > toStringFunction ( ) {
 return ToStringFunction . INSTANCE ;


<nb> public class ModelSchemaCache {
 }

 public < T > void set ( ModelType < T > type , ModelSchema < T > schema ) {
 - Map < ModelType < ? > , ModelSchema < ? > > typeCache = cache . get ( WeakClassSet . of ( type ) ) ;
 + WeakClassSet cacheKey = WeakClassSet . of ( type ) ;
 + Map < ModelType < ? > , ModelSchema < ? > > typeCache = cache . get ( cacheKey ) ;
 if ( typeCache == null ) {
 typeCache = Maps . newHashMap ( ) ;
 - cache . put ( WeakClassSet . of ( type ) , typeCache ) ;
 + cache . put ( cacheKey , typeCache ) ;
 }
 typeCache . put ( type , schema ) ;
 }


<nb> public abstract class AbsLayoutContainer extends ViewGroup {

 protected void dispatchAnimationsStarted ( ) {
 for ( FreeFlowEventListener listener : listeners ) {
 - listener . animationsStarted ( ) ;
 + listener . layoutChangeAnimationsStarted ( ) ;
 }
 }

 <nb> import NAMESPACE ;
 COMMENT
 public interface FreeFlowEventListener {

 - public void animationsStarted ( ) ;
 + public void layoutChangeAnimationsStarted ( ) ;

 public void layoutChangeAnimationsComplete ( ) ;

Renamed FFListener s animationstarted method to layoutChangeAnimationsStarted


<nb> public class LastUnchangedContentTracker {
 }

 private static void saveContentReference ( VirtualFile file , int contentId ) {
 - SINGLE
 + if ( contentId == NUMBER0 ) {
 + return ; SINGLE
 + }
 +
 + LOG . assertTrue ( contentId > NUMBER0 , contentId ) ;
 if ( ChangeListManagerImpl . DEBUG ) {
 System . out . println ( STRING0 ) ;
 try {


<nb> public class MainActivity extends AppCompatActivity

 bindActivity ( ) ;

 - mToolbar . setTitle ( STRING0 ) ;
 mAppBarLayout . addOnOffsetChangedListener ( this ) ;

 - setSupportActionBar ( mToolbar ) ;
 + mToolbar . inflateMenu ( R . menu . menu_main ) ;
 startAlphaAnimation ( mTitle , NUMBER0 , View . INVISIBLE ) ;
 }


<nb> public abstract class WsRemoteEndpointImplBase implements RemoteEndpoint {
 sm . getString ( STRING0 ) ) ;
 }

 + used = true ;
 if ( buffer . remaining ( ) == NUMBER0 ) {
 flush ( ) ;
 }


<nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SessionAttributesCacheKey {
 }

 @ override
 - @ group
 public String toString ( ) {
 return this . id ;
 }
 <nb> public class SessionAttributeCacheKey {

 @ override
 public int hashCode ( ) {
 - return this . id . hashCode ( ) ;
 + return this . id . hashCode ( ) ^ this . attribute . hashCode ( ) ;
 }

 @ override


<nb> public class PluginManager {
 }

 SINGLE
 + ClassLoader oldLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ;
 + Thread . currentThread ( ) . setContextClassLoader ( pluginLoader ) ;
 plugin . initializePlugin ( this , pluginDir ) ;
 + Thread . currentThread ( ) . setContextClassLoader ( oldLoader ) ;

 SINGLE
 Element adminElement = ( Element ) pluginXML . selectSingleNode ( STRING0 ) ;

Set context class loader to be plugin class loader when initializing plugin


<nb> public class SqlQueryManager
 QueryExecution execution = new FailedQueryExecution ( queryId , query , session , self , queryExecutor , e ) ;

 queries . put ( queryId , execution ) ;
 - stats . queryStarted ( ) ;
 queryMonitor . createdEvent ( execution . getQueryInfo ( ) ) ;
 queryMonitor . completionEvent ( execution . getQueryInfo ( ) ) ;
 stats . queryFinished ( execution . getQueryInfo ( ) ) ;
 - stats . queryStopped ( ) ;
 expirationQueue . add ( execution ) ;

 return execution . getQueryInfo ( ) ;

Don t count queries that failed to parse as started


<nb> public class RippleDrawable extends LayerDrawable {
 if ( mAnimatingRipplesCount >= MAX_RIPPLES ) {
 SINGLE
 SINGLE
 - Log . d ( LOG_TAG , STRING0 , new RuntimeException ( ) ) ;
 return ;
 }

Remove the max ripple count exceeded warning


<nb> public class ScopeChooserConfigurable extends MasterDetailsComponent implements
 loadScopes ( mySharedScopesManager ) ;
 loadScopes ( myLocalScopesManager ) ;

 - loadStateOrder ( ) ;
 + if ( isModified ( ) ) {
 + loadStateOrder ( ) ;
 + }
 +

 TreeUtil . sort ( myRoot , new Comparator < DefaultMutableTreeNode > ( ) {
 public int compare ( final DefaultMutableTreeNode o1 , final DefaultMutableTreeNode o2 ) {

already modified when open scopes configurable fixed small improvement


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

 public class SerialBitmapReferenceCounter implements BitmapReferenceCounter {

 <nb> public class SerialBitmapReferenceCounter implements BitmapReferenceCounter {
 }
 }

 - private final Map < Bitmap , InnerTracker > counter = new HashMap < Bitmap , InnerTracker > ( ) ;
 + private final Map < Bitmap , InnerTracker > counter = new WeakHashMap < Bitmap , InnerTracker > ( ) ;
 private final BitmapPool target ;
 private final InnerTrackerPool pool = new InnerTrackerPool ( ) ;

Fix a memory leak when bitmaps not released


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

 import NAMESPACE ;
 <nb> public class ModuleProjectStructureElement extends ProjectStructureElement {
 public void check ( ProjectStructureProblemsHolder problemsHolder ) {
 final ModifiableModuleModel moduleModel = myContext . getModulesConfigurator ( ) . getModuleModel ( ) ;
 final Module [ ] all = moduleModel . getModules ( ) ;
 + if ( ! ArrayUtil . contains ( myModule , all ) ) {
 + return ; SINGLE
 + }
 +
 for ( Module each : all ) {
 if ( each != myModule && myContext . getRealName ( each ) . equals ( myContext . getRealName ( myModule ) ) ) {
 problemsHolder . registerError ( ProjectBundle . message ( STRING0 ) ) ;


<nb> public class CommandExecutor {
 return exitCode ;

 } catch ( java . util . concurrent . TimeoutException te ) {
 - process . destroy ( ) ;
 throw new TimeoutException ( command , STRING0 + timeoutMilliseconds + STRING1 , te ) ;

 } catch ( CommandException e ) {
 <nb> public class CommandExecutor {
 throw new CommandException ( command , e ) ;

 } finally {
 + if ( process != null ) {
 + process . destroy ( ) ;
 + }
 waitUntilFinish ( outputGobbler ) ;
 waitUntilFinish ( errorGobbler ) ;
 closeStreams ( process ) ;


<nb> public class WriteResult {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 + @ deprecated
 public synchronized CommandResult getLastError ( WriteConcern concern ) {
 if ( _lastErrorResult != null ) {
 SINGLE

deprecate c m WriteResult getLastError WriteConcern


<nb> public class MongoAsynchronousSocketChannelGateway {
 callback . onResult ( new ResponseBuffers ( replyHeader , null , System . nanoTime ( ) - start ) , null ) ;
 }
 else {
 - fillAndFlipBuffer ( pool . get ( replyHeader . getMessageLength ( ) - REPLY_HEADER_LENGTH ) , new ResponseBodyCallback ( replyHeader ) ) ;
 + fillAndFlipBuffer (
 + pool . get ( replyHeader . getMessageLength ( ) - REPLY_HEADER_LENGTH ) ,
 + new ResponseBodyCallback ( replyHeader )
 + ) ;
 }
 }
 }


<nb> public class HistoryEntry {
 if ( date != null ) {
 this . date = ( Date ) date . clone ( ) ;
 } else {
 - date = null ;
 + this . date = null ;
 }
 }

Fixed bogus assignment assigned parameter instead of member


<nb> public class FileHistorySessionPartner implements VcsAppendableHistorySessionPar
 }
 ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) {
 public void run ( ) {
 - String actionName = VcsBundle . message ( myPath . isDirectory ( ) ? STRING0 : STRING1 ,
 - myPath . getName ( ) ) ;
 - ContentManager contentManager = ProjectLevelVcsManagerEx . getInstanceEx ( myVcs . getProject ( ) ) . getContentManager ( ) ;
 -
 myFileHistoryPanel = resetHistoryPanel ( ) ;
 ToolWindow toolWindow = ToolWindowManager . getInstance ( myVcs . getProject ( ) ) . getToolWindow ( ToolWindowId . VCS ) ;
 assert toolWindow != null : STRING2 ;


<nb> public class ImageView extends View {
 protected boolean verifyDrawable ( Drawable dr ) {
 return mDrawable == dr || super . verifyDrawable ( dr ) ;
 }
 -
 +
 @ override
 public void jumpDrawablesToCurrentState ( ) {
 super . jumpDrawablesToCurrentState ( ) ;
 <nb> public class ImageView extends View {
 @ override
 public void invalidateDrawable ( Drawable dr ) {
 if ( dr == mDrawable ) {
 + if ( dr != null ) {
 + SINGLE
 + final int w = dr . getIntrinsicWidth ( ) ;
 + final int h = dr . getIntrinsicHeight ( ) ;
 + if ( w != mDrawableWidth || h != mDrawableHeight ) {
 + mDrawableWidth = w ;
 + mDrawableHeight = h ;
 + }
 + }
 COMMENT
 COMMENT
 COMMENT

ImageView updates cached drawable dimensions when drawable updates


<nb> public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr
 final Map . Entry < String , Object > entry = projections . entrySet ( ) . iterator ( ) . next ( ) ;

 if ( entry . getValue ( ) instanceof OSQLFunctionRuntime ) {
 - if ( ( ( OSQLFunctionRuntime ) entry . getValue ( ) ) . function instanceof OSQLFunctionCount ) {
 + final OSQLFunctionRuntime rf = ( OSQLFunctionRuntime ) entry . getValue ( ) ;
 + if ( rf . function instanceof OSQLFunctionCount && rf . configuredParameters . length == NUMBER0
 + && STRING0 . equals ( rf . configuredParameters [ NUMBER1 ] ) ) {
 long count = NUMBER1 ;

 if ( compiledFilter . getTargetClasses ( ) != null ) {


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> class EntityGraphValidator {
 if ( ! referencedElement . isPresent ( ) ) {
 attributeValidator . warning ( STRING0 +
 attribute . referencedColumn ( ) + STRING1 + attribute ) ;
 + } else {
 + SINGLE
 + referenced . get ( ) . attributes ( ) . values ( ) . stream ( )
 + . filter ( AttributeDescriptor : : isForeignKey )
 + . map ( graph : : referencingEntity )
 + . filter ( Optional : : isPresent )
 + . map ( Optional : : get )
 + . filter ( entity : : equals )
 + . findAny ( )
 + . ifPresent ( other - > attributeValidator . error (
 + STRING2 +
 + entity . typeName ( ) + STRING3 + other . typeName ( ) ,
 + ForeignKey . class ) ) ;
 }
 } else {
 attributeValidator . error ( STRING4 +

Detect circular foreign key references at compile time


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

 COMMENT
 COMMENT
 <nb> public class MyResourceTest {

 private static WebTarget target ;

 - @ beforeclass
 - public static void setUpClass ( ) {
 + @ before
 + public void setUpClass ( ) {
 Client client = ClientBuilder . newClient ( ) ;
 target = client . target ( STRING0 ) ;
 }

Initializing the client before each test


<nb> public class OpenPgpApi {
 SINGLE
 public static final String EXTRA_PASSPHRASE = STRING0 ;

 - SINGLE
 - public static final String EXTRA_NFC_DATA = STRING1 ;
 + SINGLE
 + public static final String EXTRA_NFC_SIGNED_HASH = STRING2 ;
 + public static final String EXTRA_NFC_SIG_CREATION_TIMESTAMP = STRING3 ;

 SINGLE
 public static final String EXTRA_KEY_ID = STRING4 ;


<nb> public class NewProject {
 params = new HashMap < String , Object > ( ) ;
 }

 - public static final NewProject create ( ) {
 + public static NewProject create ( ) {
 return new NewProject ( ) ;
 }


<nb> public class JacksonModule implements Module
 @ provides @ lazysingleton @ smile
 public ObjectMapper smileMapper ( )
 {
 - ObjectMapper retVal = new DefaultObjectMapper ( new SmileFactory ( ) ) ;
 + final SmileFactory smileFactory = new SmileFactory ( ) ;
 + smileFactory . delegateToTextual ( true ) ;
 + final ObjectMapper retVal = new DefaultObjectMapper ( smileFactory ) ;
 retVal . getFactory ( ) . setCodec ( retVal ) ;
 return retVal ;
 }


<nb> public class Point implements Function {
 public void smooth ( double tolerance ) {

 }
 +
 + @ override
 + public Function clone ( ) throws CloneNotSupportedException {
 + return new Point ( weight ) ;
 + }
 }


<nb> public class DeskShareApplet extends Applet implements ClientListener {
 . captureHeight ( cHeightValue ) . scaleWidth ( sWidthValue ) . scaleHeight ( sHeightValue )
 . quality ( qualityValue ) . aspectRatio ( aspectRatioValue )
 . x ( xValue ) . y ( yValue )
 - . httpTunnel ( tunnelValue ) . trayIcon ( icon ) . enableTrayIconActions ( true ) . build ( ) ;
 + . httpTunnel ( tunnelValue ) . trayIcon ( icon ) . enableTrayIconActions ( false ) . build ( ) ;
 client . start ( ) ;
 }

applet shouldn t display menus in systray icon


<nb> public class KeyguardHostView extends KeyguardViewBase {
 mAppWidgetContainer . setCallbacks ( mWidgetCallbacks ) ;
 mAppWidgetContainer . setMinScale ( FLOAT0 ) ;

 - mViewStateManager = new KeyguardViewStateManager ( ) ;
 -
 addDefaultWidgets ( ) ;
 addWidgetsFromSettings ( ) ;
 mSwitchPageRunnable . run ( ) ;

Remove extra KeyguardViewStateManager construction


<nb> public class MagicLinkSignInActivity extends SignInActivity implements WPComMagi
 String action = getIntent ( ) . getAction ( ) ;
 Uri uri = getIntent ( ) . getData ( ) ;

 - if ( Intent . ACTION_VIEW . equals ( action ) && uri != null ) {
 - if ( uri . getHost ( ) . contains ( STRING0 ) ) {
 - attemptLoginWithToken ( uri ) ;
 - } else {
 - SINGLE
 - }
 + if ( Intent . ACTION_VIEW . equals ( action ) && uri != null && uri . getHost ( ) . contains ( STRING0 ) ) {
 + attemptLoginWithToken ( uri ) ;
 }
 }


<nb> public interface AddNullabilityJavaSubtype {
 }

 public interface Sub extends Super {
 - @ expectloaderror ( STRING0 )
 - @ kotlinsignature ( STRING1 )
 + @ expectloaderror ( STRING2 )
 + @ kotlinsignature ( STRING3 )
 String foo ( ) ;
 }
 }


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

 + import NAMESPACE ;
 +
 + @ ignore
 public class GenericConversionServiceTests extends TestCase {

 private GenericConversionService service = new GenericConversionService ( ) ;


<nb> public class MasterClient {

 private boolean mUseZookeeper ;
 private MasterService . Client mClient = null ;
 - SINGLE
 - private InetSocketAddress mZookeeperAddress = null ;
 private InetSocketAddress mMasterAddress = null ;
 private TProtocol mProtocol = null ;
 private volatile boolean mIsConnected ;
 <nb> public class MasterClient {

 public MasterClient ( InetSocketAddress masterAddress , boolean useZookeeper ) {
 mUseZookeeper = useZookeeper ;
 - if ( mUseZookeeper ) {
 - try {
 - mZookeeperAddress = CommonUtils . parseInetSocketAddress ( CommonConf . get ( ) . ZOOKEEPER_ADDRESS ) ;
 - } catch ( IOException e ) {
 - LOG . error ( e . getMessage ( ) , e ) ;
 - CommonUtils . runtimeException ( e ) ;
 - }
 - } else {
 + if ( ! mUseZookeeper ) {
 mMasterAddress = masterAddress ;
 }
 mIsConnected = false ;


<nb> public class AioEventLoop extends MultithreadEventLoop {
 if ( l . isShutdown ( ) ) {
 command . run ( ) ;
 } else {
 - ch . eventLoop ( ) . execute ( command ) ;
 + l . execute ( command ) ;
 }
 }

 <nb> public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
 @ override
 protected void doFlushByteBuffer ( ByteBuf buf ) throws Exception {
 if ( ! buf . readable ( ) ) {
 + notifyFlushFutures ( ) ;
 return ;
 }

Fix potential NPE in AioEventLoop Always notify flush futures


<nb> public class PostUploadService extends Service {
 String postOrPage = ( String ) ( post . isPage ( ) ? context . getResources ( ) . getText ( R . string . page_id ) : context . getResources ( )
 . getText ( R . string . post_id ) ) ;
 Intent notificationIntent = new Intent ( context , ( post . isPage ( ) ) ? PagesActivity . class : PostsActivity . class ) ;
 + notificationIntent . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP | Intent . FLAG_ACTIVITY_NEW_TASK
 + | IntentCompat . FLAG_ACTIVITY_CLEAR_TASK ) ;
 + notificationIntent . setAction ( STRING0 ) ;
 + notificationIntent . addCategory ( STRING1 ) ;
 notificationIntent . setData ( ( Uri . parse ( STRING2 + post . getBlogID ( ) ) ) ) ;
 notificationIntent . putExtra ( STRING3 , true ) ;
 notificationIntent . putExtra ( STRING4 , error ) ;

Set same activity flags when post upload notification is updated with the error message


<nb> public class MapperService extends AbstractIndexComponent {
 STRING0 , STRING1 , STRING2
 ) ;

 - public static final String FIELD_MAPPERS_COLLECTION_SWITCH = STRING3 ;
 - public static final int DEFAULT_FIELD_MAPPERS_COLLECTION_SWITCH = NUMBER0 ;
 -
 private final AnalysisService analysisService ;
 private final IndexFieldDataService fieldDataService ;

 <nb> public final class InternalTestCluster extends TestCluster {
 if ( random . nextBoolean ( ) ) {
 builder . put ( MappingUpdatedAction . INDICES_MAPPING_ADDITIONAL_MAPPING_CHANGE_TIME , RandomInts . randomIntBetween ( random , NUMBER1 , NUMBER2 ) COMMENT ) ;
 }
 - if ( random . nextBoolean ( ) ) {
 - builder . put ( MapperService . DEFAULT_FIELD_MAPPERS_COLLECTION_SWITCH , RandomInts . randomIntBetween ( random , NUMBER1 , NUMBER3 ) ) ;
 - }

 return builder . build ( ) ;
 }


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

Added the missing ASF license header on JmsToCxfInOutTest


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class HttpPageBufferClient
 @ guardedby ( STRING0 )
 private boolean closed ;
 @ guardedby ( STRING0 )
 - private AsyncHttpResponseFuture < PagesResponse > future ;
 + private HttpResponseFuture < PagesResponse > future ;
 @ guardedby ( STRING0 )
 private DateTime lastUpdate = DateTime . now ( ) ;
 @ guardedby ( STRING0 )


<nb> public class FetchBlogListWPOrg extends FetchBlogListAbstract {
 for ( Object currentAvailableMethod : availableMethods ) {
 if ( ( currentAvailableMethod ) . equals ( currentRequiredMethod ) ) {
 match = true ;
 - continue ;
 + break ;
 }
 }

Correctly use break instead of continue to exit a loop immediately


<nb> public class QuickAction extends CustomPopupWindow {
 } else if ( arrowPos > screenWidth / NUMBER0 && arrowPos < NUMBER1 * ( screenWidth / NUMBER0 ) ) {
 window . setAnimationStyle ( ( onTop ) ? R . style . Animations_PopUpMenu_Center : R . style . Animations_PopDownMenu_Center ) ;
 } else {
 - window . setAnimationStyle ( ( onTop ) ? R . style . Animations_PopDownMenu_Right : R . style . Animations_PopDownMenu_Right ) ;
 + window . setAnimationStyle ( ( onTop ) ? R . style . Animations_PopUpMenu_Right : R . style . Animations_PopDownMenu_Right ) ;
 }

 break ;


<nb>

 package NAMESPACE ;

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

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> import NAMESPACE ;
 public final class Promised < T > implements Downstream < T > {

 private final AtomicReference < ExecResult < ? extends T > > ref = new AtomicReference < > ( ) ;
 - private final Queue < Downstream < ? super T > > listeners = PlatformDependent . newMpscQueue ( ) ;
 + private final Queue < Downstream < ? super T > > listeners = new ConcurrentLinkedDeque < > ( ) ;

 COMMENT
 COMMENT

Use a mpmc queue in Promised as we can t guarantee a single consumer


<nb> public class EntityEditor extends MultiPageDatabaseEditor
 @ override
 public void refreshPart ( final Object source , boolean force )
 {
 - SINGLE
 if ( force && getDatabaseObject ( ) . isPersisted ( ) ) {
 SINGLE
 SINGLE
 DBECommandContext commandContext = getCommandContext ( ) ;
 if ( commandContext != null ) {
 SINGLE
 + SINGLE
 commandContext . resetChanges ( ) ;
 }
 }


<nb> public class DrawerFragment extends Fragment {
 @ override
 public void run ( ) {
 final Intent intent = new Intent ( getActivity ( ) , activityClass ) ;
 + intent . setFlags ( Intent . FLAG_ACTIVITY_REORDER_TO_FRONT ) ;
 getActivity ( ) . startActivity ( intent ) ;
 }
 } , DRAWER_SLIDE_DURATION_MS ) ;


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

 import NAMESPACE ;

 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class Java8LanguageFeatureBindingTest extends TestCase {
 -
 +
 SINGLE
 SINGLE

Add missing imports to make Java8LanguageFeatureBindingTest actually compile


<nb> public class TaskListActivity extends ListActivity implements OnScrollListener ,

 private void showHelpPopover ( ) {
 if ( ! Preferences . getBoolean ( R . string . p_showed_tap_task_help , false ) ) {
 + Preferences . setBoolean ( R . string . p_showed_tap_task_help , true ) ;
 InputMethodManager imm = ( InputMethodManager ) getSystemService ( Context . INPUT_METHOD_SERVICE ) ;
 imm . hideSoftInputFromWindow ( quickAddBox . getWindowToken ( ) , NUMBER0 ) ;
 getListView ( ) . postDelayed ( new Runnable ( ) {
 public void run ( ) {
 final View view = getListView ( ) . getChildAt ( getListView ( ) . getChildCount ( ) - NUMBER1 ) ;
 - HelpInfoPopover popover = HelpInfoPopover . showPopover ( TaskListActivity . this , view , R . string . help_popover_tap_task ) ;
 + HelpInfoPopover . showPopover ( TaskListActivity . this , view , R . string . help_popover_tap_task ) ;
 }
 } , NUMBER2 ) ;

don t show the popover every single time


<nb> public class DbConnectionManager {
 ensureConnectionProvider ( ) ;

 Integer currentRetryCount = NUMBER0 ;
 - Integer maxRetries = JiveGlobals . getIntProperty ( SETTING_DATABASE_MAX_RETRIES , NUMBER1 ) ;
 - Integer retryWait = JiveGlobals . getIntProperty ( SETTING_DATABASE_RETRY_DELAY , NUMBER2 ) ; SINGLE
 + Integer maxRetries = JiveGlobals . getXMLProperty ( SETTING_DATABASE_MAX_RETRIES , NUMBER1 ) ;
 + Integer retryWait = JiveGlobals . getXMLProperty ( SETTING_DATABASE_RETRY_DELAY , NUMBER2 ) ; SINGLE
 SQLException lastException = null ;
 do {
 try {

Avoiding DB properties when reading DB connection configuration


<nb> public final class RemoteConnection {
 COMMENT
 COMMENT
 COMMENT
 - public List < RemoteConnection > getChildren ( ) { return null ; }
 + public List < RemoteConnection > getChildren ( ) { return new ArrayList < > ( ) ; }

 COMMENT
 COMMENT
 <nb> import NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public class TelecommManager {
 } catch ( RemoteException e ) {
 Log . e ( TAG , STRING0 , e ) ;
 }
 - return null ;
 + return new ArrayList < > ( ) ;
 }

 COMMENT


<nb> public abstract class AbstractFileResolvingResource extends AbstractResource {
 }

 @ override
 + public boolean isReadable ( ) {
 + try {
 + URL url = getURL ( ) ;
 + if ( ResourceUtils . isFileURL ( url ) ) {
 + SINGLE
 + File file = getFile ( ) ;
 + return ( file . canRead ( ) && ! file . isDirectory ( ) ) ;
 + }
 + else {
 + return true ;
 + }
 + }
 + catch ( IOException ex ) {
 + return false ;
 + }
 + }
 +
 + @ override
 public int contentLength ( ) throws IOException {
 URL url = getURL ( ) ;
 if ( ResourceUtils . isFileURL ( url ) ) {

implement file resolution for isReadable as well


<nb> public class MetaClassRegistry {
 }

 public MetaClass getMetaClass ( Class theClass ) {
 - COMMENT
 -
 MetaClass answer = ( MetaClass ) metaClasses . get ( theClass ) ;
 if ( answer == null ) {
 try {


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

 public class ExpirationWithLimitedConnectionsTest
 {
 - @ test
 + @ ignore
 public void testExpirationWithMaxConnectionPerAddressReached ( ) throws Exception
 {
 final Logger logger = Log . getLogger ( STRING0 ) ;

Ignoring incomplete incorrect test for now


<nb> public class StatsUtil {
 public static List extractDataFromHb ( Map executor2hostPort , Map task2component , Map beats ,
 boolean includeSys , StormTopology topology , String compId ) {
 List ret = new ArrayList ( ) ;
 + if ( executor2hostPort == null ) {
 + return ret ;
 + }
 for ( Object o : executor2hostPort . entrySet ( ) ) {
 Map . Entry entry = ( Map . Entry ) o ;
 List key = ( List ) entry . getKey ( ) ;


<nb> public class BasicJsonParser implements JsonParser {
 }

 private static String trimTrailingCharacter ( String string , char c ) {
 - if ( string . length ( ) >= NUMBER0 && string . charAt ( string . length ( ) - NUMBER1 ) == c ) {
 + if ( string . length ( ) > NUMBER0 && string . charAt ( string . length ( ) - NUMBER1 ) == c ) {
 return string . substring ( NUMBER0 , string . length ( ) - NUMBER1 ) ;
 }
 return string ;
 }

 private static String trimLeadingCharacter ( String string , char c ) {
 - if ( string . length ( ) >= NUMBER0 && string . charAt ( NUMBER0 ) == c ) {
 + if ( string . length ( ) > NUMBER0 && string . charAt ( NUMBER0 ) == c ) {
 return string . substring ( NUMBER1 ) ;
 }
 return string ;

Fix potential offset errors in BasicJsonParser


<nb> public class SpellCheckerSession {
 if ( DBG ) {
 Log . w ( TAG , STRING0 ) ;
 }
 - if ( scp . mTextInfos . length != NUMBER0 ) {
 - throw new IllegalArgumentException ( ) ;
 - }
 try {
 session . onGetSentenceSuggestionsMultiple (
 scp . mTextInfos , scp . mSuggestionsLimit ) ;
 <nb> public class SpellChecker implements SpellCheckerSessionListener {
 wordStart = regionEnd ;
 SINGLE
 SINGLE
 - final int spellCheckStart = Math . min (
 - start , Math . max ( wordStart , regionEnd - WORD_ITERATOR_INTERVAL ) ) ;
 + final int spellCheckStart = Math . max (
 + NUMBER1 , Math . min ( wordStart , regionEnd - WORD_ITERATOR_INTERVAL ) ) ;
 if ( regionEnd <= spellCheckStart ) {
 return ;
 }


<nb> public class LocalMiniDFSCluster extends UnderFileSystemCluster {
 mNamenodePort = mDfsCluster . getNameNodePort ( ) ;
 }

 - mDfsClient = mDfsCluster . getFileSystem ( ) ;
 + mDfsClient = ( DistributedFileSystem ) mDfsCluster . getFileSystem ( ) ;
 mIsStarted = true ;
 }
 }

Cast filesystem to distributed filesystem to support older version of hadoop


<nb> public class OConcurrentModificationException extends ONeedRetryException implem

 final OConcurrentModificationException other = ( OConcurrentModificationException ) obj ;

 - if ( recordOperation == other . recordOperation && rid . equals ( other . rid ) )
 - return databaseVersion == recordVersion ;
 + if ( recordOperation == other . recordOperation && rid . equals ( other . rid ) ) {
 + if ( databaseVersion == other . databaseVersion )
 + return recordOperation == other . recordVersion ;
 + }

 return false ;
 }

fixed equals on concurrent modification exception


<nb> public class PolygonShape extends Shape {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void setAsBox ( float hx , float hy , Vector2 center , float angle ) {
 jniSetAsBox ( addr , hx , hy , center . x , center . y , angle ) ;

fixed docs for PolygonShape Thanks tescott


<nb> public class ParserTest extends EvaluationTestCase {
 assertContainsEvent ( STRING0 ) ;
 }

 + private static final String DOUBLE_SLASH_LOAD = STRING1 ;
 + private static final String DOUBLE_SLASH_ERROR =
 + STRING2
 + + STRING3 ;
 +
 + @ test
 + public void testLoadDoubleSlashBuild ( ) throws Exception {
 + setFailFast ( false ) ;
 + parseFile ( DOUBLE_SLASH_LOAD ) ;
 + assertContainsEvent ( DOUBLE_SLASH_ERROR ) ;
 + }
 +
 + @ test
 + public void testLoadDoubleSlashSkylark ( ) throws Exception {
 + setFailFast ( false ) ;
 + parseFileForSkylark ( DOUBLE_SLASH_LOAD ) ;
 + assertContainsEvent ( DOUBLE_SLASH_ERROR ) ;
 + }
 +
 @ test
 public void testLoadNoSymbol ( ) throws Exception {
 setFailFast ( false ) ;

Added tests for invalid double slashes in load statements


<nb> public class MotionTrack extends AbstractCinematicEvent implements Control {

 @ override
 public void onStop ( ) {
 + setCurrentWayPoint ( path . getNbWayPoints ( ) - NUMBER0 ) ;
 currentWayPoint = NUMBER1 ;
 }

Fixed issue when the last waypoint of a motion path was not triggering listeners


<nb> public class CamelContextFactoryBean extends IdentifiedType implements RouteCont
 getContext ( ) . addRoutes ( routeBuilder ) ;
 }

 - System . out . println ( STRING0 + getId ( ) + STRING1 + STRING2 + builderRefs ) ;
 + SINGLE

 SINGLE
 if ( builderRefs != null ) {

removed system printing that shouldn t have been there whoops


<nb> public class ModCompatibilityClient
 return ;
 }
 audioModSoundPoolCave = new SoundPool ( ) ;
 - audioModLoadModAudio ( STRING0 , mngr . getSoundsPool ( ) ) ;
 - audioModLoadModAudio ( STRING1 , mngr . getStreamingPool ( ) ) ;
 - audioModLoadModAudio ( STRING2 , mngr . getMusicPool ( ) ) ;
 - audioModLoadModAudio ( STRING3 , audioModSoundPoolCave ) ;
 + audioModLoadModAudio ( STRING4 , mngr . getSoundsPool ( ) ) ;
 + audioModLoadModAudio ( STRING5 , mngr . getStreamingPool ( ) ) ;
 + audioModLoadModAudio ( STRING6 , mngr . getMusicPool ( ) ) ;
 + audioModLoadModAudio ( STRING7 , audioModSoundPoolCave ) ;

 if ( mngr . MUSIC_INTERVAL == NUMBER0 )
 {
 <nb> public class ModCompatibilityClient
 COMMENT
 private static void audioModLoadModAudio ( String path , SoundPool pool )
 {
 - File folder = Minecraft . getAppDir ( path ) ;
 + File folder = new File ( Minecraft . getMinecraftDir ( ) , path ) ;

 try
 {

Fixed AudioMod compatibility with MultiMC style launchers


<nb> public class RecipientAdapter extends BaseAdapter implements Filterable {
 }

 public static void setContactPhotoOrPlaceholder ( Context context , ImageView imageView , Recipient recipient ) {
 - imageView . setImageDrawable ( null ) ;
 -
 SINGLE
 if ( recipient . photoThumbnailUri != null ) {
 - Glide . with ( context ) . load ( recipient . photoThumbnailUri ) . into ( imageView ) ;
 + Glide . with ( context ) . load ( recipient . photoThumbnailUri )
 + SINGLE
 + . placeholder ( null )
 + . dontAnimate ( )
 + . into ( imageView ) ;
 } else {
 ContactPicture . getContactPictureLoader ( context ) . loadContactPicture ( recipient . address , imageView ) ;
 }

add workaround for glide sometimes not loading contact pictures


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

 - import NAMESPACE ;
 -
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class TachyonBlockStore implements Closeable {
 }
 SINGLE
 if ( NetworkAddressUtils . getLocalHostName ( ClientContext . getConf ( ) ) . equals ( location ) ) {
 - Preconditions . checkState ( mContext . hasLocalWorker ( ) , STRING0 ) ;
 return new LocalBlockOutStream ( blockId , blockSize ) ;
 }
 SINGLE

Remove precondition check as it throws unchecked exception