<nb> public class XOAuthConsumer extends CommonsHttpOAuthConsumer {
 }

 try {
 - HttpUriRequest request = ( HttpUriRequest ) sign ( post ) ;
 + HttpUriRequest request = ( HttpUriRequest ) sign ( post ) . unwrap ( ) ;
 final HttpClient httpClient = new DefaultHttpClient ( ) ;
 final HttpResponse response = httpClient . execute ( request ) ;

 <nb> public class XOAuthConsumer extends CommonsHttpOAuthConsumer {
 Object value = tokener . nextValue ( ) ;

 if ( value instanceof JSONObject ) {
 - return ( ( JSONObject ) value ) . getString ( STRING0 ) ;
 + return ( ( JSONObject ) value ) . optString ( STRING0 , null ) ;
 } else {
 Log . w ( TAG , STRING1 + responseString ) ;
 }


<nb> public class TileHopper extends TileBuildCraft implements IInventory {
 @ override
 public void updateEntity ( ) {
 super . updateEntity ( ) ;
 - if ( CoreProxy . proxy . isRenderWorld ( worldObj ) || worldObj . getWorldTime ( ) % NUMBER0 != NUMBER1 )
 + if ( CoreProxy . proxy . isRenderWorld ( worldObj ) || worldObj . getWorldTime ( ) % NUMBER2 != NUMBER1 )
 return ;

 TileEntity tile = this . worldObj . getBlockTileEntity ( xCoord , yCoord - NUMBER3 , zCoord ) ;


<nb> public class Mustache {
 }

 protected Mustache compilePartial ( String name ) throws MustacheException {
 + MustacheTrace . Event event = null ;
 + if ( trace ) {
 + event = MustacheTrace . addEvent ( STRING0 + name , root . getName ( ) ) ;
 + }
 Mustache mustache ;
 mustache = mj . parseFile ( name + STRING1 ) ;
 mustache . setMustacheJava ( mj ) ;
 mustache . setRoot ( root ) ;
 + if ( trace ) {
 + event . end ( ) ;
 + }
 return mustache ;
 }


<nb> public class SerializationFactory {
 Class klass = Class . forName ( klassName ) ;
 IKryoDecorator decorator = ( IKryoDecorator ) klass . newInstance ( ) ;
 decorator . decorate ( k ) ;
 - System . out . println ( klassName + STRING0 ) ;
 } catch ( ClassNotFoundException e ) {
 if ( skipMissing ) {
 LOG . info ( STRING1 + klassName + STRING2 ) ;


<nb> public class PyActiveSdkConfigurable implements UnnamedConfigurable {

 @ override
 public void consume ( @ nullable Sdk sdk ) {
 - if ( getSdk ( ) != sdk ) {
 + if ( sdk instanceof PyDetectedSdk ) {
 + final Sdk addedSdk = SdkConfigurationUtil . setupSdk ( myProjectSdksModel . getSdks ( ) , sdk . getHomeDirectory ( ) ,
 + PythonSdkType . getInstance ( ) , true ,
 + null , null ) ;
 + myAddedSdk = addedSdk ;
 + myProjectSdksModel . addSdk ( addedSdk ) ;
 + myProjectSdksModel . removeSdk ( sdk ) ;
 + mySdkCombo . setSelectedItem ( addedSdk ) ;
 + }
 + else if ( getSdk ( ) != sdk ) {
 mySdkCombo . setSelectedItem ( sdk ) ;
 }
 }


<nb> public enum AttributeType {
 }
 return false ;
 }
 +
 + public boolean isListType ( ) {
 + if ( this . equals ( LIST_BIGDECIMAL )
 + || this . equals ( LIST_BIGINTEGER )
 + || this . equals ( LIST_BOOLEAN )
 + || this . equals ( LIST_BYTE )
 + || this . equals ( LIST_CHARACTER )
 + || this . equals ( LIST_DOUBLE )
 + || this . equals ( LIST_FLOAT )
 + || this . equals ( LIST_INTEGER )
 + || this . equals ( LIST_LONG )
 + || this . equals ( LIST_SHORT )
 + || this . equals ( LIST_STRING ) ) {
 + return true ;
 + }
 + return false ;
 + }
 }


<nb> public class ImageDownloader {
 BitmapDownloaderTask task = new BitmapDownloaderTask ( imageView , isDiskCaching ) ;
 DownloadedDrawable downloadedDrawable = new DownloadedDrawable ( task ) ;
 imageView . setImageDrawable ( downloadedDrawable ) ;
 - SINGLE
 - task . execute ( url ) ;
 + SINGLE
 + AndroidUtils . executeAsyncTask ( task , url ) ;
 }
 }

Execute image loader on thread pool again


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

 - @ ignore ( STRING0 )
 + @ ignore ( STRING1 )
 public class BackupHaIT
 {
 private DbRepresentation representation ;

Changes ignore reason for BackupHaIT test


<nb> public class JuelExpression extends ExpressionSupport < Exchange > {
 private final Class < ? > type ;
 private ExpressionFactory expressionFactory ;

 + public static JuelExpression el ( String expression ) {
 + return new JuelExpression ( expression , Object . class ) ;
 + }
 +
 public JuelExpression ( String expression , Class < ? > type ) {
 this . expression = expression ;
 this . type = type ;


<nb> public class PyInjectionUtil {
 if ( formatting != Formatting . NONE ) {
 final String part = range . substring ( text ) ;
 final List < FormatStringChunk > chunks = formatting == Formatting . NEW_STYLE ? parseNewStyleFormat ( part ) : parsePercentFormat ( part ) ;
 + if ( chunks . isEmpty ( ) ) {
 + registrar . addPlace ( prefix , suffix , expr , range ) ;
 + continue ;
 + }
 for ( int i = NUMBER0 ; i < chunks . size ( ) ; i ++ ) {
 final FormatStringChunk chunk = chunks . get ( i ) ;
 if ( chunk instanceof ConstantChunk ) {

Add injection place even if a string fragment consists of zero chunks


<nb> public class Parser {
 } else {
 formalParameterList = parseFormalParameterList ( ) ;
 }
 + if ( peekImplicitSemiColon ( ) ) {
 + reportError ( STRING0 ) ;
 + }
 eat ( TokenType . ARROW ) ;
 ParseTree functionBody ;
 if ( peek ( TokenType . OPEN_CURLY ) ) {
 <nb> public class NewParserTest extends BaseJSTypeTestCase {
 STRING1 ) ;
 }

 - public void testArrow2 ( ) {
 + public void testArrowInvalid ( ) {
 mode = LanguageMode . ECMASCRIPT6 ;
 parseError ( STRING2 , STRING3 ) ;
 + parseError ( STRING4 , STRING0 ) ;
 + parseError ( STRING5 , STRING0 ) ;
 + parseError ( STRING6 , STRING0 ) ;
 }

 public void testForIn_ES6 ( ) {

Reject arrow functions with a newline before the arrow


<nb> public abstract class AbstractPerfTestQueueVsDisruptor
 {
 System . gc ( ) ;
 queueOps [ i ] = runQueuePass ( ) ;
 + System . out . println ( STRING0 + i ) ;
 }
 +
 }

 for ( int i = NUMBER0 ; i < RUNS ; i ++ )
 {
 System . gc ( ) ;
 disruptorOps [ i ] = runDisruptorPass ( ) ;
 + System . out . println ( STRING1 + i ) ;
 }

 printResults ( getClass ( ) . getSimpleName ( ) , disruptorOps , queueOps ) ;

Added progress reporting to throughput tests in new format


<nb> import NAMESPACE ;
 public final class Scope implements Comparable , Serializable
 {
 SINGLE
 - SINGLE
 + SINGLE
 SINGLE

 COMMENT


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ClickHandler extends AbstractViewListenerHandler {
 JVar viewParam = listenerMethod . param ( classes ( ) . VIEW , STRING0 ) ;

 if ( hasItemParameter ) {
 - call . arg ( viewParam ) ;
 + call . arg ( castArgumentIfNecessary ( holder , CanonicalNameConstants . VIEW , viewParam , parameters . get ( NUMBER0 ) ) ) ;
 }
 }


<nb> public class ESNode implements Startable {
 if (
 node . client ( ) . admin ( ) . cluster ( ) . prepareHealth ( )
 . setWaitForYellowStatus ( )
 + . setTimeout ( healthTimeout )
 . get ( )
 . getStatus ( ) == ClusterHealthStatus . RED ) {
 throw new IllegalStateException (


<nb> import NAMESPACE ;
 public interface Session {

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + String getId ( ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DefaultSession implements Session {
 }

 @ override
 + public String getId ( ) {
 + return sessionId . getValue ( ) . toString ( ) ;
 + }
 +
 + @ override
 public Promise < SessionData > getData ( ) {
 if ( needsLoad ) {
 return storeAdapter . load ( sessionId . getValue ( ) ) . map ( bytes - > {


<nb> public class EditorTabsConfigurable implements EditorOptionsProvider {

 boolean none = i == UISettings . TABS_NONE ;
 myHideKnownExtensions . setEnabled ( ! none ) ;
 + myHideTabsCheckbox . setEnabled ( ! none && myScrollTabLayoutInEditorCheckBox . isSelected ( ) ) ;
 myScrollTabLayoutInEditorCheckBox . setEnabled ( ! none ) ;
 myCbModifiedTabsMarkedWithAsterisk . setEnabled ( ! none ) ;
 myShowTabsTooltipsCheckBox . setEnabled ( ! none ) ;

Disable Hide tabs checkbox if tab placement is None


<nb> public class MainActivity extends ActionBarActivity {
 private void showCustomList ( ) {
 MaterialDialog dialog = new MaterialDialog . Builder ( this )
 . title ( R . string . socialNetworks )
 - . itemsCallback ( new MaterialDialog . ListCallback ( ) {
 - @ override
 - public void onSelection ( MaterialDialog dialog , View view , int which , CharSequence text ) {
 - Toast . makeText ( getApplicationContext ( ) , which + STRING0 + text , Toast . LENGTH_SHORT ) . show ( ) ;
 - }
 - } )
 . adapter ( new ButtonItemAdapter ( this , R . array . socialNetworks ) )
 . build ( ) ;


<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> class ColumnarBinaryHiveRecordCursor < K >
 {
 checkState ( ! closed , STRING0 ) ;

 - validateType ( fieldId , VARCHAR ) ;
 + if ( ! types [ fieldId ] . equals ( VARCHAR ) && ! types [ fieldId ] . equals ( VARBINARY ) ) {
 + SINGLE
 + throw new IllegalArgumentException ( String . format ( STRING1 , types [ fieldId ] , fieldId ) ) ;
 + }
 +
 if ( ! loaded [ fieldId ] ) {
 parseStringColumn ( fieldId ) ;
 }

Fix type check in RC binary cursor for varbinary fields


<nb> public class MaterialViewPagerAnimator {
 public void registerScrollView ( final ObservableScrollView scrollView , final ObservableScrollViewCallbacks observableScrollViewCallbacks ) {
 if ( scrollView != null ) {
 scrollViewList . add ( scrollView ) ; SINGLE
 + scrollView . setTouchInterceptionViewGroup ( ( ViewGroup ) scrollView . getParent ( ) . getParent ( ) ) ;
 scrollView . setScrollViewCallbacks ( new ObservableScrollViewCallbacks ( ) {
 @ override
 public void onScrollChanged ( int i , boolean b , boolean b2 ) {
 <nb> public class MaterialViewPagerAnimator {
 public void registerListView ( final ObservableListView listView , final ObservableScrollViewCallbacks observableScrollViewCallbacks ) {
 if ( listView != null ) {
 scrollViewList . add ( listView ) ; SINGLE
 + listView . setTouchInterceptionViewGroup ( ( ViewGroup ) listView . getParent ( ) . getParent ( ) ) ;
 listView . setScrollViewCallbacks ( new ObservableScrollViewCallbacks ( ) {
 @ override
 public void onScrollChanged ( int i , boolean b , boolean b2 ) {

Stop the ViewPager from handling touch events


<nb> public class SelectCategoriesActivity extends SherlockListActivity {
 int category_id = Integer . parseInt ( result . toString ( ) ) ;
 SINGLE
 WordPress . wpDB . insertCategory ( blog . getId ( ) , category_id , parent_id , category_name ) ;
 -
 returnString = STRING0 ;
 + SINGLE
 + mSelectedCategories . add ( category_name ) ;
 }

 return returnString ;

Creating a new category does not automatically add it


<nb>
 class Test {
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void foo ( ) {
 }


<nb> public class BlockingHttpClient {
 . map ( response - > {
 TypedData responseBody = response . getBody ( ) ;
 ByteBuf responseBuffer = responseBody . getBuffer ( ) ;
 - ByteBuf heapResponseBodyBuffer = unreleasableBuffer ( responseBuffer . isDirect ( ) ? copiedBuffer ( responseBuffer ) : responseBuffer ) ;
 + ByteBuf heapResponseBodyBuffer = unreleasableBuffer ( responseBuffer . isDirect ( ) ? copiedBuffer ( responseBuffer ) : responseBuffer . retain ( ) ) ;

 return new DefaultReceivedResponse (
 response . getStatus ( ) ,


<nb> public class TimerEndpoint extends DefaultEndpoint implements MultipleConsumersS
 private boolean daemon = true ;
 @ uriparam
 private Timer timer ;
 - @ uriparam ( defaultValue = STRING0 )
 + @ uriparam ( defaultValue = STRING1 )
 private long repeatCount ;

 public TimerEndpoint ( ) {


<nb> public class InputFile {
 if ( fileName . endsWith ( STRING0 ) ) {
 return loadFromClassFile ( file ) ;
 }
 - if ( fileName . endsWith ( STRING1 ) ) {
 + if ( fileName . endsWith ( STRING1 ) || fileName . endsWith ( STRING2 ) ) {
 Dex dex = loadFromZip ( file ) ;
 if ( dex == null ) {
 throw new IOException ( STRING3 + file ) ;


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FileHandle {
 return file ( ) . isDirectory ( ) ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 public FileHandle child ( String name ) {
 if ( file . getPath ( ) . length ( ) == NUMBER0 ) return new FileHandle ( new File ( name ) , type ) ;
 return new FileHandle ( new File ( file , name ) , type ) ;
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 public FileHandle sibling ( String name ) {
 if ( file . getPath ( ) . length ( ) == NUMBER0 ) throw new GdxRuntimeException ( STRING0 ) ;
 return new FileHandle ( new File ( file . getParent ( ) , name ) , type ) ;


<nb> public class BitwiseInputStream {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public int read ( int bits ) throws AccessException {
 <nb> public class BitwiseInputStream {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 public byte [ ] readByteArray ( int bits ) throws AccessException {
 <nb> public class BitwiseOutputStream {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class TemplateQueryParserTests extends ESTestCase {
 TemplateQueryParser parser = injector . getInstance ( TemplateQueryParser . class ) ;
 try {
 parser . fromXContent ( context . parseContext ( ) ) . toQuery ( context ) ;
 + fail ( ) ;
 } catch ( UnsupportedOperationException ex ) {
 assertEquals ( STRING0 , ex . getMessage ( ) ) ;
 }


<nb> public class SdkConfigurationUtil {
 showSuggestedHomesPopup ( project , sdkType , existingSdks , suggestedSdkHomes , popupOwner , callback ) ;
 }
 else {
 - createSdk ( project , existingSdks , new Consumer < Sdk > ( ) {
 - @ override
 - public void consume ( Sdk sdk ) {
 - callback . consume ( sdk ) ;
 - }
 - } , sdkType ) ;
 + createSdk ( project , existingSdks , callback , sdkType ) ;
 }
 }

 <nb> public class SdkConfigurationUtil {
 ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) {
 @ override
 public void run ( ) {
 - createSdk ( project , existingSdks , new Consumer < Sdk > ( ) {
 - @ override
 - public void consume ( Sdk sdk ) {
 - callback . consume ( sdk ) ;
 - }
 - } , sdkType ) ;
 + createSdk ( project , existingSdks , callback , sdkType ) ;
 }
 } , ModalityState . current ( ) ) ;
 }

remove redundant callback wrappers r yole


<nb> public class MatchTask extends AbstractTask {
 v1ResettableIterator . reset ( ) ;
 }

 - SINGLE
 - v1ResettableIterator . close ( ) ;
 -
 } catch ( Exception e ) {
 throw new RuntimeException ( e ) ;
 } finally {
 if ( v1ResettableIterator != null ) {
 try {
 + SINGLE
 v1ResettableIterator . close ( ) ;
 } catch ( ServiceException e ) {
 LOG . warn ( e ) ;

fixed double closing SpillingResettableIterator bug in MatchTask


<nb> public class MetaDataExporter {
 Map < String , ForeignKeyData > foreignKeyData = keyDataFactory
 . getImportedKeys ( md , catalog , schema , tableName ) ;
 if ( ! foreignKeyData . isEmpty ( ) ) {
 + Collection < ForeignKeyData > foreignKeysToGenerate = new HashSet < ForeignKeyData > ( ) ;
 for ( ForeignKeyData fkd : foreignKeyData . values ( ) ) {
 if ( namingStrategy . shouldGenerateForeignKey ( schemaAndTable , fkd ) ) {
 - classModel . getData ( ) . put ( ForeignKeyData . class , foreignKeyData . values ( ) ) ;
 + foreignKeysToGenerate . add ( fkd ) ;
 }
 }
 +
 + if ( ! foreignKeysToGenerate . isEmpty ( ) ) {
 + classModel . getData ( ) . put ( ForeignKeyData . class , foreignKeysToGenerate ) ;
 + }
 }
 }

Fix ignoring foreign keys in MetadataExporter


<nb> public class CommandLineParser {
 + STRING0
 + STRING1
 + STRING2
 - + STRING3
 - + STRING4
 + + STRING5
 + + STRING6
 + STRING7 ) ;
 }


<nb> public class SSLCertificateSocketFactory extends SSLSocketFactory {
 }
 } ;

 - private static final HostnameVerifier HOSTNAME_VERIFIER =
 - HttpsURLConnection . getDefaultHostnameVerifier ( ) ;
 -
 private SSLSocketFactory mInsecureFactory = null ;
 private SSLSocketFactory mSecureFactory = null ;
 private TrustManager [ ] mTrustManagers = null ;
 <nb> public class SSLCertificateSocketFactory extends SSLSocketFactory {
 if ( session == null ) {
 throw new SSLException ( STRING0 ) ;
 }
 - if ( ! HOSTNAME_VERIFIER . verify ( hostname , session ) ) {
 + if ( ! HttpsURLConnection . getDefaultHostnameVerifier ( ) . verify ( hostname , session ) ) {
 throw new SSLPeerUnverifiedException ( STRING1 + hostname ) ;
 }
 }

Use hostname verifier directly instead of instance DO NOT MERGE


<nb> public class MapPortableHook implements PortableHook {

 public PortableFactory createFactory ( ) {
 return new PortableFactory ( ) {
 - final ConstructorFunction < Integer , Portable > [ ] constructors = new ConstructorFunction [ EVICT_ALL + NUMBER0 ] ;
 + final ConstructorFunction < Integer , Portable > [ ] constructors = new ConstructorFunction [ IS_EMPTY + NUMBER0 ] ;

 {
 constructors [ GET ] = new ConstructorFunction < Integer , Portable > ( ) {

Fix array initialization on MapPortableHook


<nb> public class StatsGeoviewsFragment extends StatsAbstractListFragment {
 SINGLE
 String htmlPage = STRING0 +
 STRING1 +
 + STRING2 +
 STRING3 +
 STRING4 +
 - STRING5 +
 - STRING6 +
 + STRING7 +
 + STRING8 +
 STRING9 +
 STRING10 +
 STRING11 +
 STRING12 + label + STRING13 +
 dataToLoad +
 STRING14 +
 - STRING15 +
 + STRING16 +
 STRING17 +
 STRING18 +
 STRING19 +

Changed the way Geochart are loaded by using the new methods provided by Google


<nb> class SipSessionGroup implements SipListener {
 if ( expires != null && ( time < NUMBER0 || time > expires . getExpires ( ) ) ) {
 time = expires . getExpires ( ) ;
 }
 + if ( time <= NUMBER0 ) {
 + time = EXPIRY_TIME ;
 + }
 expires = ( ExpiresHeader ) response . getHeader ( MinExpiresHeader . NAME ) ;
 if ( expires != null && time < expires . getExpires ( ) ) {
 time = expires . getExpires ( ) ;
 }
 Log . v ( TAG , STRING0 + time ) ;
 - return ( time > NUMBER0 ) ? time : EXPIRY_TIME ;
 + return time ;
 }

 private boolean registeringToReady ( EventObject evt )

avoid extreme small values in Min Expires headers


<nb> public abstract class IntroduceVariableBase extends IntroduceHandlerBase impleme
 final PsiReference referenceAt = file . findReferenceAt ( startOffset ) ;
 if ( referenceAt != null && referenceAt . resolve ( ) instanceof PsiLocalVariable ) {
 startOffset = referenceAt . getElement ( ) . getTextRange ( ) . getEndOffset ( ) ;
 - } else {
 - startOffset = document . getLineEndOffset ( document . getLineNumber ( startOffset ) ) ;
 + } else if ( declarationStatement != null ) {
 + startOffset = declarationStatement . getTextRange ( ) . getEndOffset ( ) ;
 }
 editor . getCaretModel ( ) . moveToOffset ( startOffset ) ;
 final PsiType selectedType = ReassignVariableUtil . getVariableType ( declarationStatement ) ;

SegmentArray findSegmentIndex move caret to declaration end


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;

 public class ComparisonExpression
 extends Expression
 <nb> public class ComparisonExpression
 result = NUMBER0 * result + right . hashCode ( ) ;
 return result ;
 }
 -
 - public static Predicate < ComparisonExpression > matchesPattern ( final Type type , final Class < ? > left , final Class < ? > right )
 - {
 - return new Predicate < ComparisonExpression > ( )
 - {
 - @ override
 - public boolean apply ( ComparisonExpression expression )
 - {
 - return expression . getType ( ) == type &&
 - left . isAssignableFrom ( expression . getLeft ( ) . getClass ( ) ) &&
 - right . isAssignableFrom ( expression . getRight ( ) . getClass ( ) ) ;
 - }
 - } ;
 - }
 }

Remove unused method from ComparisonExpression


<nb> public class TextDiffTypeFactory {
 Color bg = ( ( EditorEx ) editor ) . getBackgroundColor ( ) ;
 return getMiddleColor ( fg , bg ) ;
 }
 - return attributes . getBackgroundColor ( ) . brighter ( ) ;
 + else {
 + Color fg = attributes . getBackgroundColor ( ) ;
 + Color bg = EditorColorsManager . getInstance ( ) . getGlobalScheme ( ) . getDefaultBackground ( ) ;
 + return getMiddleColor ( fg , bg ) ;
 + }
 }

 @ notnull

better ignored colors for unknown editor


<nb> public class SerializeConfig {
 }

 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public void addFilter ( Class < ? > clazz , SerializeFilter filter ) {
 <nb> public class SerializeConfig {
 }
 }

 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public void config ( Class < ? > clazz , SerializerFeature feature , boolean value ) {


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

 import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class AbstractAppServer extends AbstractServer
 @ override
 public Iterable < String > getAllAvailableCommands ( )
 {
 - return this . apps . keySet ( ) ;
 + return new ArrayList < String > ( apps . keySet ( ) ) ;
 }
 }

Fixed a NotSerializableException issue with the available commands


<nb> public final class PowerManager {

 private void acquireLocked ( ) {
 if ( ! mRefCounted || mCount ++ == NUMBER0 ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 mHandler . removeCallbacks ( mReleaser ) ;
 - if ( ! mHeld ) {
 - try {
 - mService . acquireWakeLock ( mFlags , mToken , mTag , mWorkSource ) ;
 - } catch ( RemoteException e ) {
 - }
 - mHeld = true ;
 + try {
 + mService . acquireWakeLock ( mFlags , mToken , mTag , mWorkSource ) ;
 + } catch ( RemoteException e ) {
 }
 + mHeld = true ;
 }
 }


<nb> public final class UpgradeService {
 if ( from < V4_1_0 ) {
 newVersionString ( changeLog , STRING0 , new String [ ] {
 STRING1 +
 - STRING2 ,
 - STRING3 ,
 - STRING4 ,
 + STRING5 ,
 + STRING6 ,
 + STRING7 ,
 STRING8 ,
 STRING9 ,
 } ) ;


<nb> public class WebView extends AbsoluteLayout
 SINGLE
 SINGLE
 SINGLE
 - data . mView . setLayoutParams ( new ViewGroup . LayoutParams (
 + data . mView . setLayoutParams ( new FrameLayout . LayoutParams (
 ViewGroup . LayoutParams . FILL_PARENT ,
 ViewGroup . LayoutParams . FILL_PARENT ) ) ;
 mFullScreenHolder . setContentView ( data . mView ) ;

use the correct LayoutParams to fix going to fullscreen view


<nb> public class EC2Producer extends DefaultProducer {
 try {
 ec2Client . rebootInstances ( request ) ;
 } catch ( AmazonServiceException ase ) {
 - LOG . trace ( STRING0 , ase . getErrorCode ( ) ) ;
 + LOG . trace ( STRING1 , ase . getErrorCode ( ) ) ;
 throw ase ;
 }
 }

Fix error message related to rebootInstances operation


<nb> public class Solo {
 return viewFetcher . getView ( Button . class , text ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 +
 + public EditText getEditText ( String text )
 + {
 + return viewFetcher . getView ( EditText . class , text ) ;
 + }
 +

 COMMENT
 COMMENT

Added new method getEditText String text that returns an edit text showing a certain text


<nb> public class FileFilter {
 STRING0 , SINGLE
 STRING1 , SINGLE
 STRING2 , SINGLE
 - STRING3 , SINGLE
 - STRING4 ,
 + STRING5 ,
 } ;

 static final String [ ] ignoreTestList = {

Enable some tests that requires local http server


<nb> public class FormatProcessor {
 myBlockIndentOptions . getIndentOptions ( myCurrentBlock ) ) ;
 BlockAlignmentProcessor . Result result = alignmentProcessor . applyAlignment ( context ) ;
 final LeafBlockWrapper offsetResponsibleBlock = alignment . getOffsetRespBlockBefore ( myCurrentBlock ) ;
 + return processAlignmentResult ( alignment , context , result , offsetResponsibleBlock ) ;
 + }
 +
 + private boolean processAlignmentResult ( AlignmentImpl alignment , Context context ,
 + BlockAlignmentProcessor . Result result ,
 + LeafBlockWrapper offsetResponsibleBlock ) {
 switch ( result ) {
 case TARGET_BLOCK_PROCESSED_NOT_ALIGNED : return true ;
 case TARGET_BLOCK_ALIGNED : storeAlignmentMapping ( ) ; return true ;


<nb> abstract class OAuthToken implements Serializable {
 OAuthToken ( Response response ) {
 String [ ] responseStr = response . asString ( ) . split ( STRING0 ) ;
 for ( String str : responseStr ) {
 - if ( str . startsWith ( STRING1 ) ) {
 + if ( str . startsWith ( STRING2 ) ) {
 this . tokenSecret = str . split ( STRING3 ) [ NUMBER0 ] . trim ( ) ;
 - } else {
 + } else if ( str . startsWith ( STRING4 ) ) {
 this . token = str . split ( STRING3 ) [ NUMBER0 ] . trim ( ) ;
 }
 }


<nb> public class StreamingResolutionResultBuilder implements ResolutionResultBuilder
 public void write ( Encoder encoder ) throws IOException {
 encoder . writeByte ( DEPENDENCY ) ;
 moduleVersionIdentifierSerializer . write ( encoder , from ) ;
 - encoder . writeInt ( dependencies . size ( ) ) ;
 + encoder . writeSmallInt ( dependencies . size ( ) ) ;
 for ( InternalDependencyResult dependency : dependencies ) {
 internalDependencyResultSerializer . write ( encoder , dependency ) ;
 if ( dependency . getFailure ( ) != null ) {
 <nb> public class StreamingResolutionResultBuilder implements ResolutionResultBuilder
 break ;
 case DEPENDENCY :
 id = moduleVersionIdentifierSerializer . read ( decoder ) ;
 - int size = decoder . readInt ( ) ;
 + int size = decoder . readSmallInt ( ) ;
 List < InternalDependencyResult > deps = new LinkedList < InternalDependencyResult > ( ) ;
 for ( int i = NUMBER0 ; i < size ; i ++ ) {
 deps . add ( internalDependencyResultSerializer . read ( decoder , failures ) ) ;

Use a variable length int for serializing the number of edges for a node in the dependency graph


<nb> public class SourceControlPreferencesPane extends PreferencesPane

 }
 } ) ;
 + SINGLE
 sshButtonPanel . add ( createKeyButton_ ) ;
 -
 add ( sshButtonPanel ) ;

 - SINGLE
 - if ( Desktop . isDesktop ( ) &&
 - ( BrowseCap . isMacintosh ( ) || BrowseCap . isLinux ( ) ) )
 + SINGLE
 + if ( Desktop . isDesktop ( ) )
 {
 - sshKeyPathLabel . setVisible ( false ) ;
 - publicKeyLink_ . setVisible ( false ) ;
 - sshKeyPathChooser_ . setVisible ( false ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 sshButtonPanel . setVisible ( false ) ;
 +
 + SINGLE
 + SINGLE
 + if ( BrowseCap . isMacintosh ( ) || BrowseCap . isLinux ( ) )
 + {
 + sshKeyPathLabel . setVisible ( false ) ;
 + publicKeyLink_ . setVisible ( false ) ;
 + sshKeyPathChooser_ . setVisible ( false ) ;
 + }
 }


<nb> package NAMESPACE ;

 public class LexicographicRankInPermutation {

 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 private int findNumberOfSmallerCharactersOnRight ( int index , char [ ] str ) {
 int count = NUMBER0 ;
 for ( int i = index + NUMBER1 ; i < str . length ; i ++ ) {


<nb> public class ListPopupWindow {
 COMMENT
 COMMENT
 public ListPopupWindow ( Context context ) {
 - this ( context , null , NUMBER0 , NUMBER0 ) ;
 + this ( context , null , com . android . internal . R . attr . listPopupWindowStyle , NUMBER0 ) ;
 }

 COMMENT

Fix default style in constructor with only one parameter


<nb> class DelayedStream implements ClientStream {
 private int pendingFlowControlRequests ;
 @ guardedby ( STRING0 )
 private boolean pendingFlush ;
 - @ guardedby ( STRING1 )
 + @ guardedby ( STRING0 )
 private CompressorRegistry compressionRegistry ;

 static final class PendingMessage {


<nb> public class ExifInterface {
 public static final String TAG_GPS_LATITUDE_REF = STRING0 ;
 COMMENT
 public static final String TAG_GPS_LONGITUDE_REF = STRING1 ;
 + COMMENT
 + public static final String TAG_EXPOSURE_TIME = STRING2 ;
 + COMMENT
 + public static final String TAG_APERTURE = STRING3 ;
 + COMMENT
 + public static final String TAG_ISO = STRING4 ;

 COMMENT
 COMMENT


<nb> public class SuppressWarningsHolder
 parentAST = parentAST . getParent ( ) ;
 if ( parentAST != null ) {
 switch ( parentAST . getType ( ) ) {
 + case TokenTypes . ANNOTATION_DEF :
 case TokenTypes . PACKAGE_DEF :
 case TokenTypes . CLASS_DEF :
 case TokenTypes . INTERFACE_DEF :

Adding ANNOTATION_DEF to the valid list of parentASTs for the SuppressWarningsHolder


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

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

 - import static NAMESPACE ;
 + import static NAMESPACE ;

 SINGLE
 public class ItunesSearchFragment extends Fragment {
 <nb> public class ItunesSearchFragment extends Fragment {
 COMMENT
 COMMENT
 COMMENT
 - public SearchTask ( String query ) {
 - this . query = query ;
 + public SearchTask ( String query ) {
 + String encodedQuery = null ;
 + try {
 + encodedQuery = URLEncoder . encode ( query , STRING0 ) ;
 + } catch ( UnsupportedEncodingException e ) {
 + SINGLE
 + }
 + if ( encodedQuery != null ) {
 + this . query = encodedQuery ;
 + } else {
 + this . query = query ; SINGLE
 + }
 }

 SINGLE

Encode non ascii query strings for the iTunes search


<nb> public class HashGenerationOptimizer

 SINGLE
 Map < HashComputation , Symbol > hashSymbols = new HashMap < > ( source . getHashSymbols ( ) ) ;
 - hashSymbols . keySet ( ) . retainAll ( result . getOutputSymbols ( ) ) ;
 + hashSymbols . values ( ) . retainAll ( result . getOutputSymbols ( ) ) ;

 return new PlanWithProperties ( result , hashSymbols ) ;
 }


<nb> public class Violation {
 }

 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public String getCommitter ( ) {


<nb> public class Ctags {
 private BufferedReader ctagsOut ;
 private static final Logger log = Logger . getLogger ( Ctags . class . getName ( ) ) ;
 private static final String CTAGS_FILTER_TERMINATOR = STRING0 ;
 + SINGLE
 private String binary ;
 private ProcessBuilder processBuilder ;

 <nb> public final class Configuration {
 setRepositories ( new ArrayList < RepositoryInfo > ( ) ) ;
 setUrlPrefix ( STRING1 ) ;
 SINGLE
 - setCtags ( STRING2 ) ;
 + setCtags ( System . getProperty ( STRING3 , STRING2 ) ) ;
 SINGLE
 setIndexWordLimit ( Integer . MAX_VALUE ) ;
 setVerbose ( false ) ;
 <nb> public final class RuntimeEnvironment {
 if ( output == null || output . indexOf ( STRING4 ) == - NUMBER0 ) {
 log . log ( Level . SEVERE , STRING5 +
 STRING6 + STRING7 + STRING8 +
 - STRING9 , getCtags ( ) ) ;
 + STRING10 +
 + STRING11 , getCtags ( ) ) ;
 ret = false ;
 }


<nb> public class CopyrightManager extends AbstractProjectComponent implements JDOMEx
 ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) {
 public void run ( ) {
 if ( file . isValid ( ) && file . isWritable ( ) ) {
 - new UpdateCopyrightProcessor ( myProject , module , file ) . run ( ) ;
 + final CopyrightProfile opts = CopyrightManager . getInstance ( myProject ) . getCopyrightOptions ( file ) ;
 + if ( opts != null ) {
 + new UpdateCopyrightProcessor ( myProject , module , file ) . run ( ) ;
 + }
 }
 }
 } , ModalityState . NON_MODAL ) ;

do not start anything when no copyright configured


<nb> public class SpeeDRF extends Job . ValidatedJob {
 long treeSeed = rnd . nextLong ( ) + TREE_SEED_INIT ; SINGLE
 trees [ i ] = new Tree ( job , localData , producerId , drfParams . max_depth , drfParams . stat_type , numSplitFeatures , treeSeed ,
 i , drfParams . _exclusiveSplitLimit , sampler , drfParams . _verbose , drfParams . regression ) ;
 - if ( ! drfParams . parallel ) ForkJoinTask . invokeAll ( new Tree [ ] { trees [ i ] } ) ;
 + SINGLE
 }

 - if ( drfParams . parallel ) DRemoteTask . invokeAll ( trees ) ;
 + DRemoteTask . invokeAll ( trees ) ;
 Log . debug ( Log . Tag . Sys . RANDF , STRING0 + ntrees + STRING1 + t_alltrees ) ;
 }

 <nb> public class SpeeDRF extends Job . ValidatedJob {
 drfp . _verbose = verbose ;
 drfp . classcol = col ;
 drfp . regression = regression ;
 + drfp . parallel = true ;
 return drfp ;
 }
 }

remove code path to ForkJoin tree building all paths to DRemote


<nb> public abstract class ExpandableView extends FrameLayout {
 }

 public void reset ( ) {
 - mOnHeightChangedListener . onReset ( this ) ;
 + if ( mOnHeightChangedListener != null ) {
 + mOnHeightChangedListener . onReset ( this ) ;
 + }
 }

 COMMENT


<nb> public class Signaler
 if ( nbytes == NUMBER0 ) {
 continue ;
 }
 - wcursor . incrementAndGet ( ) ;
 assert ( nbytes == NUMBER1 ) ;
 + wcursor . incrementAndGet ( ) ;
 break ;
 }
 }

Move the wcursor increment after the assert


<nb> public abstract class IQ extends Packet {

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 public void setType ( Type type ) {
 if ( type == null ) {
 - this . type = Type . get ;
 - }
 - else {
 - this . type = type ;
 + throw new IllegalArgumentException ( STRING0 ) ;
 }
 + this . type = type ;
 }

 public final String getChildElementName ( ) {

Make IQ setType Type throw IllegalArgumentException


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ImageView extends View {
 mUri = null ;
 }
 } else if ( mUri != null ) {
 - if ( STRING0 . equals ( mUri . getScheme ( ) ) ) {
 + String scheme = mUri . getScheme ( ) ;
 + if ( ContentResolver . SCHEME_CONTENT . equals ( scheme )
 + || ContentResolver . SCHEME_ANDROID_RESOURCE . equals ( scheme )
 + || ContentResolver . SCHEME_FILE . equals ( scheme ) ) {
 try {
 d = Drawable . createFromStream (
 mContext . getContentResolver ( ) . openInputStream ( mUri ) ,

Allow resource and file URIs in ImageView setImageURI


<nb> public class NotebookRestApi {
 @ zeppelinapi
 public Response putNotePermissions ( @ pathparam ( STRING0 ) String noteId , String req )
 throws IOException {
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 HashMap < String , HashSet < String > > permMap =
 gson . fromJson ( req , new TypeToken < HashMap < String , HashSet < String > > > ( ) {
 } . getType ( ) ) ;

MINOR remove comments in NotebookRestApi java


<nb> public class ChangeSignatureDialog extends RefactoringDialog {
 return panel ;
 }

 + protected String getDimensionServiceKey ( ) {
 + return STRING0 ;
 + }

 private JPanel createParametersPanel ( ) {
 myParametersTable = new Table ( myParametersTableModel ) ;


<nb> public class PrivacyManager {
 }

 SINGLE
 - key . setValue ( value ) ;
 + if ( value == null )
 + key . setValue ( defaultValue ) ;
 + else
 + key . setValue ( value ) ;
 synchronized ( mSettingsCache ) {
 if ( mSettingsCache . containsKey ( key ) )
 mSettingsCache . remove ( key ) ;
 <nb> public class PrivacyManager {
 CSetting key = new CSetting ( uid , type , name ) ;
 key . setValue ( value ) ;
 synchronized ( mSettingsCache ) {
 - if ( mSettingsCache . containsKey ( key ) )
 - mSettingsCache . remove ( key ) ;
 - mSettingsCache . put ( key , key ) ;
 + mSettingsCache . clear ( ) ;
 }
 } catch ( Throwable ex ) {
 Util . bug ( null , ex ) ;


<nb> public class SimpleHeaderDrawerActivity extends AppCompatActivity {
 . build ( ) ;

 SINGLE
 - RecyclerViewCacheUtil . getInstance ( )
 - . withCacheSize ( NUMBER0 )
 - . init ( result ) ;
 + SINGLE
 + RecyclerViewCacheUtil . getInstance ( ) . withCacheSize ( NUMBER0 ) . init ( result ) ;

 SINGLE
 if ( savedInstanceState == null ) {
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DrawerBuilder {
 COMMENT
 COMMENT
 public DrawerBuilder ( ) {
 -
 + SINGLE
 + SINGLE
 + SINGLE
 + RecyclerViewCacheUtil . getInstance ( ) . clear ( ) ;
 }

 COMMENT
 <nb> public class RecyclerViewCacheUtil {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + public void clear ( ) {
 + CACHE . clear ( ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

add new clear method to RecyclerViewCacheUtil


<nb> public final class MockWebServer {
 if ( executor != null ) throw new IllegalStateException ( STRING0 ) ;
 executor = Executors . newCachedThreadPool ( Util . threadFactory ( STRING1 , false ) ) ;
 inetAddress = InetAddress . getByName ( null ) ;
 - serverSocket = serverSocketFactory . createServerSocket ( port , NUMBER0 , inetAddress ) ;
 - serverSocket . setReuseAddress ( true ) ;
 + serverSocket = serverSocketFactory . createServerSocket ( ) ;
 + serverSocket . setReuseAddress ( port != NUMBER1 ) ; SINGLE
 + serverSocket . bind ( new InetSocketAddress ( inetAddress , port ) , NUMBER0 ) ;

 this . port = serverSocket . getLocalPort ( ) ;
 executor . execute ( new NamedRunnable ( STRING2 , this . port ) {


<nb> public class GsdEnterAlwaysCollapsedParallaxFragment extends BaseFeatureFragment

 @ override
 public int getContentLayout ( ) {
 - return R . layout . fragment_gsd_enter_always_collapsed ;
 + return R . layout . fragment_gsd_enter_always_collapsed_parallax ;
 }

 @ override


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + @ sharable
 public abstract class ChannelInitializer < C extends Channel > extends ChannelInboundHandlerAdapter < Object > {

 private static final InternalLogger logger = InternalLoggerFactory . getInstance ( ChannelInitializer . class ) ;

Add Sharable annotation to ChannelInitializer


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

 import NAMESPACE ;

 <nb> public class ResourceAdapterOperationsUnitTestCase extends AbstractMgmtTestBase

 ModelNode node = findNodeWithProperty ( newList , STRING0 , STRING1 ) ;
 Assert . assertNotNull ( STRING2 + newList , node ) ;
 - controlModelParams ( node , params ) ;
 + checkModelParams ( node , params ) ;

 node = findNodeWithProperty ( newList , STRING3 , STRING4 ) ;
 Assert . assertNotNull ( STRING5 + newList , node ) ;
 - controlModelParams ( node , conParams ) ;
 + checkModelParams ( node , conParams ) ;

 node = findNodeWithProperty ( newList , STRING3 , STRING6 ) ;
 Assert . assertNotNull ( STRING7 + newList , node ) ;
 - controlModelParams ( node , admParams ) ;
 + checkModelParams ( node , admParams ) ;

 node = findNodeWithProperty ( newList , STRING8 , STRING9 ) ;
 Assert . assertNotNull ( STRING10 + newList , node ) ;


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

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

 public class ActivityLauncher {
 + public static final String ENABLE_MAGIC_LINK_LOGIN_VARIABLE = STRING0 ;
 + private static LiveVariable < Boolean > enableMagicLinkLoginVariable = Optimizely . booleanForKey ( ENABLE_MAGIC_LINK_LOGIN_VARIABLE , false ) ;
 private static final String ARG_DID_SLIDE_IN_FROM_RIGHT = STRING1 ;

 public static void showSitePickerForResult ( Activity activity , int blogLocalTableId ) {
 <nb> public class ActivityLauncher {
 }

 public static void showSignInForResult ( Activity activity ) {
 - if ( true ) {
 + if ( enableMagicLinkLoginVariable . get ( ) ) {
 Intent intent = new Intent ( activity , MagicLinkSignInActivity . class ) ;
 activity . startActivityForResult ( intent , RequestCodes . ADD_ACCOUNT ) ;
 } else {

Adding Optimizely A B testing for magic links


<nb> public interface ReadableInterval {
 COMMENT
 Duration getDuration ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + Duration getDuration ( DurationType type ) ;
 +
 SINGLE
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import static NAMESPACE ;
 + import static NAMESPACE ;
 + import static NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 public class NullSmartCompletionContributor extends CompletionContributor {
 public NullSmartCompletionContributor ( ) {
 - extend ( CompletionType . SMART , JavaSmartCompletionContributor . INSIDE_EXPRESSION , new ExpectedTypeBasedCompletionProvider ( false ) {
 + extend ( CompletionType . SMART , and ( JavaSmartCompletionContributor . INSIDE_EXPRESSION ,
 + not ( psiElement ( ) . afterLeaf ( STRING0 ) ) ) , new ExpectedTypeBasedCompletionProvider ( false ) {
 protected void addCompletions ( final CompletionParameters parameters ,
 final CompletionResultSet result , final Collection < ExpectedTypeInfo > infos ) {
 final Ref < Boolean > empty = Ref . create ( true ) ;


<nb> public class CallPeerJabberImpl
 try
 {
 getMediaHandler ( ) . reinitContent ( remoteContent . getName ( ) , senders ) ;
 + getMediaHandler ( ) . start ( ) ;
 }
 catch ( Exception e )
 {

Fix local video display when we are the second to activate video in a XMPP call


<nb> public abstract class ContinuationBase extends TestCase
 try
 {
 Socket socket = new Socket ( STRING0 , port ) ;
 + socket . setSoTimeout ( NUMBER0 ) ;
 socket . getOutputStream ( ) . write ( request . getBytes ( STRING1 ) ) ;

 response = toString ( socket . getInputStream ( ) ) ;

stop test hanging forever so we can work out what is going wrong with intermittant failure


<nb> public final class TaskLaunchProcessor implements Runnable {
 @ override
 public void run ( ) {
 while ( ! shutdown ) {
 + Collection < JobContext > eligibleJobContexts = facadeService . getEligibleJobContext ( ) ;
 if ( ! leasesQueue . hasOffer ( ) ) {
 + if ( ! eligibleJobContexts . isEmpty ( ) ) {
 + log . info ( STRING0 ) ;
 + }
 BlockUtils . waitingShortTime ( ) ;
 continue ;
 }
 - Collection < JobContext > eligibleJobContexts = facadeService . getEligibleJobContext ( ) ;
 Map < String , Integer > jobShardingTotalCountMap = new HashMap < > ( eligibleJobContexts . size ( ) , NUMBER0 ) ;
 List < TaskRequest > pendingTasks = new ArrayList < > ( eligibleJobContexts . size ( ) * NUMBER1 ) ;
 for ( JobContext each : eligibleJobContexts ) {

log for ready queue has job but no resources


<nb> class ConfigurableEditor extends AbstractEditor implements AnActionListener , AWT
 add ( BorderLayout . SOUTH , myErrorLabel ) ;
 ActionManager . getInstance ( ) . addAnActionListener ( this , this ) ;
 getDefaultToolkit ( ) . addAWTEventListener ( this , AWTEvent . MOUSE_EVENT_MASK | AWTEvent . MOUSE_MOTION_EVENT_MASK | AWTEvent . KEY_EVENT_MASK ) ;
 + myConfigurable = configurable ;
 setCurrent ( configurable , readContent ( configurable ) ) ;
 }

clicking OK button doesn t apply changes


<nb> public class RoundRobinConnectionPoolImplTest extends BaseConnectionPoolTest {

 ConnectionPoolConfigurationImpl config = new ConnectionPoolConfigurationImpl (
 TestConstants . CLUSTER_NAME + STRING0 + TestConstants . KEYSPACE_NAME )
 - . setRetrySuspendWindow ( NUMBER0 ) ;
 + . setRetrySuspendWindow ( NUMBER1 ) ;
 SINGLE
 SINGLE
 config . setMaxConnsPerHost ( NUMBER2 ) ;


<nb> public abstract class XmppActivity extends Activity {
 protected boolean addFingerprintRow ( LinearLayout keys , final Account account , final String fingerprint , boolean highlight ) {
 final XmppAxolotlSession . Trust trust = account . getAxolotlService ( )
 . getFingerprintTrust ( fingerprint ) ;
 + if ( trust == null ) {
 + return false ;
 + }
 return addFingerprintRowWithListeners ( keys , account , fingerprint , highlight , trust , true ,
 new CompoundButton . OnCheckedChangeListener ( ) {
 @ override

prevent null pointer when trying to display device fingerprints of not existing sessions


<nb> import NAMESPACE ;
 Assertions . checkNotNull ( input ) ;
 Assertions . checkNotNull ( wavHeader ) ;

 + SINGLE
 + input . resetPeekPosition ( ) ;
 +
 ParsableByteArray scratch = new ParsableByteArray ( ChunkHeader . SIZE_IN_BYTES ) ;
 SINGLE
 ChunkHeader chunkHeader = ChunkHeader . peek ( input , scratch ) ;


<nb> public class TextEditingTarget implements
 RStudioGinjector . INSTANCE . getSourceWindowManager ( )
 . setLastFocusedSourceWindowId ( STRING0 ) ;
 }
 +
 + SINGLE
 + commands_ . goToNextSection ( ) . setEnabled ( true ) ;
 + commands_ . goToPrevSection ( ) . setEnabled ( true ) ;
 + }
 + } ) ;
 +
 + docDisplay_ . addBlurHandler ( new BlurHandler ( )
 + {
 + @ override
 + public void onBlur ( BlurEvent event )
 + {
 + SINGLE
 + commands_ . goToNextSection ( ) . setEnabled ( false ) ;
 + commands_ . goToPrevSection ( ) . setEnabled ( false ) ;
 }
 } ) ;

manage goToSection on focus blur of docDisplay


<nb> public class RmdOutput implements RmdRenderStartedEvent . Handler ,
 outputFrame_ == null ||
 outputFrame_ . getWindowObject ( ) == null ||
 outputFrame_ . getWindowObject ( ) . isClosed ( ) ||
 - outputFrame_ . getPreviewParams ( ) . getTargetFile ( ) != event . getDocPath ( ) )
 + outputFrame_ . getPreviewParams ( ) . getTargetFile ( ) != event . getDocPath ( ) ||
 + ! outputFrame_ . getPreviewParams ( ) . getOutputFile ( ) . endsWith ( STRING0 ) )
 return ;

 SINGLE

don t auto refresh output on render complete if not


<nb> import static NAMESPACE ;
 public class IndexNameExpressionResolver extends AbstractComponent {

 private final ImmutableList < ExpressionResolver > expressionResolvers ;
 - private DateMathExpressionResolver dateMathExpressionResolver ;
 + private final DateMathExpressionResolver dateMathExpressionResolver ;

 @ inject
 public IndexNameExpressionResolver ( Settings settings ) {


<nb> public class MainActivity extends QKActivity implements LiveView , SlidingMenu . Sl
 @ override
 protected void onResume ( ) {
 super . onResume ( ) ;
 - ThemeManager . loadThemeProperties ( this ) ;

 if ( ! mSlidingMenu . isMenuShowing ( ) ) {
 mContent . onContentOpened ( ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class OTransactionOptimisticProxy extends OTransactionOptimistic {
 }

 @ override
 - public ORecordInternal < ? > getRecord ( final ORecordId rid ) {
 + public ORecordInternal < ? > getRecord ( final ORID rid ) {
 ORecordInternal < ? > record = super . getRecord ( rid ) ;
 if ( record == null && rid . isNew ( ) )
 SINGLE

Fixed bug reported in ML by Alex on wrong cluster used to store records in a graph


<nb> public class Thread implements Runnable {
 } else {
 threadGroup = [ currentThreadData objectForKey : JavaLangThread_THREADGROUP_ ] ;
 }
 + assert ( threadGroup != nil ) ;

 NSThread * thread ;
 NSMutableDictionary * newThreadData ;
 <nb> public class Thread implements Runnable {

 public static native Thread currentThread ( ) COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT ;

 public native void start ( ) / * - {

Fixed case where externally created thread doesn t get matching JRE thread


<nb> public class ActorPushService extends Service implements MqttCallback {

 private synchronized void onConnected ( int attempt , MqttClient mqttClient ) {
 if ( this . attemptIndex == attempt ) {
 + this . isConnecting = false ;
 this . mqttClient = mqttClient ;
 } else {
 SINGLE
 <nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SDKPushReceiver extends ActorPushReceiver {
 try {
 JSONObject object = new JSONObject ( payload ) ;
 int seq = object . getJSONObject ( STRING0 ) . getInt ( STRING1 ) ;
 + Log . d ( STRING2 , STRING3 + seq ) ;
 ActorSDK . sharedActor ( ) . getMessenger ( ) . onPushReceived ( seq ) ;
 } catch ( Exception e ) {
 e . printStackTrace ( ) ;


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

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class OverviewFragment extends SherlockFragment implements
 SINGLE
 mShowTitle = show . getString ( ShowQuery . SHOW_TITLE ) ;
 ( ( TextView ) getView ( ) . findViewById ( R . id . seriesname ) ) . setText ( mShowTitle ) ;
 +
 + SINGLE
 + final ActionBar actionBar = getSherlockActivity ( ) . getSupportActionBar ( ) ;
 + actionBar . setTitle ( mShowTitle ) ;

 SINGLE
 final TextView statusText = ( TextView ) getView ( ) . findViewById ( R . id . showStatus ) ;

Set show title in action bar in overview


<nb> public interface UuidFactory {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 String create ( ) ;

 <nb> package NAMESPACE ;

 public class Uuids {

 + public static final int MAX_LENGTH = NUMBER0 ;
 public static final String UUID_EXAMPLE_01 = STRING0 ;
 public static final String UUID_EXAMPLE_02 = STRING1 ;
 public static final String UUID_EXAMPLE_03 = STRING2 ;


<nb> public class EsIndexRangeService implements IndexRangeService {
 . setTypes ( IndexMapping . TYPE_INDEX_RANGE )
 . setIndices ( indices . allIndicesAlias ( ) )
 . setQuery ( completeRangeQuery )
 + . setSize ( Integer . MAX_VALUE )
 . request ( ) ;

 final SearchResponse response = client . search ( request ) . actionGet ( ) ;
 <nb> public class EsIndexRangeService implements IndexRangeService {
 . setTypes ( IndexMapping . TYPE_INDEX_RANGE )
 . setIndices ( indices . allIndicesAlias ( ) )
 . setQuery ( QueryBuilders . matchAllQuery ( ) )
 + . setSize ( Integer . MAX_VALUE )
 . request ( ) ;

 final SearchResponse response = client . search ( request ) . actionGet ( ) ;

Increase result size on index range queries


<nb> package NAMESPACE ;

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

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

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

 public class SessionTest {

 <nb> public class SessionTest {
 try {

 Session session = new Session ( null ) ;
 - fail ( STRING0 ) ;
 + fail ( STRING1 ) ;

 } catch ( IllegalArgumentException ex ) {

corrected typo in assertion message removed unused imports


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class IdeaApplication {
 mySplash = null ; SINGLE
 }
 }
 - } , ModalityState . NON_MODAL ) ;
 + } , ModalityState . any ( ) ) ;

 TransactionGuard . submitTransaction ( app , ( ) - > {
 Project projectFromCommandLine = myPerformProjectLoad ? loadProjectFromExternalCommandLine ( ) : null ;


<nb> public class RegistryUi implements Disposable {

 Collections . sort ( myAll , ( o1 , o2 ) - > {
 final String key1 = o1 . getKey ( ) ;
 + boolean changed1 = o1 . isChangedFromDefault ( ) ;
 + boolean changed2 = o2 . isChangedFromDefault ( ) ;
 + if ( changed1 && ! changed2 ) return - NUMBER0 ;
 + if ( ! changed1 && changed2 ) return NUMBER0 ;
 +
 final String key2 = o2 . getKey ( ) ;
 final int i1 = recent . indexOf ( key1 ) ;
 final int i2 = recent . indexOf ( key2 ) ;


<nb> public class SSEAtmosphereInterceptor implements AtmosphereInterceptor {

 if ( r . transport ( ) . equals ( AtmosphereResource . TRANSPORT . SSE ) ) {

 -
 r . addEventListener ( new AtmosphereResourceEventListenerAdapter ( ) {
 @ override
 public void onSuspend ( AtmosphereResourceEvent event ) {
 <nb> public class SSEAtmosphereInterceptor implements AtmosphereInterceptor {

 @ override
 public AsyncIOWriter writeError ( int errorCode , String message ) throws IOException {
 + if ( errorCode == NUMBER0 && r . getAtmosphereConfig ( ) . framework ( ) . is ) {
 + logger . warn ( STRING0 +
 + STRING1 ) ;
 + }
 response . sendError ( errorCode ) ;
 return this ;
 }


<nb> public class ConnectionManagerImpl extends BasicModule implements ConnectionMana
 sessionManager = server . getSessionManager ( ) ;
 SINGLE
 SINGLE
 - if ( ! JiveGlobals . getBooleanProperty ( STRING0 , false ) ) {
 + if ( JiveGlobals . getBooleanProperty ( STRING1 , true ) ) {
 ByteBuffer . setUseDirectBuffers ( false ) ;
 ByteBuffer . setAllocator ( new SimpleByteBufferAllocator ( ) ) ;
 }

Renamed system property that indicates if heap or direct buffers should be used


<nb> public class DefaultErrorMessages {
 MAP . put ( ARRAY_CLASS_LITERAL_REQUIRES_ARGUMENT , STRING0 ) ;

 SINGLE
 - MAP . put ( INVISIBLE_MEMBER_FROM_INLINE , STRING1 , SHORT_NAMES_IN_TYPES , SHORT_NAMES_IN_TYPES ) ;
 + MAP . put ( INVISIBLE_MEMBER_FROM_INLINE , STRING2 , SHORT_NAMES_IN_TYPES , SHORT_NAMES_IN_TYPES ) ;
 MAP . put ( NOT_YET_SUPPORTED_IN_INLINE , STRING3 , ELEMENT_TEXT , SHORT_NAMES_IN_TYPES ) ;
 MAP . put ( DECLARATION_CANT_BE_INLINED , STRING4 ) ;
 MAP . put ( NOTHING_TO_INLINE , STRING5 , SHORT_NAMES_IN_TYPES ) ;

Updated diagnostic message for INVISIBLE_MEMBER_FROM_INLINE


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class ViewServer implements Runnable {
 COMMENT

Updating the Javadoc to provide an example for an InputMethodService


<nb> public class SimpleExprGenerator extends Generator < ExprStmtToken > {
 protected ExprStmtToken processNewExpr ( Token next , BraceExprToken . Kind closedBrace , int braceOpened ,
 ListIterator < Token > iterator , boolean first ) {
 List < Token > tmp = new ArrayList < Token > ( ) ;
 - if ( first )
 + if ( first ) {
 + if ( next instanceof VariableExprToken ) {
 + analyzer . getScope ( ) . addVariable ( ( VariableExprToken ) next ) ;
 + if ( analyzer . getFunction ( ) != null ) {
 + analyzer . getFunction ( ) . setVarsExists ( true ) ;
 + analyzer . getFunction ( ) . variable ( ( VariableExprToken ) next ) . setUsed ( true ) ;
 + }
 + }
 +
 tmp . add ( next ) ;
 + }

 Token previous = next ;
 Token token = nextToken ( iterator ) ;


<nb> import NAMESPACE ;

 Period previousPeriod = playingPeriod ;
 boolean seenReadingPeriod = false ;
 - while ( previousPeriod != null ) {
 + while ( previousPeriod . nextPeriod != null ) {
 Period period = previousPeriod . nextPeriod ;
 index ++ ;
 if ( ! period . id . equals ( timeline . getPeriodId ( index ) ) ) {

Fixed minor error that occurred when the manifest was updated


<nb> public class WabProcessor {
 return null ;
 }

 + SINGLE
 +
 return null ;
 }


<nb> public abstract class BaseGateway implements Gateway , Component , Runnable {
 COMMENT
 COMMENT
 public void run ( ) {
 - Log . debug ( LocaleUtils . getLocalizedString ( STRING0 , STRING1 ) ) ;
 + SINGLE

 for ( SubscriptionInfo si : rosterManager . getRegistrar ( ) . getAllGatewaySessions ( ) ) {
 if ( ! si . clientRegistered ) {
 <nb> public abstract class BaseGateway implements Gateway , Component , Runnable {
 SINGLE
 SINGLE

 - Log . debug ( LocaleUtils . getLocalizedString ( STRING2 , STRING1 ) ) ;
 + SINGLE
 }

 COMMENT
 <nb> public class PersistenceManager implements Serializable {
 db = new File ( STRING3 + this . gateway . getName ( ) . toLowerCase ( ) + STRING4 ) ;
 load ( gateway ) ;
 timer . scheduleAtFixedRate ( archiver , NUMBER0 , NUMBER0 , TimeUnit . SECONDS ) ;
 -
 }

 COMMENT


<nb> public class PhotoPickerFragment extends Fragment {
 @ override public void onDetach ( ) {
 super . onDetach ( ) ;

 + if ( directories == null ) {
 + return ;
 + }
 +
 for ( PhotoDirectory directory : directories ) {
 directory . getPhotoPaths ( ) . clear ( ) ;
 directory . getPhotos ( ) . clear ( ) ;


<nb> public class PythonLanguageLevelPusher implements FilePropertyPusher < LanguageLev
 return true ;
 }

 + @ notnull
 public LanguageLevel getDefaultValue ( ) {
 return LanguageLevel . getDefault ( ) ;
 }
 <nb> public class PythonLanguageLevelPusher implements FilePropertyPusher < LanguageLev

 private static final FileAttribute PERSISTENCE = new FileAttribute ( STRING0 , NUMBER0 , true ) ;

 - public void persistAttribute ( VirtualFile fileOrDir , LanguageLevel level ) throws IOException {
 + public void persistAttribute ( VirtualFile fileOrDir , @ notnull LanguageLevel level ) throws IOException {
 final DataInputStream iStream = PERSISTENCE . readAttribute ( fileOrDir ) ;
 if ( iStream != null ) {
 try {


<nb> public class ExtractGooglecodeAuthorization {
 if ( debug ) {
 System . out . println ( STRING0 + url . toString ( ) ) ;
 System . out . println ( STRING1 + data . toString ( ) ) ;
 - System . our . ptintln ( STRING2 ) ;
 + System . out . ptintln ( STRING2 ) ;
 }

 SINGLE
 <nb> public class ExtractGooglecodeAuthorization {
 return conn ;
 }

 - private static StringBuilder readAnswer ( InputStream input )
 + private StringBuilder readAnswer ( InputStream input )
 throws IOException , UnsupportedEncodingException {
 StringBuilder responseBody = new StringBuilder ( ) ;
 InputStream i = input ;


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SystemHealthMonitor extends ApplicationComponent . Adapter {
 String productName = ApplicationNamesInfo . getInstance ( ) . getFullProductName ( ) ;
 String message = IdeBundle . message ( STRING0 , productName ) ;
 if ( fileUsableSpace < NUMBER0 * NUMBER1 ) {
 - LOG . warn ( message ) ;
 + LOG . warn ( message + STRING1 + fileUsableSpace + STRING2 ) ;
 Messages . showErrorDialog ( message , STRING3 ) ;
 reported . compareAndSet ( true , false ) ;
 restart ( timeout ) ;


<nb> public class Cursors
 {
 AdvanceResult result = cursor . advanceNextValue ( ) ;
 if ( result == MUST_YIELD ) {
 - throw new IllegalStateException ( STRING0 ) ;
 + throw new IllegalStateException ( STRING1 ) ;
 }
 return result != FINISHED ;
 }
 <nb> public class Cursors
 {
 AdvanceResult result = cursor . advanceToPosition ( position ) ;
 if ( result == MUST_YIELD ) {
 - throw new IllegalStateException ( STRING0 ) ;
 + throw new IllegalStateException ( STRING1 ) ;
 }
 return result != FINISHED ;
 }


<nb> public class HTTPSServer extends Server {
 System . out . println ( STRING0 ) ;
 System . out . println ( STRING1 ) ;
 System . out . println ( STRING2 ) ;
 + System . out . println ( STRING3 ) ;
 + System . out . println ( STRING4 ) ;
 printCommonOptions ( ) ;
 System . exit ( NUMBER0 ) ;
 }

add information about request limits to the usage text


<nb> public class UpdateTask extends AsyncTask < Void , Integer , Integer > {

 publishProgress ( mShows . length , mShows . length + NUMBER0 ) ;

 - SINGLE
 - TheTVDB . onRenewFTSTable ( mShowsActivity ) ;
 + SINGLE
 + if ( mShows . length != NUMBER1 ) {
 + TheTVDB . onRenewFTSTable ( mShowsActivity ) ;
 + }

 publishProgress ( mShows . length + NUMBER0 , mShows . length + NUMBER0 ) ;

Only update the FTS table if we actually updated shows


<nb> public class FileNameTranslationHelper {
 return ctx . getString ( R . string . index_item_world_basemap ) ;
 } else if ( basename . equals ( STRING0 ) ) {
 return ctx . getString ( R . string . index_item_world_bitcoin_payments ) ;
 - } else if ( basename . equals ( STRING1 ) ) {
 + } else if ( basename . equals ( STRING2 ) ) {
 return ctx . getString ( R . string . index_item_world_seamarks ) ;
 }
 return null ;


<nb> public class TestCollectionDeserialization
 }

 SINGLE
 - SINGLE
 @ jsondeserialize ( using = SomeObjectDeserializer . class )
 static class SomeObject { }


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

 COMMENT
 <nb> public abstract class LookupActionHandler extends EditorActionHandler {
 protected abstract void executeInLookup ( LookupImpl lookup , DataContext context , @ nullable Caret caret ) ;

 @ override
 - public boolean isEnabled ( Editor editor , DataContext dataContext ) {
 + public boolean isEnabledForCaret ( @ notnull Editor editor , @ notnull Caret caret , DataContext dataContext ) {
 LookupImpl lookup = ( LookupImpl ) LookupManager . getActiveLookup ( editor ) ;
 - return lookup != null || myOriginalHandler . isEnabled ( editor , dataContext ) ;
 + return lookup != null || myOriginalHandler . isEnabled ( editor , caret , dataContext ) ;
 }

 private static void executeUpOrDown ( LookupImpl lookup , boolean up ) {

remove usages of deprecated method in LookupActionHandler


<nb> public final class SimpleCommandMap implements CommandMap {
 boolean isRegisteredCommand = ( target != null ) ;
 if ( isRegisteredCommand ) {
 target . execute ( sender , sentCommandLabel , args ) ;
 - return true ;
 - }
 - target = knownCommands . get ( sentCommandLabel . substring ( NUMBER0 ) ) ;
 - isRegisteredCommand = ( target != null ) ;
 - if ( isRegisteredCommand ) {
 - target . execute ( sender , sentCommandLabel , args ) ;
 }
 return isRegisteredCommand ;
 }


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

 import NAMESPACE ;


<nb> import NAMESPACE ;
 @ bugpattern ( name = STRING0 ,
 summary = STRING1
 + STRING2
 - + STRING3 ,
 + + STRING4
 + + STRING5
 + + STRING6 ,
 category = JDK , severity = WARNING , maturity = MATURE )
 public class TypeParameterUnusedInFormals extends BugChecker implements MethodTreeMatcher {


<nb> public class Meteor {
 COMMENT
 public void destroy ( ) {
 isDestroyed . set ( true ) ;
 - cache . remove ( this ) ;
 + cache . remove ( r ) ;
 }

 private boolean destroyed ( ) {


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class InstrumentClass extends ClassVisitor {
 super . visitAnnotation ( ALREADY_INSTRUMENTED_NAME , true ) ;

 for ( MethodNode mn : methods ) {
 - if ( requiresInstrumentation )
 - System . out . println ( STRING0 + className + STRING1 + mn . name + mn . desc ) ;
 + SINGLE
 + SINGLE

 MethodVisitor outMV = makeOutMV ( mn ) ;
 try {


<nb> public class WindowManagerService extends IWindowManager . Stub
 + STRING0 + finished + STRING1 + gotFirstWindow
 + STRING2 + eventDispatching + STRING3 + timeToSwitch
 + STRING4 + wasFrozen + STRING5 + focusPaused
 - + STRING6 + mCurrentFocus + STRING7 ;
 + + STRING6 + curFocus + STRING7 ;
 }
 } ;
 private DispatchState mDispatchState = null ;

Corrected debug message in WindowManager


<nb> public abstract class AbstractTestDistributedQueries
 SINGLE
 assertUpdate (
 STRING0 +
 - STRING1 +
 - STRING2 +
 - STRING3 ,
 + STRING1 +
 + STRING2 +
 + STRING3 ,
 STRING4 ) ;

 assertUpdate ( STRING5 ) ;
 <nb> public abstract class AbstractTestDistributedQueries
 MaterializedResult result = computeActual ( STRING6 + tableName ) ;
 List < String > expected = ImmutableList . copyOf ( columnNames ) ;
 List < String > actual = result . getMaterializedRows ( ) . stream ( )
 - . map ( row - > ( String ) row . getField ( NUMBER0 ) )
 - . collect ( toImmutableList ( ) ) ;
 + . map ( row - > ( String ) row . getField ( NUMBER0 ) )
 + . collect ( toImmutableList ( ) ) ;
 assertEquals ( actual , expected ) ;
 }
 }

Fix formatting in AbstractTestDistributedQueries


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


<nb> public class ValuePattern {
 return STRING0 + contains ;
 } else if ( matches != null ) {
 return STRING1 + matches ;
 - } else {
 + } else if ( doesNotMatch != null ) {
 return STRING2 + doesNotMatch ;
 - }
 + } else {
 + return STRING3 ;
 + }
 }

 @ override

Fixed toString in ValuePattern to accomodate absent state


<nb> public final class BlockWorkerClient extends AbstractClient {
 mClient . sessionHeartbeat ( mSessionId , mClientMetrics . getHeartbeatData ( ) ) ;
 } catch ( Exception e ) {
 LOG . error ( e . getMessage ( ) , e ) ;
 + SINGLE
 + mProtocol . getTransport ( ) . close ( ) ;
 return ;
 }
 mConnected = true ;


<nb> public class Java7PluginClassLoaderTest {
 @ override
 public void run ( ) {
 for ( int i = NUMBER0 ; i < count ; i ++ ) {
 - System . out . println ( this + STRING0 + i ) ;
 synchronized ( parent ) {
 try {
 child . loadClass ( STRING1 ) ;
 <nb> public class Java7PluginClassLoaderTest {
 @ override
 public void run ( ) {
 for ( int i = NUMBER0 ; i < count ; i ++ ) {
 - System . out . println ( this + STRING0 + i ) ;
 synchronized ( child ) {
 try {
 child . loadClass ( STRING1 ) ;

removed sysout code causing Travis build termination


<nb> public class BackupConfig {
 STRING0 + groupToBackup +
 STRING1 + backupType +
 STRING2 + debug +
 + STRING3 + typesToBackup +
 STRING4 ;
 }
 }


<nb> import NAMESPACE ;

 public class RandomAccessReader extends RandomAccessFile implements FileDataInput
 {
 - public static final long MAX_BYTES_IN_PAGE_CACHE = ( long ) Math . pow ( NUMBER0 , NUMBER1 ) ; SINGLE
 + public static final long CACHE_FLUSH_INTERVAL_IN_BYTES = ( long ) Math . pow ( NUMBER0 , NUMBER1 ) ; SINGLE

 SINGLE
 public static final int DEFAULT_BUFFER_SIZE = NUMBER2 ;
 <nb> public class RandomAccessReader extends RandomAccessFile implements FileDataInpu

 bytesSinceCacheFlush += read ;

 - if ( skipIOCache && bytesSinceCacheFlush >= MAX_BYTES_IN_PAGE_CACHE )
 + if ( skipIOCache && bytesSinceCacheFlush >= CACHE_FLUSH_INTERVAL_IN_BYTES )
 {
 SINGLE
 SINGLE
 <nb> public class SequentialWriter extends OutputStream
 SINGLE
 bytesSinceCacheFlush += validBufferBytes ;

 - if ( bytesSinceCacheFlush >= RandomAccessReader . MAX_BYTES_IN_PAGE_CACHE )
 + if ( bytesSinceCacheFlush >= RandomAccessReader . CACHE_FLUSH_INTERVAL_IN_BYTES )
 {
 CLibrary . trySkipCache ( this . fd , ioCacheStartOffset , NUMBER3 ) ;
 ioCacheStartOffset = bufferOffset ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public final class SnakeYAMLDataFormat extends ServiceSupport implements DataFormat , DataFormatName {
 + public class SnakeYAMLDataFormat extends ServiceSupport implements DataFormat , DataFormatName {
 private final ThreadLocal < WeakReference < Yaml > > yamlCache ;
 private BaseConstructor constructor ;
 private Representer representer ;
 <nb> public final class SnakeYAMLDataFormat extends ServiceSupport implements DataFor
 this . allowAnyType = false ;

 if ( type != null ) {
 - setUnmarshalType ( type ) ;
 + this . unmarshalType = type ;
 + this . typeFilters = new CopyOnWriteArrayList < > ( ) ;
 + this . typeFilters . add ( TypeFilters . types ( type ) ) ;
 }
 }

add an option to filter classes the yaml parser can construct


<nb> public class CompoundComparator < T > implements Comparator < T > , Serializable {
 COMMENT
 COMMENT
 COMMENT
 - @ suppresswarnings ( { STRING0 , STRING1 } )
 + @ suppresswarnings ( STRING0 )
 public CompoundComparator ( Comparator . . . comparators ) {
 Assert . notNull ( comparators , STRING2 ) ;
 this . comparators = new ArrayList < InvertibleComparator > ( comparators . length ) ;


<nb> public class AbstractNewProjectStep extends DefaultActionGroup implements DumbAw
 public AnAction [ ] getActions ( @ notnull DirectoryProjectGenerator [ ] generators , @ notnull NullableConsumer < ProjectSettingsStepBase > callback ) {
 final List < AnAction > actions = ContainerUtil . newArrayList ( ) ;
 for ( DirectoryProjectGenerator projectGenerator : generators ) {
 - actions . addAll ( ContainerUtil . list ( getActions ( projectGenerator , callback ) ) ) ;
 + try {
 + actions . addAll ( ContainerUtil . list ( getActions ( projectGenerator , callback ) ) ) ;
 + } catch ( Throwable throwable ) {
 + LOG . error ( STRING0 + projectGenerator , throwable ) ;
 + }
 }
 return actions . toArray ( new AnAction [ actions . size ( ) ] ) ;
 }

prevent problems with new project due to broken plugins


<nb> public final class ActivityThread {
 Os . fchmod ( fd , permissions ) ;
 Os . fchown ( fd , appInfo . uid , appInfo . uid ) ;
 } catch ( ErrnoException e ) {
 - Log . v ( TAG , STRING0 + profileFile , e ) ;
 + Log . v ( TAG , STRING0
 + + profileFile + STRING1 + e . getMessage ( ) ) ;
 try {
 Os . unlink ( profileFile . getAbsolutePath ( ) ) ;
 } catch ( ErrnoException unlinkErr ) {
 - Log . v ( TAG , STRING2 + profileFile , unlinkErr ) ;
 + if ( unlinkErr . errno != OsConstants . ENOENT ) {
 + Log . v ( TAG , STRING2
 + + profileFile + STRING1 + unlinkErr . getMessage ( ) ) ;
 + }
 }
 return ;
 } finally {

Simplify the error logs for profiles we can t open


<nb> public class Main
 }
 catch ( NoClassDefFoundError e )
 {
 + if ( _debug )
 + System . err . println ( e ) ;
 }
 catch ( ClassNotFoundException e )
 - {
 + {
 + if ( _debug )
 + System . err . println ( e ) ;
 }
 ClassLoader loader = _classpath . getClassLoader ( ) ;
 try
 <nb> public class Main
 }
 catch ( NoClassDefFoundError e )
 {
 + if ( _debug )
 + System . err . println ( e ) ;
 }
 catch ( ClassNotFoundException e )
 {
 + if ( _debug )
 + System . err . println ( e ) ;
 }
 return false ;
 }

Add debug for checking class availability


<nb> public class DataStructures {
 string = builder . toString ( ) ;
 if ( debug ) System . out . println ( string ) ;

 - unsorted = new Integer [ ] { NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , NUMBER7 , NUMBER8 , NUMBER9 } ;
 -
 boolean passed = true ;

 passed = testHeap ( ) ;


<nb> public class ShardedJedis extends BinaryShardedJedis implements JedisCommands ,
 Jedis j = getShard ( arg ) ;
 return j . blpop ( arg ) ;
 }
 -
 + public List < String > blpop ( int timeout , String key ) {
 + Jedis j = getShard ( key ) ;
 + return j . blpop ( timeout , key ) ;
 + }
 public List < String > brpop ( String arg ) {
 Jedis j = getShard ( arg ) ;
 return j . brpop ( arg ) ;
 }
 -
 + public List < String > brpop ( int timeout , String key ) {
 + Jedis j = getShard ( key ) ;
 + return j . brpop ( timeout , key ) ;
 + }
 public Long decrBy ( String key , long integer ) {
 Jedis j = getShard ( key ) ;
 return j . decrBy ( key , integer ) ;


<nb> public class DynamicListView extends ObservableListView {
 tag . onClick ( ) ;
 }
 touchEventsCancelled ( ) ;
 - return true ;
 + return super . onTouchEvent ( event ) ;
 }

 switch ( event . getAction ( ) & MotionEvent . ACTION_MASK ) {

Fix tap on list item map settings map config waypoints


<nb> public abstract class AbstractTestQueries
 }

 @ test
 + public void testCountBoolean ( )
 + throws Exception
 + {
 + assertQuery ( STRING0 ) ;
 + }
 +
 + @ test
 public void testJoinWithMultiFieldGroupBy ( )
 throws Exception
 {

Add test for count with boolean argument


<nb> public class SuspendManagerImpl implements SuspendManager {
 LOG . debug ( STRING0 + suspends ) ;
 }
 DebuggerManagerThreadImpl . assertIsManagerThread ( ) ;
 - final boolean removed = myEventContexts . remove ( suspendContext ) ;
 - if ( ! removed ) {
 - LOG . assertTrue ( false , suspendContext ) ;
 - }
 + myEventContexts . remove ( suspendContext ) ;
 myPausedContexts . remove ( suspendContext ) ;
 }


<nb> final class Common {
 ( ( Worker ) message . obj ) . sendUpdate ( ) ;
 break ;
 case MSG_FIRST_ADDED :
 - if ( ! hasMessages ( MSG_LAST_REMOVED , message . obj ) ) {
 - ( ( Worker ) message . obj ) . callFirstUpdatableAdded ( ) ;
 - }
 + ( ( Worker ) message . obj ) . callFirstUpdatableAdded ( ) ;
 break ;
 case MSG_LAST_REMOVED :
 - if ( ! hasMessages ( MSG_FIRST_ADDED , message . obj ) ) {
 - ( ( Worker ) message . obj ) . callLastUpdatableRemoved ( ) ;
 - }
 + ( ( Worker ) message . obj ) . callLastUpdatableRemoved ( ) ;
 break ;
 case MSG_CALL_UPDATABLE :
 ( ( Updatable ) message . obj ) . update ( ) ;

Revert Changed WorkerHandler to make Observables survive rotation


<nb> public final class TemplateAstMatcher {
 final Map < String , JSType > paramTypes = new HashMap < > ( ) ;

 SINGLE
 + String fnName = fn . getFirstChild ( ) . getString ( ) ;
 fn . getFirstChild ( ) . setString ( STRING0 ) ;

 SINGLE
 Node templateParametersNode = fn . getFirstChild ( ) . getNext ( ) ;
 JSDocInfo info = NodeUtil . getBestJSDocInfo ( fn ) ;
 + if ( templateParametersNode . hasChildren ( ) ) {
 + Preconditions . checkNotNull ( info ,
 + STRING1 , fnName ) ;
 + }
 for ( Node paramNode : templateParametersNode . children ( ) ) {
 String name = paramNode . getString ( ) ;
 JSTypeExpression expression = info . getParameterType ( name ) ;
 + Preconditions . checkNotNull ( expression ,
 + STRING2 ,
 + name , fnName ) ;
 JSType type = expression . evaluate ( null , compiler . getTypeRegistry ( ) ) ;
 Preconditions . checkNotNull ( type ) ;
 params . add ( name ) ;


<nb> public class TezJobMonitor {
 break ;
 case INITING :
 console . printInfo ( STRING0 ) ;
 + startTime = System . currentTimeMillis ( ) ;
 break ;
 case RUNNING :
 if ( ! running ) {

Tez in place progress UI can show wrong estimated time for sub second queries Prasanth J reviewed by Gopal V


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

 private void checkRecommendedParameter ( String url , String val ) {
 if ( ! url . contains ( val ) ) {
 - Loggers . get ( getClass ( ) ) . warn ( STRING0 , val ) ;
 + LoggerFactory . getLogger ( getClass ( ) ) . warn ( STRING0 , val ) ;
 }
 }
 }

Fix logging of warnings when JDBC URL is not correct


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class QueryStringDecoderTest {


<nb> public final class TvContract {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add a comment to remove padding around the channel logo image


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

 import static NAMESPACE ;

 public abstract class ServiceBase extends Service {
 - COMMENT
 - COMMENT
 - COMMENT
 - private PowerManager . WakeLock mWakeLock ;
 - COMMENT
 - COMMENT
 - COMMENT
 - private WifiManager . WifiLock mWifiLock ;
 + @ nullable private PowerManager . WakeLock mWakeLock ;
 + @ nullable private WifiManager . WifiLock mWifiLock ;

 private AppLog appLog ;
 - protected Notification notification ;
 + @ nullable protected Notification notification ;

 @ override
 public IBinder onBind ( Intent arg0 ) {


<nb> public class Http2UpgradeHandler implements HttpHandler {
 if ( settings != null ) {
 SINGLE
 final ByteBuffer settingsFrame = FlexBase64 . decodeURL ( settings ) ;
 + exchange . getResponseHeaders ( ) . put ( Headers . UPGRADE , upgrade ) ;
 exchange . upgradeChannel ( new HttpUpgradeListener ( ) {
 @ override
 public void handleUpgrade ( StreamConnection streamConnection , HttpServerExchange exchange ) {


<nb> import NAMESPACE ;
 @ implements ( Resources . class )
 public class ShadowResources {
 private float density = FLOAT0 ;
 -
 + Configuration configuration = null ;
 +
 static Resources bind ( Resources resources , ResourceLoader resourceLoader ) {
 ShadowResources shadowResources = shadowOf ( resources ) ;
 if ( shadowResources . resourceLoader != null ) throw new RuntimeException ( STRING0 ) ;
 <nb> public class ShadowResources {
 public int getColor ( int id ) throws Resources . NotFoundException {
 return resourceLoader . getColorValue ( id ) ;
 }
 -
 +
 @ implementation
 public Configuration getConfiguration ( ) {
 - Configuration configuration = new Configuration ( ) ;
 - configuration . setToDefaults ( ) ;
 + if ( configuration == null ) {
 + Configuration configuration = new Configuration ( ) ;
 + configuration . setToDefaults ( ) ;
 + }
 if ( configuration . locale == null ) {
 configuration . locale = Locale . getDefault ( ) ;
 }

prevent getConfiguration from always creating a new Configuration


<nb> public abstract class AbstractJDOQLQuery < Q extends AbstractJDOQLQuery < Q > > extend
 }
 }

 + @ nullable
 private Object execute ( Query query ) {
 Object rv ;
 if ( ! orderedConstants . isEmpty ( ) ) {


<nb> public final class QSTileHost implements QSTile . Host , Tunable {

 mServices = new TileServices ( this , mLooper ) ;

 - mAutoTiles = new AutoTileManager ( context , this ) ;
 TunerService . get ( mContext ) . addTunable ( this , TILES_SETTING ) ;
 + SINGLE
 + mAutoTiles = new AutoTileManager ( context , this ) ;
 }

 public void setHeaderView ( View view ) {

Initialize mTiles before constructing AutoTileManager


<nb> public final class Monitors {
 COMMENT
 COMMENT
 COMMENT
 - < < < < < < < HEAD
 COMMENT
 - == == == =
 - COMMENT
 - > > > > > > > Provide Monitors . unregisterObject methods
 COMMENT
 public static void unregisterObject ( Object obj ) {
 unregisterObject ( null , obj ) ;
 <nb> public final class Monitors {
 COMMENT
 COMMENT
 COMMENT
 - < < < < < < < HEAD
 COMMENT
 - == == == =
 - COMMENT
 - > > > > > > > Provide Monitors . unregisterObject methods
 COMMENT
 public static void unregisterObject ( String id , Object obj ) {
 DefaultMonitorRegistry . getInstance ( ) . unregister ( newObjectMonitor ( id , obj ) ) ;


<nb>
 - package NAMESPACE ;
 + package NAMESPACE ;

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

 - public class CycleConfigEntity implements Serializable , PersistentObject {
 + public class CycleConfig implements Serializable , PersistentObject {

 private static final long serialVersionUID = - NUMBER0 ;

 <nb> public class CycleConfigEntity implements Serializable , PersistentObject {
 protected int revision ;

 SINGLE
 - public CycleConfigEntity ( ) {
 + public CycleConfig ( ) {
 }

 SINGLE

Rename CycleConfigEntity to CycleConfig and moved this class from package org activiti cycle impl db to org activiti cycle


<nb> public class Installer {

 if ( success . get ( ) ) SwingUtilities . invokeLater ( new Runnable ( ) {
 @ override public void run ( ) {
 - JOptionPane . showMessageDialog ( appWindow , STRING0 , STRING1 , JOptionPane . INFORMATION_MESSAGE ) ;
 + JOptionPane . showMessageDialog ( appWindow , STRING2 , STRING1 , JOptionPane . INFORMATION_MESSAGE ) ;
 appWindow . setVisible ( false ) ;
 System . exit ( NUMBER0 ) ;
 }

Added a note to restart eclipse after some confusing as reported on the googlegroups


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class XMLPanelEditor extends ContentPanelEditor {
 {
 editor = new XMLEditor ( ) ;
 try {
 - editor . init ( subSite , null ) ;
 + editor . init ( subSite , StringEditorInput . EMPTY_INPUT ) ;
 } catch ( PartInitException e ) {
 log . error ( e ) ;
 return null ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> import NAMESPACE ;
 COMMENT
 public class StringEditorInput implements IEditorInput {

 + public static final IEditorInput EMPTY_INPUT = new StringEditorInput ( STRING0 , STRING1 , true , ContentUtils . DEFAULT_CHARSET ) ;
 private String name ;
 private StringBuilder buffer ;
 private boolean readOnly ;


<nb> public class ResolverActivity extends Activity {
 } else {
 try {
 AppGlobals . getPackageManager ( ) . setLastChosenActivity ( intent ,
 - intent . resolveTypeIfNeeded ( getContentResolver ( ) ) ,
 + intent . resolveType ( getContentResolver ( ) ) ,
 PackageManager . MATCH_DEFAULT_ONLY ,
 filter , bestMatch , intent . getComponent ( ) ) ;
 } catch ( RemoteException re ) {

ResolverActivity sometimes cannot update the last chosen activity


<nb> public class OutputService {
 }

 public OutputTypesResponse available ( ) throws APIException , IOException {
 - return api . path ( routes . OutputResource ( ) . available ( null ) , OutputTypesResponse . class ) . execute ( ) ;
 + return api . path ( routes . OutputResource ( ) . available ( ) , OutputTypesResponse . class ) . execute ( ) ;
 }
 }


<nb> public class RegExpBoundaryImpl extends RegExpElementImpl implements RegExpBound

 @ notnull
 public Type getType ( ) {
 - final IElementType type = getNode ( ) . getElementType ( ) ;
 + final ASTNode child = getNode ( ) . getFirstChildNode ( ) ;
 + assert child != null ;
 + final IElementType type = child . getElementType ( ) ;
 if ( type == RegExpTT . CARET ) {
 return Type . LINE_START ;
 } else if ( type == RegExpTT . DOLLAR ) {
 return Type . LINE_END ;
 - } else {
 + } else if ( type == RegExpTT . BOUNDARY ) {
 final String s = getUnescapedText ( ) ;
 if ( s . equals ( STRING0 ) ) {
 return Type . WORD ;


<nb> public class BatchlogManager implements BatchlogManagerMBean

 ColumnFamily cf = ArrayBackedSortedColumns . factory . create ( CFMetaData . BatchlogCf ) ;
 cf . addColumn ( new Column ( columnName ( STRING0 ) , ByteBufferUtil . EMPTY_BYTE_BUFFER , timestamp ) ) ;
 - cf . addColumn ( new Column ( columnName ( STRING1 ) , writtenAt , timestamp ) ) ;
 cf . addColumn ( new Column ( columnName ( STRING2 ) , data , timestamp ) ) ;
 + cf . addColumn ( new Column ( columnName ( STRING1 ) , writtenAt , timestamp ) ) ;

 return new RowMutation ( Table . SYSTEM_KS , UUIDType . instance . decompose ( uuid ) , cf ) ;
 }

Fix addColumn order in BM getBatchlogMutationFor


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 public interface CssRenamingMap {
 + public static enum Style {
 + BY_WHOLE ,
 + BY_PART ,
 + }
 +
 String get ( String value ) ;
 +
 + SINGLE
 + SINGLE
 + SINGLE
 }

Create a renaming map style to match setRenamingMap in base js


<nb> public class FileFilter {
 private static final String LOGTAG = STRING0 ;

 SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 + SINGLE
 + SINGLE
 public static boolean ignoreTest ( String file ) {
 for ( int i = NUMBER0 ; i < ignoreTestList . length ; i ++ ) {
 if ( file . endsWith ( ignoreTestList [ i ] ) ) {
 <nb> public class FileFilter {

 static final String [ ] ignoreTestList = {
 STRING1 , SINGLE
 + STRING2 , SINGLE
 + STRING3 , SINGLE
 STRING4 SINGLE
 } ;

Puts two regex layout tests back on the DumpRenderTree skipped list


<nb> public class PDFExporter implements GraphRenderer , VectorialFileExporter , LongTa
 try {
 BaseFont bf = genBaseFont ( font ) ;
 float ascent = bf . getAscentPoint ( label . getValue ( ) , font . getSize ( ) ) ;
 + float descent = bf . getDescentPoint ( label . getValue ( ) , font . getSize ( ) ) ;
 + float textHeight = ( ascent - descent ) / FLOAT0 ;

 cb . beginText ( ) ;
 cb . setFontAndSize ( bf , font . getSize ( ) ) ;
 - cb . showTextAligned ( PdfContentByte . ALIGN_CENTER , label . getValue ( ) , p . getX ( ) - ascent / NUMBER0 , - p . getY ( ) , NUMBER1 ) ;
 + cb . showTextAligned ( PdfContentByte . ALIGN_CENTER , label . getValue ( ) , p . getX ( ) , - p . getY ( ) - textHeight , NUMBER1 ) ;
 cb . endText ( ) ;
 } catch ( Exception ex ) {
 Exceptions . printStackTrace ( ex ) ;


<nb> public class HandlerRegistration < T > implements MessageConsumer < T > , Handler < Messa
 } else {
 callCompletionHandlerAsync ( completionHandler ) ;
 }
 - registered = false ;
 }

 private void callCompletionHandlerAsync ( Handler < AsyncResult < Void > > completionHandler ) {


<nb> public class QRCodeReader implements Reader {
 SINGLE
 SINGLE
 right = left + ( bottom - top ) ;
 + if ( right >= image . getWidth ( ) ) {
 + SINGLE
 + throw NotFoundException . getNotFoundInstance ( ) ;
 + }
 }

 int matrixWidth = Math . round ( ( right - left + NUMBER0 ) / moduleSize ) ;

avoid AIOOBE in pure barcode mode for obviously wrong case


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


<nb> public class SpongeMod extends DummyModContainer implements PluginContainer {
 SINGLE
 SINGLE
 public SpongeMod ( ) throws Exception {
 - super ( SpongeMod . createMetadata ( ImmutableMap . < String , Object > of ( STRING0 , SpongeImpl . ECOSYSTEM_ID , STRING1 , SpongeImpl . ECOSYSTEM_NAME ,
 - STRING2 , STRING3 ) ) ) ;
 + super ( SpongeMod . createMetadata ( ImmutableMap . < String , Object > of ( STRING0 , SpongeImpl . ECOSYSTEM_ID , STRING1 , STRING4 , STRING2 , STRING3 ) ) ) ;
 SINGLE
 ModContainerFactory . instance ( ) . registerContainerType ( Type . getType ( Plugin . class ) , SpongeModPluginContainer . class ) ;

Change default metadata name to SpongeForge


<nb> public class PrintCellModel {
 }

 private ReadOnlyList < ShortEdge > getUpEdges ( int rowIndex ) {
 - PrePrintCell prevPre = new PrePrintCell ( layoutModel , rowIndex , selectController ) ;
 + PrePrintCell prevPre = new PrePrintCell ( layoutModel , rowIndex - NUMBER0 , selectController ) ;
 return prevPre . downShortEdges ( ) ;
 }


<nb> public class NiftyDialogBuilder extends Dialog implements DialogInterface {
 instance = null ;
 }

 - if ( instance == null && ! ( ( Activity ) context ) . isFinishing ( ) ) {
 + if ( instance == null || ( ( Activity ) context ) . isFinishing ( ) ) {
 synchronized ( NiftyDialogBuilder . class ) {
 if ( instance == null ) {
 instance = new NiftyDialogBuilder ( context , R . style . dialog_untran ) ;


<nb> public class MysqlPersistenceService implements QueryablePersistenceService , Man

 if ( item instanceof NumberItem )
 state = new DecimalType ( rs . getDouble ( NUMBER0 ) ) ;
 + else if ( item instanceof ColorItem )
 + state = new HSBType ( rs . getString ( NUMBER0 ) ) ;
 else if ( item instanceof DimmerItem )
 state = new PercentType ( rs . getInt ( NUMBER0 ) ) ;
 else if ( item instanceof SwitchItem )
 <nb> public class MysqlPersistenceService implements QueryablePersistenceService , Man
 state = OpenClosedType . valueOf ( rs . getString ( NUMBER0 ) ) ;
 else if ( item instanceof RollershutterItem )
 state = new PercentType ( rs . getInt ( NUMBER0 ) ) ;
 - else if ( item instanceof ColorItem )
 - state = new HSBType ( rs . getString ( NUMBER0 ) ) ;
 else if ( item instanceof DateTimeItem ) {
 Calendar calendar = Calendar . getInstance ( ) ;
 calendar . setTimeInMillis ( rs . getTimestamp ( NUMBER0 ) . getTime ( ) ) ;


<nb> public class AutoScrollViewPagerSingleDemo extends BaseActivity {
 SINGLE
 SINGLE
 SINGLE
 + SINGLE
 + SINGLE
 }

 @ override


<nb> public class Calendars {

 private static final String ID_COLUMN_NAME = STRING0 ;
 private static final boolean USE_ICS_NAMES = AndroidUtilities . getSdkVersion ( ) >= NUMBER0 ;
 - private static final String ICS_CALENDAR_PREFIX = STRING1 ;
 - private static final String DISPLAY_COLUMN_NAME = ( USE_ICS_NAMES ? ICS_CALENDAR_PREFIX : STRING2 ) + STRING3 ;
 - private static final String ACCES_LEVEL_COLUMN_NAME = ( USE_ICS_NAMES ? ICS_CALENDAR_PREFIX : STRING2 ) + STRING4 ;
 + private static final String DISPLAY_COLUMN_NAME = ( USE_ICS_NAMES ? CalendarContract . Calendars . CALENDAR_DISPLAY_NAME : STRING3 ) ;
 + private static final String ACCES_LEVEL_COLUMN_NAME = ( USE_ICS_NAMES ? CalendarContract . Calendars . CALENDAR_ACCESS_LEVEL : STRING4 ) ;

 private static final String [ ] CALENDARS_PROJECTION = new String [ ] {
 - ID_COLUMN_NAME , SINGLE
 - DISPLAY_COLUMN_NAME SINGLE
 + ID_COLUMN_NAME ,
 + DISPLAY_COLUMN_NAME ,
 } ;

 SINGLE

Cleaned up a little ics calendar code still not working


<nb> public abstract class AsynchronousProcessor implements AsyncSupport < AtmosphereRe

 SINGLE
 if ( isServlet30 && ( ! req . isAsyncSupported ( ) && ! Utils . closeMessage ( req ) ) ) {
 - logger . error ( STRING0 , req . getRequestURL ( ) . toString ( ) ) ;
 + logger . error ( STRING1 , req . getRequestURL ( ) . toString ( ) ) ;
 res . setStatus ( NUMBER0 ) ;
 - res . addHeader ( X_ATMOSPHERE_ERROR , STRING2 ) ;
 + res . addHeader ( X_ATMOSPHERE_ERROR , STRING3 ) ;
 res . flushBuffer ( ) ;
 return new Action ( ) ;
 }


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

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

 + @ ignore ( STRING0 )
 public class AppleTestIntegrationTest {

 @ rule

Disable AppleTestIntegrationTest due to CI issues


<nb> public class Uploader extends FileActivity
 } ) ;
 return builder . create ( ) ;
 case DIALOG_NO_STREAM :
 - builder . setIcon ( android . R . drawable . ic_dialog_alert ) ;
 + builder . setIcon ( R . drawable . ic_warning ) ;
 builder . setTitle ( R . string . uploader_wrn_no_content_title ) ;
 builder . setMessage ( R . string . uploader_wrn_no_content_text ) ;
 builder . setCancelable ( false ) ;

fixed uploader warning icon in AlertDialog


<nb> public class ProjectJdkForModuleStep extends ModuleWizardStep {
 public void consume ( final Sdk jdk ) {
 successfullyAdded [ NUMBER0 ] = jdkConfig . addJdkNode ( jdk , false ) ;
 myJdkChooser . updateList ( jdk , type ) ;
 +
 + if ( ! successfullyAdded [ NUMBER0 ] ) {
 + try {
 + projectJdksModel . apply ( jdkConfig ) ;
 + }
 + catch ( ConfigurationException e1 ) {
 + SINGLE
 + }
 + }
 }
 } ) ;
 - if ( ! successfullyAdded [ NUMBER0 ] ) {
 - try {
 - projectJdksModel . apply ( jdkConfig ) ;
 - }
 - catch ( ConfigurationException e1 ) {
 - SINGLE
 - }
 - }
 -
 }
 } ) ;
 }

fix new project without any preconfigured jdks jdk wasn t assigned to the project r kirillk


<nb> public class CythonParsingTest extends ParsingTestCase {
 doTest ( ) ;
 }

 + public void testIncludes ( ) {
 + doTest ( ) ;
 + }
 +
 public void doTest ( ) {
 doTest ( true ) ;
 }

Added parsing of Cython include statements


<nb> public final class SpdyConnection implements Closeable {
 }
 }
 if ( streamsToNotify != null && delta != NUMBER0 ) {
 - for ( SpdyStream stream : streams . values ( ) ) {
 + for ( SpdyStream stream : streamsToNotify ) {
 synchronized ( stream ) {
 stream . addBytesToWriteWindow ( delta ) ;
 }


<nb> public class GzipHttpOutput extends HttpOutput
 BufferUtil . compact ( _buffer ) ;
 int off = _buffer . arrayOffset ( ) + _buffer . limit ( ) ;
 int len = _buffer . capacity ( ) - _buffer . limit ( ) - ( _complete ? NUMBER0 : NUMBER1 ) ;
 - int produced = _deflater . deflate ( _buffer . array ( ) , off , len , Deflater . NO_FLUSH ) ;
 - _buffer . limit ( _buffer . limit ( ) + produced ) ;
 + if ( len > NUMBER1 )
 + {
 + int produced = _deflater . deflate ( _buffer . array ( ) , off , len , Deflater . NO_FLUSH ) ;
 + _buffer . limit ( _buffer . limit ( ) + produced ) ;
 + }
 boolean complete = _deflater . finished ( ) ;
 if ( complete )
 addTrailer ( ) ;

Prevent gzip buffer overflow on complete


<nb> public class EasyAppMod {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public EasyAppMod ( final Context context ) {
 this . context = context ;
 <nb> public class EasyAppMod {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public boolean isPermissionGranted ( final String permission ) {
 return context . checkCallingPermission ( permission ) == PackageManager . PERMISSION_GRANTED ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean isAppInstalled ( String packageName ) {
 + return context . getPackageManager ( ) . getLaunchIntentForPackage ( packageName ) != null ;
 + }
 }

added isAppInstalled method to EasyAppMod


<nb> public class LogInspector
 final int frameLength = dataHeaderFlyweight . frameLength ( ) ;
 if ( frameLength <= NUMBER0 )
 {
 - final int limit = Math . min ( termLength - ( offset + HEADER_LENGTH ) , messageDumpLimit ) ;
 - out . println ( formatBytes ( termBuffer , offset + HEADER_LENGTH , limit ) ) ;
 + try
 + {
 + final int limit = Math . min ( termLength - ( offset + HEADER_LENGTH ) , messageDumpLimit ) ;
 + out . println ( formatBytes ( termBuffer , offset + HEADER_LENGTH , limit ) ) ;
 + }
 + catch ( final Exception ex )
 + {
 + System . out . printf ( STRING0 , frameLength , offset ) ;
 + ex . printStackTrace ( ) ;
 + }

 break ;
 }

Handle exceptions when printing a corrupt frame


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

 + import NAMESPACE ;
 +
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GrizzlyServer {
 COMMENT
 HttpHandler staticHandler = makeClientStaticHandler ( ) ;
 httpServer . getServerConfiguration ( ) . addHttpHandler ( staticHandler , STRING0 ) ;
 + COMMENT
 + SINGLE
 + GraphService gs = ( GraphService ) iocFactory . getComponentProvider ( GraphService . class ) . getInstance ( ) ;
 + Graph graph = gs . getGraph ( ) ;
 + httpServer . getServerConfiguration ( ) . addHttpHandler ( new OTPHttpHandler ( graph ) , STRING1 ) ;

 for ( NetworkListener l : httpServer . getListeners ( ) ) { l . getFileCache ( ) . setEnabled ( false ) ; }

register the JAX RS less HttpHandler with the Grizzly server


<nb> public class SparkComputationGraph implements Serializable {
 }

 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - @ experimental
 public ComputationGraph fitPathsMultiDataSet ( JavaRDD < String > paths ) {
 paths . cache ( ) ;
 trainingMaster . executeTrainingPathsMDS ( this , paths ) ;


<nb> public class PowerManagerService extends IPowerManager . Stub
 }

 SINGLE
 - if ( mPolicy != null ) {
 + if ( mPolicy != null && wasPowered ) {
 mPolicy . stopScreenSaver ( ) ;
 }
 }

Fix the dock insertion Dream entry codepath


<nb> public class AQUtility {
 getHandler ( ) . post ( run ) ;
 }

 + public static void post ( final Object handler , final String method , final Class < ? > [ ] sig , final Object . . . params ) {
 + post ( new Runnable ( ) {
 +
 + @ override
 + public void run ( ) {
 +
 + AQUtility . invokeHandler ( handler , method , false , true , sig , params ) ;
 +
 + }
 + } ) ;
 + }
 +
 public static void removePost ( Runnable run ) {
 getHandler ( ) . removeCallbacks ( run ) ;
 }

Add method to post a handler and method with ui thread


<nb> public class NinjaRunMojo extends AbstractMojo {
 List < String > classpathItems = Lists . newArrayList ( ) ;

 - alertUserIfDirectoryWithCompiledClassesOfThisProjectDoesNotExist (
 + alertAndStopExecutionIfDirectoryWithCompiledClassesOfThisProjectDoesNotExist (
 buildOutputDirectory ) ;

 classpathItems . add ( buildOutputDirectory ) ;
 <nb> public class NinjaRunMojo extends AbstractMojo {
 }

 - public void alertUserIfDirectoryWithCompiledClassesOfThisProjectDoesNotExist (
 + public void alertAndStopExecutionIfDirectoryWithCompiledClassesOfThisProjectDoesNotExist (
 String directoryWithCompiledClassesOfThisProject ) {

 if ( ! new File ( directoryWithCompiledClassesOfThisProject ) . exists ( ) ) {
 +
 getLog ( ) . error ( STRING0 + directoryWithCompiledClassesOfThisProject ) ;
 getLog ( ) . error ( STRING1 ) ;
 +
 + SINGLE
 + System . exit ( NUMBER0 ) ;
 }

 }

Improved notification when classes directory


<nb> public class SIPCommunicator

 boolean isHomeDirnameForced = name != null ;

 - if ( profileLocation == null || name == null )
 + if ( profileLocation == null
 + || cacheLocation == null
 + || logLocation == null
 + || name == null )
 {
 String defaultLocation = System . getProperty ( STRING0 ) ;
 String defaultName = STRING1 ;

Set defaults for log and cache directory when profile directory is set


<nb> public class PhoneStatusBarPolicy implements Callback {
 @ override
 public void onUserSwitching ( int newUserId , IRemoteCallback reply ) {
 mUserInfoController . reloadUserInfo ( ) ;
 + if ( reply != null ) {
 + try {
 + reply . sendResult ( null ) ;
 + } catch ( RemoteException e ) {
 + }
 + }
 }

 @ override
 <nb> public class FingerprintService extends SystemService implements IBinder . DeathRe
 public void onUserSwitching ( int newUserId , IRemoteCallback reply ) {
 mHandler . obtainMessage ( MSG_USER_SWITCHING , newUserId , NUMBER0 COMMENT )
 . sendToTarget ( ) ;
 + if ( reply != null ) {
 + try {
 + reply . sendResult ( null ) ;
 + } catch ( RemoteException e ) {
 + }
 + }
 }
 @ override
 public void onUserSwitchComplete ( int newUserId ) throws RemoteException {


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 COMMENT


<nb> public class TestEncodingDecoding extends TomcatBaseTest {
 }

 @ onerror
 - public void onError ( Session session , Throwable t ) throws IOException {
 + public void onError ( @ suppresswarnings ( STRING0 ) Session session , Throwable t ) {
 t . printStackTrace ( ) ;
 this . t = t ;
 }
 <nb> public class TestEncodingDecoding extends TomcatBaseTest {
 }

 @ onerror
 - public void onError ( Session session , Throwable t ) throws IOException {
 + public void onError ( @ suppresswarnings ( STRING0 ) Session session , Throwable t ) {
 t . printStackTrace ( ) ;
 this . t = t ;
 }


<nb> public final class BasicOperationScheduler {

 if ( currentThread instanceof OperationThread ) {
 if ( partitionId > - NUMBER0 ) {
 - SINGLE
 - int threadId = ( ( OperationThread ) currentThread ) . threadId ;
 - return toPartitionThreadIndex ( partitionId ) == threadId ;
 + OperationThread operationThread = ( OperationThread ) currentThread ;
 + if ( operationThread . isPartitionSpecific ) {
 + int threadId = operationThread . threadId ;
 + return toPartitionThreadIndex ( partitionId ) == threadId ;
 + }
 }
 return true ;
 }

BasicOperationScheduler isInvocationAllowedFromCurrentThread should check partition specific operation threads only


<nb> public class WebView extends AbsoluteLayout
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class WebView extends AbsoluteLayout
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 @ deprecated
 public int getVisibleTitleHeight ( ) {
 + SINGLE
 + SINGLE
 checkThread ( ) ;
 return getVisibleTitleHeightImpl ( ) ;
 }

Update the JavaDoc on getVisibleTitleHeight


<nb> public final class HttpServerExchange extends AbstractAttachable {
 StreamSinkChannel oldChannel = firstChannel ;
 StreamSinkChannel channel = oldChannel ;
 for ( ChannelWrapper wrapper : wrappers ) {
 - channel = ( ( ChannelWrapper < StreamSinkChannel > ) wrapper ) . wrap ( oldChannel , exchange ) ;
 + channel = ( ( ChannelWrapper < StreamSinkChannel > ) wrapper ) . wrap ( channel , exchange ) ;
 if ( channel == null ) {
 channel = oldChannel ;
 }


<nb> public class CommonTermsQueryBuilderTest extends BaseQueryTestCase < CommonTermsQu
 @ test
 public void testNoTermsFromQueryString ( ) throws IOException {
 CommonTermsQueryBuilder builder = new CommonTermsQueryBuilder ( STRING_FIELD_NAME , STRING0 ) ;
 - assertNull ( builder . toQuery ( createContext ( ) ) ) ;
 + QueryParseContext context = createContext ( ) ;
 + context . setAllowUnmappedFields ( true ) ;
 + assertNull ( builder . toQuery ( context ) ) ;
 }
 }


<nb> public class OperationFailedException
 public static final int CONTACT_GROUP_ALREADY_EXISTS = NUMBER0 ;

 COMMENT
 + COMMENT
 + COMMENT
 + public static final int INVALID_ACCOUNT_PROPERTIES = NUMBER1 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 private int errorCode = GENERAL_ERROR ;


<nb> public class Kafka09Fetcher < T > extends AbstractFetcher < T , TopicPartition > implem
 for ( KafkaTopicPartitionState < TopicPartition > partition : partitions ) {
 SINGLE
 SINGLE
 - Long offsetToCommit = offsets . get ( partition . getKafkaTopicPartition ( ) ) + NUMBER0 ;
 + Long offsetToCommit = offsets . get ( partition . getKafkaTopicPartition ( ) ) ;
 if ( offsetToCommit != null ) {
 - offsetsToCommit . put ( partition . getKafkaPartitionHandle ( ) , new OffsetAndMetadata ( offsetToCommit ) ) ;
 + offsetsToCommit . put ( partition . getKafkaPartitionHandle ( ) , new OffsetAndMetadata ( offsetToCommit + NUMBER0 ) ) ;
 partition . setCommittedOffset ( offsetToCommit ) ;
 }
 }