<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class Actor < Message , V > implements SuspendableCallable < V > , Joina
 return ref ( ) ;
 }

 + public ActorRef < Message > spawnThread ( ) {
 + new Thread ( Strand . toRunnable ( this ) , getName ( ) ) . start ( ) ;
 + return ref ( ) ;
 + }
 +
 public static < T extends Actor < Message , V > , Message , V > T newActor ( Class < T > clazz , Object . . . params ) {
 return newActor ( ActorSpec . of ( clazz , params ) ) ;
 }


<nb> public class HashSessionManager extends AbstractSessionManager
 __log . debug ( error ) ;
 }
 }
 - else
 + else if ( _savePeriodMs == NUMBER0 )
 {
 - SINGLE
 + SINGLE
 file . delete ( ) ;
 }
 }

keep restored file if saving periodically


<nb> public class CheckerTest {
 assertEquals ( counter , NUMBER0 ) ; SINGLE
 }

 + @ suppresswarnings ( STRING0 )
 @ test
 public void testSetters ( ) throws Exception {
 SINGLE
 <nb> public class ConfigurationLoaderTest {
 @ test
 public void testLoadConfiguration_Deprecated ( ) throws CheckstyleException {
 try {
 + @ suppresswarnings ( STRING0 )
 final DefaultConfiguration config =
 ( DefaultConfiguration ) ConfigurationLoader . loadConfiguration (
 new FileInputStream (
 <nb> import NAMESPACE ;
 public class FileContentsTest {

 @ test
 + @ suppresswarnings ( STRING0 )
 public void testDeprecatedCtor ( ) {
 SINGLE
 FileContents o = new FileContents ( STRING1 , new String [ ] { STRING2 , STRING3 } ) ;

Suppress warnings for UTs testing deprecated code


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

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

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


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ suppresswarnings ( STRING0 )
 public class ProblematicWhitespaceInspectionTest extends LightInspectionTestCase {

 public void testHtml ( ) {
 <nb> public class ProblematicWhitespaceInspectionTest extends LightInspectionTestCase
 final CommonCodeStyleSettings . IndentOptions options = settings . getIndentOptions ( JavaFileType . INSTANCE ) ;
 options . USE_TAB_CHARACTER = true ;
 options . SMART_TABS = true ;
 - doTest ( STRING1 +
 + doTest ( STRING2 +
 STRING3 +
 STRING4 +
 STRING5 ) ;


<nb> public class GradleContentRoot extends AbstractGradleEntity {
 COMMENT
 COMMENT
 public void storePath ( @ notnull SourceType type , @ notnull String path ) throws IllegalArgumentException {
 - if ( ! FileUtil . isAncestor ( new File ( getRootPath ( ) ) , new File ( path ) , false ) ) {
 + if ( FileUtil . isAncestor ( new File ( getRootPath ( ) ) , new File ( path ) , false ) ) {
 + myData . get ( type ) . add ( GradleUtil . toCanonicalPath ( path ) ) ;
 + return ;
 + }
 + if ( type != SourceType . EXCLUDED ) { SINGLE
 + SINGLE
 throw new IllegalArgumentException ( String . format (
 STRING0 ,
 type , getRootPath ( ) , new File ( path ) . getAbsolutePath ( )
 ) ) ;
 }
 - myData . get ( type ) . add ( GradleUtil . toCanonicalPath ( path ) ) ;
 }

 @ notnull

Can t import a project which uses external build dir


<nb> public class DeterminePartitionsJob implements Jobby
 log . info ( STRING0 , HadoopDruidIndexerConfig . jsonMapper . writeValueAsString ( shardSpec ) ) ;
 }

 - System . out . println ( HadoopDruidIndexerConfig . jsonMapper . writeValueAsString ( chosenShardSpecs ) ) ;
 -
 try {
 HadoopDruidIndexerConfig . jsonMapper
 . writerWithType (


<nb> public class DownloadFileHelper {
 while ( ( entry = zipIn . getNextEntry ( ) ) != null ) {
 int size = ( int ) entry . getSize ( ) ;
 progress . startTask ( ctx . getString ( R . string . unzipping_file ) , size ) ;
 - if ( entry . isDirectory ( ) || entry . getName ( ) . endsWith ( IndexConstants . GEN_LOG_INDEX_EXT ) ) {
 + if ( entry . isDirectory ( ) || entry . getName ( ) . endsWith ( IndexConstants . GEN_LOG_EXT ) ) {
 continue ;
 }
 File fs ;


<nb> public class Notification implements Parcelable
 sb . append ( this . vibrate [ i ] ) ;
 sb . append ( STRING0 ) ;
 }
 - sb . append ( this . vibrate [ N ] ) ;
 + if ( N != - NUMBER0 ) {
 + sb . append ( this . vibrate [ N ] ) ;
 + }
 sb . append ( STRING1 ) ;
 } else if ( ( this . defaults & DEFAULT_VIBRATE ) != NUMBER1 ) {
 sb . append ( STRING2 ) ;

Prevent IndexOutOfBoundsException on toString if vibrate array is empty non null


<nb> public class ViewUtils {
 }
 } ;

 - SINGLE
 - a . setDuration ( ( int ) ( ( newRowsCount > oldRowsCount ? targetHeight : initialHeight / Screen . dp ( NUMBER0 ) ) ) ) ;
 + a . setDuration ( ( int ) ( newRowsCount > oldRowsCount ? targetHeight : initialHeight / Screen . dp ( NUMBER0 ) ) * NUMBER1 ) ;
 a . setInterpolator ( MaterialInterpolator . getInstance ( ) ) ;
 a . setFillAfter ( true ) ;
 v . startAnimation ( a ) ;


<nb>
 COMMENT
 package NAMESPACE ;

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

 <nb> import NAMESPACE ;
 public class VirtualDomParentStrategy implements DomParentStrategy {
 private final DomInvocationHandler myParentHandler ;
 private long myModCount ;
 - private final PsiModificationTracker myModificationTracker ;
 + private final PsiFile myModificationTracker ;

 public VirtualDomParentStrategy ( @ notnull final DomInvocationHandler parentHandler ) {
 myParentHandler = parentHandler ;
 - myModificationTracker = PsiManager . getInstance ( myParentHandler . getManager ( ) . getProject ( ) ) . getModificationTracker ( ) ;
 + myModificationTracker = parentHandler . getFile ( ) ;
 myModCount = getModCount ( ) ;
 }

 private long getModCount ( ) {
 - return myModificationTracker . getOutOfCodeBlockModificationCount ( ) ;
 + return myModificationTracker . getModificationStamp ( ) ;
 }

 @ notnull


<nb> public final class Response {
 }
 m . appendTail ( sb ) ;
 if ( hasNonPrintable ) {
 - LOG . warn ( STRING0 ) ;
 + LOG . warn ( STRING1 + url ) ;
 }
 return sb . toString ( ) ;
 }

Log the unsanitized redirect URL to facilitate abuse investigations


<nb> public class ArtifactBuildTargetScopeProvider extends BuildTargetScopeProvider {
 if ( ! artifacts . isEmpty ( ) ) {
 TargetTypeBuildScope . Builder builder = TargetTypeBuildScope . newBuilder ( )
 . setTypeId ( ArtifactBuildTargetType . INSTANCE . getTypeId ( ) )
 - . setForceBuild ( ArtifactCompileScope . isArtifactRebuildForced ( baseScope ) ) ;
 + . setForceBuild ( forceBuild || ArtifactCompileScope . isArtifactRebuildForced ( baseScope ) ) ;
 for ( Artifact artifact : artifacts ) {
 builder . addTargetId ( artifact . getName ( ) ) ;
 }

rebuild artifact with build on make option on project rebuild


<nb> final class HttpReadListener implements ChannelListener < StreamSourceChannel > , Ex
 responseChannel . resumeWrites ( ) ;
 }
 } catch ( IOException e ) {
 - UndertowLogger . REQUEST_IO_LOGGER . ioException ( e ) ;
 + UndertowLogger . REQUEST_IO_LOGGER . debug ( STRING0 , e ) ;
 SINGLE
 IoUtils . safeClose ( channel ) ;
 return ;


<nb> public class GetImportingConfigurationCommand extends Command {
 throws ServletException , IOException {

 Writer w = response . getWriter ( ) ;
 + response . setContentType ( STRING0 ) ;
 JSONWriter writer = new JSONWriter ( w ) ;
 try {
 writer . object ( ) ;


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

 import NAMESPACE ;

 <nb> public abstract class FindUsagesHandler {
 TextOccurrencesUtil . processTextOccurences ( element , stringToSearch , searchScope , processor , factory ) ;
 }

 + @ nullable
 protected String getStringToSearch ( final PsiElement element ) {
 if ( element instanceof PsiNamedElement ) {
 return ( ( PsiNamedElement ) element ) . getName ( ) ;


<nb> public class NumberUtils {

 public static short decodeShort ( byte lsb , byte msb ) {
 return ( short )
 - ( lsb |
 + ( ( lsb & NUMBER0 ) |
 ( msb < < NUMBER1 )
 ) ;
 }
 <nb> public class NumberUtils {
 }

 public static int decodeInt ( byte lsb , byte mlsb , byte mmsb , byte msb ) {
 - return lsb |
 - ( mlsb < < NUMBER1 ) |
 - ( mmsb < < NUMBER2 ) |
 + return ( lsb & NUMBER0 ) |
 + ( ( mlsb & NUMBER0 ) < < NUMBER1 ) |
 + ( ( mmsb & NUMBER0 ) < < NUMBER2 ) |
 ( msb < < NUMBER3 ) ;
 }

Fixed issue decoding signed ints and shorts


<nb> public class PyQualifiedReference extends PyReferenceImpl {
 @ notnull
 @ override
 public Object [ ] getVariants ( ) {
 - PyExpression qualifier = CompletionUtil . getOriginalOrSelf ( myElement . getQualifier ( ) ) ;
 - assert qualifier != null ;
 + PyExpression qualifier = myElement . getQualifier ( ) ;
 + if ( qualifier != null ) {
 + qualifier = CompletionUtil . getOriginalOrSelf ( qualifier ) ;
 + }
 + if ( qualifier == null ) {
 + return EMPTY_ARRAY ;
 + }
 final PyQualifiedExpression element = CompletionUtil . getOriginalOrSelf ( myElement ) ;

 PyType qualifierType = TypeEvalContext . slow ( ) . getType ( qualifier ) ;

Fixed NPE in PyQualifiedReference getVariants


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class ConnectionWizard extends Wizard implements INewWizard {
 session . close ( ) ;
 }
 }
 - try {
 - monitor . subTask ( CoreMessages . dialog_connection_wizard_start_connection_monitor_close ) ;
 - container . disconnect ( monitor , false ) ;
 - } catch ( DBException e ) {
 - SINGLE
 - log . error ( e ) ;
 - } finally {
 - monitor . done ( ) ;
 - }
 + new DisconnectJob ( container ) . schedule ( ) ;
 monitor . subTask ( CoreMessages . dialog_connection_wizard_start_connection_monitor_success ) ;
 } catch ( DBException ex ) {
 connectError = ex ;
 }
 + monitor . done ( ) ;
 return Status . OK_STATUS ;
 }
 }


<nb> abstract class OptimizingSearchHelperBase implements OptimizingSearchHelper {
 javaLexer = LanguageParserDefinitions . INSTANCE . forLanguage ( JavaLanguage . INSTANCE ) . createLexer ( context . getProject ( ) ) ;
 }
 javaLexer . start ( refname ) ;
 - isJavaReservedWord = ElementType . KEYWORD_BIT_SET . contains ( javaLexer . getTokenType ( ) ) ;
 + isJavaReservedWord = ElementType . KEYWORD_BIT_SET . contains ( javaLexer . getTokenType ( ) ) ||
 + ElementType . LITERAL_BIT_SET . contains ( javaLexer . getTokenType ( ) ) ;
 }

 if ( isJavaReservedWord ) {
 <nb> abstract class OptimizingSearchHelperBase implements OptimizingSearchHelper {
 public boolean isScannedSomething ( ) {
 return scanned . size ( ) > NUMBER0 || scannedComments . size ( ) > NUMBER0 || scannedLiterals . size ( ) > NUMBER0 ;
 }
 -
 }

Fix literal keywords highlighting cleanup


<nb> public class WifiEnterpriseConfig implements Parcelable {
 for ( String key : source . mFields . keySet ( ) ) {
 mFields . put ( key , source . mFields . get ( key ) ) ;
 }
 + mCaCerts = source . mCaCerts ;
 + mClientPrivateKey = source . mClientPrivateKey ;
 + mClientCertificate = source . mClientCertificate ;
 mEapMethod = source . mEapMethod ;
 mPhase2Method = source . mPhase2Method ;
 }


<nb> public interface XMPPConnection {
 COMMENT
 COMMENT
 COMMENT
 + SINGLE
 @ deprecated
 public void sendPacket ( Stanza packet ) throws NotConnectedException , InterruptedException ;

 <nb> public interface XMPPConnection {
 COMMENT
 COMMENT
 COMMENT
 + SINGLE
 @ deprecated
 public void addPacketListener ( StanzaListener packetListener , StanzaFilter packetFilter ) ;

 <nb> public interface XMPPConnection {
 COMMENT
 COMMENT
 COMMENT
 + SINGLE
 @ deprecated
 public boolean removePacketListener ( StanzaListener packetListener ) ;

Add TODOs about when to remove deprecated methods


<nb> public class WifiService extends IWifiManager . Stub {
 String value = field . value ( ) ;
 if ( value != null ) {
 if ( field != config . eap ) {
 - value = convertToQuotedString ( value ) ;
 + value = ( value . length ( ) == NUMBER0 ) ? STRING0 : convertToQuotedString ( value ) ;
 }
 if ( ! WifiNative . setNetworkVariableCommand (
 netId ,

allow EAP variables to be unset using empty strings


<nb> public class Mongo {
 @ deprecated
 public static final int MINOR_VERSION = NUMBER0 ;

 - < < < < < < < HEAD
 private static final String FULL_VERSION = STRING0 ;
 - == == == =
 - private static final String FULL_VERSION = STRING1 ;
 - > > > > > > > JAVA - NUMBER1

 static int cleanerIntervalMS ;
 static {


<nb> public class SnapshotDaoTest extends AbstractDaoTestCase {
 session . commit ( ) ;

 assertThat ( dto . getId ( ) ) . isNotNull ( ) ;
 - checkTables ( STRING0 , STRING1 ) ;
 + checkTables ( STRING0 , new String [ ] { STRING2 } , STRING1 ) ;
 }

 @ test


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PullToRefreshHeaderTransformer extends AbsDefaultHeaderTransformer
 }
 }

 + @ targetapi ( Build . VERSION_CODES . HONEYCOMB )
 private boolean showHeaderViewICSAndPostICS ( ) {
 boolean changeVis = mHeaderView . getVisibility ( ) != View . VISIBLE ;
 mContentLayout . setVisibility ( View . VISIBLE ) ;

add an annotation to prevent a lint error


<nb> public class StatementResource
 exchangeClient . close ( ) ;

 SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 columns = ImmutableList . of ( new Column ( STRING0 , STRING1 ) ) ;
 data = ImmutableSet . < List < Object > > of ( ImmutableList . < Object > of ( STRING2 ) ) ;
 }


<nb> public class

 case OVERDUE_CHANGE :
 OverdueChangeInternalEvent realEventOC = ( OverdueChangeInternalEvent ) event ;
 - SINGLE
 - objectType = ObjectType . BUNDLE ;
 + objectType = ObjectType . ACCOUNT ;
 objectId = realEventOC . getOverdueObjectId ( ) ;
 eventBusType = ExtBusEventType . OVERDUE_CHANGE ;
 break ;


<nb> public class CarrierConfigManager {
 COMMENT
 public static final String KEY_EDITABLE_WFC_MODE_BOOL = STRING0 ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String
 + KEY_CONFIG_WIFI_DISABLE_IN_ECBM = STRING1 ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class CarrierConfigManager {
 sDefaults . putStringArray ( KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY , null ) ;
 sDefaults . putInt ( KEY_WFC_SPN_FORMAT_IDX_INT , NUMBER0 ) ;
 sDefaults . putInt ( KEY_WFC_DATA_SPN_FORMAT_IDX_INT , NUMBER0 ) ;
 + sDefaults . putBoolean ( KEY_CONFIG_WIFI_DISABLE_IN_ECBM , false ) ;

 SINGLE
 sDefaults . putBoolean ( KEY_MMS_ALIAS_ENABLED_BOOL , false ) ;

Introduce a configuration parameter to disable WiFi in ECBM


<nb> public class IndexLookupTests extends ElasticsearchIntegrationTest {
 STRING0 + e . getDetailedMessage ( ) ,
 e . getDetailedMessage ( )
 . indexOf (
 - STRING1 ) ,
 + STRING2 ) ,
 Matchers . greaterThan ( - NUMBER0 ) ) ;
 }

TEST Fix IndexLookupTests testCallWithDifferentFlagsFails


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DefaultAnnotationProcessor implements AnnotationProcessor {
 }

 framework . addAtmosphereHandler ( a . path ( ) , handler , l ) ;
 - framework . setBroadcasterCacheClassName ( EventCacheBroadcasterCache . class . getName ( ) ) ;
 + framework . setBroadcasterCacheClassName ( UUIDBroadcasterCache . class . getName ( ) ) ;
 } catch ( Throwable e ) {
 logger . warn ( STRING0 , e ) ;
 }


<nb> public class MaterialDialog {
 mAlertDialog . show ( ) ;

 mAlertDialog . getWindow ( ) . clearFlags ( WindowManager . LayoutParams . FLAG_NOT_FOCUSABLE | WindowManager . LayoutParams . FLAG_ALT_FOCUSABLE_IM ) ;
 - mAlertDialog . getWindow ( ) . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_STATE_VISIBLE ) ;
 + mAlertDialog . getWindow ( ) . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_MASK_STATE ) ;

 mAlertDialogWindow = mAlertDialog . getWindow ( ) ;
 View contv = LayoutInflater . from ( mContext ) . inflate ( R . layout . layout_materialdialog , null ) ;

fixed the problem of soft keyboard repeat display


<nb> class RecentTasks extends ArrayList < TaskRecord > {
 final boolean sameActivity = task . realActivity != null
 && tr . realActivity != null
 && task . realActivity . equals ( tr . realActivity ) ;
 - if ( ! sameActivity ) {
 + SINGLE
 + SINGLE
 + if ( ! sameActivity || ! sameIntent ) {
 continue ;
 - }
 - if ( maxRecents > NUMBER0 && ! doTrim ) {
 + SINGLE
 + } else if ( maxRecents > NUMBER0 && ! doTrim ) {
 -- maxRecents ;
 continue ;
 }

Prevent early recent trimming of distinct documents


<nb> public class SignInActivity extends FragmentActivity {
 setContentView ( R . layout . welcome_activity ) ;

 mSignInFragment = getSignInFragment ( ) ;
 - FragmentManager fragmentManager = getSupportFragmentManager ( ) ;
 - FragmentTransaction fragmentTransaction = fragmentManager . beginTransaction ( ) ;
 + FragmentTransaction fragmentTransaction = getSupportFragmentManager ( ) . beginTransaction ( ) ;
 fragmentTransaction . replace ( R . id . fragment_container , mSignInFragment ) ;
 - fragmentTransaction . addToBackStack ( STRING0 ) ;
 + fragmentTransaction . addToBackStack ( null ) ;
 fragmentTransaction . commit ( ) ;

 actionMode ( getIntent ( ) . getExtras ( ) ) ;


<nb> public class OpenJDKRule implements MethodRule {

 public OpenJDKRule ( ) {
 System . out . println ( System . getProperty ( JAVA_VM_NAME_PROPERTY ) ) ;
 - System . out . println ( new File ( System . getProperty ( JAVA_HOME_PROPERTY ) . replace ( STRING0 , STRING1 ) + TOOLS_JAR_LOCATION ) . isFile ( ) ) ;
 + System . out . println ( new File ( System . getProperty ( JAVA_HOME_PROPERTY ) . replace ( STRING0 , STRING1 ) + TOOLS_JAR_LOCATION ) . canRead ( ) ) ;
 openJDK = System . getProperty ( JAVA_VM_NAME_PROPERTY ) . contains ( HOT_SPOT )
 && new File ( System . getProperty ( JAVA_HOME_PROPERTY ) . replace ( STRING0 , STRING1 ) + TOOLS_JAR_LOCATION ) . isFile ( ) ;
 }


<nb> public class IndicesStats extends BroadcastOperationResponse implements ToXConte
 builder . endObject ( ) ;

 builder . startObject ( STRING0 ) ;
 - primaries ( ) . toXContent ( builder , params ) ;
 + total ( ) . toXContent ( builder , params ) ;
 builder . endObject ( ) ;

 builder . startObject ( Fields . INDICES ) ;


<nb> public class Process {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Process {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> class ZygoteConnection {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> class ZygoteConnection {
 if ( ! ( peerUid == NUMBER0 || peerUid == Process . SYSTEM_UID ) ) {
 SINGLE
 throw new ZygoteSecurityException (
 - STRING0 ) ;
 + STRING1 ) ;
 }

 boolean allowed = SELinux . checkSELinuxAccess ( peerSecurityContext ,
 <nb> class ZygoteConnection {
 STRING2 ) ;
 if ( ! allowed ) {
 throw new ZygoteSecurityException (
 - STRING3 ) ;
 + STRING4 ) ;
 }

 return ;


<nb> public class Solo {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> class TextEnterer {

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Removed mention of NoteField in enterText javadoc because there is no NoteField class in Android


<nb> public abstract class ImmutableBiMap < K , V > extends ImmutableMap < K , V >
 }
 }

 - private static final Entry < ? , ? > [ ] EMPTY_ENTRY_ARRAY = new Entry < ? , ? > [ NUMBER0 ] ;
 -
 ImmutableBiMap ( ) { }

 COMMENT
 <nb> public abstract class ImmutableSortedMap < K , V >
 SINGLE
 SINGLE
 @ suppresswarnings ( STRING0 )
 - Entry < K , V > [ ] entryArray = ( Entry [ ] ) entries . toArray ( ImmutableMap . EMPTY_ENTRY_ARRAY ) ;
 + Entry < K , V > [ ] entryArray = ( Entry [ ] ) entries . toArray ( EMPTY_ENTRY_ARRAY ) ;
 return fromEntries ( comparator , sameComparator , entryArray , entryArray . length ) ;
 }

Reuse ImmutableMap EMPTY_ENTRY_ARRAY in other ImmutableMap types


<nb> public class DBMaker < DBMakerT extends DBMaker < DBMakerT > > {
 return getThis ( ) ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT

 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;

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


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;

 @ storabletype ( idFieldName = User . COLUMN_ID , tableName = User . TABLE_NAME )
 public class User implements BambooStorableType {
 <nb>
 - package NAMESPACE ;
 + package NAMESPACE ;

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

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

Moved StorableType to bamboostorage annotation package


<nb> public abstract class DocDecompressor {
 loop:
 while ( ( sourceIndex < compressedSize ) && ( targetIndex < maxUncompressedSize ) ) {
 token = sourceBuffer [ sourceIndex ++ ] ;
 - switch ( TOKEN_CODE [ token ] ) {
 + switch ( TOKEN_CODE [ token & NUMBER0 ] ) {
 case NUMBER1 :
 targetBuffer [ targetIndex ++ ] = token ;
 break ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Application {
 . roles ( STRING0 ) ;
 SINGLE
 }
 +
 + SINGLE
 + @ bean
 + @ lazy
 + @ scope ( proxyMode = ScopedProxyMode . TARGET_CLASS )
 + public AuthenticationManager authenticationManager ( AuthenticationManagerBuilder auth ) {
 + return auth . getOrBuild ( ) ;
 + }

 }

Switch off Boot default authentication manager


<nb> import NAMESPACE ;

 @ path ( STRING0 )
 public class ApiListingResource {
 - static boolean initialized = false ;
 + boolean initialized = false ;
 Logger LOGGER = LoggerFactory . getLogger ( ApiListingResource . class ) ;
 @ context
 ServletContext context ;

Removed static modifier from initialized field in ApiListingResource


<nb> public class SvnVcs extends AbstractVcs < CommittedChangeList > {
 }

 static {
 - SVNJNAUtil . setJNAEnabled ( true ) ;
 - SvnHttpAuthMethodsDefaultChecker . check ( ) ;
 -
 SINGLE
 final JavaSVNDebugLogger logger = new JavaSVNDebugLogger ( Boolean . getBoolean ( LOG_PARAMETER_NAME ) , LOG ) ;
 SVNDebugLog . setDefaultLog ( logger ) ;
 +
 + SVNJNAUtil . setJNAEnabled ( true ) ;
 + SvnHttpAuthMethodsDefaultChecker . check ( ) ;
 +
 SVNAdminAreaFactory . setSelector ( new SvnFormatSelector ( ) ) ;

 DAVRepositoryFactory . setup ( ) ;


<nb> public class ThriftToPig < M extends TBase < ? , ? > > {
 + STRING0 ) ;
 }
 } else if ( fs . type == DataType . MAP ) {
 - sb . append ( DataType . findTypeName ( fs . type ) + STRING1 ) ;
 + sb . append ( DataType . findTypeName ( fs . type ) + STRING2 ) ;
 + if ( fs . schema != null )
 + stringifySchema ( sb , fs . schema , fs . type , prefix ) ;
 + sb . append ( STRING3 ) ;
 } else {
 sb . append ( DataType . findTypeName ( fs . type ) ) ;
 }

update stringifySchema to print types for maps


<nb> public class DenseVector extends AbstractVector {

 @ override
 public double getLengthSquared ( ) {
 - if ( lengthSquared < FLOAT0 ) {
 + if ( lengthSquared >= FLOAT0 ) {
 return lengthSquared ;
 }

 <nb> public class SparseVector extends AbstractVector {

 @ override
 public double getLengthSquared ( ) {
 - if ( lengthSquared < FLOAT0 ) {
 + if ( lengthSquared >= FLOAT0 ) {
 return lengthSquared ;
 }
 double result = FLOAT0 ;
 <nb> public class TestDenseVector extends TestCase {

 public void testAsFormatString ( ) {
 String formatString = test . asFormatString ( ) ;
 - assertEquals (
 - STRING0 ,
 - STRING1 ,
 - formatString ) ;
 + Vector vec = AbstractVector . decodeVector ( formatString ) ;
 + assertEquals ( vec , test ) ;
 }

 public void testCardinality ( ) {


<nb> public class BufferedRandomAccessFile extends RandomAccessFile implements FileDa
 COMMENT
 public BufferedRandomAccessFile ( String name , String mode ) throws IOException
 {
 - this ( new File ( name ) , mode , NUMBER0 ) ;
 + this ( new File ( name ) , mode , DEFAULT_BUFFER_SIZE ) ;
 }

 public BufferedRandomAccessFile ( String name , String mode , int bufferSize ) throws IOException
 <nb> public class BufferedRandomAccessFile extends RandomAccessFile implements FileDa
 COMMENT
 public BufferedRandomAccessFile ( File file , String mode ) throws IOException
 {
 - this ( file , mode , NUMBER0 ) ;
 + this ( file , mode , DEFAULT_BUFFER_SIZE ) ;
 }

 public BufferedRandomAccessFile ( File file , String mode , int bufferSize ) throws IOException
 <nb> public class BufferedRandomAccessFile extends RandomAccessFile implements FileDa
 filePath = file . getAbsolutePath ( ) ;

 SINGLE
 + if ( bufferSize <= NUMBER0 )
 + throw new IllegalArgumentException ( STRING0 ) ;
 buffer = ByteBuffer . allocate ( bufferSize ) ;

 SINGLE


<nb> public final class LeaderSelectorClient implements Closeable , LeaderSelectorList
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 public String getName ( ) {
 return mName ;
 }
 <nb> public final class LeaderSelectorClient implements Closeable , LeaderSelectorList
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class LeaderSelectorClient implements Closeable , LeaderSelectorList
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void start ( ) throws IOException {
 mLeaderSelector . start ( ) ;


<nb> public class TransportSQLAction extends TransportAction < SQLRequest , SQLResponse >
 return new DuplicateKeyException (
 STRING0 , e ) ;
 } else if ( e instanceof RemoteTransportException && e . getCause ( ) instanceof IndexAlreadyExistsException ) {
 - return new TableAlreadyExistsException (
 - STRING1 , e . getCause ( ) ) ;
 + return new TableAlreadyExistsException ( e . getCause ( ) ) ;
 } else if ( e instanceof ReduceSearchPhaseException && e . getCause ( ) instanceof VersionConflictException ) {
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;

 public class TableAlreadyExistsException extends CrateException {

 - public TableAlreadyExistsException ( String msg , Throwable e ) {
 - super ( msg , e ) ;
 + public TableAlreadyExistsException ( Throwable e ) {
 + super ( STRING1 , e ) ;
 }

 @ override


<nb> public abstract class DragSortCursorAdapter extends CursorAdapter implements Dra
 resetMappings ( ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + public void reset ( ) {
 + resetMappings ( ) ;
 + notifyDataSetChanged ( ) ;
 + }
 +
 private void resetMappings ( ) {
 mListMapping . clear ( ) ;
 mRemovedCursorPositions . clear ( ) ;


<nb> public class Nio2Endpoint extends AbstractJsseEndpoint < Nio2Channel > {
 if ( log . isDebugEnabled ( ) ) {
 log . debug ( STRING0 + this + STRING1 + nRead + STRING2 ) ;
 }
 - return nRead ;
 + return ( nRead > len ) ? len : nRead ;
 }
 }

Fix incorrect return value although it doesn t seem to have any real consequences


<nb> public class TrackableSession {
 COMMENT
 COMMENT
 public void track ( TrackableResource < ? extends Trackable > trackableResource ) {
 - logger . info ( STRING0 , trackableResource . trackingID ( ) ) ;
 + logger . debug ( STRING0 , trackableResource . trackingID ( ) ) ;
 factoryCache . put ( trackableResource . trackingID ( ) , trackableResource ) ;
 CountDownLatch latch = pendingLock . remove ( trackableResource . trackingID ( ) ) ;
 if ( latch != null ) {
 <nb> public class TrackableSession {
 COMMENT
 COMMENT
 public TrackableResource < ? extends Trackable > lookupAndWait ( String trackingID ) {
 - logger . info ( STRING1 , trackingID ) ;
 + logger . debug ( STRING1 , trackingID ) ;

 TrackableResource < ? extends Trackable > r = factoryCache . get ( trackingID ) ;
 if ( r == null ) {


<nb> public class Contacts {
 ContactsContract . Intents . EXTRA_CREATE_DESCRIPTION ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String EXTRA_TARGET_RECT = ContactsContract . Intents . EXTRA_TARGET_RECT ;
 +
 + COMMENT
 COMMENT
 COMMENT
 public static final class UI {
 <nb> public final class ContactsContract {
 STRING0 ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String EXTRA_TARGET_RECT = STRING1 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 public static final class UI {

Added an extra for sharing a target rectangle extra


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 COMMENT
 Add other win32 interface mappings as needed .
 COMMENT


<nb>
 package NAMESPACE ;

 COMMENT
 - public interface TokenStream extends ObjectStream {
 + public interface TokenStream extends ObjectStream < Token > {
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 + @ override
 public Token LT ( int k ) ;

 COMMENT
 <nb> public interface TokenStream extends ObjectStream {
 COMMENT
 COMMENT
 COMMENT
 + @ override
 public Token get ( int i ) ;

 COMMENT

TokenStream extends ObjectStream Token specified Token as the type parameter


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public abstract class Closure extends GroovyObjectSupport implements Cloneable {
 + public abstract class Closure extends GroovyObjectSupport implements Cloneable , Runnable {

 private static final Object noParameters [ ] = new Object [ ] { null } ;

 <nb> public abstract class Closure extends GroovyObjectSupport implements Cloneable {
 return new WritableClosure ( this ) ;
 }

 + public void run ( ) {
 + call ( ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class VolleyStreamFetcher implements ResourceFetcher < InputStream > {
 VolleyRequestFuture < InputStream > localFuture = requestFuture ;
 if ( localFuture != null ) {
 localFuture . cancel ( true ) ;
 - requestFuture = null ;
 }
 }


<nb> public class HdfsFetcher implements FileFetcher {

 public static final String FS_DEFAULT_NAME = STRING0 ;

 + private static Boolean allowFetchOfFiles = false ;
 +
 COMMENT
 public HdfsFetcher ( VoldemortConfig config ) {
 this ( config , null ) ;
 <nb> public class HdfsFetcher implements FileFetcher {
 return true ;
 }
 }
 - }
 + } else if ( allowFetchOfFiles ) {
 + Utils . mkdirs ( dest ) ;
 + File copyLocation = new File ( dest , source . getName ( ) ) ;
 + copyFileWithCheckSum ( fs , source , copyLocation , stats , CheckSumType . NONE ) ;
 + return true ;
 + }
 logger . error ( STRING1 + source . toString ( ) + STRING2 ) ;
 return false ;

 <nb> public class HdfsFetcher implements FileFetcher {
 hadoopPath = args [ NUMBER0 ] ;
 }

 + SINGLE
 + allowFetchOfFiles = true ;
 +
 long maxBytesPerSec = NUMBER1 * NUMBER1 * NUMBER1 ;
 Path p = new Path ( url ) ;

Allow HdfsFetcher to fetch individual files


<nb> public class TabBitextReader implements BitextReader {
 return null ;
 }
 final String [ ] fields = line . split ( STRING0 ) ;
 + if ( fields . length < NUMBER0 ) {
 + throw new RuntimeException ( STRING1 + line ) ;
 + }
 return new StringPair ( fields [ NUMBER1 ] , fields [ NUMBER2 ] ) ;
 }


<nb> public class AppCompiler {
 COMMENT
 COMMENT
 private static final String [ ] ROOT_CLASS_PATTERNS = {
 - STRING0 ,
 - STRING1
 + STRING0
 } ;
 COMMENT
 COMMENT
 <nb> public class AppCompiler {
 COMMENT
 COMMENT
 private static final String [ ] ROOT_CLASSES = {
 + STRING2 ,
 STRING3 ,
 STRING4 ,
 STRING5 ,


<nb> public class ExtensionManager {
 COMMENT
 public void setDefaultEnabledExtensions ( ) {
 List < ComponentName > defaultExtensions = new ArrayList < > ( ) ;
 - defaultExtensions . add ( new ComponentName ( mContext , AmazonExtension . class ) ) ;
 + defaultExtensions . add ( new ComponentName ( mContext , YouTubeExtension . class ) ) ;
 setEnabledExtensions ( defaultExtensions ) ;
 }

Make YouTube extension the default enabled one


<nb> public class JsonObject extends JsonElement {
 return map . remove ( fieldName ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean containsField ( String fieldName ) {
 + return map . containsKey ( fieldName ) ;
 + }
 +
 public int size ( ) {
 return map . size ( ) ;
 }
 <nb> public class JavaJsonTest extends TestBase {
 fail ( e . getMessage ( ) ) ;
 }
 }
 +
 + @ test
 + public void testContainsField ( ) {
 + JsonObject obj = new JsonObject ( ) . putString ( STRING0 , STRING1 ) ;
 + assertTrue ( obj . containsField ( STRING0 ) ) ;
 + assertFalse ( obj . containsField ( STRING2 ) ) ;
 + }
 }

Added containsField method to JsonObject


<nb> public class GridSearchSchema < G extends Grid < MP > ,
 search_criteria = new HyperSpaceSearchCriteriaV99 . CartesianSearchCriteriaV99 ( ) ;
 } else if ( STRING0 . equals ( strategy ) ) {
 search_criteria = new HyperSpaceSearchCriteriaV99 . RandomDiscreteValueSearchCriteriaV99 ( ) ;
 + if ( p . containsKey ( STRING1 ) && Integer . parseInt ( ( String ) p . get ( STRING1 ) ) < NUMBER0 ) {
 + throw new H2OIllegalArgumentException ( STRING2 , strategy ) ;
 + }
 + if ( p . containsKey ( STRING3 ) && Integer . parseInt ( ( String ) p . get ( STRING3 ) ) <= NUMBER0 ) {
 + throw new H2OIllegalArgumentException ( STRING4 , strategy ) ;
 + }
 } else {
 throw new H2OIllegalArgumentException ( STRING5 , strategy ) ;
 }

Check sanity of random grid search parameters


<nb> class SelectTemplateDialog extends DialogWrapper {

 protected void dispose ( ) {
 EditorFactory . getInstance ( ) . releaseEditor ( searchPatternEditor ) ;
 + if ( replacePatternEditor != null ) EditorFactory . getInstance ( ) . releaseEditor ( replacePatternEditor ) ;
 removeListeners ( ) ;
 super . dispose ( ) ;
 }


<nb> public class ReaderPostActions {
 SINGLE
 if ( serverPost . feedId == NUMBER0 && localPost . feedId != NUMBER0 ) {
 serverPost . feedId = localPost . feedId ;
 + }
 +
 + if ( serverPost . feedItemId == NUMBER0 && localPost . feedItemId != NUMBER0 ) {
 serverPost . feedItemId = localPost . feedItemId ;
 }

Added check for missing feed item id to handleUpdatePostResponse


<nb> public final class BannerTopComponent extends TopComponent {
 tpg . close ( ) ;
 }
 }
 +
 + SINGLE
 + TopComponentGroup tpg = WindowManager . getDefault ( ) . findTopComponentGroup ( perspective . getName ( ) ) ;
 + tpg . open ( ) ;

 SINGLE
 Perspective closingPerspective = getPerspective ( selectedPerspective ) ;
 <nb> public final class BannerTopComponent extends TopComponent {
 }
 }

 - SINGLE
 - TopComponentGroup tpg = WindowManager . getDefault ( ) . findTopComponentGroup ( perspective . getName ( ) ) ;
 - tpg . open ( ) ;
 -
 SINGLE
 for ( PerspectiveMember member : members ) {
 if ( member . open ( perspective ) ) {

Fix open close procedure with perspectives


<nb> public class HttpException extends BaseException {

 @ override
 public String toString ( ) {
 - return STRING0 + code + STRING1 + getMessage ( ) + STRING2 + result ;
 + return STRING3 + getErrorCode ( ) + STRING1 + getMessage ( ) + STRING2 + result ;
 }
 }


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class AllTests {
 SINGLE
 suite . addTest ( new TestSuite ( DetailASTTest . class ) ) ;
 suite . addTest ( new TestSuite ( AbstractViolationReporterTest . class ) ) ;
 + suite . addTest ( new TestSuite ( AnonInnerLengthCheckTest . class ) ) ;
 suite . addTest ( new TestSuite ( ArrayTypeStyleCheckTest . class ) ) ;
 suite . addTest ( new TestSuite ( AvoidInlineConditionalsCheckTest . class ) ) ;
 suite . addTest ( new TestSuite ( AvoidNestedBlocksCheckTest . class ) ) ;

added tests for AnonInnerLength and ArrayTypeStyle


<nb> public class ODocumentHelper {

 final String indexAsString = index != null ? index . toString ( ) : null ;

 + if ( value instanceof OCommandContext )
 + value = ( ( OCommandContext ) value ) . getVariables ( ) ;
 +
 if ( value instanceof OIdentifiable ) {
 final ORecord < ? > record = currentRecord != null && currentRecord instanceof OIdentifiable ? ( ( OIdentifiable ) currentRecord )
 . getRecord ( ) : null ;

Fixed retrieval of context variables in document fields


<nb> public class AtmosphereResponse extends HttpServletResponseWrapper {
 COMMENT
 COMMENT
 public String getHeader ( String name ) {
 + if ( name . equalsIgnoreCase ( STRING0 ) ) {
 + String s = headers . get ( STRING1 ) ;
 + return s == null ? contentType : s ;
 + }
 return headers . get ( name ) ;
 }

 <nb> public class AtmosphereResponse extends HttpServletResponseWrapper {
 COMMENT
 public Collection < String > getHeaders ( String name ) {
 ArrayList < String > s = new ArrayList < String > ( ) ;
 - s . add ( headers . get ( name ) ) ;
 + String h ;
 + if ( name . equalsIgnoreCase ( STRING0 ) ) {
 + h = headers . get ( STRING1 ) ;
 + } else {
 + h = headers . get ( name ) ;
 + }
 + s . add ( h ) ;
 return Collections . unmodifiableList ( s ) ;
 }


<nb> public class PersistenceExceptionTranslationAutoConfiguration {
 @ bean
 @ conditionalonmissingbean ( PersistenceExceptionTranslationPostProcessor . class )
 @ conditionalonproperty ( prefix = STRING0 , name = STRING1 , matchIfMissing = true )
 - public PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor ( ) {
 + public static PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor ( ) {
 PersistenceExceptionTranslationPostProcessor postProcessor = new PersistenceExceptionTranslationPostProcessor ( ) ;
 postProcessor . setProxyTargetClass ( true ) ;
 return postProcessor ;

Fix PersistenceExceptionTranslation INFO message


<nb> public final class UniqueId implements UniqueIdInterface {
 private final ConcurrentHashMap < String , String > id_cache =
 new ConcurrentHashMap < String , String > ( ) ;
 COMMENT
 - private final ConcurrentHashMap < String , Deferred < byte [ ] > > pending_assignments =
 - new ConcurrentHashMap < String , Deferred < byte [ ] > > ( ) ;
 + private final HashMap < String , Deferred < byte [ ] > > pending_assignments =
 + new HashMap < String , Deferred < byte [ ] > > ( ) ;

 COMMENT
 private volatile int cache_hits ;

Change UniqueId pending_assignments to a regular HashMap since we are syncing


<nb> public class Channel implements AutoCloseable
 this . mediaDriver = mediaDriver ;
 this . bufferNotifier = bufferNotifier ;
 this . channelId = channelId ;
 - SINGLE
 - currentTermId = NUMBER0 L ;
 + currentTermId = - NUMBER1 ;
 requestTerm ( NUMBER0 L ) ;
 - requestTerm ( NUMBER1 ) ;
 - startTerm ( ) ;
 + rollTerm ( ) ;
 }

 public long channelId ( )


<nb> public class RemoteViews implements Parcelable , Filter {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void setRelativeScrollPosition ( int viewId , int offset ) {
 setInt ( viewId , STRING0 , offset ) ;

Fixing build breakage due to misnamed javadoc variable


<nb> public class DanmakuUtils {
 return true ;
 }

 - if ( d1 . isOutside ( ) ) {
 + if ( d1 . isTimeOut ( ) ) {
 return false ;
 }


<nb> public interface SecurityContext {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class AuthenticationCallHandler implements HttpHandler {
 }
 SecurityContext context = exchange . getAttachment ( SecurityContext . ATTACHMENT_KEY ) ;
 if ( context . authenticate ( ) ) {
 - HttpHandlers . executeHandler ( next , exchange ) ;
 + if ( ! exchange . isComplete ( ) ) {
 + next . handleRequest ( exchange ) ;
 + }
 } else {
 exchange . endExchange ( ) ;
 }

If the exchange is ended by the authenticate call don t continue processing


<nb> public class SwipeFlingAdapterView extends BaseFlingAdapterView implements CardE

 @ override
 public View getSelectedView ( ) {
 + if ( topView == null ) {
 + return null ;
 + }
 return topView . get ( ) ;
 }


<nb> import NAMESPACE ;
 COMMENT
 @ beta
 @ gwtincompatible
 - public class LittleEndianDataOutputStream extends FilterOutputStream implements DataOutput {
 + public final class LittleEndianDataOutputStream extends FilterOutputStream implements DataOutput {

 COMMENT
 COMMENT

Make LittleEndianDataOutputStream final like LittleEndianDataInputStream


<nb> public final class BluetoothDevice implements Parcelable {

 COMMENT
 public boolean cancelPairingUserInput ( ) {
 - SINGLE
 - COMMENT
 try {
 - return sService . cancelPairingUserInput ( this ) ;
 - COMMENT
 + return sService . setPairingConfirmation ( this , false ) ;
 + } catch ( RemoteException e ) { Log . e ( TAG , STRING0 , e ) ; }
 return false ;
 }

Added support to cancel pairing from UI while doing SSP


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CMTTxInterceptor implements Interceptor {
 Throwable cause = t ;
 t = new EJBTransactionRolledbackException ( STRING0 ) ;
 t . initCause ( cause ) ;
 - }
 - SINGLE
 - else if ( t instanceof RuntimeException ) {
 + } else if ( t instanceof NoSuchEJBException ) {
 + SINGLE
 +
 + } else if ( t instanceof RuntimeException ) {
 t = new EJBTransactionRolledbackException ( t . getMessage ( ) , ( Exception ) t ) ;
 } else { SINGLE
 throw ( Exception ) t ;

Pass NoSuchEjbException back through the interceptor


<nb> public class TmxMapLoader extends SynchronousAssetLoader < TiledMap , TmxMapLoader .

 public static class Parameters extends AssetLoaderParameters < TiledMap > {
 COMMENT
 - boolean yUp = true ;
 + public boolean yUp = true ;
 }

 protected static final int FLAG_FLIP_HORIZONTALLY = NUMBER0 ;

added public access modifier to Parameter member


<nb> public class StreamsForwarder implements StreamsHandler {
 }

 public void connectStreams ( Process process , String processName ) {
 + COMMENT
 + There ' s a potential problem here in that DisconnectableInputStream reads from input in the background .
 + This won ' t automatically stop when the process is over . Therefore , if input is not closed then this thread
 + will run forever . It would be better to ensure that this thread stops when the process does .
 + COMMENT
 InputStream instr = new DisconnectableInputStream ( input ) ;

 standardOutputRunner = new ExecOutputHandleRunner ( STRING0 + processName ,

Add a comment about the potential problem of the input forwarding thread living forever for spawned processes


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class StatementAnalyzer
 }

 SINGLE
 - rows . add ( row ( new NullLiteral ( ) , new NullLiteral ( ) , FALSE_LITERAL ) ) ;
 + rows . add ( row ( new StringLiteral ( STRING0 ) , new StringLiteral ( STRING0 ) , FALSE_LITERAL ) ) ;

 Query query = simpleQuery (
 selectList (


<nb> public class Vpn extends INetworkManagementEventObserver . Stub {
 . setContentTitle ( title )
 . setContentText ( text )
 . setContentIntent ( VpnConfig . getIntentForStatusPanel ( mContext , config ) )
 - . setDefaults ( Notification . DEFAULT_ALL )
 + . setDefaults ( NUMBER0 )
 . setOngoing ( true )
 . getNotification ( ) ;
 nm . notify ( R . drawable . vpn_connected , notification ) ;


<nb> public class MapActivity extends AccessibleActivity {
 @ override
 public boolean processResult ( GPXFile result )
 {
 + getMyApplication ( ) . setGpxFileToDisplay ( result , true ) ;
 getMapActions ( ) . setGPXRouteParams ( result ) ;
 getMyApplication ( ) . getTargetPointsHelper ( ) . updateRoutingHelper ( ) ;
 getRoutingHelper ( ) . recalculateRouteDueToSettingsChange ( ) ;


<nb> public class GenerateSourcesMojo extends AbstractAndroidMojo {
 + STRING0 + e . getLocalizedMessage ( ) , e ) ;
 }

 - projectHelper . addResource ( project , apklibDirectory . getAbsolutePath ( ) + STRING1 , null , null ) ;
 + projectHelper . addResource ( project , apklibDirectory . getAbsolutePath ( ) + STRING1 , null , Arrays . asList ( STRING2 , STRING3 ) ) ;
 project . addCompileSourceRoot ( apklibDirectory . getAbsolutePath ( ) + STRING1 ) ;

 }

Exclude java and aidl file in java resources


<nb> public class TimingTest extends TestCase {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public void testTiming ( ) {
 Timing t = new Timing ( ) ;
 sleepTen ( ) ;
 long val2 = t . reportNano ( ) ;
 - assertEquals ( STRING0 , NUMBER0 , val2 , NUMBER0 ) ;
 + assertEquals ( STRING0 , NUMBER1 , val2 , NUMBER1 ) ;
 SINGLE
 sleepTen ( ) ;
 long val = t . report ( ) ;
 SINGLE
 - assertEquals ( STRING1 , NUMBER2 , val , NUMBER3 ) ;
 + assertEquals ( STRING1 , NUMBER2 , val , NUMBER4 ) ;
 for ( int i = NUMBER5 ; i < NUMBER3 ; i ++ ) {
 sleepTen ( ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CreateVirtualEnvDialog extends IdeaDialog {
 ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) {
 @ override
 public void run ( ) {
 - PackagesNotificationPanel . showError ( STRING0 ,
 - PackageManagementService . ErrorDescription . fromMessage ( e . toString ( ) ) ) ;
 + final PackageManagementService . ErrorDescription description =
 + PyPackageManagementService . toErrorDescription ( Collections . singletonList ( e ) , basicSdk ) ;
 + if ( description != null ) {
 + PackagesNotificationPanel . showError ( STRING0 , description ) ;
 + }
 }
 } , ModalityState . any ( ) ) ;
 }

Use extended error description for exceptions during installation of framework packages


<nb> public class RCompletionManager implements CompletionManager
 fileTypeRegistry_ . editFile ( loc . getFile ( ) ,
 loc . getPosition ( ) ) ;
 }
 -
 - SINGLE
 - else
 - {
 - String function = loc . getFunctionName ( ) ;
 - server_ . getHelpAtCursor (
 - function ,
 - function . length ( ) ,
 - new SimpleRequestCallback < Void > ( STRING0 ) ) ;
 - }
 }
 }

don t show help when unable to navigate to function


<nb> public class WebSettings {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public void setBuiltInZoomControls ( boolean enabled ) {

Fix javadoc breakage by not linking to now hidden WebView getZoomControls method


<nb> public class VcsDirtyScopeImpl extends VcsDirtyScope {
 else {
 parent = FilePathImpl . create ( path . getIOFile ( ) . getParentFile ( ) ) ;
 }
 - for ( FilePath filePath : myDirtyFiles ) {
 - if ( filePath . equals ( parent ) || filePath . equals ( path ) ) return Boolean . TRUE ;
 - }
 + if ( myDirtyFiles . contains ( parent ) || myDirtyFiles . contains ( path ) ) return Boolean . TRUE ;
 }

 return Boolean . FALSE ;

max fix stupid perf issue in VcsDirtyScope


<nb> public class BasicUtils {
 context . startActivity ( intent ) ;
 }

 + public static void sendIntent ( Context context , Class classes , String key , ArrayList < ? extends Parcelable > value , String anotherKey , String anotherValue ) {
 + Intent intent = new Intent ( ) ;
 + intent . setClass ( context , classes ) ;
 + intent . putParcelableArrayListExtra ( key , value ) ;
 + intent . putExtra ( anotherKey , anotherValue ) ;
 + context . startActivity ( intent ) ;
 + }
 +
 public static String getSharedPreferences ( Context context , String fileName , String parameterName ) {
 SharedPreferences sp = context . getSharedPreferences ( fileName , NUMBER0 ) ;
 String parameter = sp . getString ( parameterName , STRING0 ) ;

add sendintent coll string of basicutils


<nb> public final class ChatManager extends Manager {
 interceptor . getKey ( ) . processMessage ( message ) ;
 }
 }
 - SINGLE
 - if ( message . getFrom ( ) == null ) {
 - message . setFrom ( connection ( ) . getUser ( ) ) ;
 - }
 connection ( ) . sendStanza ( message ) ;
 }

Don t stamp outgoing stanza in ChatManager


<nb> public class VelocityBodyAsDomainObjectTest extends ContextTestSupport {
 public void testWithObject ( ) throws Exception {
 MockEndpoint mock = getMockEndpoint ( STRING0 ) ;
 mock . expectedMessageCount ( NUMBER0 ) ;
 - mock . expectedBodiesReceived ( STRING1
 - + STRING2 ) ;
 + mock . expectedBodiesReceived ( STRING3 ) ;

 MyPerson person = new MyPerson ( ) ;
 person . setFamilyName ( STRING4 ) ;
 <nb> public class VelocityBodyAsDomainObjectTest extends ContextTestSupport {
 }

 public String toString ( ) {
 - return STRING5 +
 - STRING6 + givenName + STRING7 +
 - STRING8 + familyName + STRING7 +
 - STRING9 ;
 + return STRING5
 + + STRING6
 + + givenName + STRING7
 + + STRING8
 + + familyName + STRING7
 + + STRING9 ;
 }
 }

Fixed the VelocityBodyAsDomainObjectTest test failure in Windows box


<nb> class DefaultBootstrapContext implements BootstrapContext {
 @ override
 public String toString ( ) {
 return new ToStringCreator ( this ) SINGLE
 - . append ( STRING0 , testClass ) SINGLE
 - . append ( STRING1 , nullSafeToString ( cacheAwareContextLoaderDelegate ) ) SINGLE
 + . append ( STRING0 , testClass . getName ( ) ) SINGLE
 + . append ( STRING1 , cacheAwareContextLoaderDelegate . getClass ( ) . getName ( ) ) SINGLE
 . toString ( ) ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - private static String nullSafeToString ( CacheAwareContextLoaderDelegate delegate ) {
 - return delegate == null ? STRING2 : delegate . getClass ( ) . getName ( ) ;
 - }
 -
 }


<nb> public abstract class Trainer {
 while ( true ) {
 input . fprop ( new Random ( ) . nextLong ( ) , true ) ;
 for ( int i = NUMBER0 ; i < input . _a . length ; i ++ )
 - a [ NUMBER0 ] . getBuffer ( ) . put ( i , ( float ) input . _a [ i ] ) ;
 + a [ NUMBER0 ] . getBuffer ( ) . put ( i , input . _a [ i ] ) ;
 queue . putWriteBuffer ( a [ NUMBER0 ] , false ) ;
 for ( int y = NUMBER1 ; y < fprops . length ; y ++ )
 queue . put1DRangeKernel ( fprops [ y ] , NUMBER0 , _ls [ y ] . _a . length , group ) ;


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

 COMMENT
 COMMENT
 <nb> class UseCaseWrapperJob extends Job {

 }

 - @ override protected boolean shouldReRunOnThrowable ( Throwable throwable ) {
 - return false ;
 + @ override protected RetryConstraint shouldReRunOnThrowable ( Throwable throwable , int runCount , int maxRunCount ) {
 + return RetryConstraint . CANCEL ;
 }
 }


<nb> public abstract class AbstractAnnotationTest {
 assertSame ( r1 , service . name ( key ) ) ;
 Cache < Object , Object > cache = cm . getCache ( STRING0 ) ;
 SINGLE
 - assertTrue ( cache . containsKey ( keyName ) ) ;
 + assertNotNull ( cache . get ( keyName ) ) ;
 }

 public void testRootVars ( CacheableService service ) {
 <nb> public abstract class AbstractAnnotationTest {
 Cache < Object , Object > cache = cm . getCache ( STRING0 ) ;
 SINGLE
 String expectedKey = STRING1 + AopProxyUtils . ultimateTargetClass ( service ) + service ;
 - assertTrue ( cache . containsKey ( expectedKey ) ) ;
 + assertNotNull ( cache . get ( expectedKey ) ) ;
 }

 public void testNullArg ( CacheableService service ) {


<nb> public class RCompletionManager implements CompletionManager
 if ( isLineInComment ( firstLine ) && ! isLineInRoxygenComment ( firstLine ) )
 return false ;

 - SINGLE
 - if ( ! StringUtil . stripRComment ( firstLine ) . equals ( firstLine ) )
 - {
 - canAutoInsert = false ;
 - }
 -
 SINGLE
 SINGLE
 if ( ! uiPrefs_ . allowTabMultilineCompletion ( ) . getValue ( ) )


<nb> public class ListCommandsTest extends JedisCommandTestBase {
 } ) . start ( ) ;

 result = jedis . blpop ( NUMBER0 , STRING0 ) ;
 + System . out . println ( STRING1 ) ;
 +
 assertNotNull ( result ) ;
 assertEquals ( NUMBER1 , result . size ( ) ) ;
 assertEquals ( STRING0 , result . get ( NUMBER2 ) ) ;
 <nb> public class ListCommandsTest extends JedisCommandTestBase {
 ( new Thread ( new Runnable ( ) {
 public void run ( ) {
 try {
 - Thread . sleep ( NUMBER3 ) ;
 + Thread . sleep ( NUMBER4 ) ;
 Jedis j = createJedis ( ) ;
 j . lpush ( STRING0 , STRING2 ) ;
 } catch ( InterruptedException e ) {


<nb> import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 + import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public class TestSqlParser
 private static void assertStatement ( String query , Statement expected )
 {
 assertParsed ( query , expected , SQL_PARSER . createStatement ( query ) ) ;
 + assertFormattedSql ( SQL_PARSER , expected ) ;
 }

 private static void assertExpression ( String expression , Expression expected )


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class OLazyRecordMap extends LinkedHashMap < String , Object > {
 return super . put ( iKey , iValue ) ;
 }

 - public void convertAll ( ) {
 + @ override
 + public Collection < Object > values ( ) {
 + convertAll ( ) ;
 + return super . values ( ) ;
 + }
 +
 + private void convertAll ( ) {
 if ( converted )
 return ;


<nb> public class ButtonFlat extends Button {
 return textButton ;
 }

 + public String getText ( ) {
 + return textButton . getText ( ) . toString ( ) ;
 + }
 +
 }
 <nb> public class ButtonRectangle extends Button {
 return textButton ;
 }

 + public String getText ( ) {
 + return textButton . getText ( ) . toString ( ) ;
 + }
 +
 }


<nb> public abstract class TransferSettings {
 Objects . ToStringHelper toStringHelper = Objects . toStringHelper ( this ) ;

 for ( Field field : ReflectionUtil . getAllFieldsWithAnnotation ( this . getClass ( ) , Element . class ) ) {
 + field . setAccessible ( true ) ;
 +
 try {
 toStringHelper . add ( field . getName ( ) , field . get ( this ) ) ;
 }


<nb> public class BasicKeyChain implements EncryptableKeyChain {

 @ override
 public BloomFilter getFilter ( int size , double falsePositiveRate , long tweak ) {
 - BloomFilter filter = new BloomFilter ( size , falsePositiveRate , tweak ) ;
 - for ( ECKey key : hashToKeys . values ( ) ) {
 - filter . insert ( key . getPubKey ( ) ) ;
 - filter . insert ( key . getPubKeyHash ( ) ) ;
 + lock . lock ( ) ;
 + try {
 + BloomFilter filter = new BloomFilter ( size , falsePositiveRate , tweak ) ;
 + for ( ECKey key : hashToKeys . values ( ) ) {
 + filter . insert ( key . getPubKey ( ) ) ;
 + filter . insert ( key . getPubKeyHash ( ) ) ;
 + }
 + return filter ;
 + } finally {
 + lock . unlock ( ) ;
 }
 - return filter ;
 }

 @ override

Add a missing lock on BasicKeyChain getBloomFilter


<nb> public class ExecUtil {
 } , STRING0 ) ;
 final String escapedScript = STRING1 +
 STRING2 +
 - STRING3 + escapedCommandLine + STRING4 +
 + STRING3 + escapedCommandLine + STRING5 +
 STRING6 ;
 return new GeneralCommandLine ( getOsascriptPath ( ) , STRING7 , escapedScript )
 . withWorkDirectory ( workDir )

osascript gets a full output the option without altering line endings is added


<nb> public class FindInProjectUtil {
 }
 }

 + if ( directoryName == null && psiElement instanceof PsiPackage ) {
 + final PsiDirectory [ ] directories = ( ( PsiPackage ) psiElement ) . getDirectories ( ) ;
 + directoryName = directories . length > NUMBER0 ? directories [ NUMBER0 ] . getVirtualFile ( ) . getPresentableUrl ( ) : null ;
 + }
 +
 Module module = ( Module ) dataContext . getData ( DataConstantsEx . MODULE_CONTEXT ) ;
 if ( module != null ) {
 model . setModuleName ( module . getName ( ) ) ;

when user selects package the search suggest its first directory as directory


<nb> public class TestStatusLine extends JPanel {
 }

 private static class MyProgressBar extends JProgressBar {
 + private static final int NATIVE_LAF_HEIGHT = NUMBER0 ;
 +
 @ override
 public void setUI ( ProgressBarUI ui ) {
 - if ( UIUtil . isUnderWindowsLookAndFeel ( ) || UIUtil . isUnderGTKLookAndFeel ( ) ) {
 + boolean nativeLaf = UIUtil . isUnderWindowsLookAndFeel ( ) || UIUtil . isUnderAquaLookAndFeel ( ) || UIUtil . isUnderGTKLookAndFeel ( ) ;
 + if ( nativeLaf ) {
 ui = new DarculaProgressBarUI ( ) ;
 }
 super . setUI ( ui ) ;
 + if ( nativeLaf ) {
 + setPreferredSize ( new Dimension ( getPreferredSize ( ) . width , NATIVE_LAF_HEIGHT ) ) ;
 + }
 }
 }
 }

colored test progress bar on native LAFs


<nb> public class IOSApplicationConfiguration {
 COMMENT
 public float accelerometerUpdate = FLOAT0 ;

 - COMMENT
 - public boolean useMonotouchOpenTK = false ;
 + COMMENT
 + public boolean useMonotouchOpenTK = true ;

 COMMENT
 - public boolean useObjectAL = false ;
 + public boolean useObjectAL = true ;
 }

made objectal and opentk defaults in ios backend


<nb> public class Weaver {
 }

 private static boolean inPackages ( String pack ) {
 + if ( pack == null ) return false ;
 String [ ] p = _packages ;
 for ( int i = NUMBER0 ; i < p . length ; i ++ )
 if ( pack . startsWith ( p [ i ] ) )


<nb> public class ResizeGripper extends Composite
 lastX_ = DOM . eventGetClientX ( event ) ;
 lastY_ = DOM . eventGetClientY ( event ) ;
 DOM . setCapture ( getElement ( ) ) ;
 - DOM . eventPreventDefault ( event ) ;
 + event . preventDefault ( ) ;
 + event . stopPropagation ( ) ;
 break ;
 }

 <nb> public class ResizeGripper extends Composite

 observer_ . onResizing ( xDelta , yDelta ) ;

 - DOM . eventPreventDefault ( event ) ;
 + event . preventDefault ( ) ;
 + event . stopPropagation ( ) ;
 }
 break ;
 }
 <nb> public class ResizeGripper extends Composite
 {
 stopResizing ( ) ;
 DOM . releaseCapture ( getElement ( ) ) ;
 + event . preventDefault ( ) ;
 + event . stopPropagation ( ) ;
 }
 break ;
 }
 <nb> public class ResizeGripper extends Composite
 break ;
 }
 }
 -
 - super . onBrowserEvent ( event ) ;
 }

 private boolean isResizing ( )

change the way we prevent default event handling in resize gripper


<nb> public class SecurityResource extends JaxRsResourceBase {
 return Response . status ( Status . OK ) . build ( ) ;
 }

 + @ timedresource
 + @ get
 + @ produces ( APPLICATION_JSON )
 + @ path ( STRING0 + ANYTHING_PATTERN + STRING1 )
 + @ apioperation ( value = STRING2 )
 + public Response getUserRoles ( @ pathparam ( STRING3 ) final String username ,
 + @ javax.ws.rs.core.context final HttpServletRequest request ,
 + @ javax.ws.rs.core.context final UriInfo uriInfo ) throws SecurityApiException {
 + final List < String > roles = securityApi . getUserRoles ( username , context . createContext ( request ) ) ;
 + final UserRolesJson userRolesJson = new UserRolesJson ( username , null , roles ) ;
 + return Response . status ( Status . OK ) . entity ( userRolesJson ) . build ( ) ;
 + }

 @ timedresource
 @ put


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


<nb> public class WebMvcAutoConfiguration {
 return new HiddenHttpMethodFilter ( ) ;
 }

 - SINGLE
 + SINGLE
 SINGLE
 @ configuration
 @ enablewebmvc


<nb> public class ProcessWrapper extends Thread implements Terminable {
 private ProcessMXBean waitForJMX ( ) {
 String loopbackAddress = localAddress ( ) ;
 String path = STRING0 + loopbackAddress + STRING1 + jmxPort + STRING2 ;
 - JMXServiceURL jmxUrl = null ;
 + JMXServiceURL jmxUrl ;
 try {
 jmxUrl = new JMXServiceURL ( STRING3 , loopbackAddress , jmxPort , path ) ;
 } catch ( MalformedURLException e ) {
 <nb> public class ProcessWrapper extends Thread implements Terminable {
 }
 } , null , null ) ;
 MBeanServerConnection mBeanServer = jmxConnector . getMBeanServerConnection ( ) ;
 - ProcessMXBean bean = JMX . newMBeanProxy ( mBeanServer , JmxUtils . objectName ( processName ) , ProcessMXBean . class ) ;
 - return bean ;
 + return JMX . newMBeanProxy ( mBeanServer , JmxUtils . objectName ( processName ) , ProcessMXBean . class ) ;
 } catch ( Exception ignored ) {
 LOGGER . trace ( STRING4 , ignored ) ;
 }


<nb> static public ISeq seq ( Object coll ) {
 return StringSeq . create ( ( String ) coll ) ;
 else if ( coll instanceof Map )
 return seq ( ( ( Map ) coll ) . entrySet ( ) ) ;
 + else if ( coll instanceof Iterator )
 + return IteratorSeq . create ( ( Iterator ) coll ) ;
 else if ( coll instanceof Enumeration )
 return EnumerationSeq . create ( ( ( Enumeration ) coll ) ) ;
 else


<nb> public class PythonSpaceHandler extends TypedHandlerDelegate {
 Module module = ModuleUtilCore . findModuleForPsiElement ( element ) ;
 if ( module == null ) return Result . CONTINUE ;
 PyDocumentationSettings documentationSettings = PyDocumentationSettings . getInstance ( module ) ;
 - if ( documentationSettings . myDocStringFormat != DocStringFormat . PLAIN )
 + if ( ! documentationSettings . myDocStringFormat . equals ( DocStringFormat . PLAIN ) )
 editor . getCaretModel ( ) . moveCaretRelatively ( NUMBER0 , NUMBER1 , false , false , false ) ;
 return Result . STOP ;
 }


<nb> public final class ClasspathModifierLifecycleParticipant extends AbstractMavenLi
 }
 catch ( MojoExecutionException e )
 {
 - throw new MavenExecutionException ( STRING0 + project , e ) ;
 + log . warn ( STRING1 + project ) ;
 + continue ;
 }

 log . debug ( STRING2 + artifacts ) ;

Allowing multi project builds with internal deps that have never been built to at least start to build


<nb> public class InputMethodService extends AbstractInputMethodService {

 void showWindowInner ( boolean showInput ) {
 boolean doShowInput = false ;
 - boolean wasVisible = mWindowVisible ;
 + final int previousImeWindowStatus =
 + ( mWindowVisible ? IME_ACTIVE : NUMBER0 ) | ( isInputViewShown ( ) ? IME_VISIBLE : NUMBER0 ) ;
 mWindowVisible = true ;
 if ( ! mShowInputRequested ) {
 if ( mInputStarted ) {
 <nb> public class InputMethodService extends AbstractInputMethodService {
 startExtractingText ( false ) ;
 }

 - if ( ! wasVisible ) {
 + final int nextImeWindowStatus = IME_ACTIVE | ( isInputViewShown ( ) ? IME_VISIBLE : NUMBER0 ) ;
 + if ( previousImeWindowStatus != nextImeWindowStatus ) {
 + mImm . setImeWindowStatus ( mToken , nextImeWindowStatus , mBackDisposition ) ;
 + }
 + if ( ( previousImeWindowStatus & IME_ACTIVE ) == NUMBER0 ) {
 if ( DEBUG ) Log . v ( TAG , STRING0 ) ;
 - mImm . setImeWindowStatus ( mToken , IME_ACTIVE , mBackDisposition ) ;
 onWindowShown ( ) ;
 mWindow . show ( ) ;
 }

Notify IME visibility when showWindow is called


<nb> import static NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ suppresswarnings ( STRING0 )
 public class QueryImpl < T > extends CriteriaContainerImpl implements Query < T > {
 private static final Logger LOG = MorphiaLoggerFactory . get ( QueryImpl . class ) ;
 private final DatastoreImpl ds ;

suppress deprecation warning at the class level


<nb> public class EventTest {
 }

 @ test
 + @ ignore ( STRING0 )
 public void event_widget ( ) {
 SINGLE
 executeAnalysis ( STRING1 , STRING2 ) ;

Disable EventTest event_widget because of false positives


<nb> public class ReaderIconCountView extends LinearLayout {
 }
 }

 + SINGLE
 + if ( mIconType == ICON_COMMENT ) {
 + LinearLayout . LayoutParams params = ( LinearLayout . LayoutParams ) mImageView . getLayoutParams ( ) ;
 + int margin = context . getResources ( ) . getDimensionPixelSize ( R . dimen . margin_extra_small ) ;
 + params . topMargin = margin ;
 + }
 +
 ReaderUtils . setBackgroundToRoundRipple ( mImageView ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class SecurityHandler extends HandlerWrapper implements Authenti
 }

 public void sessionCreated ( HttpSessionEvent se )
 - {
 + {
 SINGLE
 - AbstractHttpConnection connection = AbstractHttpConnection . getCurrentConnection ( ) ;
 - if ( connection == null )
 + HttpChannel channel = HttpChannel . getCurrentHttpChannel ( ) ;
 +
 + if ( channel == null )
 return ;
 - Request request = connection . getRequest ( ) ;
 + Request request = channel . getRequest ( ) ;
 if ( request == null )
 return ;

replace old AbstractHttpConnection with HttpChannel to get request for session listener


<nb> package NAMESPACE ;

 import static NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 public class TestTxEntries
 {
 @ test
 - @ ignore
 COMMENT
 COMMENT
 COMMENT


<nb> public class SecurityPathMatches {
 setupPathSecurityInformation ( defaultPathSecurityInformation , securityInformation , webResources ) ;
 }
 for ( String pattern : webResources . getUrlPatterns ( ) ) {
 - if ( pattern . endsWith ( STRING0 ) ) {
 - String part = pattern . substring ( NUMBER0 , pattern . length ( ) - NUMBER1 ) ;
 + if ( pattern . endsWith ( STRING0 ) || pattern . endsWith ( STRING1 ) ) {
 + String part = pattern . substring ( NUMBER0 , pattern . lastIndexOf ( STRING2 ) ) ;
 PathSecurityInformation info = prefixPathRoleInformation . get ( part ) ;
 if ( info == null ) {
 prefixPathRoleInformation . put ( part , info = new PathSecurityInformation ( ) ) ;

Also treat the trailing matches as wildcard matches


<nb> public class OSchemaShared extends ODocumentWrapperNoClass implements OSchema , O

 checkEmbedded ( getDatabase ( ) . getStorage ( ) ) ;

 - deleteDefaultCluster ( cls ) ;

 for ( OClass superClass : cls . getSuperClasses ( ) ) {
 SINGLE
 ( ( OClassImpl ) superClass ) . removeBaseClassInternal ( cls ) ;
 }
 + deleteDefaultCluster ( cls ) ;

 dropClassIndexes ( cls ) ;

Fix index consistency when dropping a class in a hierarchy


<nb> public class SessionFailureTest extends AbstractTest
 Assert . assertTrue ( writeLatch . await ( NUMBER0 , TimeUnit . SECONDS ) ) ;
 Assert . assertTrue ( serverFailureLatch . await ( NUMBER0 , TimeUnit . SECONDS ) ) ;
 Assert . assertTrue ( clientFailureLatch . await ( NUMBER0 , TimeUnit . SECONDS ) ) ;
 - Assert . assertFalse ( ( ( HTTP2Session ) session ) . getEndPoint ( ) . isOpen ( ) ) ;
 + long start = System . nanoTime ( ) ;
 + long now = System . nanoTime ( ) ;
 + while ( ( ( HTTP2Session ) session ) . getEndPoint ( ) . isOpen ( ) )
 + {
 + if ( TimeUnit . NANOSECONDS . toSeconds ( now - start ) > NUMBER0 )
 + Assert . fail ( ) ;
 + Thread . sleep ( NUMBER1 ) ;
 + now = System . nanoTime ( ) ;
 + }
 }
 }


<nb> public class TrainParser {
 for ( Transition transition : transitions ) {
 int transitionNum = transitionIndex . indexOf ( transition ) ;
 Set < String > features = featureFactory . featurize ( state ) ;
 - int predictedNum = parser . findHighestScoringTransition ( state , features , false ) ;
 + int predictedNum = parser . findHighestScoringTransition ( state , features , false ) . object ( ) ;
 Transition predicted = transitionIndex . get ( predictedNum ) ;
 if ( transitionNum == predictedNum ) {
 numCorrect ++ ;

Fix the SRParser training now using the ScoredObject


<nb> public class TypeMap {
 water . api . TutorialsV1 . class . getName ( ) ,
 water . api . TypeaheadV2 . class . getName ( ) , SINGLE
 water . Key . class . getName ( ) ,
 +
 + water . api . AboutHandler . AboutV3 . class . getName ( ) ,
 + water . api . AboutHandler . AboutEntryV3 . class . getName ( ) ,
 + water . api . NodePersistentStorageV1 . class . getName ( ) ,
 + water . api . NodePersistentStorageV1 . NodePersistentStorageEntryV1 . class . getName ( ) ,
 + water . api . DocsV1 . class . getName ( ) ,
 + water . api . DocsBase . class . getName ( ) ,
 + water . api . RouteV1 . class . getName ( ) ,
 + water . api . RouteBase . class . getName ( ) ,
 } ;
 SINGLE
 static private final NonBlockingHashMap < String , Integer > MAP = new NonBlockingHashMap < > ( ) ;

Add more things to gold typemap that happen when flow first comes up


<nb> abstract class IntegrationTestCase extends TestCase {
 String [ ] original , String [ ] compiled ) {
 Compiler compiler = compile ( options , original ) ;
 assertEquals ( STRING0 +
 - STRING1 + Joiner . on ( STRING2 ) . join ( compiler . getErrors ( ) ) +
 + STRING1 + Joiner . on ( STRING2 ) . join ( compiler . getErrors ( ) ) + STRING2 +
 STRING3 + Joiner . on ( STRING2 ) . join ( compiler . getWarnings ( ) ) ,
 NUMBER0 , compiler . getErrors ( ) . length + compiler . getWarnings ( ) . length ) ;

Fix formatting of unexpected warnings errors in the IntegrationTestCase


<nb> public class OServer {

 final OServerConfiguration configuration = serverCfg . getConfiguration ( ) ;

 + tokenHandler = new OTokenHandlerImpl ( this ) ;
 +
 if ( configuration . network != null ) {
 SINGLE
 if ( configuration . network . sockets != null ) {
 <nb> public class OServer {
 throw OException . wrapException ( new OConfigurationException ( message ) , e ) ;
 }

 - tokenHandler = new OTokenHandlerImpl ( this ) ;
 -
 registerPlugins ( ) ;

 for ( OServerLifecycleListener l : lifecycleListeners )

moved token handler creation before listener open to avoid request with missing token handler


<nb> public final class ResXmlEncoders {
 }

 boolean isInStyleTag = false ;
 + int startPos = NUMBER0 ;
 boolean enclose = false ;
 boolean wasSpace = true ;
 for ( char c : chars ) {
 if ( isInStyleTag ) {
 if ( c == STRING0 ) {
 isInStyleTag = false ;
 + startPos = out . length ( ) + NUMBER1 ;
 + enclose = false ;
 + wasSpace = true ;
 }
 } else if ( c == STRING1 ) {
 if ( wasSpace ) {
 <nb> public final class ResXmlEncoders {
 break ;
 case STRING2 :
 isInStyleTag = true ;
 + if ( enclose || wasSpace ) {
 + out . insert ( startPos , STRING3 ) . append ( STRING3 ) ;
 + }
 break ;
 default :
 if ( ! isPrintableChar ( c ) ) {

properly encode strings with styles and new lines


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class NonProjectFileWritingAccessProvider extends WritingAccessProvider {
 }

 private boolean isProjectFile ( @ notnull VirtualFile file ) {
 - if ( ProjectFileIndex . SERVICE . getInstance ( myProject ) . isInContent ( file ) ) return true ;
 + ProjectFileIndex fileIndex = ProjectFileIndex . SERVICE . getInstance ( myProject ) ;
 + if ( fileIndex . isInContent ( file ) ) return true ;
 + if ( ! Registry . is ( STRING0 ) && fileIndex . isExcluded ( file ) && ! fileIndex . isUnderIgnored ( file ) ) return true ;

 if ( myProject instanceof ProjectEx ) {
 IProjectStore store = ( ( ProjectEx ) myProject ) . getStateStore ( ) ;

don t show warning when excluded files are edited


<nb> public abstract class AppIntro extends AppCompatActivity {
 }
 }

 + public ViewPager getPager ( ) {
 + return pager ;
 + }
 +
 private void initController ( ) {
 if ( mController == null )
 mController = new DefaultIndicatorController ( ) ;
 <nb> public abstract class AppIntro2 extends AppCompatActivity {
 }
 }

 + public ViewPager getPager ( ) {
 + return pager ;
 + }
 +
 private void initController ( ) {
 if ( mController == null )
 mController = new DefaultIndicatorController ( ) ;

Need a way to get the pager to suppport using CircleIndicator library


<nb> package NAMESPACE ;
 import NAMESPACE ;

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

 <nb> public class RemoveOrphanConstraintIndexesOnStartup
 this . log = logging . getMessagesLog ( getClass ( ) ) ;
 }

 - @ suppresswarnings ( STRING0 )
 public void perform ( )
 {
 try

Removed unnecessary deprecation annotation


<nb> public class StreetVertexIndexServiceImpl implements StreetVertexIndexService {
 }

 @ suppresswarnings ( STRING0 )
 - private List < TransitStop > getTransitStopForEnvelope ( Envelope envelope ) {
 + @ override
 + public List < TransitStop > getTransitStopForEnvelope ( Envelope envelope ) {
 List < TransitStop > transitStops = transitStopTree . query ( envelope ) ;
 for ( Iterator < TransitStop > its = transitStops . iterator ( ) ; its . hasNext ( ) ; ) {
 TransitStop ts = its . next ( ) ;
 <nb> public interface StreetVertexIndexService {
 public List < TransitStop > getNearbyTransitStops ( Coordinate coordinate , double radiusMeters ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public List < TransitStop > getTransitStopForEnvelope ( Envelope envelope ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add getTransitStopForEnvelope in spatial index


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MessagingController implements Runnable
 return ;
 }

 - ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ;
 - PrintStream ps = new PrintStream ( baos ) ;
 + CharArrayWriter baos = new CharArrayWriter ( t . getStackTrace ( ) . length * NUMBER0 ) ;
 + PrintWriter ps = new PrintWriter ( baos ) ;
 t . printStackTrace ( ps ) ;
 ps . close ( ) ;

don t use bytes and related byte char conversion when we re actually working on string only


<nb> public class PeerGroup extends AbstractIdleService implements TransactionBroadca
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void clearEventListeners ( ) {
 + peerEventListeners . clear ( ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public final class UiFileInfo {

 public String getBlockSizeBytes ( ) {
 if ( mIsDirectory ) {
 - return STRING0 ;
 + return STRING1 ;
 } else {
 return CommonUtils . getSizeFromBytes ( mBlockSizeBytes ) ;
 }
 <nb> public final class UiFileInfo {

 public String getCreationTime ( ) {
 if ( mCreationTimeMs == LocalFileInfo . EMPTY_CREATION_TIME ) {
 - return STRING0 ;
 + return STRING1 ;
 } else {
 return CommonUtils . convertMsToDate ( mCreationTimeMs ) ;
 }
 <nb> public final class UiFileInfo {

 public String getSize ( ) {
 if ( mIsDirectory ) {
 - return STRING0 ;
 + return STRING1 ;
 } else {
 return CommonUtils . getSizeFromBytes ( mSize ) ;
 }


<nb> public static Object eval ( Object form ) throws Exception {
 }
 try
 {
 - Expr expr = analyze ( C . EVAL , form ) ;
 - return expr . eval ( ) ;
 + if ( form instanceof IPersistentCollection )
 + {
 + FnExpr fexpr = ( FnExpr ) analyze ( C . EXPRESSION , RT . list ( FN , PersistentVector . EMPTY , form ) , STRING0 ) ;
 + IFn fn = ( IFn ) fexpr . eval ( ) ;
 + return fn . invoke ( ) ;
 + }
 + else
 + {
 + Expr expr = analyze ( C . EVAL , form ) ;
 + return expr . eval ( ) ;
 + }
 }
 finally
 {


<nb> import static NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DownloadIndexActivity extends OsmandExpandableListActivity {
 parent . mkdirs ( ) ;
 SINGLE
 if ( preventMediaIndexing ) {
 - new File ( parent , STRING0 ) . createNewFile ( ) ; SINGLE
 + try {
 + new File ( parent , STRING0 ) . createNewFile ( ) ; SINGLE
 + } catch ( IOException e ) {
 + SINGLE
 + }
 }
 }
 final DownloadEntry entry ;


<nb> public class WorkerTaskMonitor
 return ;
 }

 + log . info ( STRING0 , task . getId ( ) ) ;
 +
 exec . submit (
 new Runnable ( )
 {


<nb> public class MasterImpl implements Master
 }
 else
 {
 - throw new IllegalStateException ( STRING0 + txId + STRING1 ) ;
 + throw new IllegalStateException ( STRING0 + txId +
 + STRING2 +
 + STRING3 +
 + STRING4 ) ;
 }
 }
 else


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ActionBarView extends ViewGroup {
 Context context = getContext ( ) ;
 if ( context instanceof Activity ) {
 Activity activity = ( Activity ) context ;
 - activity . onOptionsItemSelected ( mLogoNavItem ) ;
 + activity . onMenuItemSelected ( Window . FEATURE_OPTIONS_PANEL , mLogoNavItem ) ;
 }
 }
 } ) ;
 <nb> public class PhoneWindow extends Window implements MenuBuilder . Callback {
 public final void openPanel ( int featureId , KeyEvent event ) {
 if ( featureId == FEATURE_OPTIONS_PANEL && mActionBar != null &&
 mActionBar . isOverflowReserved ( ) ) {
 + SINGLE
 + invalidatePanelMenu ( FEATURE_OPTIONS_PANEL ) ;
 mActionBar . showOverflowMenu ( ) ;
 } else {
 openPanel ( getPanelState ( featureId , true ) , event ) ;

Fix a couple interactions between action bar and options menus


<nb>
 COMMENT
 package NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public enum DataSourceType {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 GAUGE ,
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COUNTER ,
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 INFORMATIONAL
 }


<nb> public interface Project extends Comparable < Project > , ExtensionAware , PluginAwar
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface Project extends Comparable < Project > , ExtensionAware , PluginAwar
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface Project extends Comparable < Project > , ExtensionAware , PluginAwar
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Improved the javadoc documentation by adding more fileTree samples


<nb> public class ScriptContext extends FieldOwnerContext < ClassDescriptor > {
 }
 return STRING0 + ( index + NUMBER0 ) ;
 }
 +
 + @ override
 + public String toString ( ) {
 + return STRING1 + getContextDescriptor ( ) . getName ( ) . asString ( ) ;
 + }
 }


<nb> public class AudioManager {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 - private void adjustMasterVolume ( int direction , int flags ) {
 + public void adjustMasterVolume ( int direction , int flags ) {
 IAudioService service = getService ( ) ;
 try {
 service . adjustMasterVolume ( direction , flags ) ;

Make AudioManager adjustMasterVolume public and hidden


<nb> public class DashboardServiceImplTest {

 @ before
 public void setUpService ( ) throws Exception {
 - this . dashboardService = new DashboardServiceImpl ( mongoRule . getMongoConnection ( ) , metricRegistry , searches , dashboardWidgetCreator ) ;
 + this . dashboardService = new DashboardServiceImpl ( mongoRule . getMongoConnection ( ) , dashboardWidgetCreator ) ;
 }

 @ test


<nb> public class QueuedKeyedResourcePool < K , V > extends KeyedResourcePool < K , V > {
 }

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class QueuedKeyedResourcePool < K , V > extends KeyedResourcePool < K , V > {
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class QueuedKeyedResourcePool < K , V > extends KeyedResourcePool < K , V > {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ExceededQuotaSlopTest {
 SINGLE
 setGetPutQuotasForEachServer ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 +
 SINGLE
 SINGLE
 SINGLE


<nb> public final class ContactsContract {
 Uri . withAppendedPath ( AUTHORITY_URI , STRING0 ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final Uri CORP_CONTENT_URI =
 + Uri . withAppendedPath ( AUTHORITY_URI , STRING1 ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 public static final Uri PROFILE_CONTENT_URI =


<nb> class NetworkManagementService extends INetworkManagementService . Stub {
 }

 private String convertQuotedString ( String s ) {
 - COMMENT
 - return STRING0 + s . replaceAll ( STRING1 , STRING2 ) . replaceAll ( STRING3 , STRING4 ) + STRING0 ;
 + if ( s == null ) {
 + return s ;
 + }
 + COMMENT
 + return STRING0 + s . replaceAll ( STRING1 , STRING2 ) . replaceAll ( STRING3 , STRING4 ) + STRING0 ;
 }

 public void stopAccessPoint ( ) throws IllegalStateException {


<nb> public class LauncherServices implements PluginServiceRegistry {
 }

 public void registerBuildSessionServices ( ServiceRegistration registration ) {
 + registration . addProvider ( new ToolingBuildSessionScopeServices ( ) ) ;
 }

 public void registerBuildServices ( ServiceRegistration registration ) {
 - registration . addProvider ( new ToolingBuildScopeServices ( ) ) ;
 +
 }

 public void registerGradleServices ( ServiceRegistration registration ) {
 <nb> public class LauncherServices implements PluginServiceRegistry {

 }

 - static class ToolingBuildScopeServices {
 + static class ToolingBuildSessionScopeServices {
 PayloadClassLoaderFactory createClassLoaderFactory ( ClassLoaderFactory classLoaderFactory , JarCache jarCache , CacheRepository cacheRepository ) {
 return new DaemonSidePayloadClassLoaderFactory (
 new ModelClassLoaderFactory (

Move PayloadSerializer from build scope to build session scope


<nb> public final class SkylarkRuleContext {
 + STRING0
 + STRING1
 + STRING2
 - + STRING3 )
 + + STRING4
 + + STRING5
 + + STRING6 )
 public SkylarkClassObject getFile ( ) {
 return fileObject ;
 }
 <nb> public final class SkylarkRuleContext {
 doc = STRING7
 + STRING8
 + STRING9
 - + STRING10 )
 + + STRING10
 + + STRING5
 + + STRING11 )
 public SkylarkClassObject getFiles ( ) {
 return filesObject ;
 }

Clarify Skylark doc for ctx files and ctx file


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


<nb> public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc
 if ( mFocusedNode . mHasFocus && ! mWebView . isInTouchMode ( ) ) {
 return ! mFocusedNode . mEditable ;
 }
 - if ( mInitialHitTestResult . getType ( ) == HitTestResult . UNKNOWN_TYPE ) {
 + if ( mFocusedNode . mHasFocus && mFocusedNode . mEditable ) {
 return false ;
 }
 long delay = System . currentTimeMillis ( ) - mTouchHighlightRequested ;


<nb> public class Reporter {

 public void missingMethodInvocation ( ) {
 throw new MissingMethodInvocationException ( join (
 - STRING0 ,
 + STRING1 ,
 STRING2 ,
 STRING3 ,
 STRING4 ,
 - STRING5 ,
 - STRING6 ,
 - STRING4
 + STRING7 ,
 + STRING8 ,
 + STRING9 ,
 + STRING10
 ) ) ;
 }

 <nb> public class Reporter {

 public void nullPassedToVerify ( ) {
 throw new NullInsteadOfMockException ( join (
 - STRING11 ,
 + STRING12 ,
 STRING13 ,
 STRING14 ,
 STRING15 ,
 <nb> public class ModellingDescriptiveMessagesTest extends TestBase {

 @ test
 public void shouldMentionFinalAndObjectMethodsWhenMissingMockCall ( ) {
 - when ( mock . equals ( null ) ) . thenReturn ( false ) ;
 + when ( STRING4 . equals ( null ) ) . thenReturn ( false ) ;
 }

 @ test


<nb> public class DevicePolicyManager {
 }

 COMMENT
 + @ systemapi
 public String getDeviceOwner ( ) {
 if ( mService != null ) {
 try {
 <nb> public class DevicePolicyManager {
 COMMENT
 COMMENT
 COMMENT
 + @ systemapi
 public ComponentName getProfileOwner ( ) throws IllegalArgumentException {
 return getProfileOwnerAsUser ( Process . myUserHandle ( ) . getIdentifier ( ) ) ;
 }

Marking the methods to get Profile Device Owner with SystemApi


<nb> public class EditorConfigNotifierProvider extends EditorNotifications . Provider < E
 }
 } . text ( STRING0 ) .
 icon ( EditorconfigIcons . Editorconfig ) ;
 - panel . createActionLabel ( STRING1 , new Runnable ( ) {
 + panel . createActionLabel ( STRING2 , new Runnable ( ) {
 @ override
 public void run ( ) {
 - settings . getCustomSettings ( EditorConfigSettings . class ) . ENABLED = false ;
 + PropertiesComponent . getInstance ( project ) . setValue ( EDITOR_CONFIG_ACCEPTED , STRING3 ) ;
 EditorNotifications . getInstance ( project ) . updateAllNotifications ( ) ;
 }
 } ) ;
 - panel . createActionLabel ( STRING4 , new Runnable ( ) {
 + panel . createActionLabel ( STRING1 , new Runnable ( ) {
 @ override
 public void run ( ) {
 - PropertiesComponent . getInstance ( project ) . setValue ( EDITOR_CONFIG_ACCEPTED , STRING3 ) ;
 + settings . getCustomSettings ( EditorConfigSettings . class ) . ENABLED = false ;
 EditorNotifications . getInstance ( project ) . updateAllNotifications ( ) ;
 }
 } ) ;

make labels more consistent with other formatter notifications


<nb> public class SuggestionSpan extends CharacterStyle implements ParcelableSpan {

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public int getUnderlineColor ( ) {
 SINGLE


<nb>
 -
 package NAMESPACE ;

 import NAMESPACE ;
 <nb> public class BlockFluidClassic extends BlockFluidBase
 return false ;
 }

 - if ( this . density > getDensity ( world , x , y , z ) )
 + int density = getDensity ( world , x , y , z ) ;
 + if ( density == Integer . MAX_VALUE )
 + {
 + return true ;
 + }
 +
 + if ( this . density > density )
 {
 - return true ;
 + return true ;
 }
 else
 {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class GitMergeOperation extends GitBranchOperation {
 switch ( myDeleteOnMerge ) {
 case DELETE :
 super . notifySuccess ( message ) ;
 - GitBrancher brancher = ServiceManager . getService ( myProject , GitBrancher . class ) ;
 - brancher . deleteBranch ( myBranchToMerge , new ArrayList < GitRepository > ( getRepositories ( ) ) ) ;
 + ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { SINGLE
 + @ override
 + public void run ( ) {
 + GitBrancher brancher = ServiceManager . getService ( myProject , GitBrancher . class ) ;
 + brancher . deleteBranch ( myBranchToMerge , new ArrayList < GitRepository > ( getRepositories ( ) ) ) ;
 + }
 + } ) ;
 break ;
 case PROPOSE :
 String description = message + STRING0 + myBranchToMerge + STRING1 ;

git Start the background task from the EDT


<nb> public class RebuildIndexRangesJob extends SystemJob {

 try {
 ranges . add ( calculateRange ( index ) ) ;
 - Thread . sleep ( NUMBER0 ) ;
 } catch ( EmptyIndexException e ) {
 LOG . info ( STRING0 , index ) ;
 continue ;


<nb> public final class RingBuffer < E > implements Cursored , DataProvider < E >
 {
 sequencer . publish ( sequence ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public long remainingCapacity ( )
 + {
 + return sequencer . remainingCapacity ( ) ;
 + }
 +

 private void translateAndPublish ( EventTranslator < E > translator , long sequence )
 {


<nb> public class BlobPage extends RepositoryPage {
 }
 }

 - SINGLE
 - RevCommit commit = JGitUtils . getCommit ( r , objectId ) ;
 + RevCommit commit = getCommit ( ) ;

 SINGLE
 add ( new BookmarkablePageLink < Void > ( STRING0 , BlamePage . class ,

Redirect to log page is the blobpage references a commit we can t find


<nb> import NAMESPACE ;
 public class InputFilesTaskStateChanges extends AbstractNamedFileSnapshotTaskStateChanges {
 public InputFilesTaskStateChanges ( TaskExecution previous , TaskExecution current , TaskInternal task , FileCollectionSnapshotter snapshotter ) {
 super ( task . getName ( ) , previous , current , snapshotter , true , STRING0 , task . getInputs ( ) . getFileProperties ( ) ) ;
 + SINGLE
 + current . setInputFilesSnapshot ( getCurrent ( ) ) ;
 }

 @ override
 <nb> public class InputFilesTaskStateChanges extends AbstractNamedFileSnapshotTaskSta

 @ override
 public void saveCurrent ( ) {
 - SINGLE
 - current . setInputFilesSnapshot ( getCurrent ( ) ) ;
 + SINGLE
 }

 @ override

Save input files state upon construction


<nb> public class ActionButton extends JComponent implements ActionButtonComponent {
 protected void processMouseEvent ( MouseEvent e ) {
 super . processMouseEvent ( e ) ;
 if ( e . isConsumed ( ) ) return ;
 - boolean flag = e . isMetaDown ( ) ;
 + boolean skipPress = e . isMetaDown ( ) || e . getButton ( ) != MouseEvent . BUTTON1 ;
 switch ( e . getID ( ) ) {
 case MouseEvent . MOUSE_PRESSED :
 - if ( flag || ! isButtonEnabled ( ) ) return ;
 + if ( skipPress || ! isButtonEnabled ( ) ) return ;
 myMouseDown = true ;
 ourGlobalMouseDown = true ;
 repaint ( ) ;
 break ;

 case MouseEvent . MOUSE_RELEASED :
 - if ( flag || ! isButtonEnabled ( ) ) return ;
 + if ( skipPress || ! isButtonEnabled ( ) ) return ;
 myMouseDown = false ;
 ourGlobalMouseDown = false ;
 if ( myRollover ) {


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

Remove wildcard from import statements in FileAppenderFactory


<nb> public class WebSocketRedeployTest
 {
 server = new Server ( ) ;
 SelectChannelConnector connector = new SelectChannelConnector ( ) ;
 - connector . setPort ( NUMBER0 ) ;
 + SINGLE
 server . addConnector ( connector ) ;

 HandlerCollection handlers = new HandlerCollection ( ) ;


<nb> public class PsiElementFactoryImpl extends PsiJavaParserFacadeImpl implements Ps
 final Project project = myManager . getProject ( ) ;
 final Lexer lexer = parserDefinition . createLexer ( project ) ;
 final PsiBuilder builder = PsiBuilderFactory . getInstance ( ) . createBuilder ( project , holder , lexer , language , text ) ;
 - parserDefinition . createParser ( project ) . parse ( type , builder ) ;
 - final ASTNode node = builder . getTreeBuilt ( ) ;
 + final ASTNode node = parserDefinition . createParser ( project ) . parse ( type , builder ) ;
 holder . rawAddChildren ( ( TreeElement ) node ) ;
 return node . getPsi ( ) ;
 }


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

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

 import NAMESPACE ;

WebHCatJTShim implementations are missing Apache license headers Jarek Jarcec Cecho via Brock Noland Thejas Nair


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public abstract class TwoWayLayoutManager extends LayoutManager {
 - private static final String LOGTAG = STRING0 ;
 + private static final String LOGTAG = STRING1 ;

 public static enum Orientation {
 HORIZONTAL ,


<nb> public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto

 @ override
 public void preInstantiateSingletons ( ) throws BeansException {
 - if ( this . logger . isInfoEnabled ( ) ) {
 - this . logger . info ( STRING0 + this ) ;
 + if ( this . logger . isDebugEnabled ( ) ) {
 + this . logger . debug ( STRING0 + this ) ;
 }
 List < String > beanNames ;
 synchronized ( this . beanDefinitionMap ) {

Turn down logging in DefaultListableBeanFactory


<nb> public class ODatabaseDocumentTx extends OListenerManger < ODatabaseListener > imple
 }

 private void installHooks ( ) {
 + hooks . clear ( ) ;
 registerHook ( new OClassTrigger ( this ) , ORecordHook . HOOK_POSITION . FIRST ) ;
 registerHook ( new ORestrictedAccessHook ( this ) , ORecordHook . HOOK_POSITION . FIRST ) ;
 registerHook ( new OUserTrigger ( this ) , ORecordHook . HOOK_POSITION . EARLY ) ;

Fixed issue of where hooks were duplicated


<nb> public class ConfigurationTest {

 long longBytesValue =
 sDefaultConfiguration . getBytes ( Constants . USER_BLOCK_REMOTE_READ_BUFFER_SIZE_BYTES ) ;
 - Assert . assertEquals ( Constants . KB * NUMBER0 , longBytesValue ) ;
 + Assert . assertEquals ( Constants . MB * NUMBER1 , longBytesValue ) ;

 longBytesValue = sDefaultConfiguration . getBytes ( Constants . NETWORK_THRIFT_FRAME_SIZE_BYTES_MAX ) ;
 Assert . assertEquals ( Constants . MB * NUMBER2 , longBytesValue ) ;
 <nb> public class ConfigurationTest {
 Assert . assertEquals ( Constants . MB , longValue ) ;

 longValue = sDefaultConfiguration . getBytes ( Constants . USER_BLOCK_REMOTE_READ_BUFFER_SIZE_BYTES ) ;
 - Assert . assertEquals ( NUMBER0 * Constants . KB , longValue ) ;
 + Assert . assertEquals ( NUMBER1 * Constants . MB , longValue ) ;
 }

 COMMENT

Revert SMALLFIX Fix configuration test due to a default value change


<nb> public class JGroupsExtension implements Extension {
 stacks . registerOperationHandler ( ModelKeys . REMOVE_PROTOCOL , StackConfigOperationHandlers . PROTOCOL_REMOVE , JGroupsSubsystemProviders . PROTOCOL_REMOVE ) ;
 SINGLE
 if ( context . isRuntimeOnlyRegistrationValid ( ) ) {
 - final EnumSet < OperationEntry . Flag > readOnly = EnumSet . of ( OperationEntry . Flag . READ_ONLY ) ;
 + final EnumSet < OperationEntry . Flag > readOnly = EnumSet . of ( OperationEntry . Flag . READ_ONLY , OperationEntry . Flag . RUNTIME_ONLY ) ;
 stacks . registerOperationHandler ( ModelKeys . EXPORT_NATIVE_CONFIGURATION , StackConfigOperationHandlers . EXPORT_NATIVE_CONFIGURATION , JGroupsSubsystemProviders . EXPORT_NATIVE_CONFIGURATION , readOnly ) ;
 }

Add RUNTIME_ONLY flag to export native configuration op


<nb> public class ExecutionGraph {
 int nextPos = nextVertexToFinish ;
 if ( nextPos >= verticesInCreationOrder . size ( ) ) {
 SINGLE
 - LOG . error ( STRING0 ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 return ;
 }

Remove error message in execution graph for concurrent state changes that are fully acceptable


<nb> public class BreakpointMasterDetailPopupBuilder {
 private Set < XBreakpointGroupingRule > myRulesEnabled = new TreeSet < XBreakpointGroupingRule > ( new Comparator < XBreakpointGroupingRule > ( ) {
 @ override
 public int compare ( XBreakpointGroupingRule o1 , XBreakpointGroupingRule o2 ) {
 - return o2 . getPriority ( ) - o1 . getPriority ( ) ;
 + final int res = o2 . getPriority ( ) - o1 . getPriority ( ) ;
 + return res != NUMBER0 ? res : ( o1 . getId ( ) . compareTo ( o2 . getId ( ) ) ) ;
 }
 } ) ;

TreeSet collapses different breakpoint groups with equal priorities


<nb> public abstract class BaseSprite extends BaseRectangle {
 return this . mTextureRegion ;
 }

 - public void setTextureRegionFlippedHorizontal ( final boolean pFlippedHorizontal ) {
 + public void setFlippedHorizontal ( final boolean pFlippedHorizontal ) {
 this . mTextureRegion . setFlippedHorizontal ( pFlippedHorizontal ) ;
 }

 - public void setTextureRegionFlippedVertical ( final boolean pFlippedVertical ) {
 + public void setFlippedVertical ( final boolean pFlippedVertical ) {
 this . mTextureRegion . setFlippedVertical ( pFlippedVertical ) ;
 }

Simplified methodnaming of previous commit


<nb> public class ClasspathPanel extends JPanel {
 upButton . setEnabled ( minRow > NUMBER0 && minRow < myEntryTable . getRowCount ( ) ) ;
 downButton . setEnabled ( maxRow >= NUMBER0 && maxRow < myEntryTable . getRowCount ( ) - NUMBER1 ) ;
 removeButton . setEnabled ( removeButtonEnabled ) ;
 - myEditButton . setEnabled ( selectedRows . length == NUMBER1 && myModel . getItemAt ( selectedRows [ NUMBER0 ] ) instanceof LibItem ) ;
 + TableItem selectedItem = selectedRows . length == NUMBER1 ? myModel . getItemAt ( selectedRows [ NUMBER0 ] ) : null ;
 + myEditButton . setEnabled ( selectedItem instanceof LibItem && selectedItem . isEditable ( ) ) ;
 }
 } ) ;


<nb> public class Element {
 } else {
 match = posToken . equals ( token . getPOSTag ( ) ) ;
 }
 + if ( ! match && UNKNOWN_TAG . equals ( posToken ) ) { SINGLE
 + match = JLanguageTool . SENTENCE_END_TAGNAME . equals ( token . getPOSTag ( ) )
 + || JLanguageTool . PARAGRAPH_END_TAGNAME . equals ( token . getPOSTag ( ) ) ;
 + }
 return match ;
 }


<nb> public class JavaSourceProcessor extends BaseSourceProcessor {
 STRING0 , STRING1 , STRING2 ,
 STRING3 , STRING4 , STRING5 ,
 STRING6 , STRING7 , STRING8 ,
 - STRING9 , STRING10
 + STRING11 , STRING9 ,
 + STRING10
 } ) ;

 immutableFieldTypes . addAll ( getPropertyList ( STRING12 ) ) ;

SourceFormatter auto capitalizes static java lang reflect Field and Method


<nb> public class WorkflowEngine implements ServerComponent {

 Preconditions . checkState ( verifyConditions ( review , context , workflow . getConditions ( commandKey ) ) , STRING0 ) ;

 - ImmutableMap < String , String > immutableParameters = ImmutableMap . copyOf ( parameters ) ;
 + Map < String , String > immutableParameters = ImmutableMap . copyOf ( parameters ) ;

 SINGLE
 Review initialReview = ( ( DefaultReview ) review ) . cloneImmutable ( ) ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class HasProjectPropertyCondition extends ProjectPropertyCondition
 @ override
 public boolean doVerify ( Review review , WorkflowContext context ) {
 Settings settings = context . getProjectSettings ( ) ;
 - return settings . hasKey ( getPropertyKey ( ) ) || settings . getDefaultValue ( getPropertyKey ( ) ) != null ;
 + return settings . hasKey ( getPropertyKey ( ) ) || settings . getDefaultValue ( getPropertyKey ( ) ) != null ;
 }
 }


<nb> public abstract class CallPeerMediaHandler < T extends MediaAwareCallPeer < ? , ? , ? > >

 if ( videoStream != null )
 {
 - videoStream . setDirection ( direction ) ;
 - videoStream . setMute ( true ) ;
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + videoStream . setDirection ( MediaDirection . INACTIVE ) ;
 + SINGLE
 + SINGLE
 }
 }
 COMMENT

Set video direction to INACTIVE when using local hold because currently we cannot mute video streams


<nb> public class JvmMonitorService extends AbstractLifecycleComponent < JvmMonitorServ
 }

 @ override public void run ( ) {
 - monitorDeadlock ( ) ;
 + SINGLE
 monitorLongGc ( ) ;
 }


<nb> public class GraphDatabaseConfiguration {
 COMMENT
 COMMENT
 public static final String PORT_KEY = STRING0 ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String AUTH_USERNAME_KEY = STRING1 ;
 + public static final String AUHT_PASSWORD_KEY = STRING2 ;
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public final class JSDocInfoPrinter {
 if ( info . isConstant ( ) ) {
 sb . append ( STRING0 ) ;
 }
 + if ( info . isExport ( ) ) {
 + sb . append ( STRING1 ) ;
 + }
 if ( info . isDeprecated ( ) ) {
 sb . append ( STRING2 ) ;
 sb . append ( info . getDeprecationReason ( ) + STRING3 ) ;

Print export annotations in the JSDocInfoPrinter


<nb> public class WPWebViewActivity extends WebViewActivity {
 SINGLE
 SINGLE
 if ( ! TextUtils . isEmpty ( addressToLoad ) && addressToLoad . endsWith ( STRING0 ) ) {
 - int indexOf = addressToLoad . lastIndexOf ( STRING0 ) ;
 - SINGLE
 + SINGLE
 allowedURL . add ( addressToLoad . substring ( NUMBER0 , addressToLoad . length ( ) - NUMBER1 ) ) ;
 }
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class LineChartActivity extends ActionBarActivity {
 if ( id == R . id . action_toggle_bezier ) {
 toggleBezier ( ) ;
 chart . setLineChartData ( data ) ;
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + Viewport v = chart . getMaxViewport ( ) ;
 + float dy = v . height ( ) * FLOAT0 ; SINGLE
 + v . inset ( NUMBER0 , - dy ) ;
 + chart . setMaxViewport ( v ) ;
 + chart . setViewport ( v , true ) ;
 return true ;
 }
 if ( id == R . id . action_toggle_area ) {


<nb> public final class LoggerInfoStream extends InfoStream {
 }

 public void message ( String component , String message ) {
 - logger . trace ( STRING0 , component , message ) ;
 + logger . trace ( STRING1 , Thread . currentThread ( ) . getName ( ) , component , message ) ;
 }

 public boolean isEnabled ( String component ) {

include thread name when logging IndexWriter s infoStream messages