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

Revert Increase the number of threads in migrate partitions tool


<nb> abstract class ActivityTransitionCoordinator extends ResultReceiver {
 final View decor = getDecor ( ) ;
 if ( decor != null ) {
 final ViewRootImpl viewRoot = decor . getViewRootImpl ( ) ;
 - viewRoot . setPausedForTransition ( false ) ;
 + if ( viewRoot != null ) {
 + viewRoot . setPausedForTransition ( false ) ;
 + }
 }
 onTransitionsComplete ( ) ;
 }


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

 COMMENT
 COMMENT
 <nb> public class ResourcePoolTest {
 mThrown . expect ( RuntimeException . class ) ;
 final int POOL_SIZE = NUMBER0 ;
 @ suppresswarnings ( STRING0 )
 - LinkedBlockingQueue < Integer > queue = PowerMockito . mock ( LinkedBlockingQueue . class ) ;
 + LinkedBlockingQueue < Integer > queue = Mockito . mock ( LinkedBlockingQueue . class ) ;
 TestResourcePool testPool = new TestResourcePool ( POOL_SIZE , queue ) ;
 Mockito . when ( queue . isEmpty ( ) ) . thenReturn ( true ) ;
 Mockito . when ( queue . take ( ) ) . thenThrow ( new InterruptedException ( ) ) ;

SMALLFIX use Mockito instead of PowerMockito when possible


<nb> public class TestHttpServer {
 @ afterclass
 public static void tearDown ( ) throws Exception {
 stdIn . write ( STRING0 . getBytes ( ) ) ;
 - serverStartThread . join ( NUMBER0 ) ;
 + serverStartThread . join ( NUMBER1 ) ;
 Assert . assertFalse ( serverStartThread . isAlive ( ) ) ;
 }


<nb> public class TextOutputter {
 SINGLE
 SINGLE
 if ( sentence . get ( SemanticGraphCoreAnnotations . CollapsedDependenciesAnnotation . class ) != null ) {
 - pipeline . getDependencyTreePrinter ( ) . printTree ( tree , os ) ;
 + os . print ( sentence . get ( SemanticGraphCoreAnnotations . CollapsedDependenciesAnnotation . class ) . toList ( ) ) ;
 + os . print ( STRING0 ) ;
 }
 }

Use the SemanticGraph directly when outputting text dependencies


<nb> abstract class ModelNodeInternal implements MutableModelNode {
 this . ensureUsable ( ) ;
 ModelView < ? > modelView = getAdapter ( ) . asImmutable ( ModelType . untyped ( ) , this , null ) ;
 if ( modelView != null ) {
 - ModelType < ? > type = modelView . getType ( ) ;
 - if ( type != null ) {
 - return Optional . of ( type . toString ( ) ) ;
 + try {
 + ModelType < ? > type = modelView . getType ( ) ;
 + if ( type != null ) {
 + return Optional . of ( type . toString ( ) ) ;
 + }
 + } finally {
 + modelView . close ( ) ;
 }
 - modelView . close ( ) ;
 }
 return Optional . absent ( ) ;
 }

Always close the model view in getTypeDescription


<nb> public class AssetExtractor {

 if ( subAssetName == null ) {
 continue ;
 + } else {
 + SINGLE
 + subAssetName = subAssetName . replaceAll ( STRING0 , STRING1 ) ;
 }

 subAsset . setDataBuffer ( bbAsset ) ;

Fixed cut off file names if the asset name contains characters invalid for the current file system


<nb> public class CallPeerRecord
 protected String peerAddress = null ;

 COMMENT
 + COMMENT
 + COMMENT
 + protected String displayName = null ;
 +
 + COMMENT
 COMMENT
 COMMENT
 protected Date startTime = null ;
 <nb> public class CallPeerRecord
 Date endTime )
 {
 this . peerAddress = peerAddress ;
 + this . displayName = displayName ;
 this . startTime = startTime ;
 this . endTime = endTime ;
 }
 <nb> public class CallPeerRecord
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public String getDisplayName ( )
 + {
 + return displayName ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Stores call peer display names in history


<nb> public class ApplyDeferredLightingNode extends AbstractNode {
 addDesiredStateChange ( new SetInputTexture (
 textureSlot , READ_ONLY_GBUFFER . getFbo ( ) . lightBufferTextureId , DEFERRED_LIGHTING_MATERIAL , STRING0 ) ) ;
 }
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SetInputTexture implements StateChange {
 && this . materialURN . equals ( ( ( SetInputTexture ) other ) . materialURN )
 && this . materialParameter . equals ( ( ( SetInputTexture ) other ) . materialParameter ) ;
 }
 -
 -
 +
 COMMENT
 COMMENT
 COMMENT

Fixed newlines issues reported by Cervator


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class KMeans extends ClusteringModelBuilder < KMeansModel , KMeansModel . KMean
 model . _output . _scoring_history = createScoringHistoryTable ( model . _output ) ;
 model . _output . _training_metrics = makeTrainingMetrics ( model ) ;
 if ( _valid != null ) {
 - model . score ( _parms . valid ( ) ) ;
 + Frame pred = model . score ( _parms . valid ( ) ) ;
 model . _output . _validation_metrics = DKV . getGet ( model . _output . _model_metrics [ model . _output . _model_metrics . length - NUMBER0 ] ) ;
 + pred . delete ( ) ;
 }
 model . update ( _key ) ; SINGLE
 update ( NUMBER0 ) ; SINGLE

Fix memory leak in validation scoring in K Means


<nb> public class WebView extends AbsoluteLayout
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public void loadDataWithBaseURL ( String baseUrl , String data ,
 String mimeType , String encoding , String historyUrl ) {

Clarify the documentation for WebView loadDataWithBaseURL when the base URL uses the data scheme


<nb> public class AssetDatabaseOpenHelper {
 COMMENT
 public synchronized SQLiteDatabase getWritableDatabase ( ) {
 File dbFile = context . getDatabasePath ( databaseName ) ;
 - if ( ! dbFile . exists ( ) ) {
 + if ( dbFile != null && ! dbFile . exists ( ) ) {
 try {
 copyDatabase ( dbFile ) ;
 } catch ( IOException e ) {


<nb> class ControlFlowAnalyzer extends JavaElementVisitor {

 private void handleContract ( PsiMethodCallExpression expression , MethodContract contract ) {
 PsiExpression [ ] params = expression . getArgumentList ( ) . getExpressions ( ) ;
 - assert params . length == contract . arguments . length ;
 + if ( params . length != contract . arguments . length ) {
 + return ;
 + }

 final int exitPoint = getEndOffset ( expression ) ;


<nb> public class SbeExample

 SINGLE
 final int templateId = MESSAGE_HEADER . templateId ( ) ;
 -
 - final int version = MESSAGE_HEADER . version ( ) ;
 - final int blockLength = MESSAGE_HEADER . blockLength ( ) ;
 + final int actingVersion = MESSAGE_HEADER . version ( ) ;
 + final int actingBlockLength = MESSAGE_HEADER . blockLength ( ) ;

 bufferOffset += MESSAGE_HEADER . size ( ) ;
 - decode ( CAR , directBuffer , bufferOffset , blockLength , version ) ;
 + decode ( CAR , directBuffer , bufferOffset , actingBlockLength , actingVersion ) ;
 }

 private static void encode ( final Car car , final DirectBuffer directBuffer , final int bufferOffset )

Renamed variables to better reflect usage on the wiki


<nb> public class PartialAggregationPushDown
 SINGLE
 private AggregationWithLayout generateNewPartial ( AggregationNode node , PlanNode source , Map < Symbol , Symbol > exchangeMap )
 {
 + checkState ( ! node . getHashSymbol ( ) . isPresent ( ) , STRING0 ) ;
 +
 SINGLE
 Map < Symbol , Symbol > layoutMap = new HashMap < > ( ) ;

 <nb> public abstract class AbstractTestQueries
 STRING1 +
 STRING2
 ) ;
 +
 + assertQuery (
 + STRING3 +
 + STRING4 +
 + STRING5 +
 + STRING6 +
 + STRING7 +
 + STRING8 ,
 + STRING3 +
 + STRING4 +
 + STRING5 +
 + STRING6 +
 + STRING7 +
 + STRING9 +
 + STRING10 +
 + STRING11 +
 + STRING10 +
 + STRING4 +
 + STRING5 +
 + STRING6 +
 + STRING7 +
 + STRING2
 + ) ;
 }

 @ test

Add additional check and test for PartialAggregationPushDown


<nb> class ListenerAnnotations {
 return Stream . concat ( annotationClasses ( ) , jpaAnnotationClasses ( ) ) ;
 }

 - static Stream < Class < ? extends Annotation > > jpaAnnotationClasses ( ) {
 + private static Stream < Class < ? extends Annotation > > jpaAnnotationClasses ( ) {
 return Stream . of (
 javax . persistence . PostLoad . class ,
 javax . persistence . PostPersist . class ,
 <nb> class ListenerAnnotations {
 javax . persistence . PreUpdate . class ) ;
 }

 - static Stream < Class < ? extends Annotation > > annotationClasses ( ) {
 + private static Stream < Class < ? extends Annotation > > annotationClasses ( ) {
 return Stream . of (
 PostLoad . class ,
 PostInsert . class ,


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public final class WebViewFactory {
 - private static final boolean DEFAULT_TO_EXPERIMENTAL_WEBVIEW = false ;
 + public static final boolean DEFAULT_TO_EXPERIMENTAL_WEBVIEW = false ;
 private static final String EXPERIMENTAL_PROPERTY_DEFAULT_OFF = STRING0 ;
 private static final String EXPERIMENTAL_PROPERTY_DEFAULT_ON = STRING1 ;

 SINGLE
 SINGLE
 - private static final String WEBVIEW_EXPERIMENTAL_PROPERTY = DEFAULT_TO_EXPERIMENTAL_WEBVIEW ?
 + public static final String WEBVIEW_EXPERIMENTAL_PROPERTY = DEFAULT_TO_EXPERIMENTAL_WEBVIEW ?
 EXPERIMENTAL_PROPERTY_DEFAULT_ON : EXPERIMENTAL_PROPERTY_DEFAULT_OFF ;

 private static final String FORCE_PROVIDER_PROPERTY = STRING2 ;


<nb> public class Loader
 {
 loaded . load ( getClass ( ) . getClassLoader ( ) . getResourceAsStream ( STRING0 ) ) ;
 }
 - catch ( IOException e )
 + catch ( Exception e )
 {
 SINGLE
 }


<nb> public class HighlightingSettingsPerFile implements JDOMExternalizable , ProjectC
 final PsiFile containingFile = root . getContainingFile ( ) ;
 final VirtualFile virtualFile = containingFile . getVirtualFile ( ) ;
 FileHighlighingSetting [ ] fileHighlighingSettings = myHighlightSettings . get ( virtualFile ) ;
 - if ( fileHighlighingSettings == null ) {
 + final int index = PsiUtil . getRootIndex ( root ) ;
 +
 + if ( fileHighlighingSettings == null || fileHighlighingSettings . length <= index ) {
 fileHighlighingSettings = getDefaults ( containingFile . getViewProvider ( ) . getBaseLanguage ( ) ) ;
 }
 - return fileHighlighingSettings [ PsiUtil . getRootIndex ( root ) ] ;
 + return fileHighlighingSettings [ index ] ;
 }

 public FileHighlighingSetting [ ] getDefaults ( Language lang ) {

fixed crash due to reference to nonexisting root highlight level


<nb> final class SubsystemTestDelegate {
 try {
 desc . writeString ( pw , false ) ;
 SINGLE
 - System . out . println ( STRING0 + dmrFile . getAbsolutePath ( ) ) ;
 + System . out . println ( STRING1 + dmrFile . getAbsolutePath ( ) ) ;
 } finally {
 IoUtils . safeClose ( pw ) ;
 }


<nb> public class DefaultRepositoryHandler extends DefaultArtifactRepositoryContainer
 }

 public FlatDirectoryArtifactRepository flatDir ( Map < String , ? > args ) {
 - return flatDir ( new ConfigureByMapAction < FlatDirectoryArtifactRepository > ( args ) ) ;
 + Map < String , Object > modifiedArgs = new HashMap < String , Object > ( args ) ;
 + if ( modifiedArgs . containsKey ( STRING0 ) ) {
 + modifiedArgs . put ( STRING0 , flattenToList ( modifiedArgs . get ( STRING0 ) ) ) ;
 + }
 + return flatDir ( new ConfigureByMapAction < FlatDirectoryArtifactRepository > ( modifiedArgs ) ) ;
 }

 public MavenArtifactRepository mavenCentral ( ) {
 <nb> public class DefaultRepositoryHandler extends DefaultArtifactRepositoryContainer
 ConfigureUtil . configureByMap ( modifiedArgs , repository ) ;
 DependencyResolver resolver = repositoryFactory . toResolver ( repository ) ;
 ConfigureUtil . configure ( configClosure , resolver ) ;
 - addRepository ( new FixedResolverArtifactRepository ( resolver ) , resolver . getName ( ) ) ;
 + addRepository ( new FixedResolverArtifactRepository ( resolver ) , STRING1 ) ;
 return resolver ;
 }

Reinstate special handling of dirs property when configuring flat dir repo


<nb> public class ExpandedActivity extends Activity {

 if ( Constant . EXPANDED_ACTIVITY_DEBUG ) {
 rootView . setBackgroundColor ( NUMBER0 ) ;
 + } else {
 + rootView . setWillNotDraw ( true ) ;
 }

 initHotwordService ( ) ;


<nb> public class CommandLineRunnerTest extends TestCase {
 args . add ( STRING0 ) ;
 args . add ( STRING1 ) ;
 test (
 - STRING2 +
 - STRING3 +
 - STRING4 +
 - STRING2 +
 - STRING5 +
 - STRING6 +
 - STRING7 +
 - STRING8 ,
 - STRING9 +
 - STRING10 +
 - STRING11 +
 - STRING12 +
 - STRING13 +
 - STRING14 ) ;
 + STRING2
 + + STRING3
 + + STRING4
 + + STRING2
 + + STRING5
 + + STRING6
 + + STRING7
 + + STRING8 ,
 + STRING9
 + + STRING10
 + + STRING11
 + + STRING12
 + + STRING13
 + + STRING14 ) ;
 }

 public void testTypeCheckingOnWithVerbose ( ) {


<nb> public class Polling {
 }
 Thread . sleep ( NUMBER0 ) ;
 }
 - throw new TimeoutException ( ) ;
 +
 + final String msg = String . format (
 + STRING0 ,
 + callable . getClass ( ) . getName ( ) ,
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + Thread . currentThread ( ) . getStackTrace ( ) [ NUMBER1 ] ,
 + timeUnit . toMillis ( timeout )
 + ) ;
 + throw new TimeoutException ( msg ) ;
 }

 public static < T > T awaitUnchecked ( final long timeout , final TimeUnit timeUnit ,

make Polling await exception messages friendlier


<nb> public class DriverPublication implements AutoCloseable
 COMMENT
 public int cleanLogBuffer ( )
 {
 + int workCount = NUMBER0 ;
 +
 for ( final LogBuffer logBuffer : logScanners )
 {
 if ( logBuffer . status ( ) == NEEDS_CLEANING && logBuffer . compareAndSetStatus ( NEEDS_CLEANING , IN_CLEANING ) )
 {
 logBuffer . clean ( ) ;
 -
 - return NUMBER1 ;
 + workCount = NUMBER1 ;
 }
 }

 - return NUMBER0 ;
 + return workCount ;
 }

 public long timeOfFlush ( )

Java Remove return from inside loop on buffer cleaning


<nb> import NAMESPACE ;

 import NAMESPACE ;

 + import static NAMESPACE ;
 +
 public class TextValueEncoderTest {
 @ test
 public void testAddToVector ( ) {
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import static NAMESPACE ;
 + import static NAMESPACE ;
 +
 public class WordLikeValueEncoderTest {
 @ test
 public void testAddToVector ( ) {


<nb> class DisplayContent {
 for ( int taskNdx = tasks . size ( ) - NUMBER0 ; taskNdx >= NUMBER1 ; -- taskNdx ) {
 final Task task = tasks . get ( taskNdx ) ;
 task . getBounds ( mTmpRect ) ;
 - if ( task . inFreeformWorkspace ( ) && mTmpRect . contains ( x , y ) ) {
 + if ( mTmpRect . contains ( x , y ) ) {
 return task . mTaskId ;
 }
 }

Allow non freeform tasks to gain focus when docked stack is up


<nb> public abstract class Connection {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 CDMA_DROP ,
 COMMENT
 <nb> package NAMESPACE ;
 COMMENT
 COMMENT
 public interface CallFailCause {
 + SINGLE
 + static final int UNOBTAINABLE_NUMBER = NUMBER0 ;
 +
 static final int NORMAL_CLEARING = NUMBER1 ;
 SINGLE
 static final int USER_BUSY = NUMBER2 ;
 <nb> public class GsmConnection extends Connection {
 case CallFailCause . FDN_BLOCKED :
 return DisconnectCause . FDN_BLOCKED ;

 + case CallFailCause . UNOBTAINABLE_NUMBER :
 + return DisconnectCause . UNOBTAINABLE_NUMBER ;
 +
 case CallFailCause . ERROR_UNSPECIFIED :
 case CallFailCause . NORMAL_CLEARING :
 default :

Notify user regarding invalid number during MO call


<nb> public class TestMathFunctions
 assertFunction ( STRING0 , DOUBLE , null ) ;
 assertInvalidFunction ( STRING1 + Byte . MIN_VALUE + STRING2 , NUMERIC_VALUE_OUT_OF_RANGE ) ;
 assertInvalidFunction ( STRING3 + Short . MIN_VALUE + STRING2 , NUMERIC_VALUE_OUT_OF_RANGE ) ;
 + assertInvalidFunction ( STRING4 + Integer . MIN_VALUE + STRING2 , NUMERIC_VALUE_OUT_OF_RANGE ) ;
 assertInvalidFunction ( STRING5 , NUMERIC_VALUE_OUT_OF_RANGE ) ;
 }

 <nb> import NAMESPACE ;
 import NAMESPACE ;

 import static NAMESPACE ;
 + import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public class TestIntegerOperators
 {
 assertFunction ( STRING6 , INTEGER , - NUMBER0 ) ;
 assertFunction ( STRING7 , INTEGER , - NUMBER1 ) ;
 + assertInvalidFunction ( STRING8 + Integer . MIN_VALUE + STRING9 , INVALID_CAST_ARGUMENT ) ;
 }

 @ test

Add more abs and negative unary tests for INTEGER


<nb> public class ArtefactTypeAstTransformation extends AbstractArtefactTypeAstTransf
 injector . performInjectionOnAnnotatedClass ( sourceUnit , cNode ) ;
 }
 } catch ( RuntimeException e ) {
 - GrailsConsole . getInstance ( ) . error ( STRING0 + e . getMessage ( ) , e ) ;
 + try {
 + GrailsConsole . getInstance ( ) . error ( STRING0 + e . getMessage ( ) , e ) ;
 + } catch ( Throwable t ) {
 + SINGLE
 + }
 throw e ;
 }
 }

Fix throwing AST exceptions when GrailsConsole isn t available


<nb> public class StompRelayPubSubMessageHandler < M extends Message > extends AbstractP

 public void forward ( M message , StompHeaders headers ) {

 - synchronized ( this . monitor ) {
 - if ( ! this . isConnected ) {
 - if ( logger . isTraceEnabled ( ) ) {
 - logger . trace ( STRING0 + message + STRING1 + this . messageQueue . size ( ) ) ;
 + if ( ! this . isConnected ) {
 + synchronized ( this . monitor ) {
 + if ( ! this . isConnected ) {
 + this . messageQueue . add ( message ) ;
 + if ( logger . isTraceEnabled ( ) ) {
 + logger . trace ( STRING2 + message + STRING1 + this . messageQueue . size ( ) ) ;
 + }
 + return ;
 }
 - this . messageQueue . add ( message ) ;
 - return ;
 }
 }

Improve synchronization checks in STOMP relay session


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DashModule extends BlazeModule {

 private void sendMessage ( final String suffix , final HttpEntity message )
 throws SenderException {
 - HttpClient httpClient = new DefaultHttpClient ( ) ;
 + HttpParams httpParams = new BasicHttpParams ( ) ;
 + HttpConnectionParams . setConnectionTimeout ( httpParams , NUMBER0 ) ;
 + HttpConnectionParams . setSoTimeout ( httpParams , NUMBER0 ) ;
 + HttpClient httpClient = new DefaultHttpClient ( httpParams ) ;
 +
 HttpPost httppost = new HttpPost ( url + STRING0 + suffix + STRING0 + buildId ) ;
 if ( message != null ) {
 httppost . setHeader ( HttpHeaders . CONTENT_TYPE , STRING1 ) ;


<nb> public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi
 class EditorDocumentBulkUpdateAdapter implements DocumentBulkUpdateListener {
 @ override
 public void updateStarted ( @ notnull Document doc ) {
 + if ( doc != getDocument ( ) ) return ;
 +
 bulkUpdateStarted ( ) ;
 }

 @ override
 public void updateFinished ( @ notnull Document doc ) {
 + if ( doc != getDocument ( ) ) return ;
 +
 bulkUpdateFinished ( ) ;
 }
 }
 <nb> public class SoftWrapModelImpl implements SoftWrapModelEx , PrioritizedDocumentLi

 @ override
 public void updateStarted ( @ notnull Document doc ) {
 + if ( doc != myEditor . getDocument ( ) ) return ;
 +
 myBulkUpdateInProgress = true ;
 }

 @ override
 public void updateFinished ( @ notnull Document doc ) {
 + if ( doc != myEditor . getDocument ( ) ) return ;
 +
 myBulkUpdateInProgress = false ;
 if ( ! isSoftWrappingEnabled ( ) ) {
 return ;

editors should only handle bulk changes of their own documents otherwise main editor constantly scrolls during test run


<nb> public class SpeeDRF extends Job . ValidatedJob {
 @ api ( help = STRING0 , importance = ParamImportance . EXPERT )
 public int _exclusiveSplitLimit = NUMBER0 ;

 - private static Random _seedGenerator = Utils . getDeterRNG ( NUMBER1 ) ;
 + private static Random _seedGenerator = Utils . getDeterRNG ( new Random ( ) . nextLong ( ) ) ; SINGLE

 private boolean regression ;

generate a new seed for SpeeDRF if one not specified


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SystemEnvironmentPropertySourceTests {

 @ test
 public void none ( ) {
 - SINGLE
 -
 assertThat ( ps . containsProperty ( STRING0 ) , equalTo ( false ) ) ;
 assertThat ( ps . getProperty ( STRING0 ) , equalTo ( null ) ) ;
 }
 <nb> public class SystemEnvironmentPropertySourceTests {
 }

 @ test
 + @ suppresswarnings ( STRING1 )
 public void withSecurityConstraints ( ) throws Exception {
 envMap = new HashMap < String , Object > ( ) {
 @ override
 <nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ suppresswarnings ( STRING2 )
 public class ParameterizedBeanPropertyRowMapperTests extends AbstractRowMapperTests {

 @ rule


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class AbstractDeploymentUnitService implements Service < Deploymen
 final DeploymentUnitPhaseService < ? > phaseService = DeploymentUnitPhaseService . create ( firstPhase ) ;
 final ServiceBuilder < ? > phaseServiceBuilder = target . addService ( serviceName , phaseService ) ;
 phaseServiceBuilder . addDependency ( Services . JBOSS_DEPLOYMENT_CHAINS , DeployerChains . class , phaseService . getDeployerChainsInjector ( ) ) ;
 + phaseServiceBuilder . addDependency ( deploymentUnit . getServiceName ( ) , DeploymentUnit . class , phaseService
 + . getDeploymentUnitInjector ( ) ) ;
 phaseServiceBuilder . install ( ) ;
 }

Add dependency on deployment unit to the structure phase service


<nb> public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS

 @ override
 public void onBackPressed ( ) {
 + SINGLE
 + SINGLE
 + InputMethodManager imm = ( InputMethodManager ) getContext ( )
 + . getSystemService ( Context . INPUT_METHOD_SERVICE ) ;
 + if ( imm != null && imm . isFullscreenMode ( ) &&
 + imm . hideSoftInputFromWindow ( getWindow ( ) . getDecorView ( ) . getWindowToken ( ) , NUMBER0 ) ) {
 + return ;
 + }
 + SINGLE
 + SINGLE
 if ( ! backToPreviousComponent ( ) ) {
 + SINGLE
 cancel ( ) ;
 }
 }

On BACK in search hide just IME if IME is fullscreen


<nb> public class ChatRoomsList
 {
 Object o = listModel . get ( i ) ;

 - if ( ( o instanceof MultiUserChatServerWrapper )
 - || i == listModel . getSize ( ) - NUMBER0 )
 + if ( o instanceof MultiUserChatServerWrapper )
 {
 - listModel . removeRange ( serverIndex , i ) ;
 + listModel . removeRange ( serverIndex , i - NUMBER0 ) ;
 break ;
 }
 +
 + if ( i == listModel . getSize ( ) - NUMBER0 )
 + listModel . removeRange ( serverIndex , i ) ;
 }

 ConfigurationService configService
 <nb> public class ChatRoomsList
 listModel . addElement ( chatRoomWrapper ) ;
 }

 - String chatRoomStatus = Constants . OFFLINE_STATUS ;
 -
 ConfigurationManager . updateChatRoom (
 chatRoomWrapper . getParentProvider ( ) ,
 chatRoomWrapper . getChatRoomID ( ) ,

Correctly remove chat server from the chat rooms list


<nb> public class HikariPool implements HikariPoolMXBean , IBagStateListener

 previous = now ;

 - logPoolState ( STRING0 ) ;
 if ( idleTimeout > NUMBER0 L ) {
 + logPoolState ( STRING0 ) ;
 final List < PoolBagEntry > bag = connectionBag . values ( STATE_NOT_IN_USE ) ;
 int removable = bag . size ( ) - config . getMinimumIdle ( ) ;
 for ( PoolBagEntry bagEntry : bag ) {
 <nb> public class HikariPool implements HikariPoolMXBean , IBagStateListener
 }
 }
 }
 + logPoolState ( STRING1 ) ;
 }
 - logPoolState ( STRING1 ) ;

 fillPool ( ) ; SINGLE
 }


<nb> public class DoubleSumAggregatorFactory implements AggregatorFactory
 @ override
 public Object deserialize ( Object object )
 {
 + SINGLE
 + if ( object instanceof String ) {
 + return Double . parseDouble ( ( String ) object ) ;
 + }
 return object ;
 }

 <nb> public class JavaScriptAggregatorFactory implements AggregatorFactory
 @ override
 public Object deserialize ( Object object )
 {
 + SINGLE
 + if ( object instanceof String ) {
 + return Double . parseDouble ( ( String ) object ) ;
 + }
 return object ;
 }

 <nb> public class MaxAggregatorFactory implements AggregatorFactory
 @ override
 public Object deserialize ( Object object )
 {
 + SINGLE
 if ( object instanceof String ) {
 return Double . parseDouble ( ( String ) object ) ;
 }
 <nb> public class MinAggregatorFactory implements AggregatorFactory
 @ override
 public Object deserialize ( Object object )
 {
 + SINGLE
 if ( object instanceof String ) {
 return Double . parseDouble ( ( String ) object ) ;
 }


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BootstrapMainStarter {
 Class < ? > mainClass = contextClassLoader . loadClass ( STRING0 ) ;
 Method mainMethod = mainClass . getMethod ( STRING1 , String [ ] . class ) ;
 mainMethod . invoke ( null , new Object [ ] { args } ) ;
 + if ( contextClassLoader instanceof Closeable ) {
 + ( ( Closeable ) contextClassLoader ) . close ( ) ;
 + }
 }

 private File findLauncherJar ( File gradleHome ) {

Close the bootstrap classloader after the build finishes


<nb> public class RouteProvider {
 }
 }
 pt . desc = pt . name ;
 -
 }
 + gpx . points . add ( pt ) ;
 }
 return gpx ;
 }

Fix bug with saving intermediate points of the route into GPX file


<nb> import NAMESPACE ;
 final class AutoExpandReplicas {
 SINGLE
 private static final String ALL_NODES_VALUE = STRING0 ;
 - public static final Setting < AutoExpandReplicas > SETTING = new Setting < > ( IndexMetaData . SETTING_AUTO_EXPAND_REPLICAS , STRING1 , ( value ) - > {
 + public static final Setting < AutoExpandReplicas > SETTING = new Setting < > ( IndexMetaData . SETTING_AUTO_EXPAND_REPLICAS , STRING2 , ( value ) - > {
 final int min ;
 final int max ;
 if ( Booleans . parseBoolean ( value , true ) == false ) {


<nb> public class FileSystemSourceCache {
 return new Content ( null , MISSING , MISSING ) ;
 }
 }
 -
 - public void reset ( ) {
 - cache . clear ( ) ;
 - }
 }


<nb> public class TransitionDrawable extends LayerDrawable implements Drawable . Callba
 final long time = SystemClock . uptimeMillis ( ) ;
 SINGLE
 if ( time - mStartTimeMillis > mDuration ) {
 - if ( mAlpha == NUMBER0 ) {
 + if ( mTo == NUMBER0 ) {
 mFrom = NUMBER0 ;
 mTo = NUMBER1 ;
 mAlpha = NUMBER0 ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TransportUpdateAction extends TransportInstanceSingleOperationActio
 @ override
 public void onFailure ( Throwable e ) {
 e = ExceptionsHelper . unwrapCause ( e ) ;
 - if ( e instanceof VersionConflictEngineException ) {
 + if ( e instanceof VersionConflictEngineException || e instanceof DocumentAlreadyExistsException ) {
 if ( retryCount < request . retryOnConflict ( ) ) {
 threadPool . executor ( executor ( ) ) . execute ( new Runnable ( ) {
 @ override

Fixed document already exists error when concurrently sending update request with upsert using the same id


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SessionState {
 FileSystem fs = FileSystem . get ( new URI ( value ) , conf ) ;
 fs . copyToLocalFile ( new Path ( value ) , new Path ( destinationFile . getCanonicalPath ( ) ) ) ;
 value = destinationFile . getCanonicalPath ( ) ;
 +
 + SINGLE
 + FileUtil . chmod ( value , STRING0 , true ) ;
 if ( convertToUnix && DosToUnix . isWindowsScript ( destinationFile ) ) {
 try {
 DosToUnix . convertWindowsScriptToUnix ( destinationFile ) ;

Hive custom SerDe cannot load DLL added by ADD FILE command Shuaishuai Nie via Ashutosh Chauhan


<nb> public interface LivingEntity extends Entity {
 COMMENT
 COMMENT
 public boolean hasLineOfSight ( Entity other ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean getRemoveWhenFarAway ( ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setRemoveWhenFarAway ( boolean remove ) ;
 }

Add API for controlling mob despawn away from players


<nb> public class MacIntelliJComboBoxUI extends BasicComboBoxUI {
 rect . height = Math . min ( rect . height , COMBOBOX . getIconHeight ( ) - NUMBER0 ) ;
 rect . y += NUMBER1 ;
 rect . x += NUMBER0 ;
 + rect . width -= NUMBER0 ;
 return rect ;
 }

fix text editor overlaps combo button in Yosemite LaF


<nb> public class MessageList extends K9FragmentActivity implements MessageListFragme
 break ;
 }
 case MESSAGE_VIEW : {
 - mViewSwitcher . setAnimateFirstView ( true ) ;
 showMessageView ( ) ;
 break ;
 }
 <nb> public class MessageList extends K9FragmentActivity implements MessageListFragme
 private void showMessageView ( ) {
 mDisplayMode = DisplayMode . MESSAGE_VIEW ;

 + if ( ! mMessageListWasDisplayed ) {
 + mViewSwitcher . setAnimateFirstView ( false ) ;
 + }
 mViewSwitcher . showSecondView ( ) ;

 showMessageTitleView ( ) ;

Don t show animation when directly opening message view


<nb> public class MediaButtonReceiver extends BroadcastReceiver {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public static KeyEvent handleIntent ( MediaSessionCompat mediaSessionCompat , Intent intent ) {


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class Document implements Map < String , Object > , Serializable {


<nb> public abstract class Model < M extends Model < M , P , O > , P extends Model . Parameters ,
 public String _names [ ] ;

 COMMENT
 - Key _cross_validation_models [ ] ;
 + public Key _cross_validation_models [ ] ;
 COMMENT
 - Key _cross_validation_predictions [ ] ;
 + public Key _cross_validation_predictions [ ] ;

 public Output ( ) { this ( false , false , false ) ; }
 public Output ( boolean hasWeights , boolean hasOffset , boolean hasFold ) {

Make cross validation models and predictions public


<nb> public final class SetProcessor extends AbstractProcessor {
 String field = ConfigurationUtils . readStringProperty ( TYPE , processorTag , config , STRING0 ) ;
 Object value = ConfigurationUtils . readObject ( TYPE , processorTag , config , STRING1 ) ;
 boolean overrideEnabled = ConfigurationUtils . readBooleanProperty ( TYPE , processorTag , config , STRING2 , true ) ;
 - return new SetProcessor ( processorTag , templateService . compile ( field ) , ValueSource . wrap ( value , templateService ) , overrideEnabled ) ;
 + return new SetProcessor (
 + processorTag ,
 + templateService . compile ( field ) ,
 + ValueSource . wrap ( value , templateService ) ,
 + overrideEnabled ) ;
 }
 }
 }

Fix line length violation in SetProcessor


<nb> public class DataStructures {
 private static Integer [ ] unsorted = null ;
 private static String string = null ;
 private static boolean debug = false ;
 - private static boolean debugTime = true ;
 + private static boolean debugTime = false ;

 public static void main ( String [ ] args ) {


<nb> public class CountryNamesAdapter extends RecyclerView . Adapter < CountryViewHolder >
 lp . headerEndMarginIsAuto = ! mMarginsFixed ;
 lp . headerStartMarginIsAuto = ! mMarginsFixed ;
 }
 - lp . sectionManager = NUMBER0 ; SINGLE
 + lp . sectionManager = item . sectionManager ;
 lp . setFirstPosition ( item . sectionFirstPosition ) ;
 itemView . setLayoutParams ( lp ) ;
 }


<nb> public class Source implements InsertSourceHandler ,
 public void onError ( ServerError error )
 {
 dismissProgress . execute ( ) ;
 + pMruList_ . get ( ) . remove ( file . getPath ( ) ) ;
 Debug . logError ( error ) ;
 if ( resultCallback != null )
 resultCallback . onFailure ( error ) ;

remove file from mru list if it is deleted


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

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


<nb> public class ModelCache implements Disposable , RenderableProvider {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public void add ( Renderable renderable ) {
 <nb> public interface Shader extends Disposable {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 void render ( final Renderable renderable ) ;

 COMMENT

Javadoc warnings probably wrong but if you don t like it don t commit warnings


<nb> public class ReaderPostAdapter extends RecyclerView . Adapter < RecyclerView . ViewHol
 layoutPostHeader = ( ViewGroup ) itemView . findViewById ( R . id . layout_post_header ) ;

 SINGLE
 - if ( ! hasSiteHeader ( ) ) {
 - SINGLE
 - SINGLE
 - layoutPostHeader . setPadding (
 - layoutPostHeader . getPaddingLeft ( ) ,
 - layoutPostHeader . getPaddingTop ( ) ,
 - layoutPostHeader . getPaddingRight ( ) - imgMore . getPaddingRight ( ) ,
 - layoutPostHeader . getPaddingBottom ( ) ) ;
 - } else {
 - SINGLE
 + if ( hasSiteHeader ( ) ) {
 layoutPostHeader . setVisibility ( View . GONE ) ;
 SINGLE
 int extraPadding = itemView . getContext ( ) . getResources ( ) . getDimensionPixelSize ( R . dimen . margin_medium ) ;

No longer adjusting post header for more icon


<nb> public class MtpManagerTest extends InstrumentationTestCase {
 @ override
 public void setUp ( ) throws Exception {
 mUsbManager = getContext ( ) . getSystemService ( UsbManager . class ) ;
 - mUsbDevice = findDevice ( ) ;
 - mManager = new MtpManager ( getContext ( ) ) ;
 - mManager . openDevice ( mUsbDevice . getDeviceId ( ) ) ;
 - waitForStorages ( mManager , mUsbDevice . getDeviceId ( ) ) ;
 + for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
 + mUsbDevice = findDevice ( ) ;
 + mManager = new MtpManager ( getContext ( ) ) ;
 + mManager . openDevice ( mUsbDevice . getDeviceId ( ) ) ;
 + try {
 + waitForStorages ( mManager , mUsbDevice . getDeviceId ( ) ) ;
 + return ;
 + } catch ( IOException exp ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + continue ;
 + }
 + }
 }

 @ override

Handle Android M as a MTP device in MtpManagerTest


<nb> public class GitPull extends GitRepositoryAction {
 }

 if ( GitHttpAdapter . shouldUseJGit ( url ) ) {
 - boolean fetchSuccessful = new GitFetcher ( project , indicator ) . fetchRootsAndNotify ( gitRoots , STRING0 , false ) ;
 + boolean fetchSuccessful = new GitFetcher ( project , indicator ) . fetchRootsAndNotify ( gitRoots , STRING1 , false ) ;
 if ( ! fetchSuccessful ) {
 return ;
 }


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PersistentMethodTests extends AbstractDependencyInjectionSpringCont
 ProxyMetaClass pmc = PropertyAccessProxyMetaClass . getInstance ( groovyClass ) ;
 GrailsControllerHelper helper = new SimpleGrailsControllerHelper ( this . grailsApplication , this . applicationContext ) ;
 SINGLE
 - pmc . setInterceptor ( new ControllerDynamicMethodsInterceptor ( groovyClass , helper , request , response ) ) ;
 -
 GroovyObject go = ( GroovyObject ) groovyClass . newInstance ( ) ;
 + pmc . setInterceptor ( new ControllerDynamicMethodsInterceptor ( go , helper , request , response ) ) ;
 +
 +

 go . setMetaClass ( pmc ) ;


<nb> public class ReaderPostAdapter extends RecyclerView . Adapter < RecyclerView . ViewHol
 holder . imgMore . setOnClickListener ( null ) ;
 }

 - SINGLE
 - boolean showFollowButton = ! isDiscover ( ) ;
 + SINGLE
 + boolean showFollowButton = ! hasSiteHeader ( ) ;
 if ( showFollowButton ) {
 holder . followButton . setIsFollowed ( post . isFollowedByCurrentUser ) ;
 holder . followButton . setOnClickListener ( new View . OnClickListener ( ) {

Don t show follow button when there s a site header


<nb> public class XmlNode extends RubyObject {
 }

 public void relink_namespace ( ThreadContext context ) {
 - ( ( XmlNodeSet ) this . children ( context ) ) . relink_namespace ( context ) ;
 + SINGLE
 }

 public void saveContent ( ThreadContext context , SaveContext ctx ) {
 <nb> public class XmlNode extends RubyObject {
 coalesceTextNodes ( context , other ) ;
 }

 - SINGLE
 + relink_namespace ( context ) ;
 SINGLE

 return this ;

Fix namespace when adding nodes to another node doc


<nb> public class FirstComponentInsertLocation extends GridDropLocation {

 private int initialWidth ( ComponentDragObject dragObject , int defaultSize ) {
 Dimension initialSize = dragObject . getInitialSize ( getContainer ( ) . getDelegee ( ) ) ;
 - if ( initialSize . width > NUMBER0 ) {
 + if ( initialSize . width > NUMBER0 && initialSize . width < defaultSize ) {
 return initialSize . width ;
 }
 return defaultSize ;
 <nb> public class FirstComponentInsertLocation extends GridDropLocation {

 private int initialHeight ( ComponentDragObject dragObject , int defaultSize ) {
 Dimension initialSize = dragObject . getInitialSize ( getContainer ( ) . getDelegee ( ) ) ;
 - if ( initialSize . height > NUMBER0 ) {
 + if ( initialSize . height > NUMBER0 && initialSize . height < defaultSize ) {
 return initialSize . height ;
 }
 return defaultSize ;


<nb> public abstract class AbstractSessionIdManager extends AbstractLifeCycle impleme
 if ( LOG . isDebugEnabled ( ) )
 LOG . debug ( STRING0 , id ) ;

 - SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 if ( removeId ( id ) )
 {
 SINGLE
 <nb> public class JDBCSessionDataStore extends AbstractSessionDataStore
 connection . setAutoCommit ( true ) ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 long upperBound = now ;
 if ( LOG . isDebugEnabled ( ) )
 - LOG . debug ( STRING1 , _context . getWorkerName ( ) , _context . getCanonicalContextPath ( ) , upperBound ) ;
 + LOG . debug ( STRING2 , _context . getWorkerName ( ) , _context . getCanonicalContextPath ( ) , upperBound ) ;

 try ( PreparedStatement statement = _sessionTableSchema . getMyExpiredSessionsStatement ( connection , _context . getCanonicalContextPath ( ) , _context . getVhost ( ) , upperBound ) )
 {

Add comments to session implemention code


<nb> public class EditPostContentFragment extends Fragment implements TextWatcher ,
 }

 createGallery ( ) ;
 - mUploadingMedia . clear ( ) ;
 - mMediaIdToPath . clear ( ) ;
 }
 }
 }
 <nb> public class EditPostContentFragment extends Fragment implements TextWatcher ,

 mContentEditText . setText ( text ) ;
 mGalleryIds . clear ( ) ;
 -
 mGalleryIds = null ;
 mUploadingMedia = null ;
 mMediaIdToPath = null ;


<nb> public class BasicOutputCollector implements IBasicOutputCollector {
 protected IOutputCollector getOutputter ( ) {
 return out ;
 }
 +
 + public void reportError ( Throwable t ) {
 + out . reportError ( t ) ;
 + }
 }
 <nb> import NAMESPACE ;
 public interface IBasicOutputCollector {
 List < Integer > emit ( String streamId , List < Object > tuple ) ;
 void emitDirect ( int taskId , String streamId , List < Object > tuple ) ;
 + void reportError ( Throwable t ) ;
 }

add reportError function to BasicOutputCollector


<nb> class DefaultServer implements ClusterableServer {

 private final class DefaultServerStateListener implements ChangeListener < ServerDescription > {
 @ override
 - public synchronized void stateChanged ( final ChangeEvent < ServerDescription > event ) {
 + public void stateChanged ( final ChangeEvent < ServerDescription > event ) {
 description = event . getNewValue ( ) ;
 for ( final ChangeListener < ServerDescription > listener : changeListeners ) {
 listener . stateChanged ( event ) ;

Fixed deadlock between DefaultServer and MultiServerCluster by removing unnecessary synchronization in DefaultServer


<nb> public class VersionedCatalog extends ValidatingConfig < StandaloneCatalogWithPric
 }
 }

 - COMMENT
 - public VersionedCatalog ( final VersionedCatalog inputCatalog , final InternalTenantContext tenantContext ) {
 - this . clock = inputCatalog . getClock ( ) ;
 - this . catalogName = inputCatalog . getCatalogName ( ) ;
 - this . recurringBillingMode = inputCatalog . getRecurringBillingMode ( ) ;
 - versions = new ArrayList < StandaloneCatalogWithPriceOverride > ( ) ;
 - for ( final StandaloneCatalogWithPriceOverride cur : inputCatalog . getVersions ( ) ) {
 - final StandaloneCatalogWithPriceOverride catalogWithTenantInfo = new StandaloneCatalogWithPriceOverride ( cur , tenantContext ) ;
 - versions . add ( catalogWithTenantInfo ) ;
 - }
 - }
 - COMMENT

 SINGLE
 SINGLE


<nb> public abstract class ViewGroup extends View implements ViewParent , ViewManager
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class ViewGroup extends View implements ViewParent , ViewManager
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class WallpaperManager {
 COMMENT
 COMMENT
 public Intent getCropAndSetWallpaperIntent ( Uri imageUri ) {
 + if ( imageUri == null ) {
 + throw new IllegalArgumentException ( STRING0 ) ;
 + }
 +
 if ( ! ContentResolver . SCHEME_CONTENT . equals ( imageUri . getScheme ( ) ) ) {
 throw new IllegalArgumentException ( STRING1
 + ContentResolver . SCHEME_CONTENT + STRING2 ) ;

add NULL pointer check for getCropAndSetWallpaperIntent


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

 COMMENT
 COMMENT
 <nb> public class BeanComponent extends DefaultComponent {

 public BeanComponent ( ) {
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public ProcessorEndpoint createEndpoint ( Object bean ) {
 + String uri = STRING0 + bean ;
 + return createEndpoint ( bean , uri ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public ProcessorEndpoint createEndpoint ( Object bean , String uri ) {
 + BeanProcessor processor = new BeanProcessor ( bean , getCamelContext ( ) ) ;
 + return createEndpoint ( uri , processor ) ;
 + }

 SINGLE
 SINGLE
 <nb> public class BeanComponent extends DefaultComponent {
 setProperties ( processor , parameters ) ;
 return endpoint ;
 }
 +
 + protected BeanEndpoint createEndpoint ( String uri , BeanProcessor processor ) {
 + return new BeanEndpoint ( uri , this , processor ) ;
 + }

 }

Revert the change of BeanCompnent to make the servicemix camel build happy


<nb> public class Wallet extends BaseTaggableObject implements Serializable , BlockCha
 RiskAnalysis analysis = riskAnalyzer . create ( this , tx , dependencies ) ;
 RiskAnalysis . Result result = analysis . analyze ( ) ;
 if ( result != RiskAnalysis . Result . OK ) {
 - log . warn ( STRING0 , tx . getHashAsString ( ) , analysis ) ;
 + log . warn ( STRING1 , analysis , tx ) ;
 return true ;
 }
 return false ;


<nb> public abstract class AnnotationUtils {
 COMMENT
 COMMENT
 public static < A extends Annotation > A getAnnotation ( Method method , Class < A > annotationType ) {
 - return BridgeMethodResolver . findBridgedMethod ( method ) . getAnnotation ( annotationType ) ;
 + Method resolvedMethod = BridgeMethodResolver . findBridgedMethod ( method ) ;
 + A ann = resolvedMethod . getAnnotation ( annotationType ) ;
 + if ( ann == null ) {
 + for ( Annotation metaAnn : resolvedMethod . getAnnotations ( ) ) {
 + ann = metaAnn . annotationType ( ) . getAnnotation ( annotationType ) ;
 + if ( ann != null ) {
 + break ;
 + }
 + }
 + }
 + return ann ;
 }

 COMMENT

AnnotationUtils getAnnotation generally supports meta annotation lookup


<nb> public class GraphInferencePolicy extends ProcessCandidateParameterTypeInference
 final Set < JavaResolveResult > results = map . keySet ( ) ;
 return results . toArray ( new JavaResolveResult [ results . size ( ) ] ) ;
 }
 - map = new WeakHashMap < JavaResolveResult , PsiSubstitutor > ( ) ;
 - ourResults . get ( ) . put ( contextCall , map ) ;

 final MethodCandidatesProcessor processor = new MethodCandidatesProcessor ( contextCall ) {
 @ override
 <nb> public class GraphInferencePolicy extends ProcessCandidateParameterTypeInference
 } ;
 PsiScopesUtil . setupAndRunProcessor ( processor , contextCall , false ) ;
 final JavaResolveResult [ ] results = processor . getResult ( ) ;
 +
 + map = new WeakHashMap < JavaResolveResult , PsiSubstitutor > ( ) ;
 + ourResults . get ( ) . put ( contextCall , map ) ;
 for ( JavaResolveResult result : results ) {
 map . put ( result , PsiSubstitutor . UNKNOWN ) ;
 }

avoid empty map cache when processor throws exception


<nb> public class Sql {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public int getResultSetType ( ) {
 return resultSetType ;
 <nb> public class Sql {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public void setResultSetType ( int resultSetType ) {
 this . resultSetType = resultSetType ;
 <nb> public class Sql {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public int getResultSetConcurrency ( ) {
 return resultSetConcurrency ;
 <nb> public class Sql {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public void setResultSetConcurrency ( int resultSetConcurrency ) {
 this . resultSetConcurrency = resultSetConcurrency ;
 <nb> public class Sql {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public int getResultSetHoldability ( ) {
 return resultSetHoldability ;
 <nb> public class Sql {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public void setResultSetHoldability ( int resultSetHoldability ) {
 this . resultSetHoldability = resultSetHoldability ;


<nb> import NAMESPACE ;
 COMMENT
 public interface ConfigurationAction {

 + public void include (
 + PortletConfig portletConfig , RenderRequest renderRequest ,
 + RenderResponse renderResponse )
 + throws Exception ;
 +
 public void processAction (
 PortletConfig portletConfig , ActionRequest actionRequest ,
 ActionResponse actionResponse )
 throws Exception ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + @ deprecated
 public String render (
 PortletConfig portletConfig , RenderRequest renderRequest ,
 RenderResponse renderResponse )

replace method which expects a JSP by another that can actually render the configuration using any technology


<nb> public class ExtensionHttpSessions extends ExtensionAdaptor implements SessionCh
 COMMENT
 COMMENT
 public final Set < String > getHttpSessionTokens ( String site ) {
 - return Collections . unmodifiableSet ( sessionTokens . get ( site ) ) ;
 + Set < String > internalSet = sessionTokens . get ( site ) ;
 + if ( internalSet == null )
 + return null ;
 + return Collections . unmodifiableSet ( internalSet ) ;
 }

 COMMENT
 <nb> public class HttpSessionsSite {
 }
 }
 SINGLE
 - message . setHttpSession ( session ) ;
 + message . setHttpSession ( activeSession ) ;

 SINGLE
 message . getRequestHeader ( ) . setCookies ( requestCookies ) ;
 <nb> public class Spider {
 new Thread ( new Runnable ( ) {
 @ override
 public void run ( ) {
 - threadPool . shutdownNow ( ) ;
 + if ( threadPool != null )
 + threadPool . shutdownNow ( ) ;
 SINGLE
 notifyListenersSpiderComplete ( true ) ;
 controller . reset ( ) ;

Fixed a small issue in ExtensionHttpSessions that did not allow proper detection of active session


<nb> public class AnnotatedEndpoint extends Endpoint {

 private void addWholeHandler ( final UndertowSession session , final BoundMethod method ) {
 - session . addMessageHandler ( ( Class ) textMessage . getMessageType ( ) , new MessageHandler . Whole < Object > ( ) {
 + session . addMessageHandler ( ( Class ) method . getMessageType ( ) , new MessageHandler . Whole < Object > ( ) {
 @ override
 public void onMessage ( Object partialMessage ) {


<nb> public interface TypeResolver {
 }

 @ override
 + @ suppressfbwarnings ( value = STRING0 , justification = STRING1 )
 public TypeResolver . Resolved resolve ( ) {
 return new Resolved ( new Random ( ) . nextInt ( ) ) ;
 }


<nb> public class MainActivity extends ActionBarActivity implements ActionMode . Callba
 ultimateRecyclerView . setRefreshing ( false ) ;
 SINGLE
 linearLayoutManager . scrollToPosition ( NUMBER0 ) ;
 + SINGLE
 + SINGLE
 }
 } , NUMBER1 ) ;
 }

update demo of fixing the empty view when the adapter is null


<nb> public class ListPopupWindow {
 COMMENT
 COMMENT
 public void setModal ( boolean modal ) {
 - mModal = true ;
 + mModal = modal ;
 mPopup . setFocusable ( modal ) ;
 }

Actually set the internal modal value in ListPopupWindow setModal


<nb> public class SparseDatasetTest {
 assertEquals ( FLOAT0 , sm . get ( NUMBER0 , NUMBER1 ) , FLOAT1 ) ;
 assertEquals ( FLOAT2 , sm . get ( NUMBER0 , NUMBER2 ) , FLOAT1 ) ;
 }
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - @ test
 - public void testSet ( ) {
 - System . out . println ( STRING0 ) ;
 - sm . set ( NUMBER0 , NUMBER0 , FLOAT3 ) ;
 - assertEquals ( FLOAT3 , sm . get ( NUMBER0 , NUMBER0 ) , FLOAT1 ) ;
 - sm . set ( NUMBER0 , NUMBER0 , FLOAT4 ) ;
 -
 - sm . set ( NUMBER1 , NUMBER1 , FLOAT5 ) ;
 - assertEquals ( FLOAT5 , sm . get ( NUMBER1 , NUMBER1 ) , FLOAT1 ) ;
 - sm . set ( NUMBER1 , NUMBER1 , FLOAT3 ) ;
 - }
 }

remove SparseMatrix set tests as it is removed


<nb> public class GsmDataConnection extends DataConnection {

 int authType = mApn . authType ;
 if ( authType == - NUMBER0 ) {
 - authType = ( mApn . user != null ) ? RILConstants . SETUP_DATA_AUTH_PAP_CHAP :
 - RILConstants . SETUP_DATA_AUTH_NONE ;
 + authType = TextUtils . isEmpty ( mApn . user ) ? RILConstants . SETUP_DATA_AUTH_NONE
 + : RILConstants . SETUP_DATA_AUTH_PAP_CHAP ;
 }

 String protocol ;

Set AuthType to NONE if username of APN is not set


<nb> public class CastDiagnosticsUtil {
 if ( typeChecker . isSubtypeOf ( supertype , subtype ) ) return false ;

 SINGLE
 - if ( TypeUtils . isNonReifiedTypeParemeter ( subtype ) ) return true ;
 + if ( TypeUtils . isNonReifiedTypeParameter ( subtype ) ) return true ;

 SINGLE
 SINGLE
 <nb> public class TypeUtils {
 return getTypeParameterDescriptorOrNull ( type ) != null ;
 }

 - public static boolean isNonReifiedTypeParemeter ( @ notnull KotlinType type ) {
 + public static boolean isReifiedTypeParameter ( @ notnull KotlinType type ) {
 + TypeParameterDescriptor typeParameterDescriptor = getTypeParameterDescriptorOrNull ( type ) ;
 + return typeParameterDescriptor != null && typeParameterDescriptor . isReified ( ) ;
 + }
 +
 + public static boolean isNonReifiedTypeParameter ( @ notnull KotlinType type ) {
 TypeParameterDescriptor typeParameterDescriptor = getTypeParameterDescriptorOrNull ( type ) ;
 return typeParameterDescriptor != null && ! typeParameterDescriptor . isReified ( ) ;
 }


<nb> public final class RequestTemplate implements Serializable {
 for ( String key : firstQueries . keySet ( ) ) {
 Collection < String > values = firstQueries . get ( key ) ;
 if ( allValuesAreNull ( values ) ) {
 - SINGLE
 + SINGLE
 SINGLE
 SINGLE
 SINGLE


<nb> public class XaLogicalLog
 }
 else if ( entry instanceof LogEntry . Command || entry instanceof LogEntry . Prepare )
 {
 - transactions . get ( entry . getIdentifier ( ) ) . add ( entry ) ;
 + List < LogEntry > list = transactions . get ( entry . getIdentifier ( ) ) ;
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + if ( list != null )
 + {
 + list . add ( entry ) ;
 + }
 }
 else if ( entry instanceof LogEntry . Done )
 {

Fixed an issues with extracting a transaction from a log where it now is possible to


<nb> public abstract class ChangelistTable extends Composite
 layout_ . remove ( infoBar_ ) ;
 layout_ . setWidgetTopBottom ( scrollPanel_ , NUMBER0 , Unit . PX , NUMBER0 , Unit . PX ) ;
 layout_ . animate ( NUMBER1 ) ;
 + infoBar_ = null ;
 }
 }

fix bug in info bar visibility management


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public final class ImageDecoder {
 + final class ImageDecoder {

 private static final String TAG = ImageDecoder . class . getSimpleName ( ) ;


<nb> public class RecyclableBufferedInputStream extends FilterInputStream {
 COMMENT
 protected int pos ;

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public RecyclableBufferedInputStream ( InputStream in ) {
 - this ( in , NUMBER0 ) ;
 - }
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public RecyclableBufferedInputStream ( InputStream in , int size ) {
 - this ( in , new byte [ size ] ) ;
 - }
 -
 public RecyclableBufferedInputStream ( InputStream in , byte [ ] buffer ) {
 super ( in ) ;
 if ( buffer == null || buffer . length == NUMBER1 ) {

Remove misleading constructors from RecycleableBIS


<nb> public final class GzipSource implements Source {
 SINGLE
 SINGLE
 checkEqual ( STRING0 , source . readIntLe ( ) , ( int ) crc . getValue ( ) ) ;
 - checkEqual ( STRING1 , source . readIntLe ( ) , inflater . getTotalOut ( ) ) ;
 + checkEqual ( STRING1 , source . readIntLe ( ) , ( int ) inflater . getBytesWritten ( ) ) ;
 }

 @ override public Timeout timeout ( ) {

Fix GzipSource to handle large files on AOSP


<nb> public class PolicyAllCategoryPanel extends AbstractParamPanel {
 policySelector . addActionListener ( new ActionListener ( ) {
 @ override
 public void actionPerformed ( ActionEvent e ) {
 + String policyName = ( String ) policySelector . getSelectedItem ( ) ;
 + if ( policyName == null ) {
 + return ;
 + }
 +
 ScanPolicy policy ;
 try {
 - policy = extension . getPolicyManager ( ) . getPolicy ( ( String ) policySelector . getSelectedItem ( ) ) ;
 + policy = extension . getPolicyManager ( ) . getPolicy ( policyName ) ;
 if ( policy != null ) {
 setScanPolicy ( policy ) ;
 }

Ignore no selected scan policy while reloading Active Scan dialogue


<nb> public class LoadingPhaseRunner {
 }
 }

 - private Collection < Target > getTargetsForLabels ( Collection < Label > labels ) {
 + private Set < Target > getTargetsForLabels ( Collection < Label > labels ) {
 Set < Target > result = new HashSet < > ( ) ;
 -
 for ( Label label : labels ) {
 try {
 result . add ( packageManager . getLoadedTarget ( label ) ) ;
 <nb> public class LoadingPhaseRunner {
 throw new IllegalStateException ( e ) ; SINGLE
 }
 }
 -
 return result ;
 }

 <nb> public class LoadingPhaseRunner {
 }

 return ImmutableSet . copyOf ( Sets . difference ( ImmutableSet . copyOf ( targetsToLoad ) ,
 - ImmutableSet . copyOf ( getTargetsForLabels ( rootCauses . keySet ( ) ) ) ) ) ;
 + getTargetsForLabels ( rootCauses . keySet ( ) ) ) ) ;
 }

 COMMENT

Simplify LoadingPhaseRunner avoid an unnecessary Set copy


<nb> public final class JDBCUtil {
 try {
 setParameter ( stmt , counter ++ , o ) ;
 } catch ( NoSuchMethodException e ) {
 - throw new QueryException ( e ) ;
 + throw new IllegalArgumentException ( e ) ;
 } catch ( IllegalAccessException e ) {
 - throw new QueryException ( e ) ;
 + throw new IllegalArgumentException ( e ) ;
 } catch ( InvocationTargetException e ) {
 - throw new QueryException ( e ) ;
 + throw new IllegalArgumentException ( e ) ;
 }
 }
 }

changed QueryException to IllegalArgumentException


<nb> public class SummaryPage extends Request {
 Response r = Response . done ( res ) ;
 r . setBuilder ( ROOT_OBJECT , new Builder ( ) {
 @ override public String build ( Response response , JsonElement element , String contextName ) {
 - StringBuilder pageBldr = new StringBuilder ( STRING0 ) ;
 - StringBuilder sb = new StringBuilder ( STRING1 ) ;
 + StringBuilder pageBldr = new StringBuilder ( STRING2 ) ;
 + StringBuilder sb = new StringBuilder ( STRING3 ) ;
 JsonArray cols = element . getAsJsonObject ( ) . get ( STRING4 ) . getAsJsonObject ( ) . get ( STRING5 ) . getAsJsonArray ( ) ;
 Iterator < JsonElement > it = cols . iterator ( ) ;


<nb> public class MapRouteInfoControl extends MapControls implements IRouteInformatio
 public void showControls ( FrameLayout parent ) {
 infoButton = addButton ( parent , R . string . route_info , R . drawable . map_btn_signpost ) ;
 if ( showDialog ) {
 - showDialog ( ) ;
 + if ( getTargets ( ) . getPointToNavigate ( ) == null ) {
 + showDialog ( ) ;
 + }
 showDialog = false ;
 }
 controlVisible = true ;

Fixed bug with navigation dialog being opened every time


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

 import NAMESPACE ;


<nb> public class StorageBasedAuthorizationProvider extends HiveAuthorizationProvider
 }

 private HiveException hiveException ( Exception e ) {
 - HiveException ex = new HiveException ( e ) ;
 - ex . initCause ( e ) ;
 - return ex ;
 + return new HiveException ( e ) ;
 }

 private AuthorizationException authorizationException ( Exception e ) {
 - AuthorizationException ex = new AuthorizationException ( e ) ;
 - ex . initCause ( e ) ;
 - return ex ;
 + return new AuthorizationException ( e ) ;
 }

 private static AccessControlException accessControlException (

StorageBasedAuthorizationProvider masks lower level exception with IllegalStateException Eugene Koifman via Ashutosh Chauhan


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class DeployApkMojo extends AbstractIntegrationtestMojo {
 + public class DeployMojo extends AbstractIntegrationtestMojo {

 public void execute ( ) throws MojoExecutionException , MojoFailureException {
 if ( ! isEnableIntegrationTest ( ) ) {


<nb> import NAMESPACE ;
 @ enableconfigurationproperties
 public class ManagementServerPropertiesAutoConfiguration {

 - @ bean ( name = STRING0 )
 + @ bean
 @ conditionalonmissingbean
 public ManagementServerProperties managementServerProperties ( ) {
 return new ManagementServerProperties ( ) ;
 }

 SINGLE
 - @ bean ( name = STRING1 )
 + @ bean
 @ conditionalonmissingbean
 @ conditionalonclass ( name = STRING2 )
 public SecurityProperties securityProperties ( ) {
 <nb> import NAMESPACE ;
 AuthenticationManagerConfiguration . class } )
 public class SecurityAutoConfiguration {

 - @ bean ( name = STRING1 )
 + @ bean
 @ conditionalonmissingbean
 public SecurityProperties securityProperties ( ) {
 return new SecurityProperties ( ) ;
 <nb> public class ServerPropertiesAutoConfiguration implements ApplicationContextAwar

 private ApplicationContext applicationContext ;

 - @ bean ( name = STRING3 )
 + @ bean
 @ conditionalonmissingbean ( search = SearchStrategy . CURRENT )
 public ServerProperties serverProperties ( ) {
 return new ServerProperties ( ) ;

Remove hard coded bean names for couple of ConfigurationProperties beans


<nb> public class Context {
 COMMENT
 COMMENT
 public Context ( NetworkParameters params ) {
 + log . info ( STRING0 , VersionMessage . BITCOINJ_VERSION ) ;
 this . confidenceTable = new TxConfidenceTable ( ) ;
 this . params = params ;
 lastConstructed = this ;


<nb> public class PackageManagerService extends IPackageManager . Stub {
 intent , resolvedType , flags , userId ) ;
 if ( resolveInfo != null ) {
 result . add ( resolveInfo ) ;
 + Collections . sort ( result , mResolvePrioritySorter ) ;
 }
 return result ;
 }

Add cross profile intent in order after intent filter resolution


<nb> public abstract class ScmMaterial extends AbstractMaterial {
 protected Filter filter ;
 protected String folder ;
 protected boolean autoUpdate = true ;
 + protected boolean invertFilter = false ;

 public ScmMaterial ( String typeName ) {
 super ( typeName ) ;
 <nb> public abstract class ScmMaterial extends AbstractMaterial {
 autoUpdate = value ;
 }

 + public boolean isInvertFilter ( ) {
 + return invertFilter ;
 + }
 +
 + public boolean getInvertFilter ( ) {
 + return invertFilter ;
 + }
 +
 + public void setInvertFilter ( boolean value ) {
 + invertFilter = value ;
 + }
 +
 public final MatchedRevision createMatchedRevision ( Modification modification , String searchString ) {
 return new MatchedRevision ( searchString , getShortRevision ( modification . getRevision ( ) ) , modification . getRevision ( ) , modification . getUserName ( ) , modification . getModifiedTime ( ) ,
 modification . getComment ( ) ) ;


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

 + import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public class RaptorSplitManager
 }
 } ;
 }
 -
 - private static Function < Node , String > nodeIdentifier ( )
 - {
 - return new Function < Node , String > ( )
 - {
 - @ override
 - public String apply ( Node node )
 - {
 - return node . getNodeIdentifier ( ) ;
 - }
 - } ;
 - }
 }


<nb> public class EditInspectionToolsSettingsAction implements IntentionAction {

 public void invoke ( @ notnull Project project , Editor editor , PsiFile file ) throws IncorrectOperationException {
 final InspectionProjectProfileManager projectProfileManager = InspectionProjectProfileManager . getInstance ( file . getProject ( ) ) ;
 - final boolean canChooseDifferentProfiles = false ;
 InspectionProfile inspectionProfile = projectProfileManager . getInspectionProfile ( ) ;
 editToolSettings ( project ,
 - inspectionProfile ,
 - canChooseDifferentProfiles ,
 + inspectionProfile , true ,
 myShortName ) ;
 }


<nb> public final class PageAdapter extends Adapter implements
 public void onOrientationChanged ( ) {
 mColumnCount = mContext . getResources ( ) . getInteger (
 R . integer . preview_page_per_row_count ) ;
 + notifyDataSetChanged ( ) ;
 }

 public boolean isOpened ( ) {
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;

Fix a crash in print preview on multiple rotations


<nb> public class HttpSender {
 public static final int BEAN_SHELL_INITIATOR = NUMBER0 ;
 public static final int ACCESS_CONTROL_SCANNER_INITIATOR = NUMBER1 ;

 - public static final String ZAP_CFU_PROTOCOL_ID = STRING0 ;
 -
 private static Logger log = Logger . getLogger ( HttpSender . class ) ;

 private static ProtocolSocketFactory sslFactory = null ;
 <nb> public class HttpSender {
 Protocol . registerProtocol ( STRING1 , new Protocol ( STRING1 ,
 ( ProtocolSocketFactory ) new SSLConnector ( true ) , NUMBER2 ) ) ;
 }
 - Protocol . registerProtocol ( ZAP_CFU_PROTOCOL_ID , new Protocol ( ZAP_CFU_PROTOCOL_ID COMMENT ,
 - ( ProtocolSocketFactory ) new SSLConnector ( false ) , NUMBER3 ) ) ;

 AuthPolicy . registerAuthScheme ( AuthPolicy . NTLM , ZapNTLMScheme . class ) ;
 }

Remove unused registered protocol and corresponding SSLConnector


<nb> public class MediaGridAdapter extends CursorAdapter {
 imageView . setTag ( thumbnailURL ) ;
 imageView . setImageUrl ( thumbnailURL , WordPress . imageLoader ) ;
 } else {
 - imageView . setImageUrl ( STRING0 , WordPress . imageLoader ) ;
 + imageView . setImageResource ( placeholderResId ) ;
 }

 }

FredrichO JonathanL fixed issue where views were not recycling properly


<nb> public class ComponentContainer implements BatchComponent , ServerComponent {

 public ComponentContainer stopComponents ( boolean swallowException ) {
 try {
 - pico . stop ( ) ;
 + if ( ! pico . getLifecycleState ( ) . isStopped ( ) ) {
 + pico . stop ( ) ;
 + }
 + removeChild ( ) ;
 + if ( parent != null ) {
 + parent . removeChild ( ) ;
 + }

 } catch ( RuntimeException e ) {
 if ( ! swallowException ) {
 throw PicoUtils . propagate ( e ) ;
 }
 - } finally {
 - removeChild ( ) ;
 }
 return this ;
 }

Fix stop of ComponentContainer with child


<nb> public final class UniqueId implements UniqueIdInterface {
 SINGLE
 return new UniqueIdAllocator ( name , assignment ) . tryAllocate ( ) ;
 }
 - System . out . println ( STRING0 ) ;
 return e ; SINGLE
 }
 }


<nb> public class JournalPortlet extends MVCPortlet {
 getForward ( renderRequest , STRING0 ) ) ;
 }

 - protected void deleteFeeds ( ActionRequest actionRequest ) throws Exception {
 + public void deleteFeeds ( ActionRequest actionRequest ) throws Exception {
 long groupId = ParamUtil . getLong ( actionRequest , STRING1 ) ;

 String [ ] deleteFeedIds = StringUtil . split (
 <nb> public class JournalPortlet extends MVCPortlet {
 }
 }

 - protected void updateFeed ( ActionRequest actionRequest ) throws Exception {
 + public void updateFeed ( ActionRequest actionRequest ) throws Exception {
 String cmd = ParamUtil . getString ( actionRequest , Constants . CMD ) ;

 long groupId = ParamUtil . getLong ( actionRequest , STRING1 ) ;


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

 -
 public class CodegenTestsOnAndroidGenerator extends UsefulTestCase {

 private final PathManager pathManager ;
 <nb> public class CodegenTestsOnAndroidGenerator extends UsefulTestCase {
 }

 private static OutputFileCollection compileFromText ( String filePath , String text , JetCoreEnvironment jetEnvironment ) {
 - JetFile psiFile = JetTestUtils . createFile ( STRING0 , text , jetEnvironment . getProject ( ) ) ;
 + CodegenTestFiles codegenFile = CodegenTestFiles . create ( STRING0 , text , jetEnvironment . getProject ( ) ) ;
 + JetFile psiFile = codegenFile . getPsiFile ( ) ;
 OutputFileCollection outputFiles ;
 try {
 outputFiles = GenerationUtils . compileFileGetClassFileFactoryForTest ( psiFile ) ;

Make Android test load files with diagnostics


<nb> public class Roster {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public RosterEntry createEntry ( String user , String name ) {
 + SINGLE
 + SINGLE
 + SINGLE
 return new RosterEntry ( user , name , connection ) ;
 }


<nb> public class MockFactory < T > {

 public Object intercept ( Object obj , Method method , Object [ ] args ,
 MethodProxy proxy ) throws Throwable {
 - System . err . println ( method + STRING0 + method . isBridge ( ) ) ;
 if ( method . isBridge ( ) ) {
 SINGLE
 return proxy . invokeSuper ( obj , args ) ;
 <nb> public class ExtraMatchers {
 for ( Method m : clazz . getMethods ( ) ) {
 if ( m . isBridge ( ) ) {
 if ( m . getName ( ) . equals ( methodName ) ) {
 - System . out . println ( m ) ;
 return true ;
 }
 }


<nb> public abstract class ChunkBuildExtension {
 final ChunkBuildExtension [ ] extensions = Extensions . getRootArea ( ) . getExtensionPoint ( EP_NAME ) . getExtensions ( ) ;
 final Module [ ] modules = chunk . getModules ( ) ;
 for ( ChunkBuildExtension extension : extensions ) {
 - if ( ! extension . haveSelfOutputs ( modules ) ) return false ;
 + if ( extension . haveSelfOutputs ( modules ) ) return true ;
 }
 - return true ;
 + return false ;
 }

 public static String [ ] getAllTargets ( ModuleChunk chunk ) {

Fixed bug with output detection now runtime classpath is generated when Gwt plugin is not set for the module


<nb> public class AdminClient {
 private static final String CLUSTER_VERSION_KEY = STRING0 ;
 private static final int DEFAULT_ZONE_ID = NUMBER0 ;

 - public final static List < String > restoreStoreEngineBlackList = Arrays . asList ( MysqlStorageConfiguration . TYPE_NAME ,
 - ReadOnlyStorageConfiguration . TYPE_NAME ,
 + public final static List < String > restoreStoreEngineBlackList = Arrays . asList ( ReadOnlyStorageConfiguration . TYPE_NAME ,
 ViewStorageConfiguration . TYPE_NAME ) ;

 private Cluster currentCluster ;


<nb> public class SecureServletTest {
 }

 @ test
 - public void testWithCorrectCredentials ( ) throws Exception {
 + public void testGetWithCorrectCredentials ( ) throws Exception {
 WebClient webClient = new WebClient ( ) ;
 webClient . setCredentialsProvider ( correctCreds ) ;
 HtmlPage page = webClient . getPage ( base + STRING0 ) ;
 <nb> public class SecureServletTest {
 }

 @ test
 - public void testWithIncorrectCredentials ( ) throws Exception {
 + public void testGetWithIncorrectCredentials ( ) throws Exception {
 WebClient webClient = new WebClient ( ) ;
 webClient . setCredentialsProvider ( incorrectCreds ) ;
 try {


<nb> public class FaunusTitanGraph extends StandardTitanGraph {
 for ( final Entry data : entries ) {
 try {
 final FaunusVertexLoader . RelationFactory factory = loader . getFactory ( ) ;
 - super . edgeSerializer . readRelation ( factory , data , tx ) ;
 + super . edgeSerializer . readRelation ( tx . getExistingVertex ( factory . getVertexID ( ) ) , data ) ;
 factory . build ( ) ;
 } catch ( Exception e ) {
 SINGLE

updated Faunus with change in Titans EdgeSerializers API


<nb> public class SpdySessionHandler

 @ override
 public void freeInboundBuffer ( ChannelHandlerContext ctx , Buf buf ) throws Exception {
 - SINGLE
 + buf . free ( ) ;
 }

 @ override
 public void freeOutboundBuffer ( ChannelHandlerContext ctx , Buf buf ) throws Exception {
 - SINGLE
 + buf . free ( ) ;
 }

 @ override

Add missing free on SpdySessionHandler buffers


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class WPMainActivity extends Activity
 if ( now > expires ) {
 SINGLE
 ToastUtils . showToast ( this , R . string . push_auth_expired , ToastUtils . Duration . LONG ) ;
 + AnalyticsTracker . track ( AnalyticsTracker . Stat . PUSH_AUTHENTICATION_EXPIRED ) ;
 } else {
 NotificationsUtils . showPushAuthAlert ( this , token , title , message ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SvnAuthenticationNotifier extends GenericNotifierImpl < SvnAuthentica
 final boolean checkWrite ,
 final String realm ,
 final String kind , boolean interactive ) {
 + SINGLE
 + if ( configuration . isIsUseDefaultProxy ( ) ) {
 + final HttpConfigurable instance = HttpConfigurable . getInstance ( ) ;
 + if ( instance . USE_HTTP_PROXY && instance . PROXY_AUTHENTICATION && ( StringUtil . isEmptyOrSpaces ( instance . PROXY_LOGIN ) ||
 + StringUtil . isEmptyOrSpaces ( instance . getPlainProxyPassword ( ) ) ) ) {
 + return false ;
 + }
 + }
 SvnInteractiveAuthenticationProvider . clearCallState ( ) ;
 try {
 new SVNWCClient ( manager , configuration . getOptions ( project ) ) . doInfo ( url , SVNRevision . UNDEFINED , SVNRevision . HEAD ) ;

do not ask proxy credentials when passively check whether background connections are enabled


<nb> public class PdeKeywords extends TokenMarker {
 if ( lastKeyword != lastOffset ) {
 addToken ( lastKeyword - lastOffset , Token . NULL ) ;
 }
 - if ( paren && id == Token . LITERAL2 ) {
 - id = Token . KEYWORD2 ;
 - } else if ( ! paren && id == Token . KEYWORD2 ) {
 - id = Token . LITERAL2 ;
 - }
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 addToken ( len , id ) ;
 lastOffset = i ;
 }

check no longer necessary b c of multiple lookups


<nb> package NAMESPACE ;

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

 import NAMESPACE ;
 <nb> public class DateType extends AbstractType < Date >

 public static final DateType instance = new DateType ( ) ;

 - static final String DEFAULT_FORMAT = TimestampSerializer . iso8601Patterns [ NUMBER0 ] ;
 - static final SimpleDateFormat FORMATTER = new SimpleDateFormat ( DEFAULT_FORMAT ) ;
 -
 DateType ( ) { } SINGLE

 public int compare ( ByteBuffer o1 , ByteBuffer o2 )


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

 import NAMESPACE ;


<nb> public final class MediaSession {
 break ;
 case MSG_SKIP_TO_ITEM :
 mCallback . onSkipToQueueItem ( ( Long ) msg . obj ) ;
 + break ;
 case MSG_PAUSE :
 mCallback . onPause ( ) ;
 break ;


<nb> public class RegistrationIntentService extends IntentService {
 SINGLE
 SINGLE
 SINGLE
 - SINGLE
 - InstanceID instanceID = InstanceID . getInstance ( this ) ;
 SINGLE
 SINGLE
 + SINGLE
 + InstanceID instanceID = InstanceID . getInstance ( this ) ;
 String token = instanceID . getToken ( getString ( R . string . gcm_defaultSenderId ) ,
 GoogleCloudMessaging . INSTANCE_ID_SCOPE , null ) ;
 SINGLE

Moving comment up so that it won t be displayed in the android start


<nb> public class Layer extends BaseEntity {
 public void addEntity ( final IEntity pEntity ) {
 this . mEntities . add ( pEntity ) ;
 }
 +
 + public boolean removeEntity ( final IEntity pEntity ) {
 + return this . mEntities . remove ( pEntity ) ;
 + }

 SINGLE
 SINGLE

Added method to remove Entity from Layer


<nb> public class BuildCraftFactory extends BuildCraftMod {
 FactoryProxyClient . pumpTexture = terrainTextures . registerSprite ( new ResourceLocation ( STRING0 ) ) ;
 ChuteRenderModel . sideTexture = terrainTextures . registerSprite ( new ResourceLocation ( STRING1 ) ) ;

 - if ( Loader . isModLoaded ( STRING2 ) && ! BuildCraftCore . DEVELOPER_MODE ) {
 + if ( Loader . isModLoaded ( STRING2 ) && BuildCraftCore . DEVELOPER_MODE ) {
 ComplexRefiningManager . textureStitchPre ( evt ) ;
 }
 }
 <nb> public class BuildCraftFactory extends BuildCraftMod {
 event . modelRegistry . putObject ( mrl , ChuteRenderModel . create ( model ) ) ;
 }

 - if ( Loader . isModLoaded ( STRING2 ) && ! BuildCraftCore . DEVELOPER_MODE ) {
 + if ( Loader . isModLoaded ( STRING2 ) && BuildCraftCore . DEVELOPER_MODE ) {
 ComplexRefiningManager . registerModels ( event ) ;
 }
 }

Fix fluid textures model in the dev environment


<nb> public final class SamlUtils {
 public static Document constructDocumentFromXmlString ( final String xmlString ) {
 try {
 final SAXBuilder builder = new SAXBuilder ( ) ;
 + builder . setFeature ( STRING0 , false ) ;
 + builder . setFeature ( STRING1 , true ) ;
 return builder
 . build ( new ByteArrayInputStream ( xmlString . getBytes ( ) ) ) ;
 } catch ( final Exception e ) {


<nb> public class HtmlFetcher {
 }
 reader . close ( ) ;
 }
 - private String referrer = STRING0 ;
 - private String userAgent = STRING1 + referrer + STRING2 ;
 + private String referrer = STRING3 ;
 + private String userAgent = STRING4 + referrer + STRING2 ;
 private String cacheControl = STRING5 ;
 private String language = STRING6 ;
 private String accept = STRING7 ;


<nb> public abstract class AbstractExternalProjectImportBuilder < C extends AbstractImp
 modules . add ( module ) ;
 return module ;
 }
 - } : new IdeModifiableModelsProviderImpl ( project ) ;
 + } : new IdeModifiableModelsProviderImpl ( project ) {
 + @ notnull
 + @ override
 + public Module newModule ( @ notnull @ nonnls String filePath ,
 + String moduleTypeId ) {
 + final Module module = super . newModule ( filePath , moduleTypeId ) ;
 + modules . add ( module ) ;
 + return module ;
 + }
 + } ;
 AbstractExternalSystemSettings systemSettings = ExternalSystemApiUtil . getSettings ( project , myExternalSystemId ) ;
 final ExternalProjectSettings projectSettings = getCurrentExternalProjectSettings ( ) ;

project builder commit should return committed modules for non ui mode too


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CompletionFieldMapper extends AbstractFieldMapper < String > {
 }
 }

 - private static final char END_LABEL = NUMBER0 ;
 -
 SINGLE
 public static boolean isReservedChar ( char character ) {
 - COMMENT
 - COMMENT
 - COMMENT
 - return character == END_LABEL ;
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + assert XAnalyzingSuggester . PAYLOAD_SEP == XAnalyzingSuggester . SEP_LABEL ; SINGLE
 + switch ( character ) {
 + case XAnalyzingSuggester . END_BYTE :
 + case XAnalyzingSuggester . SEP_LABEL :
 + return true ;
 + default :
 + return false ;
 + }
 }
 }

Fixing CompletionFieldMapper isReservedChar to take all relevant chars in account


<nb> public class TestFormAuthenticator extends TomcatBaseTest {
 COMMENT
 COMMENT
 COMMENT
 - private class FormAuthClientBase extends SimpleHttpClient {
 + private abstract class FormAuthClientBase extends SimpleHttpClient {

 protected static final String LOGIN_PARAM_TAG = STRING0 ;
 protected static final String LOGIN_RESOURCE = STRING1 ;


<nb> public class Http11Nio2Processor extends AbstractHttp11Processor < Nio2Channel > {
 response . setStatus ( NUMBER0 ) ;
 setErrorState ( ErrorState . CLOSE_CLEAN , null ) ;
 getAdapter ( ) . log ( request , response , NUMBER1 ) ;
 - } else {
 - return true ;
 + return false ;
 }
 - return false ;
 + return true ;
 }


<nb> public class BaseDataSourceModifyHandler extends BaseOperationCommand {
 RequestParamArgWithValue poolUseStrictMin = new RequestParamArgWithValue ( STRING0 , this , new ValueCompleter ( STRING0 ) ) ;
 poolUseStrictMin . addRequiredPreceding ( lastRequired ) ;

 - RequestParamArgWithValue securityDomain = new RequestParamArgWithValue ( STRING1 , this , new ValueCompleter ( STRING1 ) ) ;
 - securityDomain . addRequiredPreceding ( lastRequired ) ;
 -
 RequestParamArgWithValue blockingTimeoutWait = new RequestParamArgWithValue ( STRING2 , this , new ValueCompleter ( STRING2 ) ) ;
 blockingTimeoutWait . addRequiredPreceding ( lastRequired ) ;

 <nb> public class BaseDataSourceModifyHandler extends BaseOperationCommand {

 RequestParamArgWithValue useFastFail = new RequestParamArgWithValue ( STRING3 , this , new ValueCompleter ( STRING3 ) ) ;
 useFastFail . addRequiredPreceding ( lastRequired ) ;
 -
 - RequestParamArgWithValue useCCM = new RequestParamArgWithValue ( STRING4 , this , new ValueCompleter ( STRING4 ) ) ;
 - useCCM . addRequiredPreceding ( lastRequired ) ;
 }

 public class ValueCompleter extends DefaultCompleter {

removed not writtable attributes for the modify command


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DefaultLifecycleProcessor implements LifecycleProcessor , BeanFactor

 private final List < LifecycleGroupMember > members = new ArrayList < LifecycleGroupMember > ( ) ;

 - private Map < String , ? extends Lifecycle > lifecycleBeans = getLifecycleBeans ( ) ;
 -
 - private volatile int smartMemberCount ;
 -
 private final int phase ;

 private final long timeout ;

 + private final Map < String , ? extends Lifecycle > lifecycleBeans ;
 +
 private final boolean autoStartupOnly ;

 + private volatile int smartMemberCount ;
 +
 public LifecycleGroup ( int phase , long timeout , Map < String , ? extends Lifecycle > lifecycleBeans , boolean autoStartupOnly ) {
 this . phase = phase ;
 this . timeout = timeout ;

Removed unnecessary default value of LifecycleGroup lifecycleBeans


<nb> class RelationshipTypeHolder
 return name ;
 }

 + public String toString ( )
 + {
 + return name ;
 + }
 +
 public boolean equals ( Object o )
 {
 if ( ! ( o instanceof RelationshipType ) )

Fixed toString on private relationship type implementation


<nb> public class ComparisonFailureData {
 if ( filePath != null ) {
 attrs . put ( STRING0 , filePath ) ;
 }
 - attrs . put ( STRING1 , STRING2 ) ;
 + final int expectedIdx = trace . indexOf ( STRING3 ) ;
 + final String comparisonFailureMessage ;
 + if ( expectedIdx > NUMBER0 ) {
 + comparisonFailureMessage = trace . substring ( NUMBER0 , expectedIdx ) ;
 + }
 + else {
 + comparisonFailureMessage = STRING4 ;
 + }
 + attrs . put ( STRING1 , comparisonFailureMessage ) ;
 }
 else {
 attrs . put ( STRING5 , trace ) ;


<nb> public abstract class AppIntro extends AppIntroBase {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public void showSkipButton ( boolean showButton ) {
 - this . skipButtonEnabled = showButton ;
 - setButtonState ( skipButton , showButton ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public final class FixedLengthStreamSourceChannel implements StreamSourceChannel
 final int lim = dst . limit ( ) ;
 final int pos = dst . position ( ) ;
 if ( lim - pos > remaining ) {
 - dst . limit ( ( int ) ( remaining - ( long ) pos ) ) ;
 + dst . limit ( ( int ) ( remaining + ( long ) pos ) ) ;
 try {
 return res = delegate . read ( dst ) ;
 } finally {

Fix bug in FixedLengthStreamSourceChannel


<nb> public class HiveSessionImpl implements HiveSession {
 hiveHist . closeStream ( ) ;
 }
 try {
 + sessionState . resetThreadName ( ) ;
 sessionState . close ( ) ;
 } finally {
 sessionState = null ;
 <nb> public class HiveSessionImpl implements HiveSession {
 } finally {
 if ( sessionState != null ) {
 try {
 + sessionState . resetThreadName ( ) ;
 sessionState . close ( ) ;
 } catch ( Throwable t ) {
 LOG . warn ( STRING0 , t ) ;

Hive session close is not resetting thread name Rajat Khandelwal reviewed by Sergey Shelukhin


<nb> public class MapRouteInfoControl extends MapControls implements IRouteInformatio
 @ override
 public boolean onSingleTap ( PointF point , RotatedTileBox tileBox ) {
 if ( selectFromMapTouch ) {
 - LatLon new latlon = tileBox . getLatLonFromPixel ( point . x , point . y ) ;
 + latlon = new LatLon ( tileBox . getLatLonFromPixel ( point . x , point . y ) ) ;
 selectFromMapTouch = false ;
 SINGLE
 if ( selectFromMapForTarget ) {


<nb> public class Rectangle implements Serializable , Shape2D {
 return this ;
 }

 + COMMENT
 + COMMENT
 public String toString ( ) {
 return STRING0 + x + STRING1 + y + STRING1 + width + STRING1 + height + STRING2 ;
 }
 <nb> public class Vector2 implements Serializable , Vector < Vector2 > {
 : scl ( ( float ) Math . sqrt ( len2 / oldLen2 ) ) ;
 }

 + COMMENT
 + COMMENT
 @ override
 public String toString ( ) {
 return STRING3 + x + STRING1 + y + STRING4 ;
 <nb> public class Vector3 implements Serializable , Vector < Vector3 > {
 return scl ( ( float ) Math . cos ( theta ) ) . add ( tx * dl , ty * dl , tz * dl ) . nor ( ) ;
 }

 + COMMENT
 + COMMENT
 @ override
 public String toString ( ) {
 return STRING3 + x + STRING1 + y + STRING1 + z + STRING4 ;

Add toString javadoc for vector and rectangle implementations


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

 <nb> public final class MapParametricType
 {
 public static final MapParametricType MAP = new MapParametricType ( ) ;
 SINGLE
 - private static final Set < Type > SUPPORTED_KEY_TYPES = ImmutableSet . < Type > of ( VARCHAR , BIGINT , DOUBLE , BOOLEAN , DATE , TIMESTAMP ) ;
 + private static final Set < Type > SUPPORTED_KEY_TYPES = ImmutableSet . < Type > of ( VARCHAR , VARBINARY , BIGINT , DOUBLE , BOOLEAN , DATE , TIMESTAMP ) ;

 private MapParametricType ( )
 {


<nb> final class DefaultChannelHandlerContext extends DefaultAttributeMap implements
 }
 } catch ( Throwable t ) {
 notifyHandlerException ( t ) ;
 + break ;
 } finally {
 if ( handler instanceof ChannelInboundByteHandler && ! isInboundFreed ( ) ) {
 try {

Fix an infinite exception storm triggered by DefaultChannelHandlerContext invokeInboundBufferUpdated


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FacetStructureConfigurable extends BaseStructureConfigurable {
 actions . add ( new MyNavigateAction ( ) ) ;
 }
 actions . add ( new MyRemoveAction ( ) ) ;
 - actions . add ( Separator . getInstance ( ) ) ;
 - addCollapseExpandActions ( actions ) ;
 + if ( fromPopup || ! ( Registry . is ( STRING0 ) ) ) {
 + actions . add ( Separator . getInstance ( ) ) ;
 + addCollapseExpandActions ( actions ) ;
 + }
 return actions ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public interface StudyExecutor {
 - LanguageExtension < StudyExecutor > INSTANCE = new LanguageExtension < StudyExecutor > ( STRING0 ) ;
 + LanguageExtension < StudyExecutor > INSTANCE = new LanguageExtension < StudyExecutor > ( STRING1 ) ;

 @ nullable
 Sdk findSdk ( @ notnull final Project project ) ;


<nb> public class FtpConsumer extends RemoteFileConsumer < FTPFile > {

 for ( FTPFile file : files ) {

 + if ( log . isTraceEnabled ( ) ) {
 + log . trace ( STRING0 , new Object [ ] { file . getName ( ) , file . isDirectory ( ) , file . isFile ( ) } ) ;
 + }
 +
 SINGLE
 if ( ! canPollMoreFiles ( fileList ) ) {
 return false ;
 <nb> public class SftpConsumer extends RemoteFileConsumer < ChannelSftp . LsEntry > {

 for ( ChannelSftp . LsEntry file : files ) {

 + if ( log . isTraceEnabled ( ) ) {
 + log . trace ( STRING1 , new Object [ ] { file . getFilename ( ) , file . getLongname ( ) , file . getAttrs ( ) . isDir ( ) } ) ;
 + }
 +
 SINGLE
 if ( ! canPollMoreFiles ( fileList ) ) {
 return false ;

Added a bit more TRACE logging to camel ftp


<nb> public class AstridNewSyncMigrator {
 TaskListMetadata tlm = new TaskListMetadata ( ) ;
 tlm . setValue ( TaskListMetadata . FILTER , TaskListMetadata . FILTER_ID_ALL ) ;
 tlm . setValue ( TaskListMetadata . TASK_IDS , activeTasksOrder ) ;
 - tlm . putTransitory ( SyncFlags . ACTFM_SUPPRESS_OUTSTANDING_ENTRIES , true ) ;
 if ( taskListMetadataDao . update ( TaskListMetadata . FILTER . eq ( TaskListMetadata . FILTER_ID_ALL ) , tlm ) <= NUMBER0 ) {
 - tlm . putTransitory ( SyncFlags . ACTFM_SUPPRESS_OUTSTANDING_ENTRIES , true ) ;
 taskListMetadataDao . createNew ( tlm ) ;
 }

 <nb> public class AstridNewSyncMigrator {

 tlm . setValue ( TaskListMetadata . FILTER , TaskListMetadata . FILTER_ID_TODAY ) ;
 tlm . setValue ( TaskListMetadata . TASK_IDS , todayTasksOrder ) ;
 - tlm . putTransitory ( SyncFlags . ACTFM_SUPPRESS_OUTSTANDING_ENTRIES , true ) ;
 if ( taskListMetadataDao . update ( TaskListMetadata . FILTER . eq ( TaskListMetadata . FILTER_ID_TODAY ) , tlm ) <= NUMBER0 ) {
 - tlm . putTransitory ( SyncFlags . ACTFM_SUPPRESS_OUTSTANDING_ENTRIES , true ) ;
 taskListMetadataDao . createNew ( tlm ) ;
 }

Don t suppress changes when creating new task list metadata in migration


<nb> public class RosterGroup {
 COMMENT
 public void removeEntry ( RosterEntry entry ) {
 SINGLE
 - SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 synchronized ( entries ) {
 if ( entries . contains ( entry ) ) {
 RosterPacket packet = new RosterPacket ( ) ;
 <nb> public class RosterGroup {
 item . removeGroupName ( this . getName ( ) ) ;
 packet . addRosterItem ( item ) ;
 connection . sendPacket ( packet ) ;
 + SINGLE
 + entries . remove ( entry ) ;
 }
 }
 }

Modifies removeEntry to remove the entry immediately locally


<nb>
 package NAMESPACE ;

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

 - import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JettyThreadLimitTest
 QueuedThreadPool threadPool = ( QueuedThreadPool ) server . getJetty ( ) . getThreadPool ( ) ;
 threadPool . start ( ) ;
 CountDownLatch cb = loadThreadPool ( threadPool , configuredMaxThreads + NUMBER0 ) ;
 - Thread . sleep ( NUMBER1 ) ; SINGLE
 + Thread . sleep ( NUMBER1 ) ; SINGLE
 int threads = threadPool . getThreads ( ) ;
 assertEquals ( STRING0 , configuredMaxThreads , threads ) ;
 cb . countDown ( ) ;


<nb> public class ShardIndexingService extends AbstractIndexShardComponent {

 public void postCreateUnderLock ( Engine . Create create ) {
 for ( IndexingOperationListener listener : listeners ) {
 - listener . postCreateUnderLock ( create ) ;
 + try {
 + listener . postCreateUnderLock ( create ) ;
 + } catch ( Exception e ) {
 + logger . warn ( STRING0 , e , listener ) ;
 + }
 }
 }


<nb> import NAMESPACE ;

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

 public class CodecPrintWriter extends GrailsPrintWriter {


<nb> public interface DependencyHandler {
 Dependency gradleApi ( ) ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ contentview ( R . layout . main )
 public class AstroboyMasterConsole extends RoboActivity {

 SINGLE
 <nb> public class AstroboyMasterConsole extends RoboActivity {
 @ override
 public void onCreate ( Bundle savedInstanceState ) {
 super . onCreate ( savedInstanceState ) ; SINGLE
 - setContentView ( R . layout . main ) ;

 sayText . setOnEditorActionListener ( new OnEditorActionListener ( ) {
 public boolean onEditorAction ( TextView textView , int i , KeyEvent keyEvent ) {

Revert temporarily remove ContentView from demo it s causing problems with annotation processing not sure why yet


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ExtensionCompare extends ExtensionAdaptor implements SessionChanged
 cmpModel . openSession ( file , this ) ;

 SINGLE
 - Database db = new ParosDatabase ( ) ;
 + ParosDatabase db = new ParosDatabase ( ) ;
 + db . setDatabaseParam ( new DatabaseParam ( ) ) ;
 db . open ( file . getAbsolutePath ( ) ) ;

 Map < String , String > curMap = new HashMap < > ( ) ;


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FilePatternPackageSet extends PatternBasedPackageSet {
 }

 private boolean fileMatcher ( @ notnull VirtualFile virtualFile , ProjectFileIndex fileIndex , VirtualFile projectBaseDir ) {
 + if ( virtualFile instanceof VirtualFileWindow ) {
 + virtualFile = ( ( VirtualFileWindow ) virtualFile ) . getDelegate ( ) ;
 + }
 final String relativePath = getRelativePath ( virtualFile , fileIndex , true , projectBaseDir ) ;
 if ( relativePath == null ) {
 LOG . error ( STRING0 + virtualFile + STRING1 + projectBaseDir + STRING2 + fileIndex . getContentRootForFile ( virtualFile ) ) ;

filter injected files by containing physical files


<nb> public class StorageProxy implements StorageProxyMBean
 AbstractWriteResponseHandler responseHandler = new WriteResponseHandler ( endpoint , WriteType . COUNTER ) ;

 Tracing . trace ( STRING0 , endpoint ) ;
 - MessagingService . instance ( ) . sendRR ( cm . makeMutationMessage ( ) , endpoint , responseHandler ) ;
 + MessageOut < CounterMutation > message = cm . makeMutationMessage ( ) ;
 + int id = MessagingService . instance ( ) . addCallback ( responseHandler , message , endpoint , message . getTimeout ( ) , cm . consistency ( ) ) ;
 + MessagingService . instance ( ) . sendOneWay ( message , id , endpoint ) ;
 return responseHandler ;
 }
 }

add consistencyLevel to callback in mutateCounter


<nb> class MountService extends IMountService . Stub
 if ( st == VolumeState . NoMedia ) {
 state = Environment . MEDIA_REMOVED ;
 } else if ( st == VolumeState . Idle ) {
 - state = Environment . MEDIA_UNMOUNTED ;
 + state = null ;
 try {
 mountVolume ( path ) ;
 } catch ( Exception ex ) {
 <nb> class MountService extends IMountService . Stub
 throw new Exception ( String . format ( STRING0 , st ) ) ;
 }
 }
 - updatePublicVolumeState ( path , state ) ;
 + if ( state != null ) {
 + updatePublicVolumeState ( path , state ) ;
 + }
 } catch ( Exception e ) {
 Log . e ( TAG , STRING1 , e ) ;
 updatePublicVolumeState ( path , Environment . MEDIA_REMOVED ) ;

Don t update the storage status when we re unmounted


<nb> public class ConsoleViewImpl extends JPanel implements ConsoleView , ObservableCo
 int startOffset = NUMBER0 ;
 if ( ! tokens . isEmpty ( ) ) {
 final TokenInfo lastToken = tokens . get ( tokens . size ( ) - NUMBER1 ) ;
 - if ( lastToken . contentType == contentType ) {
 + if ( lastToken . contentType == contentType && info == lastToken . getHyperlinkInfo ( ) ) {
 lastToken . endOffset += length ; SINGLE
 return ;
 }

do not merge hyperlinks with any other types den


<nb> public class OTRv3OutgoingSessionSwitcher
 COMMENT
 private void updateEnableStatus ( )
 {
 - this . menu . setVisible ( this . menu . getItemCount ( ) > NUMBER0 ) ;
 + this . menu . setEnabled ( this . menu . getItemCount ( ) > NUMBER0 ) ;
 + this . menu . setVisible ( true ) ;
 }
 }

Always show OTR session switcher disable for single session


<nb> public class PeerGroup {
 }

 private synchronized void recalculateFastCatchupTime ( ) {
 + SINGLE
 + if ( chain . shouldVerifyTransactions ( ) ) return ;
 long earliestKeyTime = Long . MAX_VALUE ;
 for ( Wallet w : wallets ) {
 earliestKeyTime = Math . min ( earliestKeyTime , w . getEarliestKeyCreationTime ( ) ) ;

Don t recalculate fast catchup time to avoid hitting an assert


<nb> public class IdeaJdk extends JavaDependentSdkType implements JavaSdkType {
 ArrayList < VirtualFile > result = new ArrayList < VirtualFile > ( ) ;
 appendIdeaLibrary ( home , result , STRING0 ) ;
 appendIdeaLibrary ( plugins + STRING1 , result , STRING2 , STRING3 ) ;
 - appendIdeaLibrary ( plugins + STRING4 , result , STRING5 ) ;
 appendIdeaLibrary ( plugins + STRING6 , result , STRING7 ) ;
 appendIdeaLibrary ( plugins + STRING8 , result , STRING9 , STRING10 ) ;
 appendIdeaLibrary ( plugins + STRING11 , result , STRING12 ) ;


<nb> public final class NUIEditorScreen extends AbstractEditorScreen {
 JsonElement json = JsonTreeConverter . deserialize ( getEditor ( ) . getModel ( ) . getNode ( NUMBER0 ) . getRoot ( ) ) ;
 String jsonString = new GsonBuilder ( ) . setPrettyPrinting ( ) . create ( ) . toJson ( json ) ;
 outputStream . write ( jsonString . getBytes ( ) ) ;
 + setUnsavedChangesPresent ( false ) ;
 } catch ( IOException e ) {
 e . printStackTrace ( ) ;
 }
 <nb> public final class NUISkinEditorScreen extends AbstractEditorScreen {
 JsonElement json = JsonTreeConverter . deserialize ( getEditor ( ) . getModel ( ) . getNode ( NUMBER0 ) . getRoot ( ) ) ;
 String jsonString = new GsonBuilder ( ) . setPrettyPrinting ( ) . create ( ) . toJson ( json ) ;
 outputStream . write ( jsonString . getBytes ( ) ) ;
 + setUnsavedChangesPresent ( false ) ;
 } catch ( IOException e ) {
 e . printStackTrace ( ) ;
 }

Properly modify a state flag when changes are saved


<nb> public class ExecutorServiceTest extends HazelcastTestSupport {
 }
 e . put ( STRING0 , hazelcastInstance ) ;
 try {
 + SINGLE
 + if ( e . getFactory ( ) . getEngineName ( ) . toLowerCase ( ) . contains ( STRING1 ) ) {
 + e . eval ( STRING2 ) ;
 + }
 +
 e . eval ( STRING3 ) ;
 e . eval ( STRING4 ) ;
 e . eval ( STRING5 ) ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class CustomizersFactory extends AbstractFactory implements PostCompletionFactory {
 - @ override
 +
 public Object newInstance ( final FactoryBuilderSupport builder , final Object name , final Object value , final Map attributes ) throws InstantiationException , IllegalAccessException {
 return new LinkedList ( ) ;
 }
 <nb> public class CustomizersFactory extends AbstractFactory implements PostCompletio
 }
 }

 - @ override
 +
 @ suppresswarnings ( STRING0 )
 public Object postCompleteNode ( final FactoryBuilderSupport factory , final Object parent , final Object node ) {
 if ( node instanceof List ) {


<nb> public abstract class AbstractWeatherParser implements WeatherParser {
 precip . setRain ( null ) ;
 }

 - if ( precip . getSnow ( ) != null && precip . getSnow ( ) == FLOAT0 ) {
 - precip . setSnow ( null ) ;
 + if ( precip . getSnow ( ) == null ) {
 + precip . setSnow ( FLOAT0 ) ;
 }
 - if ( precip . getRain ( ) != null && precip . getRain ( ) == FLOAT0 ) {
 - precip . setRain ( null ) ;
 + if ( precip . getRain ( ) == null ) {
 + precip . setRain ( FLOAT0 ) ;
 }

 CommonIdHandler . getInstance ( ) . setCommonId ( weather ) ;


<nb> import NAMESPACE ;
 COMMENT
 public class Mongo {

 - SINGLE
 + SINGLE
 SINGLE
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + @ deprecated
 public static final int MAJOR_VERSION = NUMBER0 ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + @ deprecated
 public static final int MINOR_VERSION = NUMBER1 ;

 static int cleanerIntervalMS ;
 <nb> public class Mongo {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static int getMajorVersion ( ) {
 + return MAJOR_VERSION ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static int getMinorVersion ( ) {
 + return MINOR_VERSION ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Deprecated public static major minor version fields in favor of public static methods


<nb> public class OCommandCacheSoftRefs implements OCommandCache {
 private boolean updateCfgOnDisk ( ) throws IOException {
 File f = getConfigFile ( ) ;
 if ( f != null ) {
 - OLogManager . instance ( ) . info ( this , STRING0 , databaseName ) ;
 + OLogManager . instance ( ) . debug ( this , STRING0 , databaseName ) ;
 OIOUtils . writeFile ( f , configuration . toJSON ( STRING1 ) ) ;
 return true ;
 }
 <nb> public class OCommandCacheSoftRefs implements OCommandCache {
 protected void deleteFileIfExists ( ) {
 File f = getConfigFile ( ) ;
 if ( f != null ) {
 - OLogManager . instance ( ) . info ( this , STRING2 , databaseName ) ;
 + OLogManager . instance ( ) . debug ( this , STRING2 , databaseName ) ;
 f . delete ( ) ;
 }
 }

changed logging messages of command cache


<nb> public final class ApduServiceInfo implements Parcelable {
 return mRequiresDeviceUnlock ;
 }

 + public String getDescription ( ) {
 + return mDescription ;
 + }
 +
 public CharSequence loadLabel ( PackageManager pm ) {
 return mService . loadLabel ( pm ) ;
 }
 <nb> public final class ApduServiceInfo implements Parcelable {
 Log . e ( TAG , STRING0 + aid + STRING1 ) ;
 return false ;
 }
 + SINGLE
 + if ( aidLength < NUMBER0 ) {
 + Log . e ( TAG , STRING0 + aid + STRING2 ) ;
 + return false ;
 + }
 return true ;
 }


<nb> public class DirectedMultiGraph < V , E > implements Graph < V , E > COMMENT {
 return true ;
 }

 + COMMENT
 private Map < V , List < E > > getOutgoingEdgesMap ( V v ) {
 Map < V , List < E > > map = outgoingEdges . get ( v ) ;
 if ( map == null ) {
 <nb> public class DirectedMultiGraph < V , E > implements Graph < V , E > COMMENT {
 return map ;
 }

 + COMMENT
 private Map < V , List < E > > getIncomingEdgesMap ( V v ) {
 Map < V , List < E > > map = incomingEdges . get ( v ) ;
 if ( map == null ) {


<nb> public class CommandLineInterfaceDriver {

 public static void main ( String [ ] args ) {

 - if ( args . length < NUMBER0 )
 - printUsage ( ) ;
 -
 -
 + if ( args . length < NUMBER0 ) {
 + System . out . println ( args . length ) ;
 + System . out . println ( STRING0 ) ;
 + System . out . println ( STRING1 . equals ( args [ NUMBER1 ] ) ) ;
 + System . out . println ( STRING2 ) ;
 + printUsage ( ) ;
 +
 + }
 else if ( STRING1 . equals ( args [ NUMBER1 ] ) ) {

 String [ ] vec_params = Arrays . copyOfRange ( args , NUMBER0 , args . length ) ;
 <nb> public class CommandLineInterfaceDriver {
 log . info ( STRING3 ) ;
 }
 else
 -
 + System . out . println ( STRING4 ) ;
 printUsage ( ) ;

Adds debug print statements to CLI driver