<nb> public class ServerStartupListener extends AbstractServiceListener < Object > {
 } else {
 countUpdater . incrementAndGet ( this ) ;
 }
 - log . infof ( STRING0 , serviceController . getName ( ) , totalServices , onDemandServices , count ) ;
 }

 COMMENT
 <nb> public class ServerStartupListener extends AbstractServiceListener < Object > {
 batchComplete ( ) ;
 }
 serviceController . removeListener ( this ) ;
 - log . infof ( STRING1 , serviceController . getName ( ) , startedServices , count ) ;
 }

 COMMENT
 <nb> public class ServerStartupListener extends AbstractServiceListener < Object > {
 batchComplete ( ) ;
 }
 serviceController . removeListener ( this ) ;
 - log . infof ( STRING2 , serviceController . getName ( ) , count ) ;
 - }
 + }

 COMMENT
 COMMENT


<nb> public class ReassignVariableUtil {
 } ;
 PsiElement scope = declaration ;
 while ( scope != null ) {
 - if ( scope instanceof PsiFile || scope instanceof PsiMethod || scope instanceof PsiClassInitializer ) break ;
 + if ( scope instanceof PsiFile ||
 + scope instanceof PsiMethod ||
 + scope instanceof PsiLambdaExpression ||
 + scope instanceof PsiClassInitializer ) break ;
 scope = scope . getParent ( ) ;
 }
 if ( scope == null ) return proc ;

do not reassign variable outside lambda body


<nb> public final class BlockStoreMeta {
 COMMENT
 private final Map < String , Long > mUsedBytesOnTiers = new HashMap < String , Long > ( ) ;

 - COMMENT
 + COMMENT
 private final Map < String , List < Long > > mBlockIdsOnTiers = new HashMap < String , List < Long > > ( ) ;

 COMMENT

Fix a typo in the blockstoremeta javadoc


<nb> public class MemcacheTest extends HazelcastTestSupport {
 String value = STRING0 ;
 for ( String key : keys ) {
 OperationFuture < Boolean > future = client . set ( key , NUMBER0 , value ) ;
 + future . get ( ) ;
 }

 result = client . getBulk ( keys ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class QueryIndexMigrationTest extends HazelcastTestSupport {
 COMMENT
 COMMENT
 COMMENT
 - SINGLE
 - @ ignore
 @ test ( timeout = MINUTE )
 public void testIndexCleanupOnMigration ( ) throws Exception {
 int nodeCount = NUMBER0 ;

Enable ignored test in QueryIndexMigrationTest


<nb> public abstract class AbstractCasView extends AbstractView {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class SubsamplingLayerTest {
 . build ( ) )
 . layer ( NUMBER0 , new SubsamplingLayer . Builder ( )
 . poolingType ( SubsamplingLayer . PoolingType . MAX )
 - . kernelSize ( imageHeight - kernelHeight + NUMBER0 , NUMBER0 )
 + . kernelSize ( imageHeight - kernelHeight + NUMBER1 , NUMBER0 ) SINGLE
 . stride ( NUMBER0 , NUMBER0 )
 . build ( ) )
 . layer ( NUMBER1 , new OutputLayer . Builder ( )

Fix configuration for subsampling layer test


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> final class ZLTreeAdapter extends BaseAdapter implements AdapterView . OnItemClick
 case KeyEvent . KEYCODE_BACK :
 return true ;
 }
 - break ;
 }
 return false ;
 }


<nb> 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 CombiningFirehoseFactoryTest
 }

 @ override
 + public DateTime getTimestamp ( )
 + {
 + return new DateTime ( timestamp ) ;
 + }
 +
 + @ override
 + public int compareTo ( Row o )
 + {
 + return NUMBER0 ;
 + }
 +
 + @ override
 public List < String > getDimension ( String dimension )
 {
 return Lists . newArrayList ( ) ;


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TransportValidateQueryAction extends TransportBroadcastOperationAct

 @ override
 protected GroupShardsIterator shards ( ValidateQueryRequest request , String [ ] concreteIndices , ClusterState clusterState ) {
 - SINGLE
 - Map < String , Set < String > > routingMap = clusterState . metaData ( ) . resolveSearchRouting ( STRING0 , request . indices ( ) ) ;
 + SINGLE
 + Map < String , Set < String > > routingMap = clusterState . metaData ( ) . resolveSearchRouting ( Integer . toString ( ThreadLocalRandom . current ( ) . nextInt ( NUMBER0 ) ) , request . indices ( ) ) ;
 return clusterService . operationRouting ( ) . searchShards ( clusterState , request . indices ( ) , concreteIndices , null , routingMap , STRING1 ) ;
 }

randomize routing value when validating query


<nb> public class CPrecisionValueTransformerTests {
 assertThat ( transformed ) . isNull ( ) ;
 }

 + @ test
 + public void nanIsReturnedNull ( ) {
 + ValueTransformer transformer = new CPrecisionValueTransformer ( ) ;
 + Object transformed = transformer . apply ( Double . NaN ) ;
 +
 + assertThat ( transformed ) . isNull ( ) ;
 + }
 +
 }


<nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ColorAndFontOptions extends SearchableConfigurable . Parent . Abstract
 final ScopeChooserConfigurable configurable = ScopeChooserConfigurable . getInstance ( project ) ;
 final boolean isOk = ShowSettingsUtil . getInstance ( ) . editConfigurable ( project , configurable ) ;
 if ( isOk ) {
 - SINGLE
 + myResetCompleted = false ;
 reset ( ) ;
 }
 }

update scopes after change scope list dialog


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 public class Extensions {
 private static LogProvider ourLogger = new SimpleLogProvider ( ) ;
 <nb> public class Extensions {
 private Extensions ( ) {
 }

 + public static void setSynchronized ( ) {
 + assert ourAreaInstance2area . isEmpty ( ) ;
 + assert ourAreaClass2Configuration . isEmpty ( ) ;
 +
 + ourAreaInstance2area = new ConcurrentHashMap < AreaInstance , ExtensionsAreaImpl > ( ) ;
 + ourAreaClass2Configuration = new ConcurrentHashMap < String , AreaClassConfiguration > ( ) ;
 + }
 +
 @ notnull
 public static ExtensionsArea getRootArea ( ) {
 return ourRootArea ;


<nb> public class FloatingActionButton extends ImageButton {
 if ( mListView . getAdapter ( ) != null && mListView . getAdapter ( ) . getCount ( ) > NUMBER0 ) {
 int height = NUMBER0 ;
 int itemCount = mListView . getAdapter ( ) . getCount ( ) ;
 - if ( mListViewItemOffsetY == null ) {
 - mListViewItemOffsetY = new int [ itemCount ] ;
 - }
 + mListViewItemOffsetY = new int [ itemCount ] ;
 for ( int i = NUMBER0 ; i < itemCount ; ++ i ) {
 View view = mListView . getAdapter ( ) . getView ( i , null , mListView ) ;
 view . measure (

Force offset array recreation on each calculation


<nb> public class MeshLoader extends DefaultHandler implements AssetLoader {

 int texCoords = parseInt ( attribs . getValue ( STRING0 ) , NUMBER0 ) ;
 for ( int i = NUMBER0 ; i < texCoords ; i ++ ) {
 - int dims = parseInt ( attribs . getValue ( STRING1 + i ) . replaceAll ( STRING2 , STRING3 ) , NUMBER1 ) ;
 + String dimsStr = attribs . getValue ( STRING1 + i ) ;
 + if ( dimsStr . startsWith ( STRING4 ) ) {
 + dimsStr = dimsStr . substring ( STRING4 . length ( ) ) ;
 + }
 + int dims = parseInt ( dimsStr , NUMBER1 ) ;
 if ( dims < NUMBER2 || dims > NUMBER3 ) {
 throw new SAXException ( STRING5 ) ;
 }


<nb> public class BuckConfig {
 }
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - public Optional < Long > getSkipLocalBuildChainDepth ( ) {
 - return getLong ( STRING0 , STRING1 ) ;
 - }
 -
 @ nullable
 public Path resolvePathThatMayBeOutsideTheProjectFilesystem ( @ nullable Path path ) {
 if ( path == null ) {


<nb> public class BigEndianUnsafeNoCleanerDirectByteBufTest extends BigEndianDirectBy

 @ before
 public void checkHasUnsafe ( ) {
 - Assume . assumeTrue ( STRING0 , PlatformDependent . hasUnsafe ( ) ) ;
 + Assume . assumeTrue ( STRING1 ,
 + PlatformDependent . useDirectBufferNoCleaner ( ) ) ;
 }

 @ override
 <nb> public class LittleEndianUnsafeNoCleanerDirectByteBufTest extends LittleEndianDi

 @ before
 public void checkHasUnsafe ( ) {
 - Assume . assumeTrue ( STRING0 , PlatformDependent . hasUnsafe ( ) ) ;
 + Assume . assumeTrue ( STRING1 ,
 + PlatformDependent . useDirectBufferNoCleaner ( ) ) ;
 }

 @ override

Fix Assume assumeTrue checks in UnssafeNoCleanerDirectByteBufTest


<nb> public class AlertDialog extends Dialog implements DialogInterface {
 COMMENT
 COMMENT
 public AlertDialog create ( ) {
 - final AlertDialog dialog = new AlertDialog ( P . mContext ) ;
 + SINGLE
 + final AlertDialog dialog = new AlertDialog ( P . mContext , NUMBER0 , false ) ;
 P . apply ( dialog . mAlert ) ;
 dialog . setCancelable ( P . mCancelable ) ;
 if ( P . mCancelable ) {


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public final class UpgradeService {
 COMMENT
 @ suppresswarnings ( STRING0 )
 public void showChangeLog ( int from ) {
 + if ( ! ( ContextManager . getContext ( ) instanceof Activity ) )
 + return ;
 +
 StringBuilder changeLog = new StringBuilder ( ) ;

 if ( from <= NUMBER0 )

Don t show upgrade service if we re not an activity


<nb> public class GroovyPointlessArithmeticInspection extends BaseInspection {
 STRING0 . equals ( text ) ||
 STRING1 . equals ( text ) ||
 STRING2 . equals ( text ) ||
 - STRING3 . equals ( text ) ;
 + STRING3 . equals ( text ) ||
 + STRING4 . equals ( text ) ||
 + STRING5 . equals ( text ) ;
 }

 COMMENT
 <nb> public class GroovyPointlessArithmeticInspection extends BaseInspection {
 STRING6 . equals ( text ) ||
 STRING7 . equals ( text ) ||
 STRING8 . equals ( text ) ||
 - STRING9 . equals ( text ) ;
 + STRING9 . equals ( text ) ||
 + STRING4 . equals ( text ) ||
 + STRING5 . equals ( text ) ;
 }
 }

pointless arithmetic detects binary numbers


<nb> public final class DefaultPassConfig extends PassConfig {
 checks . add ( checkRequires ) ;
 }

 + checks . add ( checkSideEffects ) ;
 +
 if ( options . getLanguageIn ( ) == LanguageMode . ECMASCRIPT6_TYPED
 && options . getLanguageOut ( ) != LanguageMode . ECMASCRIPT6_TYPED ) {
 checks . add ( convertEs6TypedToEs6 ) ;
 <nb> public final class DefaultPassConfig extends PassConfig {
 checks . add ( es6RewriteDestructuring ) ;
 }

 - checks . add ( checkSideEffects ) ;
 -
 if ( options . checkProvides . isOn ( ) || options . enables ( DiagnosticGroups . MISSING_PROVIDE ) ) {
 checks . add ( checkProvides ) ;
 }

Moving checkSideEffects before the early transpilation


<nb> public interface Server {
 public Player [ ] getOnlinePlayers ( ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public int getMaxPlayers ( ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class Integers {

 public static final String toBinaryUsingDivideAndModulus ( int integer ) {
 StringBuilder builder = new StringBuilder ( ) ;
 + int temp = NUMBER0 ;
 while ( integer > NUMBER0 ) {
 - int temp = integer ;
 + temp = integer ;
 integer = temp / NUMBER1 ;
 builder . append ( temp % NUMBER1 ) ;
 }
 <nb> public class Integers {

 public static final String toBinaryUsingShiftsAndModulus ( int integer ) {
 StringBuilder builder = new StringBuilder ( ) ;
 + int temp = NUMBER0 ;
 while ( integer > NUMBER0 ) {
 - int temp = integer ;
 + temp = integer ;
 integer = ( temp > > NUMBER2 ) ;
 builder . append ( temp % NUMBER1 ) ;
 }

Added divide and doble version to the integer binary functions


<nb> public class RecyclerViewSwipeManager implements SwipeableItemConstants {
 }

 private void handleActionUpOrCancelWhileNotSwiping ( ) {
 - mHandler . cancelLongPressDetection ( ) ;
 + if ( mHandler != null ) {
 + mHandler . cancelLongPressDetection ( ) ;
 + }

 mCheckingTouchSlop = RecyclerView . NO_ID ;
 mSwipingItemReactionType = NUMBER0 ;

Add null check to make the cancelSwipe method safe before attaching RecyclerView


<nb> public class PlacesSampleActivity extends DIFragmentActivity {

 mapFragment . getMap ( ) . clear ( ) ;
 LatLng latitudeLongitude = new LatLng ( placeViewModel . getLatitude ( ) , placeViewModel . getLongitude ( ) ) ;
 - mapFragment . getMap ( ) . addMarker ( new MarkerOptions ( ) . position ( latitudeLongitude ) ) ;
 + MarkerOptions marker = new MarkerOptions ( ) . position ( latitudeLongitude ) ;
 + marker . title ( placeViewModel . getName ( ) ) ;
 + marker . snippet ( placeViewModel . getLatitude ( ) + STRING0 + placeViewModel . getLongitude ( ) ) ;
 + mapFragment . getMap ( ) . addMarker ( marker ) ;
 mapFragment . getMap ( ) . moveCamera ( CameraUpdateFactory . newLatLngZoom ( latitudeLongitude , NUMBER0 f ) ) ;
 }
 } ) ;


<nb> public class JavaGenerator implements CodeGenerator
 STRING0 +
 STRING1 +
 STRING2 +
 - STRING3 +
 - STRING4 +
 - STRING5 +
 + STRING6 +
 + STRING7 +
 + STRING8 +
 STRING9 +
 - STRING10 +
 - STRING11 +
 + STRING12 +
 + STRING13 +
 STRING14 +
 STRING15 ,
 propertyName ,
 <nb> public class JavaGenerator implements CodeGenerator
 STRING16 +
 STRING0 +
 STRING2 +
 - STRING3 +
 - STRING17 +
 - STRING4 +
 - STRING18 +
 - STRING19 +
 + STRING6 +
 + STRING20 +
 + STRING21 +
 + STRING22 +
 STRING23 +
 STRING24 ,
 propertyName ,

Corrected position check location for var data and optimised the writes to the position in parent message


<nb> public class WebView extends AbsoluteLayout
 setUpSelect ( ) ;
 if ( mNativeClass != NUMBER0 && nativeWordSelection ( x , y ) ) {
 nativeSetExtendSelection ( ) ;
 + mDrawSelectionPointer = false ;
 return true ;
 }
 selectionDone ( ) ;

Don t draw the selection pointer on long press


<nb> public class FMLCommonHandler
 Builder brd = ImmutableList . < String > builder ( ) ;
 brd . add ( Loader . instance ( ) . getMCVersionString ( ) ) ;
 brd . add ( Loader . instance ( ) . getFMLVersionString ( ) ) ;
 - String forgeBranding = ( String ) callForgeMethod ( STRING0 ) ;
 + String forgeBranding = ( String ) callForgeMethod ( STRING1 ) ;
 if ( ! Strings . isNullOrEmpty ( forgeBranding ) )
 {
 brd . add ( forgeBranding ) ;


<nb> package NAMESPACE ;

 import NAMESPACE ;

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

 public final class Config {
 <nb> public final class Config {
 public static final boolean DISABLE_PROXY_LOOKUP = false ; SINGLE
 public static final boolean DISABLE_HTTP_UPLOAD = false ;
 public static final boolean DISABLE_STRING_PREP = false ; SINGLE
 - public static final boolean EXTENDED_SM_LOGGING = true ; SINGLE
 + public static final boolean EXTENDED_SM_LOGGING = false ; SINGLE
 public static final boolean RESET_ATTEMPT_COUNT_ON_NETWORK_CHANGE = true ; SINGLE

 public static final boolean ENCRYPT_ON_HTTP_UPLOADED = false ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public class EditPreferences extends SherlockPreferenceActivity {
 + @ suppresswarnings ( STRING0 )
 @ override
 public void onCreate ( Bundle savedInstanceState ) {
 super . onCreate ( savedInstanceState ) ;


<nb> import NAMESPACE ;
 break ;
 case NUMBER :
 SINGLE
 - inputType = InputType . TYPE_CLASS_NUMBER | InputType . TYPE_NUMBER_VARIATION_NORMAL ;
 + inputType = InputType . TYPE_CLASS_NUMBER | InputType . TYPE_NUMBER_VARIATION_NORMAL
 + | InputType . TYPE_NUMBER_FLAG_SIGNED | InputType . TYPE_NUMBER_FLAG_DECIMAL ;
 SINGLE
 SINGLE
 imeOptions |= EditorInfo . IME_ACTION_NEXT ;

Allow fractional and signed input for number fields


<nb> import static NAMESPACE ;
 import static NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SkylarkRuleClassFunctions {
 FuncallExpression ast , Environment funcallEnv )
 throws EvalException , ConversionException {

 + Preconditions . checkState ( funcallEnv instanceof SkylarkEnvironment ) ;
 RuleClassType type = test ? RuleClassType . TEST : RuleClassType . NORMAL ;

 SINGLE
 <nb> public class SkylarkRuleClassFunctions {
 builder . setOutputsDefaultExecutable ( ) ;
 }

 - if ( ! ( funcallEnv instanceof SkylarkEnvironment ) ) {
 - System . out . println ( STRING0 ) ;
 - SINGLE
 - }
 -
 if ( implicitOutputs != Environment . NONE ) {
 if ( implicitOutputs instanceof BaseFunction ) {
 BaseFunction func = ( BaseFunction ) implicitOutputs ;


<nb> class StatementAnalyzer extends DefaultTraversalVisitor < Symbol , Analysis > {

 @ override
 protected Symbol visitNegativeExpression ( NegativeExpression node , Analysis context ) {
 + SINGLE
 + SINGLE
 + SINGLE
 return negativeLiteralVisitor . process ( process ( node . getValue ( ) , context ) , null ) ;
 }

 <nb> public class AnalyzerTest {
 }

 @ test
 + public void testNegativeLiteral ( ) throws Exception {
 + Analysis analyze = analyze ( STRING0 ) ;
 + Function whereClause = analyze . whereClause ( ) ;
 + Symbol symbol = whereClause . arguments ( ) . get ( NUMBER0 ) ;
 + assertThat ( ( ( IntegerLiteral ) symbol ) . value ( ) , is ( - NUMBER1 ) ) ;
 + }
 +
 + @ test
 public void testGroupedSelect ( ) throws Exception {
 Statement statement = SqlParser . createStatement ( STRING1 ) ;
 Analysis analysis = analyzer . analyze ( statement ) ;

clarify NegativeExpression handling and add an additional test


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

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

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class SchedulerIsolatedTasksTest {
 final int NUM_TASKS_TO_SCHEDULE = NUMBER0 ;

 try {
 - Scheduler scheduler = new Scheduler ( ) ;
 + SINGLE
 + SINGLE
 + Scheduler scheduler = new Scheduler ( Executors . newFixedThreadPool ( NUMBER1 , ExecutorThreadFactory . INSTANCE ) ) ;

 for ( int i = NUMBER2 ; i < NUM_INSTANCES ; i ++ ) {
 scheduler . newInstanceAvailable ( getRandomInstance ( ( int ) ( Math . random ( ) * NUM_SLOTS_PER_INSTANCE ) + NUMBER3 ) ) ;

Fix incorrect scheduler test that sometimes produces a deadlock


<nb> import NAMESPACE ;
 import NAMESPACE ;

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


<nb> import NAMESPACE ;
 COMMENT
 public class PhysicsSpace {

 - private static final Logger logger = logger ;
 + private static final Logger logger = Logger . getLogger ( PhysicsSpace . class . getName ( ) ) ;
 public static final int AXIS_X = NUMBER0 ;
 public static final int AXIS_Y = NUMBER1 ;
 public static final int AXIS_Z = NUMBER2 ;
 <nb> import NAMESPACE ;
 COMMENT
 public class PhysicsSpace {

 - private static final Logger logger = logger ;
 + private static final Logger logger = Logger . getLogger ( PhysicsSpace . class . getName ( ) ) ;
 public static final int AXIS_X = NUMBER0 ;
 public static final int AXIS_Y = NUMBER1 ;
 public static final int AXIS_Z = NUMBER2 ;


<nb> public class CardView extends FrameLayout {
 COMMENT
 COMMENT
 COMMENT
 - private int mUserSetMinWidth , mUserSetMinHeight ;
 + int mUserSetMinWidth , mUserSetMinHeight ;

 - private final Rect mContentPadding = new Rect ( ) ;
 + final Rect mContentPadding = new Rect ( ) ;

 - private final Rect mShadowBounds = new Rect ( ) ;
 + final Rect mShadowBounds = new Rect ( ) ;

 public CardView ( Context context ) {
 super ( context ) ;

Remove all the extra accessor methods added by javac in support cardview


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

 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public class InternalClusterService extends AbstractLifecycleComponent < ClusterSe
 if ( updateTask instanceof ProcessedClusterStateUpdateTask ) {
 ( ( ProcessedClusterStateUpdateTask ) updateTask ) . clusterStateProcessed ( source , previousClusterState , newClusterState ) ;
 }
 + if ( updateTask instanceof AckedClusterStateUpdateTask ) {
 + SINGLE
 + ( ( AckedClusterStateUpdateTask ) updateTask ) . onAllNodesAcked ( null ) ;
 + }
 return ;
 }

Added ack call when the cluster state has not changed


<nb> public class FocusTrackback {
 }

 private boolean wrongOS ( ) {
 - return SystemInfo . isWindows ;
 + return ! SystemInfo . isMac ;
 }

 private void register ( final Window parent ) {

Integrating removal of FocusTrackback for Linux since it brings more troubles than fixes


<nb> public class ResourceBundleEditor extends UserDataHolderBase implements Document
 @ override
 public void valueChanged ( TreeSelectionEvent e ) {
 SINGLE
 + if ( getSelectedElementIfOnlyOne ( ) instanceof ResourceBundleFileStructureViewElement ) {
 + ( ( CardLayout ) myValuesPanel . getLayout ( ) ) . show ( myValuesPanel , NO_PROPERTY_SELECTED ) ;
 + selectedPropertiesFile = null ;
 + selectedProperty = null ;
 + return ;
 + }
 +
 if ( Comparing . equal ( e . getNewLeadSelectionPath ( ) , e . getOldLeadSelectionPath ( ) ) || getSelectedProperty ( ) == null ) return ;
 if ( ! arePropertiesEquivalent ( selectedProperty , getSelectedProperty ( ) ) ||
 ! Comparing . equal ( selectedPropertiesFile , getSelectedPropertiesFile ( ) ) ) {


<nb> public class CallManager

 selectDialog . setVisible ( true ) ;

 - createDesktopSharing ( protocolProvider ,
 - contact ,
 - selectDialog . getSelectedDevice ( ) ) ;
 + if ( selectDialog . getSelectedDevice ( ) != null )
 + createDesktopSharing ( protocolProvider ,
 + contact ,
 + selectDialog . getSelectedDevice ( ) ) ;
 }
 }

 <nb> public class CallManager

 selectDialog . setVisible ( true ) ;

 - enableDesktopSharing (
 - call , selectDialog . getSelectedDevice ( ) , enable ) ;
 + if ( selectDialog . getSelectedDevice ( ) != null )
 + enableDesktopSharing (
 + call , selectDialog . getSelectedDevice ( ) , enable ) ;
 }
 }

 <nb> public class SelectScreenDialog
 {
 public void actionPerformed ( ActionEvent e )
 {
 + selectedDevice = null ;
 dispose ( ) ;
 }
 } ) ;

Fixes cancel operation on select screen dialog while initiating desktop sharing


<nb> public class PlayApplicationPlugin {
 scalaCompile . setTargetCompatibility ( targetCompatibility ) ;

 IncrementalCompileOptions incrementalOptions = scalaCompile . getScalaCompileOptions ( ) . getIncrementalOptions ( ) ;
 - incrementalOptions . setAnalysisFile ( new File ( buildDir , String . format ( STRING0 , scalaCompileTaskName ) ) ) ;
 + incrementalOptions . setAnalysisFile ( new File ( scalaCompile . getTemporaryDir ( ) , STRING1 ) ) ;

 for ( LanguageSourceSet appSources : binary . getSource ( ) . withType ( ScalaLanguageSourceSet . class ) ) {
 scalaCompile . source ( appSources . getSource ( ) ) ;

Use compile task s temporary directory for cache file for scala compilation


<nb> public class BufferUtils {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public static void cleanDirectBuffer ( ByteBuffer buffer ) {

Put more comments about why this function is used


<nb> public class PlainStreetEdge extends StreetEdge implements Cloneable {
 private State doTraverse ( State s0 , RoutingRequest options ) {
 TraverseMode traverseMode = s0 . getNonTransitMode ( options ) ;
 Edge backEdge = s0 . getBackEdge ( ) ;
 - if ( backEdge != null && backEdge . getFromVertex ( ) == tov ) {
 + if ( backEdge != null &&
 + ( options . arriveBy ? ( backEdge . getToVertex ( ) == fromv ) : ( backEdge . getFromVertex ( ) == tov ) ) ) {
 SINGLE
 return null ;
 }
 <nb> public class PlainStreetEdge extends StreetEdge implements Cloneable {

 public boolean canTurnOnto ( Edge e , State state , TraverseMode mode ) {
 for ( TurnRestriction restriction : turnRestrictions ) {
 + COMMENT
 + COMMENT
 +
 if ( restriction . to == e && restriction . modes . contains ( mode ) ) {
 return restriction . type == TurnRestrictionType . ONLY_TURN ;
 }


<nb> public class PyClassImpl extends PyBaseElementImpl < PyClassStub > implements PyCla
 return false ;
 }

 - public boolean isSubclass ( PyClass parent ) {
 - return isSubclass ( parent , null ) ;
 - }
 -
 @ override
 public boolean isSubclass ( @ notnull String superClassQName , @ nullable TypeEvalContext context ) {
 if ( context == null ) {

Drop unused PyClassImpl isSubclass PyClass


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

 import NAMESPACE ;


<nb> import NAMESPACE ;
 public class LuceneService implements Runnable {

 - private static final int INDEX_VERSION = NUMBER0 ;
 + private static final int INDEX_VERSION = NUMBER1 ;

 private static final String FIELD_OBJECT_TYPE = STRING0 ;
 private static final String FIELD_PATH = STRING1 ;
 <nb> public class LuceneService implements Runnable {
 private static final String CONF_ALIAS = STRING2 ;
 private static final String CONF_BRANCH = STRING3 ;

 - private static final Version LUCENE_VERSION = Version . LUCENE_46 ;
 + private static final Version LUCENE_VERSION = Version . LUCENE_4_10_0 ;

 private final Logger logger = LoggerFactory . getLogger ( LuceneService . class ) ;

Bump the index version and update the LuceneVersion


<nb> public abstract class Launcher {
 launch ( args , getMainClass ( ) , classLoader ) ;
 }
 catch ( Exception ex ) {
 - ex . printStackTrace ( ) ;
 System . exit ( NUMBER0 ) ;
 }
 }

Remove unwanted printing of stack trace from the Launcher


<nb> public class ACRAConfiguration implements ReportsCrashes {
 private String [ ] mExcludeMatchingSharedPreferencesKeys = null ;
 private String mApplicationLogFile = null ;
 private Integer mApplicationLogFileLines = null ;
 -
 +
 private String mGoogleFormUrlFormat = null ;
 -
 +
 private Boolean mDisableSSLCertValidation = null ;

 COMMENT
 <nb> public class ACRAConfiguration implements ReportsCrashes {

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setDisableSSLCertValidation ( boolean disableSSLCertValidation ) {
 + mDisableSSLCertValidation = disableSSLCertValidation ;
 + }
 +
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public ACRAConfiguration ( ReportsCrashes defaults ) {
 <nb> public class HttpRequestTest {
 public void setUp ( ) throws Exception {
 final NonAndroidLog log = new NonAndroidLog ( ) ;
 ACRA . setLog ( log ) ;
 + ACRA . getConfig ( ) . setDisableSSLCertValidation ( true ) ;
 }

Add dynamic setter for disableSSLCertValidation


<nb> import NAMESPACE ;
 class UidReverseComparator implements Comparator < Message > {
 @ override
 public int compare ( Message messageLeft , Message messageRight ) {
 - Integer uidLeft = getUidForMessage ( messageLeft ) ;
 - Integer uidRight = getUidForMessage ( messageRight ) ;
 + Long uidLeft = getUidForMessage ( messageLeft ) ;
 + Long uidRight = getUidForMessage ( messageRight ) ;

 if ( uidLeft == null && uidRight == null ) {
 return NUMBER0 ;
 <nb> class UidReverseComparator implements Comparator < Message > {
 return uidRight . compareTo ( uidLeft ) ;
 }

 - private Integer getUidForMessage ( Message message ) {
 + private Long getUidForMessage ( Message message ) {
 try {
 - return Integer . parseInt ( message . getUid ( ) ) ;
 + return Long . parseLong ( message . getUid ( ) ) ;
 } catch ( NullPointerException | NumberFormatException e ) {
 return null ;
 }

Parse UIDs as Long in UidReverseComparator


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

 - public class KeyboardModifierListener {
 + public class KeyboardModifierListener implements Disposable {
 private boolean myShiftPressed ;
 private boolean myCtrlPressed ;
 private boolean myAltPressed ;
 <nb> public class KeyboardModifierListener {
 public void init ( @ notnull JComponent component , @ notnull Disposable disposable ) {
 assert myWindow == null ;

 - Disposer . register ( disposable , new Disposable ( ) {
 - @ override
 - public void dispose ( ) {
 - destroy ( ) ;
 - }
 - } ) ;
 + Disposer . register ( disposable , this ) ;

 SINGLE
 SINGLE
 <nb> public class KeyboardModifierListener {
 }
 }

 - public void destroy ( ) {
 + @ override
 + public void dispose ( ) {
 if ( myWindow != null ) {
 myWindow . removeWindowFocusListener ( myWindowFocusListener ) ;
 myWindow = null ;


<nb> public final class LTOBackendArtifacts {
 PathFragment compiler = cppConfiguration . getCppExecutable ( ) ;

 builder . setShellCommand ( beCommandline . getExecPathString ( ) ) ;
 - builder . setEnvironment (
 - ImmutableMap . of ( STRING0 , compiler . replaceName ( STRING1 ) . getPathString ( ) ) ) ;
 + builder . setEnvironment ( ImmutableMap . of ( STRING2 , compiler . replaceName ( STRING3 ) . getPathString ( ) ) ) ;

 ruleContext . registerAction ( builder . build ( ruleContext ) ) ;
 }


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class PanelWithText extends JPanel {

 public PanelWithText ( String text ) {
 super ( new GridBagLayout ( ) ) ;
 - setBorder ( BorderFactory . createEtchedBorder ( ) ) ;
 + SINGLE
 myLabel . setText ( XmlStringUtil . wrapInHtml ( text ) ) ;
 add ( myLabel , new GridBagConstraints ( NUMBER0 , NUMBER0 , NUMBER1 , NUMBER1 , NUMBER1 , NUMBER1 , GridBagConstraints . NORTH , GridBagConstraints . HORIZONTAL , new Insets ( NUMBER2 , NUMBER2 , NUMBER2 , NUMBER2 ) , NUMBER0 , NUMBER0 ) ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class MCMPAdvertiseTask implements Runnable {
 . append ( STRING0 ) . append ( host ) . append ( CRLF ) ;

 final String payload = builder . toString ( ) ;
 - final ByteBuffer byteBuffer = ByteBuffer . wrap ( payload . getBytes ( ) ) ;
 + final ByteBuffer byteBuffer = ByteBuffer . wrap ( payload . getBytes ( StandardCharsets . US_ASCII ) ) ;
 UndertowLogger . ROOT_LOGGER . proxyAdvertiseMessagePayload ( payload ) ;
 channel . sendTo ( address , byteBuffer ) ;
 } catch ( Exception e ) {


<nb>

 SINGLE
 package NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> import NAMESPACE ;
 @ entity
 public class Mail {
 @ id private Long id ;
 + @ column ( name = STRING0 )
 private String from ;

 public String getFrom ( ) {

Fixed mapping problem with field named from


<nb> public class Touch {

 switch ( event . getAction ( ) ) {
 case MotionEvent . ACTION_DOWN :
 + ds = buffer . getSpans ( NUMBER0 , buffer . length ( ) , DragState . class ) ;
 +
 + for ( int i = NUMBER0 ; i < ds . length ; i ++ ) {
 + buffer . removeSpan ( ds [ i ] ) ;
 + }
 +
 buffer . setSpan ( new DragState ( event . getX ( ) , event . getY ( ) ,
 widget . getScrollX ( ) , widget . getScrollY ( ) ) ,
 NUMBER0 , NUMBER0 , Spannable . SPAN_MARK_MARK ) ;

Always clear the TextView drag state whenever a touch begins


<nb> public class MainActivity extends Activity implements Flow . Dispatcher {
 super . onPause ( ) ;
 }

 -
 -
 @ override public Object getSystemService ( String name ) {
 - Object service = flowSupport . getSystemService ( name ) ;
 + Object service = null ;
 + if ( flowSupport != null ) {
 + service = flowSupport . getSystemService ( name ) ;
 + }
 return service != null ? service : super . getSystemService ( name ) ;
 }


<nb> public class ScheduledSwapActivity extends Activity implements OnItemSelectedLis
 throw new RuntimeException ( STRING0 ) ;
 }

 - if ( updated ) {
 + if ( mRenderThread == null ) {
 + SINGLE
 + Log . d ( TAG , STRING1 ) ;
 + } else if ( updated ) {
 RenderHandler rh = mRenderThread . getHandler ( ) ;
 if ( rh != null ) {
 rh . sendSetParameters ( mUpdatePatternIndex , mFramesAheadIndex ) ;


<nb> public final class Ray implements Savable , Cloneable , Collidable , java . io . Serial
 COMMENT
 COMMENT
 public Ray ( Vector3f origin , Vector3f direction ) {
 - setOrigin ( origin )
 + setOrigin ( origin ) ;
 setDirection ( direction ) ;
 }

Fixed semicolon conceptual disappearance


<nb> public abstract class JdbcUtils {
 className = obj . getClass ( ) . getName ( ) ;
 }
 if ( obj instanceof Blob ) {
 - obj = rs . getBytes ( index ) ;
 + Blob blob = ( Blob ) obj ;
 + obj = blob . getBytes ( NUMBER0 , ( int ) blob . length ( ) ) ;
 }
 else if ( obj instanceof Clob ) {
 - obj = rs . getString ( index ) ;
 + Clob clob = ( Clob ) obj ;
 + obj = clob . getSubString ( NUMBER0 , ( int ) clob . length ( ) ) ;
 }
 else if ( STRING0 . equals ( className ) || STRING1 . equals ( className ) ) {
 obj = rs . getTimestamp ( index ) ;

JdbcUtils getResultSetValue avoids re retrieval from ResultSet for Blob Clob content for Derby compatibility


<nb> public abstract class ResScalarValue extends ResValue

 public void serializeToXml ( XmlSerializer serializer , ResResource res )
 throws IOException , AndrolibException {
 - String tagName = res . getResSpec ( ) . getType ( ) . getName ( ) ;
 + String type = res . getResSpec ( ) . getType ( ) . getName ( ) ;
 + boolean item = ! type . equals ( mType ) ;
 + String tagName = item ? STRING0 : type ;
 +
 serializer . startTag ( null , tagName ) ;
 + if ( item ) {
 + serializer . attribute ( null , STRING1 , type ) ;
 + }
 serializer . attribute ( null , STRING2 , res . getResSpec ( ) . getName ( ) ) ;
 serializer . text ( toResXmlFormat ( ) ) ;
 serializer . endTag ( null , tagName ) ;

Added support for serializing scalar values to item tag


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BreakpointManager implements JDOMExternalizable {
 offset = editor . getDocument ( ) . getLineStartOffset ( line ) ;
 }

 + ExpandRegionHandler . expandRegionAtCaret ( myProject , editor ) ;
 +
 Breakpoint breakpoint = findBreakpoint ( document , offset , null ) ;
 if ( breakpoint == null ) {
 if ( mostSuitingBreakpoint || isInsideCompiledClass ) {

expand folded regions on mouse driven breakpoint toggle


<nb> public class Main {
 private final PermissionCollection permissions = new Permissions ( ) ;

 {
 - permissions . add ( new SocketPermission ( STRING0 , STRING1 ) ) ;
 + permissions . add ( new SocketPermission ( STRING0 , STRING2 ) ) ;
 permissions . add ( new RuntimePermission ( STRING3 ) ) ;
 permissions . add ( new RuntimePermission ( STRING4 ) ) ;
 permissions . add ( new RuntimePermission ( STRING5 ) ) ;

accept connections only in sandboxed mode


<nb>
 package NAMESPACE ;

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

 public class LongVarianceAggregation
 extends AbstractVarianceAggregation
 <nb> public class LongVarianceAggregation
 super ( population ) ;
 }

 - protected static long value = NUMBER0 ;
 -
 @ override
 public void addInput ( int positionCount , Block block , int field , Slice valueSlice , int valueOffset )
 {

Remove unneeded line in LongVarianceAggregation


<nb> public class TemplateState implements Disposable {
 CodeStyleManager codeStyleManager = CodeStyleManager . getInstance ( myProject ) ;
 if ( myTemplate . isToShortenLongNames ( ) ) {
 try {
 + IntArrayList indices = initEmptyVariables ( ) ;
 + mySegments . setSegmentsGreedy ( false ) ;
 +
 PsiDocumentManager . getInstance ( myProject ) . commitDocument ( myDocument ) ;
 codeStyleManager . shortenClassReferences ( file , myTemplateRange . getStartOffset ( ) , myTemplateRange . getEndOffset ( ) ) ;
 PsiDocumentManager . getInstance ( myProject ) . doPostponedOperationsAndUnblockDocument ( myDocument ) ;
 +
 + mySegments . setSegmentsGreedy ( true ) ;
 + restoreEmptyVariables ( indices ) ;
 }
 catch ( IncorrectOperationException e ) {
 LOG . error ( e ) ;

Fix stalling tests broken live templates


<nb> public abstract class AbstractCollectionPersister
 SINGLE
 Column col = ( ( Column ) iter . next ( ) ) ;
 keyColumnNames [ k ] = col . getQuotedName ( dialect ) ;
 - keyColumnAliases [ k ] = col . getAlias ( dialect , collectionBinding . getOwner ( ) . getRootTable ( ) ) ;
 + keyColumnAliases [ k ] = col . getAlias ( dialect , table ) ;
 k ++ ;
 }

column ambiguously defined exception on Oracle for Criteria


<nb> public class AndroidDisplayer implements IDisplayer {
 applyPaintConfig ( danmaku , paint , false ) ;
 canvas . drawText ( lines [ NUMBER0 ] , left , top - paint . ascent ( ) , paint ) ;
 } else {
 + applyPaintConfig ( danmaku , paint , false ) ;
 Float textHeight = getTextHeight ( paint ) ;
 for ( int t = NUMBER0 ; t < lines . length ; t ++ ) {
 if ( lines [ t ] . length ( ) > NUMBER0 ) {


<nb> public class TextEditingTarget implements
 {
 event . preventDefault ( ) ;
 event . stopPropagation ( ) ;
 - commands_ . interruptR ( ) . execute ( ) ;
 + if ( commands_ . interruptR ( ) . isEnabled ( ) )
 + commands_ . interruptR ( ) . execute ( ) ;
 }
 else if ( ne . getKeyCode ( ) == KeyCodes . KEY_M && (
 ( BrowseCap . hasMetaKey ( ) &&

don t execute interruptR unless it s enabled


<nb> public final class CaptureActivity extends Activity implements SurfaceHolder . Cal
 DEFAULT_INTENT_RESULT_DURATION_MS ) ;
 }

 - SINGLE
 - SINGLE
 - SINGLE
 if ( resultDurationMS > NUMBER0 ) {
 - statusView . setText ( getString ( resultHandler . getDisplayTitle ( ) ) ) ;
 + String rawResultString = String . valueOf ( rawResult ) ;
 + if ( rawResultString . length ( ) > NUMBER1 ) {
 + rawResultString = rawResultString . substring ( NUMBER0 , NUMBER1 ) + STRING0 ;
 + }
 + statusView . setText ( getString ( resultHandler . getDisplayTitle ( ) ) + STRING1 + rawResultString ) ;
 }

 if ( copyToClipboard && ! resultHandler . areContentsSecure ( ) ) {

By request let s show a bit of the scanned string when scanning by Intent in the Toast popup


<nb> public class AdviceWithTest extends ContextTestSupport {
 assertMockEndpointsSatisfied ( ) ;
 }

 + SINGLE
 public void testAdvised ( ) throws Exception {
 + SINGLE
 context . getRouteDefinitions ( ) . get ( NUMBER0 ) . adviceWith ( new RouteBuilder ( ) {
 @ override
 public void configure ( ) throws Exception {
 + SINGLE
 interceptSendToEndpoint ( STRING0 )
 . skipSendToOriginalEndpoint ( )
 . to ( STRING1 )
 <nb> public class AdviceWithTest extends ContextTestSupport {

 assertMockEndpointsSatisfied ( ) ;
 }
 + SINGLE

 public void testAdvisedNoNewRoutesAllowed ( ) throws Exception {
 try {


<nb> public class PsiManagerImpl extends PsiManagerEx implements ProjectComponent {
 projectRootManagerEx ) ;
 mySearchHelper = new PsiSearchHelperImpl ( this ) ;
 final CompositeCacheManager cacheManager = new CompositeCacheManager ( ) ;
 - if ( psiManagerConfiguration . REPOSITORY_ENABLED && ! isProjectDefault ) {
 - SINGLE
 + if ( ! isProjectDefault ) {
 cacheManager . addCacheManager ( new IndexCacheManagerImpl ( this ) ) ;
 }
 else {

register real index based CacheManager in platform


<nb> class AcknowledgedBulkWriteResult extends BulkWriteResult {
 @ override
 public int getModifiedCount ( ) {
 if ( modifiedCount == null ) {
 - throw new UnsupportedOperationException ( STRING0
 - + STRING1
 - + STRING2 ) ;
 + throw new UnsupportedOperationException ( STRING3
 + + STRING4 ) ;
 }
 return modifiedCount ;
 }

Clarify exception message for getModifiedCount


<nb> public abstract class DomInvocationHandler < T extends AbstractDomChildDescription

 @ notnull
 protected final Converter getScalarConverter ( final JavaMethod method ) {
 + final Converter converter ;
 synchronized ( myScalarConverters ) {
 - return myScalarConverters . get ( method ) ;
 + converter = myScalarConverters . get ( method ) ;
 }
 + assert converter != null ;
 + return converter ;
 }

 public final T getChildDescription ( ) {

reorder instructions maybe it ll fix strange IMSE


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 @ override
 public String resolveSymLink ( @ notnull final String path ) throws Exception {
 - return new File ( path ) . getCanonicalPath ( ) ;
 + try {
 + return new File ( path ) . getCanonicalPath ( ) ;
 + }
 + catch ( IOException e ) {
 + final String message = e . getMessage ( ) ;
 + if ( message != null && message . toLowerCase ( ) . contains ( STRING0 ) ) {
 + LOG . debug ( e ) ;
 + return null ;
 + }
 + throw e ;
 + }
 }

 @ override


<nb> public class ClassRemappingTransform {
 if ( m_classRemapping . containsKey ( soot_class . getName ( ) ) ) {
 return ;
 }
 + if ( method . isConcrete ( ) == false ) {
 + return ;
 + }
 Body body = method . retrieveActiveBody ( ) ;
 if ( body == null )
 return ;


<nb> public class WsSession implements Session {
 msg . put ( reason . getBytes ( UTF8 ) ) ;
 }
 msg . flip ( ) ;
 - wsRemoteEndpoint . sendMessageBlocking ( Constants . OPCODE_CLOSE , msg , true ) ;
 + try {
 + wsRemoteEndpoint . sendMessageBlocking (
 + Constants . OPCODE_CLOSE , msg , true ) ;
 + } catch ( IOException ioe ) {
 + SINGLE
 + SINGLE
 + }

 SINGLE
 Thread t = Thread . currentThread ( ) ;

Failure to send the close message should not stop the rest of the close processing


<nb> public class IndicesStore extends AbstractComponent implements ClusterStateListe

 ShardActiveResponseHandler responseHandler = new ShardActiveResponseHandler ( indexShardRoutingTable . shardId ( ) , state , requests . size ( ) ) ;
 for ( Tuple < DiscoveryNode , ShardActiveRequest > request : requests ) {
 + logger . trace ( STRING0 , request . v2 ( ) . shardId , request . v1 ( ) ) ;
 transportService . sendRequest ( request . v1 ( ) , ACTION_SHARD_EXISTS , request . v2 ( ) , responseHandler ) ;
 }
 }
 <nb> public class IndicesStore extends AbstractComponent implements ClusterStateListe

 @ override
 public void handleResponse ( ShardActiveResponse response ) {
 + logger . trace ( STRING1 , shardId , response . shardActive ? STRING2 : STRING3 , response . node ) ;
 if ( response . shardActive ) {
 - logger . trace ( STRING4 , shardId , response . node ) ;
 activeCopies . incrementAndGet ( ) ;
 }

improved trace logging for shard active requests


<nb> public class FileCopyInstructionImpl extends BuildInstructionBase implements Fil
 }
 }

 - public void addFilesToRefresh ( File outputDir , Set < File > filesToRefresh ) {
 - if ( myChangedSet == null ) {
 - final File to = MakeUtil . canonicalRelativePath ( outputDir , getOutputRelativePath ( ) ) ;
 - filesToRefresh . add ( to ) ;
 - }
 - else {
 - for ( FileCopyInstructionImpl singleFileCopyInstruction : myChangedSet ) {
 - singleFileCopyInstruction . addFilesToRefresh ( outputDir , filesToRefresh ) ;
 - }
 - }
 - }
 -
 public boolean accept ( BuildInstructionVisitor visitor ) throws Exception {
 return visitor . visitFileCopyInstruction ( this ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class LocalFirehoseFactory implements FirehoseFactory < StringInputRowParse
 @ override
 public Firehose connect ( StringInputRowParser firehoseParser ) throws IOException
 {
 + if ( baseDir == null ) {
 + throw new IAE ( STRING0 ) ;
 + }
 log . info ( STRING1 , filter , baseDir . getAbsoluteFile ( ) ) ;

 Collection < File > foundFiles = FileUtils . listFiles (

throw IAE when baseDir is null in LocalFireHose


<nb> public final class RemoteAddrFilter
 @ override
 public void doFilterEvent ( CometEvent event , CometFilterChain chain )
 throws IOException , ServletException {
 - processCometEvent ( event . getHttpServletRequest ( ) . getRemoteHost ( ) ,
 + processCometEvent ( event . getHttpServletRequest ( ) . getRemoteAddr ( ) ,
 event , chain ) ;
 }

 <nb> public final class RemoteAddrFilter
 protected Log getLogger ( ) {
 return log ;
 }
 -
 }

RemoteAddrFilter uses remote host not address in doFilterEvent


<nb> public abstract class AbstractPager implements Pager {

 public Pager setRecordCount ( int recordCount ) {
 this . recordCount = recordCount > NUMBER0 ? recordCount : NUMBER0 ;
 - return resetPageCount ( ) ;
 + this . pageCount = ( int ) Math . ceil ( ( double ) recordCount / pageSize ) ;
 + return this ;
 }

 public int getOffset ( ) {


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


<nb>
 COMMENT
 package NAMESPACE ;

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

 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BeanSerializer implements Serializer {
 }

 protected void addToString ( EntityType model , CodeWriter writer ) throws IOException {
 + writer . line ( STRING0 ) ;
 writer . beginPublicMethod ( Types . STRING , STRING1 ) ;
 StringBuilder builder = new StringBuilder ( ) ;
 for ( Property property : model . getProperties ( ) ) {


<nb> public class ProgressManagerImpl extends ProgressManager implements ApplicationC
 final ProgressIndicator progress = getInstance ( ) . getProgressIndicator ( ) ;
 if ( progress != null ) {
 try {
 - SINGLE
 + progress . checkCanceled ( ) ;
 }
 catch ( ProcessCanceledException e ) {
 if ( ! Thread . holdsLock ( PsiLock . LOCK ) ) {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SimpleGrailsControllerHelper implements GrailsControllerHelper {

 private static final Log LOG = LogFactory . getLog ( SimpleGrailsControllerHelper . class ) ;
 private static final String PROPERTY_CHAIN_MODEL = STRING0 ;
 + private static final String FORWARD_CALLED = STRING1 ;
 +
 private String id ;
 private String controllerName ;
 private String actionName ;
 <nb> public class SimpleGrailsControllerHelper implements GrailsControllerHelper {
 throw new ControllerExecutionException ( STRING2 + uri , e ) ;
 }
 }
 - else if ( request . getAttribute ( ForwardMethod . CALLED ) == null ) {
 + else if ( request . getAttribute ( FORWARD_CALLED ) == null ) {
 if ( LOG . isDebugEnabled ( ) ) {
 LOG . debug ( STRING3 + actionName + STRING4 + returnValue + STRING5 + viewName + STRING6 ) ;
 }

removed dependency on ForwardMethod from core web jar


<nb> class StatusPanel extends JPanel {
 final Alarm alarm = getAlarm ( ) ;
 myLogMode = logAllowed && StringUtil . isEmpty ( nonLogText ) && statusMessage != null && alarm != null ;

 - if ( myLogMode ) {
 + if ( alarm != null ) {
 alarm . cancelAllRequests ( ) ;
 + }

 + if ( myLogMode ) {
 myTextPanel . setCursor ( Cursor . getPredefinedCursor ( Cursor . HAND_CURSOR ) ) ;
 new Runnable ( ) {
 @ override

don t show expired notifications in status bar


<nb> public final class DefaultServicesManagerImpl implements ReloadableServicesManag
 final RegisteredService r = this . services . get ( id ) ;

 try {
 - return r == null ? null : ( RegisteredService ) r . clone ( ) ;
 + return r == null ? null : r . clone ( ) ;
 } catch ( final CloneNotSupportedException e ) {
 return r ;
 }


<nb> public abstract class AlluxioException extends Exception {
 SINGLE
 throwClass = AlluxioExceptionType . getAlluxioExceptionClass ( e . getType ( ) ) ;
 }
 + if ( throwClass == null ) {
 + throwClass = AlluxioException . class ;
 + }
 return throwClass . getConstructor ( String . class ) . newInstance ( e . getMessage ( ) ) ;
 } catch ( ReflectiveOperationException reflectException ) {
 String errorMessage = STRING0 + e . getType ( ) + STRING1


<nb> public class NodeGetUniqueFromIndexLookupIT extends KernelIntegrationTest
 public void run ( )
 {
 latch . awaitStart ( ) ;
 - Statement statement = statementContextProvider . statement ( ) ;
 try ( Transaction tx = db . beginTx ( ) )
 {
 + Statement statement = statementContextProvider . statement ( ) ;
 statement . readOperations ( ) . nodeGetUniqueFromIndexLookup ( index , value ) ;
 statement . close ( ) ;
 tx . success ( ) ;


<nb> import NAMESPACE ;

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

 public class ExternalDiffTool {
 <nb> public class ExternalDiffTool {
 UserDataHolderBase context = new UserDataHolderBase ( ) ;
 List < String > errorRequests = new ArrayList < String > ( ) ;

 - for ( DiffRequestPresentable presentable : chain . getRequests ( ) ) {
 + SINGLE
 + List < ? extends DiffRequestPresentable > presentables = Collections . singletonList ( chain . getRequests ( ) . get ( chain . getIndex ( ) ) ) ;
 +
 + for ( DiffRequestPresentable presentable : presentables ) {
 try {
 requests . add ( presentable . process ( context , indicator ) ) ;
 }

do not show all files in commit in external diff tool


<nb> private ExternalProcessFixedLengthInputFormat < ExternalProcessInputSplit > format ;
 Assert . assertTrue ( invalidExitCode ) ;

 invalidExitCode = false ;
 - config . setString ( ExternalProcessInputFormat . ALLOWEDEXITCODES_PARAMETER_KEY , STRING0 ) ;
 + config . setString ( ExternalProcessInputFormat . ALLOWEDEXITCODES_PARAMETER_KEY , STRING1 ) ;
 format . configure ( config ) ;
 try {
 format . open ( split ) ;
 <nb> public class ExternalProcessInputFormatTest {
 Assert . assertTrue ( invalidExitCode ) ;

 invalidExitCode = false ;
 - config . setString ( ExternalProcessInputFormat . ALLOWEDEXITCODES_PARAMETER_KEY , STRING0 ) ;
 + config . setString ( ExternalProcessInputFormat . ALLOWEDEXITCODES_PARAMETER_KEY , STRING1 ) ;
 format . configure ( config ) ;
 try {
 format . open ( split ) ;

Fixed testCheckExitCode to work on MacOS too


<nb> public class StatsCommentsFragment extends StatsAbstractListFragment {
 return ;
 }

 - if ( ! isErrorResponse ( NUMBER0 ) ) { SINGLE
 + if ( mDatamodels [ NUMBER0 ] != null && ! isErrorResponse ( NUMBER0 ) ) { SINGLE
 mTotalsLabel . setVisibility ( View . VISIBLE ) ;
 int totalNumberOfFollowers = ( ( CommentFollowersModel ) mDatamodels [ NUMBER0 ] ) . getTotal ( ) ;
 mTotalsLabel . setText (

re added the null check that was erroneously removed


<nb> public class SharedPsiElementImplUtil {
 PsiElement [ ] children = parent . getChildren ( ) ;
 for ( int i = NUMBER0 ; i < children . length ; i ++ ) {
 PsiElement child = children [ i ] ;
 - if ( child . equals ( element ) ) {
 + if ( child == element ) { SINGLE
 return i > NUMBER0 ? children [ i - NUMBER1 ] : null ;
 }
 }


<nb> public class NotificationPanelView extends PanelView implements
 ExpandableView . OnHeightChangedListener , ObservableScrollView . Listener ,
 View . OnClickListener , KeyguardPageSwipeHelper . Callback {

 + private static float EXPANSION_RUBBER_BAND_EXTRA_FACTOR = FLOAT0 ;
 +
 private KeyguardPageSwipeHelper mPageSwiper ;
 PhoneStatusBar mStatusBar ;
 private StatusBarHeaderView mHeader ;
 <nb> public class NotificationPanelView extends PanelView implements
 @ override
 protected void onOverExpansionChanged ( float overExpansion ) {
 float currentOverScroll = mNotificationStackScroller . getCurrentOverScrolledPixels ( true ) ;
 - mNotificationStackScroller . setOverScrolledPixels ( currentOverScroll + overExpansion
 - - mOverExpansion , true COMMENT , false COMMENT ) ;
 + float expansionChange = overExpansion - mOverExpansion ;
 + expansionChange *= EXPANSION_RUBBER_BAND_EXTRA_FACTOR ;
 + mNotificationStackScroller . setOverScrolledPixels ( currentOverScroll + expansionChange ,
 + true COMMENT ,
 + false COMMENT ) ;
 super . onOverExpansionChanged ( overExpansion ) ;
 }

Reduced overexpansion when expanding the panel


<nb> public class ResourceManager {
 }
 }
 }
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + int left = NUMBER0 ;
 + int top = NUMBER0 ;
 + int right = Integer . MAX_VALUE ;
 + int bottom = Integer . MAX_VALUE ;
 for ( AmenityIndexRepositoryBinary index : list ) {
 if ( matcher != null && matcher . isCancelled ( ) ) {
 break ;
 }
 List < Amenity > result = index . searchAmenitiesByName ( MapUtils . get31TileNumberX ( lon ) , MapUtils . get31TileNumberY ( lat ) ,
 - MapUtils . get31TileNumberX ( leftLongitude ) , MapUtils . get31TileNumberY ( topLatitude ) ,
 - MapUtils . get31TileNumberX ( rightLongitude ) , MapUtils . get31TileNumberY ( bottomLatitude ) ,
 + left , top , right , bottom ,
 searchQuery , matcher ) ;
 amenities . addAll ( result ) ;
 }

Don t use boundaries when search by name inside the file


<nb> public class KafkaMetadata
 {
 KafkaTopicDescription table = getDefinedTables ( ) . get ( schemaTableName ) ;
 if ( table == null ) {
 - throw new TableNotFoundException ( schemaTableName ) ;
 + return null ;
 }

 return new KafkaTableHandle ( connectorId ,

Change KafkaMetadata getTableHandle to not throw exceptions


<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
 ( ( TransitionDrawable ) d ) . resetTransition ( ) ;
 }
 }
 - d . setHotspot ( x , y ) ;
 + mSelector . setHotspot ( x , y ) ;
 }

 if ( longClickable ) {

Fix NPE in AbsListView hotspot management


<nb> public class SmackException extends Exception {
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public static class ConnectionException extends SmackException {

 COMMENT
 <nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 +
 public class HostAddress {
 private final String fqdn ;
 private final int port ;
 <nb> public class HostAddress {
 this . exception = e ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public Exception getException ( ) {
 return this . exception ;
 }

Add javadoc to SmackException ConnectionException


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class BaseActivity extends SherlockFragmentActivity implements
 super . onStart ( ) ;
 SINGLE
 if ( ! onAutoBackup ( ) ) {
 - SgSyncAdapter . requestSync ( this ) ;
 + SINGLE
 + final Context context = getApplicationContext ( ) ;
 + Handler handler = new Handler ( ) ;
 + handler . postDelayed ( new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + SgSyncAdapter . requestSync ( context ) ;
 + }
 + } , NUMBER0 ) ;
 +
 }
 }

Delay sync on resuming to speed up resuming


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

 + @ suppresswarnings ( STRING0 )
 public class ProjectTemplateIconImageResource implements ImageResource
 {
 public ProjectTemplateIconImageResource ( String name , String data )

suppress deprecation warnings from ImageResource


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BalloonImpl implements Disposable , Balloon , LightweightWindow , Posi
 Toolkit . getDefaultToolkit ( ) . addAWTEventListener ( myAwtActivityListener , MouseEvent . MOUSE_EVENT_MASK |
 MouseEvent . MOUSE_MOTION_EVENT_MASK |
 KeyEvent . KEY_EVENT_MASK ) ;
 + ActionManager . getInstance ( ) . addAnActionListener ( new AnActionListener . Adapter ( ) {
 + @ override
 + public void beforeActionPerformed ( AnAction action , DataContext dataContext , AnActionEvent event ) {
 + hide ( ) ;
 + }
 + } , this ) ;
 }

 private Rectangle getRecForPosition ( Position position , boolean adjust ) {


<nb> public class ConnectionSSLSessionInfo implements SSLSessionInfo {
 channel . setOption ( Options . SSL_CLIENT_AUTH_MODE , newAuthMode ) ;
 channel . getSslSession ( ) . invalidate ( ) ;
 channel . startHandshake ( ) ;
 + serverConnection . getOriginalSinkConduit ( ) . flush ( ) ;
 ByteBuffer buff = ByteBuffer . wrap ( new byte [ NUMBER0 ] ) ;
 while ( ! waiter . isDone ( ) && serverConnection . isOpen ( ) ) {
 int read = serverConnection . getSourceChannel ( ) . read ( buff ) ;


<nb> public class Capsule implements Runnable {
 }

 private void validateManifest ( Manifest manifest ) {
 - if ( ! Capsule . class . getName ( ) . equals ( manifest . getMainAttributes ( ) . getValue ( ATTR_PREMAIN_CLASS ) ) )
 - throw new IllegalStateException ( STRING0 + Capsule . class . getName ( )
 - + STRING1 + ATTR_PREMAIN_CLASS + STRING2 ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE

 if ( manifest . getMainAttributes ( ) . getValue ( ATTR_CLASS_PATH ) != null )
 throw new IllegalStateException ( STRING3 + ATTR_CLASS_PATH + STRING2

Temporarily revert manifest s Premain Class validation


<nb> public class EmulatorView extends View implements GestureDetector . OnGestureListe
 } else {
 SINGLE
 mScrollRemainder = FLOAT0 ;
 - onScroll ( e1 , e2 , NUMBER0 * velocityX , - NUMBER0 * velocityY ) ;
 + onScroll ( e1 , e2 , FLOAT1 * velocityX , - FLOAT1 * velocityY ) ;
 }
 return true ;
 }


<nb> public class SnackbarManager {
 private SnackbarManager ( ) {
 }

 - public void show ( Snackbar snackbar , Activity target ) {
 + public void show ( Snackbar snackbar ) {
 if ( currentSnackbar != null ) {
 currentSnackbar . dismiss ( ) ;
 }
 currentSnackbar = snackbar ;
 - currentSnackbar . show ( target ) ;
 + currentSnackbar . show ( ( Activity ) currentSnackbar . getContext ( ) ) ;
 }
 }


<nb> package NAMESPACE ;
 import NAMESPACE ;

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

 <nb> public class ConfigurationClassWebApplicationContext extends AbstractRefreshable
 for ( String configLocation : getConfigLocations ( ) ) {
 try {
 Class < ? > configClass = ClassUtils . getDefaultClassLoader ( ) . loadClass ( configLocation ) ;
 - if ( AnnotationUtils . findAnnotation ( configClass , Configuration . class ) == null ) {
 - throw new IllegalArgumentException ( STRING0 + configClass . getName ( ) + STRING1 ) ;
 - }
 this . delegate . addConfigurationClass ( configClass ) ;
 } catch ( ClassNotFoundException ex ) {
 throw new IOException ( STRING2 + configLocation + STRING3 , ex ) ;

removed remaining duplicate check for Configuration


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

 import NAMESPACE ;

 -
 public class EchoWebSocketProcessor extends WebSocketProcessor {

 public EchoWebSocketProcessor ( AtmosphereServlet atmosphereServlet , WebSocketSupport webSocketSupport ) {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class UpdateLayoutAction extends Action {
 WebKeys . THEME_DISPLAY ) ;

 long userId = themeDisplay . getUserId ( ) ;
 -
 Layout layout = themeDisplay . getLayout ( ) ;
 -
 - SINGLE
 - SINGLE
 -
 - layout = LayoutLocalServiceUtil . getLayout ( layout . getPlid ( ) ) ;
 -
 LayoutTypePortlet layoutTypePortlet =
 - ( LayoutTypePortlet ) layout . getLayoutType ( ) ;
 -
 + themeDisplay . getLayoutTypePortlet ( ) ;
 PermissionChecker permissionChecker =
 themeDisplay . getPermissionChecker ( ) ;


<nb> public class EngineIron extends Engine {
 LiquidStack liquid = LiquidManager . getLiquidForFilledItem ( itemInInventory ) ;

 if ( liquid != null ) {
 - if ( fill ( Orientations . Unknown , liquid , false ) == BuildCraftAPI . BUCKET_VOLUME ) {
 + if ( fill ( Orientations . Unknown , liquid , false ) == liquid . amount ) {
 fill ( Orientations . Unknown , liquid , true ) ;
 tile . setInventorySlotContents ( NUMBER0 , Utils . consumeItem ( itemInInventory ) ) ;
 }

Added support for non standard liquid containers


<nb> public class ApklibMojo extends AbstractAndroidMojo
 {
 if ( apkLibraryArtifact . getType ( ) . equals ( APKLIB ) )
 {
 - commands . add ( STRING0 ) ;
 - commands . add ( getLibraryUnpackDirectory ( apkLibraryArtifact ) + STRING1 ) ;
 + String apklibResDirectory = getLibraryUnpackDirectory ( apkLibraryArtifact ) + STRING1 ;
 + if ( new File ( apklibResDirectory ) . exists ( ) )
 + {
 + commands . add ( STRING0 ) ;
 + commands . add ( apklibResDirectory ) ;
 + }
 }
 }
 commands . add ( STRING2 ) ;

Added existence check for the res directory for APKLIBs


<nb> public class TransportSQLActionTest extends SQLTransportIntegrationTest {
 execute ( STRING0 ) ;
 assertThat ( response . rowCount ( ) , is ( NUMBER0 ) ) ;
 assertThat ( ( Double ) response . rows ( ) [ NUMBER1 ] [ NUMBER1 ] , is ( FLOAT0 ) ) ;
 +
 + execute ( STRING1 ) ;
 + assertThat ( response . rowCount ( ) , is ( NUMBER2 ) ) ;
 + assertThat ( ( Long ) response . rows ( ) [ NUMBER1 ] [ NUMBER1 ] , is ( NUMBER0 ) ) ;
 + assertThat ( ( Long ) response . rows ( ) [ NUMBER1 ] [ NUMBER3 ] , is ( NUMBER0 ) ) ;
 + assertThat ( ( Long ) response . rows ( ) [ NUMBER3 ] [ NUMBER1 ] , is ( NUMBER2 ) ) ;
 + assertThat ( ( Long ) response . rows ( ) [ NUMBER3 ] [ NUMBER3 ] , is ( NUMBER2 ) ) ;
 }

 @ test


<nb>

 package NAMESPACE ;

 - public abstract class VersionDetails {
 + import NAMESPACE ;
 +
 + public abstract class VersionDetails implements Serializable {
 private final String providerVersion ;

 public VersionDetails ( String version ) {
 <nb> public abstract class VersionDetails {
 public boolean supportsCancellation ( ) {
 return false ;
 }
 - }
 + }


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

 - import NAMESPACE ;
 -
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> import static NAMESPACE ;
 import static NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;


<nb> public class Base {
 return editor ;

 } catch ( EditorException ee ) {
 - if ( ! ee . getMessage ( ) . equals ( STRING0 ) ) { SINGLE
 + if ( ee . getMessage ( ) != null ) { SINGLE
 Messages . showWarning ( STRING1 , ee . getMessage ( ) , ee ) ;
 }
 } catch ( NoSuchMethodError nsme ) {


<nb> public class GCMMessageService extends GcmListenerService {
 SINGLE
 for ( Iterator < Map . Entry < Integer , Bundle > > it = sActiveNotificationsMap . entrySet ( ) . iterator ( ) ; it . hasNext ( ) ; ) {
 Map . Entry < Integer , Bundle > row = it . next ( ) ;
 - Integer pushId = row . getKey ( ) ;
 Bundle noteBundle = row . getValue ( ) ;
 if ( noteBundle . getString ( PUSH_ARG_NOTE_ID , STRING0 ) . equals ( noteId ) ) {
 sNotificationHelpers . rebuildAndUpdateNotificationsOnSystemBar ( noteBundle ) ;


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

 @ runwith ( HazelcastParallelClassRunner . class )
 @ category ( QuickTest . class )
 + @ ignore SINGLE
 public class MigrationAwareServiceTest extends HazelcastTestSupport {

 private static final String BACKUP_COUNT_PROP = STRING0 ;

Ignoring MigrationAwareTest because it is a known issue


<nb> class TableToolkit extends Toolkit < Actor , Table , TableLayout > {

 public void addChild ( Actor parent , Actor child ) {
 child . remove ( ) ;
 - try {
 - parent . getClass ( ) . getMethod ( STRING0 , Actor . class ) . invoke ( parent , child ) ;
 - return ;
 - } catch ( InvocationTargetException ex ) {
 - throw new RuntimeException ( STRING1 , ex ) ;
 - } catch ( Exception ignored ) {
 - }
 ( ( Group ) parent ) . addActor ( child ) ;
 }


<nb> public class DefaultProjectAccessListener implements ProjectAccessListener {

 public void beforeRequestingTaskByPath ( ProjectInternal targetProject ) {
 targetProject . evaluate ( ) ;
 + SINGLE
 }

 public void beforeResolvingProjectDependency ( ProjectInternal dependencyProject ) {
 dependencyProject . evaluate ( ) ;
 + dependencyProject . realizeTasksAndValidateModel ( ) ;
 }
 }

Close the task container of the depended upon project when resolving project dependencies


<nb> public abstract class FirebaseRecyclerViewAdapter < T , VH extends RecyclerView . Vie
 protected int mModelLayout ;
 Class < VH > mViewHolderClass ;
 FirebaseArray mSnapshots ;
 - protected RecyclerViewClickListener clickListener ;
 -

 COMMENT
 COMMENT
 <nb> public abstract class FirebaseRecyclerViewAdapter < T , VH extends RecyclerView . Vie
 return mSnapshots . getItem ( position ) . getKey ( ) . hashCode ( ) ;
 }

 - public void setClickListener ( RecyclerViewClickListener clickListener ) {
 - this . clickListener = clickListener ;
 - }
 -
 @ override
 public VH onCreateViewHolder ( ViewGroup parent , int viewType ) {
 ViewGroup view = ( ViewGroup ) LayoutInflater . from ( parent . getContext ( ) ) . inflate ( mModelLayout , parent , false ) ;
 <nb> public abstract class FirebaseRecyclerViewAdapter < T , VH extends RecyclerView . Vie

 abstract public void populateViewHolder ( VH viewHolder , T model ) ;

 - public interface RecyclerViewClickListener {
 - public void onItemClicked ( int position ) ;
 - }
 }


<nb> public class DownloadManager {
 values . put ( Downloads . Impl . COLUMN_TOTAL_BYTES , - NUMBER0 ) ;
 values . putNull ( Downloads . Impl . _DATA ) ;
 values . put ( Downloads . Impl . COLUMN_STATUS , Downloads . Impl . STATUS_PENDING ) ;
 + values . put ( Downloads . Impl . COLUMN_FAILED_CONNECTIONS , NUMBER1 ) ;
 mResolver . update ( mBaseUri , values , getWhereClauseForIds ( ids ) , getWhereArgsForIds ( ids ) ) ;
 }

 <nb> public final class Downloads {
 COMMENT
 public static final String COLUMN_LAST_UPDATESRC = STRING0 ;

 + COMMENT
 + public static final String COLUMN_FAILED_CONNECTIONS = STRING1 ;
 +
 COMMENT
 COMMENT
 COMMENT

Define failed connections column and reset


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class TypeSignature
 return typeName ;
 }

 - @ jsonproperty
 public String getBase ( )
 {
 return base ;
 }

 - @ jsonproperty
 public List < TypeSignature > getParameters ( )
 {
 return parameters ;


<nb> public abstract class SearchIndexableData {
 public int rank ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public String key ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add support for key value for SearchIndexableData


<nb> public abstract class AbstractNameStore < T extends AbstractNameRecord > extends Ab
 {
 throw new InvalidRecordException ( STRING0 + id + STRING1 ) ;
 }
 - if ( inUseByte != Record . IN_USE . byteValue ( ) )
 + if ( inUseByte != Record . IN_USE . byteValue ( ) && inUseByte != Record . NOT_IN_USE . byteValue ( ) )
 {
 throw new InvalidRecordException ( STRING0 + id + STRING2 + inUse + STRING3 ) ;
 }

Fixed an invalid condition regarding inUse


<nb> public class OldIndexBackwardsCompatibilityTests extends StaticIndexBackwardComp
 SINGLE

 List < String > indexes = Arrays . asList (
 - COMMENT
 STRING0 ,
 STRING1 ,
 STRING2 ,


<nb> public @ interface Parcel {
 COMMENT
 COMMENT
 FIELD ,
 + COMMENT
 + COMMENT
 + COMMENT
 + @ deprecated
 + METHOD ,
 + COMMENT
 + COMMENT
 + COMMENT
 BEAN ,
 + COMMENT
 + COMMENT
 + COMMENT
 VALUE
 }
 }
 <nb> public class ParcelableAnalysis {
 HashMultimap < String , ASTReference < ASTMethod > > defaultReadMethods = HashMultimap . create ( ) ;
 HashMultimap < String , ASTReference < ASTField > > defaultFields = HashMultimap . create ( ) ;

 - if ( Parcel . Serialization . BEAN . equals ( serialization ) ) {
 + if ( Parcel . Serialization . BEAN . equals ( serialization ) || Parcel . Serialization . METHOD . equals ( serialization ) ) {
 defaultWriteMethods . putAll ( findJavaBeanWriteMethods ( hierarchyLoop , definedMethods , false ) ) ;
 defaultReadMethods . putAll ( findJavaBeanReadMethods ( hierarchyLoop , definedMethods , false ) ) ;
 }


<nb> import NAMESPACE ;

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

 COMMENT
 COMMENT
 <nb> public class HeaderFlyweight
 int length = buffer . getInt ( offset ) ;
 byte [ ] stringInBytes = new byte [ length ] ;
 buffer . getBytes ( offset + SIZE_OF_INT , stringInBytes ) ;
 - return new String ( stringInBytes ) ;
 + return new String ( stringInBytes , StandardCharsets . UTF_8 ) ;
 }

 public static void stringPut ( AtomicBuffer buffer , final int offset , String value , ByteOrder byteOrder )
 {
 - byte [ ] bytes = value . getBytes ( ) ;
 + byte [ ] bytes = value . getBytes ( StandardCharsets . UTF_8 ) ;
 buffer . putInt ( offset , bytes . length ) ;
 buffer . putBytes ( offset + SIZE_OF_INT , bytes ) ;
 }


<nb> public class ChatRoomConfigParam

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - protected static final String _CHAT_ROOM_NOT_VISIBLE = STRING0 ;
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public static final ChatRoomConfigParam CHAT_ROOM_NOT_VISIBLE
 - = new ChatRoomConfigParam ( _CHAT_ROOM_NOT_VISIBLE ) ;
 -
 - COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ChatRoomPropertyChangeEvent
 COMMENT
 COMMENT
 COMMENT
 - public static final String PROPERTY_STATE_CHANGED = STRING1 ;
 + public static final String PROPERTY_CONFIG_CHANGED = STRING2 ;

 COMMENT
 COMMENT

applied Multi user chat services fixes proposed from Stephane


<nb> public class IllegalInstantiationCheck
 TokenTypes . PACKAGE_DEF
 } ;
 }
 -
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public int [ ] getAcceptableTokens ( )
 + {
 + return new int [ ] { } ;
 + }
 +
 + COMMENT
 + public int [ ] getRequiredTokens ( )
 + {
 + return new int [ ] {
 + TokenTypes . IMPORT ,
 + TokenTypes . LITERAL_NEW ,
 + TokenTypes . PACKAGE_DEF
 + } ;
 + }
 +
 COMMENT
 public void beginTree ( )
 {

Prevent user from changing tokens in the configuration


<nb> public class GuiMode {
 } ) ;
 }

 - private static void setParamsForOtherPlatforms ( ) throws Exception {
 - UIManager . setLookAndFeel ( STRING0 ) ;
 - UIManager . setLookAndFeel ( STRING1 ) ;
 - }
 -
 private static void buildAndShowClassyShark ( List < String > cmdLineArgs ) {
 try {
 UIManager . setLookAndFeel ( UIManager . getSystemLookAndFeelClassName ( ) ) ;
 } catch ( UnsupportedLookAndFeelException | IllegalAccessException | ClassNotFoundException
 - | InstantiationException ex ) {
 + | InstantiationException | SecurityException ex ) {
 ex . printStackTrace ( ) ;
 }


<nb> final class ClosureRewriteModule implements HotSwapCompilerPass {
 return ;
 }
 }
 -
 - if ( aliasName != null
 - && isTopLevel ( t , NodeUtil . getEnclosingStatement ( call ) , ScopeType . EXEC_CONTEXT ) ) {
 - SINGLE
 - recordImportAlias ( aliasName , legacyNamespace ) ;
 - }
 }

 private void recordTopLevelClassOrFunctionName ( Node classOrFunctionNode ) {

Remove a case that should never happen from module rewriting


<nb> public class PluginResolutionServiceClient {
 try {
 return new URI ( url ) ;
 } catch ( URISyntaxException e ) {
 - throw new GradleException ( String . format ( STRING0 , kind , url , e ) ) ;
 + throw new GradleException ( String . format ( STRING0 , kind , url ) , e ) ;
 }
 }


<nb>
 package NAMESPACE ;

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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 @ path ( STRING0 )
 public class ChatHandlerResource
 {
 - private final ObjectMapper jsonMapper ;
 - private final EventReceivingChatHandlerProvider handlers ;
 + private final ChatHandlerProvider handlers ;

 @ inject
 - public ChatHandlerResource ( ObjectMapper jsonMapper , EventReceivingChatHandlerProvider handlers )
 + public ChatHandlerResource ( ChatHandlerProvider handlers )
 {
 - this . jsonMapper = jsonMapper ;
 this . handlers = handlers ;
 }


<nb>
 package NAMESPACE ;

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


<nb> public abstract class AbstractSQLQuery < Q extends AbstractSQLQuery < Q > > extends
 }

 @ suppresswarnings ( STRING0 )
 + @ nullable
 private < T > T get ( ResultSet rs , int i , Class < T > type ) {
 try {
 Object value = rs . getObject ( i ) ;

fixed Method may return null but is declared NonNull


<nb> public class DexFileReader {
 }

 SINGLE
 - SINGLE
 if ( NUMBER0 == ( method_access_flags & DexOpcodes . ACC_CONSTRUCTOR )
 && ( method . getName ( ) . equals ( STRING0 ) || method . getName ( )
 . equals ( STRING1 ) ) ) {
 System . err . println ( STRING2 + method . toString ( )
 + STRING3 ) ;
 - if ( ( config & KEEP_ALL_METHODS ) == NUMBER0 ) {
 - System . out . printf ( STRING4 , method . toString ( ) ) ;
 - return method_id ;
 - }
 }

 try {


<nb> public abstract class Modification implements Serializable {
 COMMENT
 public abstract String getType ( ) ;

 + COMMENT
 + public final void setType ( String type ) {
 + COMMENT
 + }
 +
 public final Set < String > warnings = new HashSet < String > ( ) ;
 }

add do nothing setter to modification to avoid Jackson confusion


<nb> public class SettingsChooseSourceFragment extends Fragment implements LoaderMana
 mCurrentScroller = null ;
 }
 }
 -
 - @ override
 - public void onUpOrCancelMotionEvent ( ) {
 - }
 } ) ;
 mSourceContainerView = ( ViewGroup ) mRootView . findViewById ( R . id . source_container ) ;

 <nb> public class ObservableHorizontalScrollView extends HorizontalScrollView {
 case MotionEvent . ACTION_DOWN :
 mCallbacks . onDownMotionEvent ( ) ;
 break ;
 - case MotionEvent . ACTION_UP :
 - case MotionEvent . ACTION_CANCEL :
 - mCallbacks . onUpOrCancelMotionEvent ( ) ;
 - break ;
 }
 }
 return super . onTouchEvent ( ev ) ;
 <nb> public class ObservableHorizontalScrollView extends HorizontalScrollView {
 public interface Callbacks {
 void onScrollChanged ( int scrollX ) ;
 void onDownMotionEvent ( ) ;
 - void onUpOrCancelMotionEvent ( ) ;
 }
 }

Remove always empty ObservableHorizontalScrollView Callback method


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DisruptorQueue {

 public DisruptorQueue ( Number bufferSize ) {
 _executor = Executors . newSingleThreadExecutor ( ) ;
 - _disruptor = new Disruptor ( new ObjectEventFactory ( ) , _executor , new MultiThreadedClaimStrategy ( bufferSize . intValue ( ) ) , new YieldingWaitStrategy ( ) ) ;
 + _disruptor = new Disruptor ( new ObjectEventFactory ( ) , _executor , new MultiThreadedClaimStrategy ( bufferSize . intValue ( ) ) , new BlockingWaitStrategy ( ) ) ;
 _handler = new WaiterEventHandler ( ) ;
 _disruptor . handleEventsWith ( _handler ) ;
 _buffer = _disruptor . start ( ) ;


<nb> public class WinPythonSdkFlavor extends CPythonSdkFlavor {
 public Collection < String > suggestHomePaths ( ) {
 Set < String > candidates = new TreeSet < String > ( ) ;
 findInCandidatePaths ( candidates , STRING0 , STRING1 , STRING2 ) ;
 - candidates . add ( PythonHelpersLocator . getHelpersRoot ( ) . getParent ( ) ) ;
 + findInstallations ( candidates , STRING0 , PythonHelpersLocator . getHelpersRoot ( ) . getParent ( ) ) ;
 return candidates ;
 }

added application root to the SDK search path on window Education Edition attempt


<nb> public class Main extends Application {
 private Pane mainUI ;
 public MainController controller ;
 public NotificationBarPane notificationBar ;
 + public Stage mainWindow ;

 @ override
 public void start ( Stage mainWindow ) throws Exception {
 <nb> public class Main extends Application {
 }

 private void realStart ( Stage mainWindow ) throws IOException {
 + this . mainWindow = mainWindow ;
 instance = this ;
 SINGLE
 GuiUtils . handleCrashesOnThisThread ( ) ;


<nb> public class MaterialEditText extends AppCompatEditText {
 }

 private void init ( Context context , AttributeSet attrs ) {
 + if ( isInEditMode ( ) ) {
 + return ;
 + }
 +
 iconSize = getPixel ( NUMBER0 ) ;
 iconOuterWidth = getPixel ( NUMBER1 ) ;
 iconOuterHeight = getPixel ( NUMBER0 ) ;

Prevented initialisation in Developer Previews


<nb> public class AddFragment extends SherlockFragment {
 if ( emptyView != null ) {
 mGrid . setEmptyView ( emptyView ) ;
 }
 +
 + SINGLE
 + if ( mAdapter != null ) {
 + mGrid . setAdapter ( mAdapter ) ;
 + }
 }

 @ targetapi ( NUMBER0 )

Restore existing adapter fixes config change empty list


<nb> public enum SocketPolicy {
 SHUTDOWN_OUTPUT_AT_END ,

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 NO_RESPONSE


<nb> public class TextEditingTarget implements EditingTarget

 executeRange ( selectionRange ) ;

 - SINGLE
 - SINGLE
 - SINGLE
 - if ( ! selectionRange . isEmpty ( ) &&
 - ( selectionRange . getEnd ( ) . getColumn ( ) == NUMBER0 ) )
 - {
 - docDisplay_ . collapseSelection ( false ) ;
 -
 - SINGLE
 - if ( docDisplay_ . getLength ( selectionRange . getEnd ( ) . getRow ( ) ) == NUMBER0 )
 - docDisplay_ . moveSelectionToNextLine ( true ) ;
 - }
 - else
 + SINGLE
 + if ( selectionRange . isEmpty ( ) )
 {
 if ( ! docDisplay_ . moveSelectionToNextLine ( true ) )
 docDisplay_ . moveSelectionToBlankLine ( ) ;

don t advance cursor after execute code if there is a selection


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

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


<nb> class TermKeyListener {
 SINGLE
 return ;

 + case KEYCODE_FUNCTION :
 + SINGLE
 + return ;
 +
 case KeyEvent . KEYCODE_BACK :
 result = mBackKeyCode ;
 break ;

Treat hardware keyboard Fn key as a modifier key


<nb> public class ErrorResponse {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public ErrorResponse ( String title , String message ) {
 this . title = title ;
 <nb> public class ErrorResponse {
 public String getMessage ( ) {
 return message ;
 }
 +
 + @ override public String toString ( ) {
 + return getClass ( ) . getSimpleName ( ) + STRING0
 + + STRING1 + title
 + + STRING2 + message + STRING3 ;
 + }
 }


<nb> 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
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class CleanupOperation extends AbstractTransferOperation {
 <nb> public class CleanupOperation extends AbstractTransferOperation {
 this . localDatabase = new SqlDatabase ( config ) ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 @ override
 public CleanupOperationResult execute ( ) throws Exception {
 logger . log ( Level . INFO , STRING0 ) ;


<nb> public class ExportToHTMLDialog extends DialogWrapper {

 protected JComponent createCenterPanel ( ) {
 if ( ! myCanBeOpenInBrowser ) return null ;
 - OptionGroup optionGroup = new OptionGroup ( InspectionsBundle . message ( STRING0 ) ) ;
 + OptionGroup optionGroup = new OptionGroup ( ) ;

 addOptions ( optionGroup ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public enum OpenCloseType implements PrimitiveType , State , Command {
 - OPEN , CLOSE , AJAR ;
 + OPEN , CLOSE ;

 public String toString ( ) {
 switch ( this ) {


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


<nb> public abstract class AbstractGradleExecuter implements GradleExecuter {
 noDefaultJvmArgs = false ;
 deprecationChecksOn = true ;
 stackTraceChecksOn = true ;
 - allowExtraLogging = true ;
 return this ;
 }

Don t reset allowExtraLogging across executions


<nb> public class GenerateDelegateHandler implements LanguageCodeInsightActionHandler
 final PsiClass targetClass = ( ( PsiMember ) target ) . getContainingClass ( ) ;
 LOG . assertTrue ( targetClass != null ) ;
 PsiMethod overridden = targetClass . findMethodBySignature ( method , true ) ;
 - if ( overridden != null ) {
 + if ( overridden != null && overridden . getContainingClass ( ) != targetClass ) {
 OverrideImplementUtil . annotateOnOverrideImplement ( method , targetClass , overridden ) ;
 }

do not insert override annotation when class already contains method


<nb>

 package NAMESPACE ;

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

 <nb> import NAMESPACE ;
 public class Version {
 public static final String VERSION ;

 - private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ;
 -
 static {
 TachyonConf tachyonConf = new TachyonConf ( ) ;
 VERSION = tachyonConf . get ( Constants . TACHYON_VERSION , null ) ;


<nb> public class PApplet extends Applet
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public void draw ( ) {
 SINGLE

Added background as related method in reference to draw


<nb> public abstract class MappedLoginService extends AbstractLifeCycle implements Lo
 COMMENT
 public UserIdentity login ( String username , Object credentials )
 {
 + if ( username == null )
 + return null ;
 +
 UserIdentity user = _users . get ( username ) ;

 if ( user == null )
 <nb> public class DeferredAuthentication implements Authentication . Deferred
 @ override
 public Authentication login ( String username , Object password , ServletRequest request )
 {
 + if ( username == null )
 + return null ;
 +
 UserIdentity identity = _authenticator . login ( username , password , request ) ;
 if ( identity != null )
 {

Request login throws NPE if username is null


<nb> class EditorSettingsStatisticsCollector extends UsagesCollector {
 addIfDiffers ( set , es . isWhitespacesShown ( ) && es . isTrailingWhitespacesShown ( ) , false , STRING0 ) ;
 addIfDiffers ( set , es . isIndentGuidesShown ( ) , true , STRING1 ) ;
 addIfDiffers ( set , es . isSmoothScrolling ( ) , true , STRING2 ) ;
 - addIfDiffers ( set , es . isDndEnabled ( ) , false , STRING3 ) ;
 + addIfDiffers ( set , es . isDndEnabled ( ) , true , STRING4 ) ;
 addIfDiffers ( set , es . isWheelFontChangeEnabled ( ) , false , STRING5 ) ;
 addIfDiffers ( set , es . isMouseClickSelectionHonorsCamelWords ( ) , true , STRING6 ) ;
 addIfDiffers ( set , es . isVariableInplaceRenameEnabled ( ) , true , STRING7 ) ;

don t send statistics about default setting value


<nb> public class IndexPoiCreator extends AbstractIndexPartCreator {
 Algoritms . removeAllFiles ( poiIndexFile ) ;
 }

 - private void checkEntity ( Entity e ) {
 + public void checkEntity ( Entity e ) {
 String name = e . getTag ( OSMTagKey . NAME ) ;
 if ( name == null ) {
 String msg = STRING0 ;
 <nb> public class IndexPoiCreator extends AbstractIndexPartCreator {
 }
 } else {
 int sum = NUMBER0 ;
 - for ( Tree < T > t : subtrees ) {
 - sum += t . getSubTreesOnLevel ( level - NUMBER1 ) ;
 + if ( subtrees != null ) {
 + for ( Tree < T > t : subtrees ) {
 + sum += t . getSubTreesOnLevel ( level - NUMBER1 ) ;
 + }
 }
 return sum ;
 }


<nb> public final class LoadedApk {
 String libraryPermittedPath = mDataDir ;
 boolean isBundledApp = false ;

 - if ( mApplicationInfo . isSystemApp ( ) ) {
 + if ( mApplicationInfo . isSystemApp ( ) && ! mApplicationInfo . isUpdatedSystemApp ( ) ) {
 isBundledApp = true ;
 SINGLE
 SINGLE

Explicitly check for updated system apps


<nb> public class AdminREST {
 Map < Long , UserModel > users = Maps . newHashMap ( ) ;
 for ( UserRole role : userRoleDAO . findAll ( ) ) {
 User u = role . getUser ( ) ;
 - Long key = user . getId ( ) ;
 + Long key = u . getId ( ) ;
 UserModel userModel = users . get ( key ) ;
 if ( userModel == null ) {
 userModel = new UserModel ( ) ;


<nb> public class ShowRouteInfoActivity extends OsmandListActivity {
 String description = routeDirectionInfo
 . getDescriptionRoutePart ( ) ;
 html . append ( STRING0 ) ;
 - html . append ( description ) ;
 + html . append ( String . valueOf ( i + NUMBER0 ) + STRING1 + description ) ;
 html . append ( STRING2 ) ;
 RouteInfoAdapter . CumulativeInfo cumulativeInfo = routeInfo
 . getRouteDirectionCumulativeInfo ( i ) ;


<nb> public class VcsFileStatusProvider implements FileStatusProvider , VcsBaseContent
 if ( cachedStatus == null || cachedStatus == FileStatus . NOT_CHANGED || ! isDocumentModified ( file ) ) {
 final AbstractVcs vcs = myVcsManager . getVcsFor ( file ) ;
 if ( vcs == null ) return ;
 + if ( cachedStatus == FileStatus . MODIFIED && ! isDocumentModified ( file ) ) {
 + if ( ! ( ( ReadonlyStatusHandlerImpl ) ReadonlyStatusHandlerImpl . getInstance ( myProject ) ) . getState ( ) . SHOW_DIALOG ) {
 + RollbackEnvironment rollbackEnvironment = vcs . getRollbackEnvironment ( ) ;
 + if ( rollbackEnvironment != null ) {
 + rollbackEnvironment . rollbackIfUnchanged ( file ) ;
 + }
 + }
 + }
 myFileStatusManager . fileStatusChanged ( file ) ;
 ChangeProvider cp = vcs . getChangeProvider ( ) ;
 if ( cp != null && cp . isModifiedDocumentTrackingRequired ( ) ) {

do NOT attempt to revert explicitly checked out files when their contents get unchanged for performance reasons


<nb> public abstract class AbstractAndroidMojo extends AbstractMojo {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - protected File extractedApkLibsDirectory ;
 + protected File unpackedApkLibsDirectory ;

 COMMENT
 COMMENT
 <nb> public abstract class AbstractAndroidMojo extends AbstractMojo {
 }

 protected String getLibraryUnpackDirectory ( Artifact apkLibraryArtifact ) {
 - return extractedApkLibsDirectory . getAbsolutePath ( ) + STRING0 + apkLibraryArtifact . getId ( ) . replace ( STRING1 , STRING2 ) ;
 + return unpackedApkLibsDirectory . getAbsolutePath ( ) + STRING0 + apkLibraryArtifact . getId ( ) . replace ( STRING1 , STRING2 ) ;
 }
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public class RegexBackedIncludesParser implements IncludesParser {
 + private final Pattern includePattern = Pattern . compile ( STRING0 , Pattern . CASE_INSENSITIVE ) ;
 +
 public Includes parseIncludes ( File sourceFile ) {
 DefaultIncludes includes = new DefaultIncludes ( ) ;
 parseFile ( sourceFile , includes ) ;
 <nb> public class RegexBackedIncludesParser implements IncludesParser {
 }

 private void parseFile ( File file , DefaultIncludes includes ) {
 - Pattern includePattern = Pattern . compile ( STRING0 , Pattern . CASE_INSENSITIVE ) ;
 try {
 BufferedReader bf = new BufferedReader ( new FileReader ( file ) ) ;

Compile the regex once rather than once per file


<nb> public abstract class ChartData < T extends DataSet < ? extends Entry > > {
 T dataSet = mDataSets . get ( dataSetIndex ) ;
 Entry e = dataSet . getEntryForXIndex ( xIndex ) ;

 + if ( e == null || e . getXIndex ( ) != xIndex )
 + return false ;
 +
 return removeEntry ( e , dataSetIndex ) ;
 }

Fixed a case where removeEntry xIndex removes the wrong entry


<nb>
 COMMENT
 COMMENT

 - package NAMESPACE ;
 + package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class ElasticsearchClient extends DB {
 Builder settings = Settings . settingsBuilder ( )
 . put ( STRING0 , STRING1 )
 . put ( STRING2 , System . getProperty ( STRING3 ) + STRING4 )
 - . put ( STRING5 , STRING6 )
 . put ( STRING7 , STRING1 )
 . put ( STRING8 , STRING9 )
 . put ( STRING10 , STRING11 )

elasticsearch Remove unneeded multicast setting


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

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

 COMMENT
 COMMENT
 <nb> public class FrameworkMethod extends FrameworkMember < FrameworkMethod > {
 public boolean isPublic ( ) {
 return Modifier . isPublic ( fMethod . getModifiers ( ) ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean isIgnored ( ) {
 + for ( Annotation annotation : getAnnotations ( ) ) {
 + if ( annotation instanceof Ignore ) {
 + return true ;
 + }
 + }
 + return false ;
 + }

 COMMENT
 COMMENT


<nb> public class JcrRouteTest extends ContextTestSupport {
 }

 private void clean ( ) throws IOException {
 - File [ ] files = { new File ( STRING0 ) , new File ( STRING1 ) , new File ( STRING2 ) } ;
 + File [ ] files = { new File ( STRING3 ) , new File ( STRING4 ) , new File ( STRING2 ) } ;
 for ( File file : files ) {
 if ( file . exists ( ) ) {
 FileUtil . delete ( file ) ;
 <nb> public class JcrRouteTest extends ContextTestSupport {
 @ override
 protected Context createJndiContext ( ) throws Exception {
 Context context = super . createJndiContext ( ) ;
 - repository = new TransientRepository ( ) ;
 + repository = new TransientRepository ( STRING4 , STRING3 ) ;
 context . bind ( STRING0 , repository ) ;
 return context ;
 }

Moved the JCR transient repository below the target directory


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

 public class CheckboxTreeManager implements ICheckStateListener {

 + static final Log log = Log . getLog ( CheckboxTreeManager . class ) ;
 +
 private final CheckboxTreeViewer viewer ;
 private final Class < ? > [ ] targetTypes ;
 private Object [ ] checkedElements ;
 <nb> public class CheckboxTreeManager implements ICheckStateListener {
 }
 } ) ;
 } catch ( InvocationTargetException e ) {
 - UIUtils . showErrorDialog ( viewer . getControl ( ) . getShell ( ) , STRING0 , STRING1 , e . getTargetException ( ) ) ;
 + log . error ( STRING2 , e ) ;
 + SINGLE
 } catch ( InterruptedException e ) {
 SINGLE
 }


<nb> public class IllegalInstantiationCheck
 case TokenTypes . IMPORT :
 processImport ( aAST ) ;
 break ;
 + default :
 + throw new IllegalArgumentException ( STRING0 + aAST ) ;
 }
 }


<nb> public class VirtualMachineMetrics {

 final long [ ] allThreadIds = getThreadMXBean ( ) . getAllThreadIds ( ) ;
 final ThreadInfo [ ] allThreads = getThreadMXBean ( ) . getThreadInfo ( allThreadIds ) ;
 + int liveCount = NUMBER0 ;
 for ( ThreadInfo info : allThreads ) {
 - final State state = info . getThreadState ( ) ;
 - conditions . put ( state , conditions . get ( state ) + NUMBER1 ) ;
 + if ( info != null ) {
 + final State state = info . getThreadState ( ) ;
 + conditions . put ( state , conditions . get ( state ) + NUMBER1 ) ;
 + liveCount ++ ;
 + }
 }
 for ( State state : new ArrayList < State > ( conditions . keySet ( ) ) ) {
 - conditions . put ( state , conditions . get ( state ) / allThreads . length ) ;
 + conditions . put ( state , conditions . get ( state ) / liveCount ) ;
 }

 return conditions ;

Fix a NullPointerException caused by a thread becoming inactive after fetching its ID but prior to fetching its info


<nb> public class AtmosphereServlet extends AbstractAsyncServlet implements CometProc
 for ( String className : possibleAtmosphereHandlersCandidate ) {
 try {
 className = className . replace ( STRING0 , STRING1 ) ;
 - className = className . replaceFirst ( STRING2 , STRING3 ) ;
 + className = className . replaceFirst ( STRING2 , STRING3 ) . replace ( STRING4 , STRING5 ) ;
 Class < ? > clazz = classloader . loadClass ( className ) ;

 if ( AtmosphereHandler . class . isAssignableFrom ( clazz ) ) {

Fix regression introduced when detecting AtmosphereHandler


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

 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class WebUtils extends org . springframework . web . util . WebUtils {
 COMMENT
 COMMENT
 public static ApplicationContext findApplicationContext ( ServletContext servletContext ) {
 + if ( servletContext == null ) {
 + return ContextLoader . getCurrentWebApplicationContext ( ) ;
 + }
 return WebApplicationContextUtils . getWebApplicationContext ( servletContext ) ;
 }

if servletContext is null use ContextLoader currentApplicationContext


<nb>
 COMMENT
 package NAMESPACE ;

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

 + import static NAMESPACE ;
 +
 public class MuninnPageCacheSlowIT extends PageCacheSlowTest < MuninnPageCache >
 {
 + @ before
 + public void doNotRunOnWindows ( )
 + {
 + assumeFalse ( SystemUtils . IS_OS_WINDOWS ) ;
 + }
 +
 @ override
 protected Fixture < MuninnPageCache > createFixture ( )
 {


<nb> package NAMESPACE ;

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

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public static CharSequence join ( Iterable < CharSequence > list ) {
 - final ICUResourceBundle icuBundle = ( ICUResourceBundle ) UResourceBundle .
 - getBundleInstance ( ICUResourceBundle . ICU_BASE_NAME ) ;
 - final String listMiddlePattern =
 - icuBundle . getStringWithFallback ( STRING0 ) ;
 - SINGLE
 - SINGLE
 - final int firstClosingBrace = listMiddlePattern . indexOf ( STRING1 ) ;
 - final int lastOpeningBrace = listMiddlePattern . lastIndexOf ( STRING2 ) ;
 - final CharSequence delimiter = listMiddlePattern . substring (
 - firstClosingBrace + NUMBER0 , lastOpeningBrace ) ;
 -
 - return join ( delimiter , list ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Remove TextUtils join Iterable CharSequence


<nb> public class CropImageView extends ImageView {
 l = hx - hw ;
 r = hx + hw ;
 }
 - mFrameRect = new RectF ( l , t , r , b ) ;
 + float w = r - l ;
 + float h = b - t ;
 + mFrameRect = new RectF ( l + w / NUMBER0 , t + h / NUMBER0 , r - w / NUMBER0 , b - h / NUMBER0 ) ;
 invalidate ( ) ;
 }


<nb> public class Paint {
 int contextLen = contextEnd - contextStart ;
 char [ ] buf = TemporaryBuffer . obtain ( contextLen ) ;
 TextUtils . getChars ( text , contextStart , contextEnd , buf , NUMBER0 ) ;
 - int result = getTextRunCursor ( buf , NUMBER0 , contextLen , dir , offset - contextStart , cursorOpt ) ;
 + int relPos = getTextRunCursor ( buf , NUMBER0 , contextLen , dir , offset - contextStart , cursorOpt ) ;
 TemporaryBuffer . recycle ( buf ) ;
 - return result ;
 + return ( relPos == - NUMBER1 ) ? - NUMBER1 : relPos + contextStart ;
 }

 COMMENT


<nb> public class PluginOperation extends Operation {
 }

 SINGLE
 - PluginResultCode installResultCode ;
 if ( EnvironmentUtil . isWindows ( ) ) {
 logger . log ( Level . FINE , STRING0 ) ;
 File updatefilePath = new File ( UserConfig . getUserConfigDir ( ) , UPDATE_FILENAME ) ;
 <nb> public class PluginOperation extends Operation {
 }
 catch ( IOException e ) {
 logger . log ( Level . SEVERE , STRING1 + updatefilePath , e ) ;
 - installResultCode = PluginResultCode . NOK ;
 + erroneousPlugins . add ( pluginId ) ;
 }
 }
 else {
 - installResultCode = executeInstallFromApiHost ( pluginId ) . getResultCode ( ) ;
 + PluginOperationResult installResult = executeInstallFromApiHost ( pluginId ) ;

 - if ( installResultCode == PluginResultCode . NOK ) {
 + if ( installResult . getResultCode ( ) == PluginResultCode . NOK ) {
 logger . log ( Level . SEVERE , STRING2 + pluginId + STRING3 ) ;
 erroneousPlugins . add ( pluginId ) ;
 }

Removed unnecessary variable declaration


<nb> public class ActionMenuItemView extends TextView
 updateTextButtonVisibility ( ) ;
 }

 - @ override
 - public boolean dispatchPopulateAccessibilityEvent ( AccessibilityEvent event ) {
 - onPopulateAccessibilityEvent ( event ) ;
 - return true ;
 - }
 -
 - @ override
 - public void onPopulateAccessibilityEvent ( AccessibilityEvent event ) {
 - super . onPopulateAccessibilityEvent ( event ) ;
 - final CharSequence cdesc = getContentDescription ( ) ;
 - if ( ! TextUtils . isEmpty ( cdesc ) ) {
 - event . getText ( ) . add ( cdesc ) ;
 - }
 - }
 -
 - @ override
 - public boolean dispatchHoverEvent ( MotionEvent event ) {
 - SINGLE
 - return onHoverEvent ( event ) ;
 - }
 -
 public boolean showsIcon ( ) {
 return true ;
 }


<nb> public final class LongMath {
 long bLo = b & NUMBER0 ; SINGLE

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Fix a tiny mathematical typo in LongMath


<nb> public class ErrorReporter implements Thread . UncaughtExceptionHandler {
 if ( pi != null ) {
 SINGLE
 mCrashProperties . put ( VERSION_NAME_KEY , pi . versionName ) ;
 - SINGLE
 - mCrashProperties . put ( PACKAGE_NAME_KEY , pi . packageName ) ;
 } else {
 SINGLE
 - mCrashProperties . put ( VERSION_NAME_KEY , STRING0 ) ;
 - mCrashProperties . put ( PACKAGE_NAME_KEY , STRING0 ) ;
 + mCrashProperties . put ( PACKAGE_NAME_KEY , STRING1 ) ;
 }
 + SINGLE
 + mCrashProperties . put ( PACKAGE_NAME_KEY , context . getPackageName ( ) ) ;
 SINGLE
 mCrashProperties . put ( PHONE_MODEL_KEY , android . os . Build . MODEL ) ;
 SINGLE

Get application package name from Context getPackageName instead of PackageInfo


<nb> public class LocalPaginatedStorageSmallCacheBigRecordsCrashRestoreIT {
 }

 } finally {
 + baseDB . activateOnCurrentThread ( ) ;
 +
 baseDB . close ( ) ;
 + testDB . activateOnCurrentThread ( ) ;
 +
 testDB . close ( ) ;
 }
 }

adds activation of db instances on current thread on finally block to be able to close instances


<nb> public class Realm {
 return where ( clazz ) . findAll ( ) ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public < E extends RealmObject > RealmResults < E > distinct ( Class < E > clazz , String fieldName ) {
 - Table table = getTable ( clazz ) ;
 - long columnIndex = table . getColumnIndex ( fieldName ) ;
 - if ( columnIndex == - NUMBER0 ) {
 - throw new IllegalArgumentException ( String . format ( STRING0 , fieldName ) ) ;
 - }
 - return new RealmResults ( this , table . getDistinctView ( columnIndex ) , clazz ) ;
 - }
 -
 SINGLE

 COMMENT


<nb> public class MainActivity extends Activity {

 private void loginToFacebook ( ) {
 mFacebook = new Facebook ( Constants . FACEBOOK_APP_ID ) ;
 - mFacebook . authorize ( this , Constants . FACEBOOK_PERMISSIONS , RESULT_FACEBOOK_AUTH , new DialogListener ( ) {
 + mFacebook . authorize ( this , Constants . FACEBOOK_PERMISSIONS , BuildConfig . DEBUG ? Facebook . FORCE_DIALOG_AUTH
 + : RESULT_FACEBOOK_AUTH , new DialogListener ( ) {

 public void onFacebookError ( FacebookError e ) {
 e . printStackTrace ( ) ;
 <nb> public class MainActivity extends Activity {

 Session session = new Session ( mFacebook , id , name ) ;
 session . save ( getApplicationContext ( ) ) ;
 -
 +
 launchSelectionActivity ( ) ;
 } catch ( JSONException e ) {
 e . printStackTrace ( ) ;