<nb> public class ParcelableStatus implements TwidereParcelable , Comparable < Parcelabl
 is_following = cursor . getColumnIndex ( Statuses . IS_FOLLOWING ) ;
 media = cursor . getColumnIndex ( Statuses . MEDIA_LIST ) ;
 mentions = cursor . getColumnIndex ( Statuses . MENTIONS_LIST ) ;
 + card = cursor . getColumnIndex ( Statuses . CARD ) ;
 card_name = cursor . getColumnIndex ( Statuses . CARD_NAME ) ;
 - card = cursor . getColumnIndex ( Statuses . MENTIONS_LIST ) ;
 place_full_name = cursor . getColumnIndex ( Statuses . PLACE_FULL_NAME ) ;
 }

fixed wrong table name caused card not displaying


<nb> public class LinkedTransferQueue < E > extends AbstractQueue < E >
 COMMENT
 @ override
 public boolean isEmpty ( ) {
 - return firstOfMode ( true ) == null ;
 + for ( Node p = head ; p != null ; p = succ ( p ) ) {
 + if ( ! p . isMatched ( ) ) {
 + return ! p . isData ;
 + }
 + }
 + return true ;
 }

 public boolean hasWaitingConsumer ( ) {


<nb> public final class AudioAttributes implements Parcelable {
 case USAGE_VOICE_COMMUNICATION :
 return new String ( STRING0 ) ;
 case USAGE_VOICE_COMMUNICATION_SIGNALLING :
 - return new String ( STRING0 ) ;
 + return new String ( STRING1 ) ;
 case USAGE_ALARM :
 return new String ( STRING2 ) ;
 case USAGE_NOTIFICATION :
 return new String ( STRING3 ) ;
 case USAGE_NOTIFICATION_RINGTONE :
 - return new String ( STRING3 ) ;
 + return new String ( STRING4 ) ;
 case USAGE_NOTIFICATION_COMMUNICATION_REQUEST :
 - return new String ( STRING3 ) ;
 + return new String ( STRING5 ) ;
 case USAGE_NOTIFICATION_COMMUNICATION_INSTANT :
 return new String ( STRING6 ) ;
 case USAGE_NOTIFICATION_COMMUNICATION_DELAYED :

Fix AudioAttributes usageToString string return values


<nb> public class GoReference extends PsiPolyVariantReferenceBase < GoReferenceExpressi
 return processor . execute ( myElement , state ) ;
 }

 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 -
 -
 - SINGLE
 - SINGLE
 - SINGLE
 -
 private void processFunctionParameters ( @ notnull GoScopeProcessorBase processor ) {
 SINGLE
 GoFunctionOrMethodDeclaration function = PsiTreeUtil . getParentOfType ( myElement , GoFunctionOrMethodDeclaration . class ) ;


<nb> public class Editor {
 positionAtCursorOffset ( offset , false ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 @ override
 protected void positionAtCursorOffset ( int offset , boolean parentScrolled ) {
 super . positionAtCursorOffset ( offset , parentScrolled ) ;
 - mInWord = ! getWordIteratorWithText ( ) . isBoundary ( offset ) ;
 + mInWord = ( offset != - NUMBER0 ) && ! getWordIteratorWithText ( ) . isBoundary ( offset ) ;
 }

 @ override
 <nb> public class Editor {
 positionAtCursorOffset ( offset , false ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 @ override
 protected void positionAtCursorOffset ( int offset , boolean parentScrolled ) {
 super . positionAtCursorOffset ( offset , parentScrolled ) ;
 - mInWord = ! getWordIteratorWithText ( ) . isBoundary ( offset ) ;
 + mInWord = ( offset != - NUMBER0 ) && ! getWordIteratorWithText ( ) . isBoundary ( offset ) ;
 }

 @ override

Fix crash on calling removeSelection with showing selection handlers


<nb> public class PhoneWindowManager implements WindowManagerPolicy {
 WindowManager . LayoutParams . FLAG_DIM_BEHIND
 | WindowManager . LayoutParams . FLAG_LAYOUT_IN_SCREEN ) ;
 mBootMsgDialog . getWindow ( ) . setDimAmount ( NUMBER0 ) ;
 + WindowManager . LayoutParams lp = mBootMsgDialog . getWindow ( ) . getAttributes ( ) ;
 + lp . screenOrientation = ActivityInfo . SCREEN_ORIENTATION_NOSENSOR ;
 + mBootMsgDialog . getWindow ( ) . setAttributes ( lp ) ;
 mBootMsgDialog . setCancelable ( false ) ;
 mBootMsgDialog . show ( ) ;
 }


<nb> public class RegexpValidator extends METValidator {
 pattern = Pattern . compile ( regex ) ;
 }

 + public RegexpValidator ( @ nonnull String errorMessage , @ nonnull Pattern pattern ) {
 + super ( errorMessage ) ;
 + this . pattern = pattern ;
 + }
 +
 @ override
 public boolean isValid ( @ nonnull CharSequence text , boolean isEmpty ) {
 return pattern . matcher ( text ) . matches ( ) ;

Added support for pre compiled patterns in RegexpValidator


<nb> public class Server implements Runnable {
 return - NUMBER0 ;
 }

 +
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 public boolean active ( ) {
 - return ( thread != null ) ;
 + return thread != null ;
 }

 +
 static public String ip ( ) {
 try {
 return InetAddress . getLocalHost ( ) . getHostAddress ( ) ;
 <nb> public class Serial implements SerialPortEventListener {
 COMMENT
 COMMENT
 public boolean active ( ) {
 - return ( port . isOpened ( ) ) ;
 + return port . isOpened ( ) ;
 }


<nb>
 package NAMESPACE ;

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

 COMMENT


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

 + import static NAMESPACE ;
 +
 public class AsyncQueue < T >
 {
 private enum FinishedMarker
 <nb> public class AsyncQueue < T >

 public void add ( T element )
 {
 + requireNonNull ( element , STRING0 ) ;
 queue . add ( element ) ;
 futureReference . get ( ) . complete ( null ) ;
 }
 <nb> public class AsyncQueue < T >
 SINGLE
 if ( queue . isEmpty ( ) ) {
 CompletableFuture < ? > future = futureReference . get ( ) ;
 - if ( ! future . isDone ( ) ) {
 + if ( future . isDone ( ) ) {
 futureReference . compareAndSet ( future , new CompletableFuture < > ( ) ) ;
 }
 }


<nb> public interface Context {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 - void setContentType ( String contentType ) ;
 + Context setContentType ( String contentType ) ;

 COMMENT
 COMMENT
 <nb> public class ContextImpl implements Context {
 }

 @ override
 - public void setContentType ( String contentType ) {
 + public ContextImpl setContentType ( String contentType ) {
 this . contentType = contentType ;
 httpServletResponse . setContentType ( contentType ) ;
 -
 + return this ;
 }

 @ override

Allowed chaining with setContentType on Context


<nb> public class Redwood {
 COMMENT
 public static void threadAndRun ( String title , Iterable < Runnable > runnables , int numThreads ) {
 SINGLE
 - if ( numThreads == NUMBER0 || isThreaded ) {
 + if ( numThreads <= NUMBER0 || isThreaded ) {
 startTrack ( STRING0 + title + STRING1 ) ;
 for ( Runnable toRun : runnables ) { toRun . run ( ) ; }
 endTrack ( STRING0 + title + STRING1 ) ;

Add option to not multithread MIML RE e g for ensemble model


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

 COMMENT
 COMMENT


<nb> public class EngineIron extends Engine {

 @ override
 public void delete ( ) {
 -
 - }
 + ItemStack stack = tile . getStackInSlot ( NUMBER0 ) ;
 + if ( stack != null ) {
 + Utils . dropItems ( tile . worldObj , stack , tile . xCoord , tile . yCoord , tile . zCoord ) ;
 + }
 + }

 @ override
 public void getGUINetworkData ( int i , int j ) {

Fixed combustion engines not dropping its inventory when broken


<nb> public abstract class ExpandableListItemAdapter < T > extends ArrayAdapter < T > imple
 ValueAnimator animator = createHeightAnimator ( view , NUMBER0 , view . getMeasuredHeight ( ) ) ;
 animator . addUpdateListener ( new ValueAnimator . AnimatorUpdateListener ( ) {
 final int listViewHeight = listView . getHeight ( ) ;
 + final int listViewBottomPadding = listView . getPaddingBottom ( ) ;
 final View v = findDirectChild ( view , listView ) ;

 @ override
 <nb> public abstract class ExpandableListItemAdapter < T > extends ArrayAdapter < T > imple
 if ( bottom > listViewHeight ) {
 final int top = v . getTop ( ) ;
 if ( top > NUMBER0 ) {
 - listView . smoothScrollBy ( Math . min ( bottom - listViewHeight , top ) , NUMBER0 ) ;
 + listView . smoothScrollBy ( Math . min ( bottom - listViewHeight + listViewBottomPadding , top ) , NUMBER0 ) ;
 }
 }
 }

Consider padding when scrolling ListView in ExpandableListItemAdapter


<nb> public class GenerateSourcesMojo extends AbstractAndroidMojo
 COMMENT
 COMMENT
 @ parameter ( defaultValue = STRING0 )
 - protected boolean warnOnApklibDependency ;
 + protected boolean warnOnApklibDependencies ;

 COMMENT
 COMMENT
 <nb> public class GenerateSourcesMojo extends AbstractAndroidMojo
 protected BuildConfigConstant [ ] buildConfigConstants ;

 COMMENT
 + COMMENT
 + @ component
 + private RepositorySystem repositorySystem ;
 +
 + COMMENT
 COMMENT
 COMMENT
 protected static final List < String > EXCLUDED_DEPENDENCY_SCOPES_FOR_EXTRACTION = Arrays . asList (
 <nb> public class GenerateSourcesMojo extends AbstractAndroidMojo
 ) ;

 COMMENT
 - COMMENT
 - @ component
 - protected RepositorySystem repositorySystem ;
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class GenerateSourcesMojo extends AbstractAndroidMojo
 copyManifest ( ) ;

 SINGLE
 - if ( warnOnApklibDependency )
 + if ( warnOnApklibDependencies )
 {
 checkForApklibDependencies ( ) ;
 }

Renamed mojo parameter to match its meaning


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

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BackupManager extends ClusterManagerBase
 super . startInternal ( ) ;

 try {
 + if ( getCluster ( ) == null ) {
 + Cluster cluster = getContainer ( ) . getCluster ( ) ;
 + if ( cluster instanceof CatalinaCluster ) {
 + setCluster ( ( CatalinaCluster ) cluster ) ;
 + } else {
 + throw new LifecycleException (
 + STRING0 + getName ( ) ) ;
 + }
 + }
 cluster . registerManager ( this ) ;
 LazyReplicatedMap < String , Session > map =
 new LazyReplicatedMap < String , Session > ( this ,

Avoid NPE when reload if a state of a BackupManager is FAILED


<nb> public final class EditorTabbedContainer implements Disposable , CloseAction . Clos
 final TabInfo info = myTabs . findInfo ( e ) ;
 if ( info != null ) {
 IdeEventQueue . getInstance ( ) . blockNextEvents ( e ) ;
 - if ( e . isAltDown ( ) ) { SINGLE
 + if ( e . isAltDown ( ) && e . getButton ( ) == MouseEvent . BUTTON1 ) { SINGLE
 List < TabInfo > allTabInfos = myTabs . getTabs ( ) ;
 for ( TabInfo tabInfo : allTabInfos ) {
 if ( tabInfo == info ) continue ;


<nb> public class SearchDialog extends DialogWrapper implements ConfigurationCreator
 Matcher . validate ( searchContext . getProject ( ) , model . getConfig ( ) . getMatchOptions ( ) ) ;
 }
 catch ( MalformedPatternException ex ) {
 - reportMessage (
 - STRING0 ,
 - searchCriteriaEdit ,
 - ex . getMessage ( ) != null ? ex . getMessage ( ) : STRING1
 - ) ;
 - result = false ;
 + if ( myRunFindActionOnClose ) {
 + reportMessage (
 + STRING0 ,
 + searchCriteriaEdit ,
 + ex . getMessage ( ) != null ? ex . getMessage ( ) : STRING1
 + ) ;
 + result = false ;
 + }
 }
 catch ( UnsupportedPatternException ex ) {
 reportMessage ( STRING2 , searchCriteriaEdit , ex . getPattern ( ) ) ;

ignore MalformedPatternInspection in configure inspection pattern dialog


<nb> public class AccuracyTestingSuite {
 @ beforeclass
 @ parameters ( { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 ,
 STRING5 } )
 - private void accuracySuiteSetup ( @ optional ( STRING6 ) String logDir ,
 - @ optional ( STRING7 ) String resultsDBTableConfig ,
 - @ optional ( STRING8 ) String numH2ONodes ,
 - @ optional ( STRING9 )
 + private void accuracySuiteSetup ( @ org.testng.annotations.optional ( STRING6 ) String logDir ,
 + @ org.testng.annotations.optional ( STRING7 ) String resultsDBTableConfig ,
 + @ org.testng.annotations.optional ( STRING8 ) String numH2ONodes ,
 + @ org.testng.annotations.optional ( STRING9 )
 String dataSetsCSVPath ,
 - @ optional ( STRING10 )
 + @ org.testng.annotations.optional ( STRING10 )
 String testCasesCSVPath ,
 - @ optional ( STRING7 ) String testCasesFilterString )
 + @ org.testng.annotations.optional ( STRING7 ) String testCasesFilterString )
 {
 SINGLE
 this . logDir = logDir ;

resolve Optional annotation to the org testng annotations one


<nb> import NAMESPACE ;

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


<nb> public class RobolectricTestRunner extends BlockJUnit4ClassRunner implements Rob
 return defaultLoader ;
 }
 public static void setDefaultLoader ( Loader robolectricClassLoader ) {
 + SINGLE
 if ( defaultLoader == null ) {
 defaultLoader = ( RobolectricClassLoader ) robolectricClassLoader ;
 } else throw new RuntimeException ( STRING0 ) ;
 <nb> public class RobolectricClassLoader extends javassist . Loader {

 @ override
 public Class loadClass ( String name ) throws ClassNotFoundException {
 - boolean shouldComeFromThisClassLoader = ! ( name . startsWith ( STRING1 ) || name . startsWith ( STRING2 ) || name . startsWith ( STRING3 ) || name . startsWith ( STRING4 ) ) ;
 + boolean shouldComeFromThisClassLoader = ! ( name . startsWith ( STRING1 ) || name . startsWith ( STRING2 )
 + || name . startsWith ( STRING3 ) || name . startsWith ( STRING4 ) ) ; SINGLE

 Class < ? > theClass ;
 if ( shouldComeFromThisClassLoader ) {

added comments about the scala additions


<nb>
 package NAMESPACE ;

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

 - import static NAMESPACE ;
 - import static NAMESPACE ;
 -
 public class VerbalExpression {

 private final Pattern pattern ;
 <nb> public class VerbalExpression {
 COMMENT
 COMMENT
 public Builder maybe ( final Builder regex ) {
 - return this . group ( ) . add ( regex . build ( ) . toString ( ) ) . endGr ( ) . add ( STRING0 ) ;
 + return this . group ( ) . add ( regex ) . endGr ( ) . add ( STRING0 ) ;
 }

 COMMENT


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

 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CommaFeedApplication extends Application < CommaFeedConfiguration > {

 SINGLE
 HashSessionManager sessionManager = new HashSessionManager ( ) ;
 + sessionManager . setSessionTrackingModes ( ImmutableSet . of ( SessionTrackingMode . COOKIE ) ) ;
 sessionManager . setHttpOnly ( true ) ;
 sessionManager . getSessionCookieConfig ( ) . setHttpOnly ( true ) ;


<nb> public class FlowSQLiteOpenHelper extends SQLiteOpenHelper {
 }

 checkForeignKeySupport ( db ) ;
 +
 + SINGLE
 + executeMigrations ( db , - NUMBER0 , db . getVersion ( ) ) ;
 }

 COMMENT

now run migrations on open if they havent run yet in case its not called when the database is created


<nb> public class DiscoveryWithServiceDisruptionsIT extends ESIntegTestCase {
 assertNoMaster ( nonMasterNode ) ;

 logger . info ( STRING0 , masterNode , nonMasterNode ) ;
 - MockTransportService masterTransportService = ( MockTransportService ) internalCluster ( ) . getInstance ( TransportService . class ,
 - masterNode ) ;
 - TransportService localTransportService = internalCluster ( ) . getInstance ( TransportService . class , discoveryNodes . localNode ( ) . getName
 - ( ) ) ;
 + MockTransportService masterTransportService =
 + ( MockTransportService ) internalCluster ( ) . getInstance ( TransportService . class , masterNode ) ;
 + TransportService localTransportService =
 + internalCluster ( ) . getInstance ( TransportService . class , discoveryNodes . localNode ( ) . getName ( ) ) ;
 if ( randomBoolean ( ) ) {
 masterTransportService . addFailToSendNoConnectRule ( localTransportService , PublishClusterStateAction . SEND_ACTION_NAME ) ;
 } else {


<nb> public class LdapPersonAttributeDao extends AbstractQueryPersonAttributeDao < Sear
 private Map < String , List < Object > > convertLdapEntryToMap ( final LdapEntry entry ) {
 final Map < String , List < Object > > attributeMap = new LinkedHashMap < > ( entry . size ( ) ) ;
 for ( final LdapAttribute attr : entry . getAttributes ( ) ) {
 - final String attrNewName = this . getResultAttributeMapping ( ) . get ( attr . getName ( ) ) . toString ( ) ;
 - attributeMap . put ( attrNewName , new ArrayList < Object > ( attr . getStringValues ( ) ) ) ;
 + attributeMap . put ( attr . getName ( ) , new ArrayList < Object > ( attr . getStringValues ( ) ) ) ;
 }
 logger . debug ( STRING0 , entry . getDn ( ) , attributeMap . toString ( ) ) ;
 return attributeMap ;


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

 - import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class
 launcherCp . add ( ClasspathBootstrap . getResourcePath ( launcherClass ) ) ;
 launcherCp . add ( compilerPath ) ;
 ClasspathBootstrap . appendJavaCompilerClasspath ( launcherCp ) ;
 -
 + SINGLE
 + cmdLine . addParameter ( STRING0 ) ;
 cmdLine . addParameter ( STRING1 ) ;
 cmdLine . addParameter ( classpathToString ( launcherCp ) ) ;

 <nb> public class JavacServerBootstrap {
 appendParam ( cmdLine , STRING2 + JavacServer . USE_ECLIPSE_COMPILER_PROPERTY ) ;
 }

 + SINGLE
 + appendParam ( cmdLine , STRING0 ) ;
 +
 for ( String option : vmOptions ) {
 appendParam ( cmdLine , option ) ;
 }

when launching build process or javac server suppress libraries from ext directories to ensure compiler is loaded from correct location


<nb> public class DBUtils {
 new String [ ] {
 Episodes . FIRSTAIRED , Shows . REF_SHOW_ID
 } , null , null , null ) ;
 + episode . moveToFirst ( ) ;
 final String untilDate = episode . getString ( NUMBER0 ) ;
 final String showId = episode . getString ( NUMBER1 ) ;
 episode . close ( ) ;
 <nb> public class DBUtils {
 values . put ( Episodes . WATCHED , true ) ;

 context . getContentResolver ( ) . update ( Episodes . buildEpisodesOfShowUri ( showId ) , values ,
 - Episodes . FIRSTAIRED + STRING0 , new String [ ] {
 + Episodes . FIRSTAIRED + STRING1 + Episodes . FIRSTAIRED + STRING2 , new String [ ] {
 untilDate
 } ) ;
 + context . getContentResolver ( ) . notifyChange ( Episodes . CONTENT_URI , null ) ;
 }

 COMMENT


<nb> import NAMESPACE ;
 COMMENT
 try {
 metrics . markBadRequest ( System . currentTimeMillis ( ) - invocationStartTime ) ;
 - System . out . println ( STRING0 ) ;
 Exception decorated = executionHook . onError ( _self , FailureType . BAD_REQUEST_EXCEPTION , ( Exception ) t ) ;

 if ( decorated instanceof HystrixBadRequestException ) {


<nb> public class UpdateHandlerList extends ArrayList < IUpdateHandler > implements IUpd
 @ override
 public void onUpdate ( final float pSecondsElapsed ) {
 final int handlerCount = this . size ( ) ;
 - for ( int i = NUMBER0 ; i < handlerCount ; i ++ ) {
 + for ( int i = handlerCount - NUMBER1 ; i >= NUMBER0 ; i -- ) {
 this . get ( i ) . onUpdate ( pSecondsElapsed ) ;
 }
 }
 <nb> public class UpdateHandlerList extends ArrayList < IUpdateHandler > implements IUpd
 @ override
 public void reset ( ) {
 final int handlerCount = this . size ( ) ;
 - for ( int i = NUMBER0 ; i < handlerCount ; i ++ ) {
 + for ( int i = handlerCount - NUMBER1 ; i >= NUMBER0 ; i -- ) {
 this . get ( i ) . reset ( ) ;
 }
 }

UpdateHandlerList is now traversed reverse


<nb> public class OHazelcastPlugin extends ODistributedAbstractPlugin implements Memb
 SINGLE
 SINGLE
 final List < String > firstNode = new ArrayList < String > ( ) ;
 - if ( nodes . iterator ( ) . hasNext ( ) )
 - firstNode . add ( nodes . iterator ( ) . next ( ) ) ;
 + while ( nodes . iterator ( ) . hasNext ( ) ) {
 + final String f = nodes . iterator ( ) . next ( ) ;
 + if ( isNodeAvailable ( f , databaseName ) ) {
 + firstNode . add ( f ) ;
 + break ;
 + }
 + }
 +
 + if ( firstNode . isEmpty ( ) )
 + SINGLE
 + firstNode . addAll ( nodes ) ;

 ODistributedServerLog . warn ( this , getLocalNodeName ( ) , firstNode . toString ( ) , DIRECTION . OUT ,
 STRING0 , databaseName ) ;

fixed issue on deploy db against an non online db


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

Clarifying yet further the exact field we re referring to


<nb> public class AllocationAdapter extends Allocation {
 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
 static public AllocationAdapter createTyped ( RenderScript rs , Allocation a , Type t ) {

Fix punctuation and typos in AllocationAdapter s documentation


<nb> public class RelativeLayout extends ViewGroup {
 SINGLE
 SINGLE
 if ( mySize < NUMBER0 && ! mAllowBrokenMeasureSpecs ) {
 - if ( childSize >= NUMBER0 ) {
 - SINGLE
 - childSpecSize = childSize ;
 - childSpecMode = MeasureSpec . EXACTLY ;
 - } else if ( childStart >= NUMBER0 && childEnd >= NUMBER0 ) {
 + if ( childStart >= NUMBER0 && childEnd >= NUMBER0 ) {
 SINGLE
 childSpecSize = Math . max ( NUMBER0 , childEnd - childStart ) ;
 childSpecMode = MeasureSpec . EXACTLY ;
 + } else if ( childSize >= NUMBER0 ) {
 + SINGLE
 + childSpecSize = childSize ;
 + childSpecMode = MeasureSpec . EXACTLY ;
 } else {
 SINGLE
 childSpecSize = NUMBER0 ;


<nb> public final class JsDocInfoParser {

 private Node wrapNode ( int type , Node n ) {
 return n == null ? null :
 - new Node ( type , n , stream . getLineno ( ) ,
 - stream . getCharno ( ) ) . clonePropsFrom ( templateNode ) ;
 + new Node ( type , n , n . getLineno ( ) ,
 + n . getCharno ( ) ) . clonePropsFrom ( templateNode ) ;
 }

 private Node newNode ( int type ) {

Fix the source location of wrapped JSDoc Nodes


<nb> public class ProcessDiagramCanvas {
 }

 SINGLE
 - String text = fitTextToWidth ( name , width ) ;
 - int textX = x + ( ( width - fontMetrics . stringWidth ( text ) ) / NUMBER0 ) ;
 - int textY = y + ( ( height - fontMetrics . getHeight ( ) ) / NUMBER0 ) + fontMetrics . getHeight ( ) ;
 - g . drawString ( text , textX , textY ) ;
 + if ( name != null ) {
 + String text = fitTextToWidth ( name , width ) ;
 + int textX = x + ( ( width - fontMetrics . stringWidth ( text ) ) / NUMBER0 ) ;
 + int textY = y + ( ( height - fontMetrics . getHeight ( ) ) / NUMBER0 ) + fontMetrics . getHeight ( ) ;
 + g . drawString ( text , textX , textY ) ;
 + }
 }

 protected String fitTextToWidth ( String original , int width ) {

Added null check for task name to avoid NPE when task name is not specified in process


<nb> public class OldIndexBackwardsCompatibilityIT extends ESIntegTestCase {
 }
 }

 - @ awaitsfix ( bugUrl = STRING0 )
 public void testOldIndexes ( ) throws Exception {
 setupCluster ( ) ;

Revert Test awaits Lucene snapshot upgrade


<nb> public class DanmakuSurfaceView extends SurfaceView implements SurfaceHolder . Cal
 mParser = parser ;
 }

 + public boolean isPrepared ( ) {
 + return handler != null && handler . isPrepared ( ) ;
 + }
 +
 public void showFPS ( boolean show ) {
 mShowFps = show ;
 }
 <nb> public class DanmakuSurfaceView extends SurfaceView implements SurfaceHolder . Cal
 }
 }

 + public boolean isPrepared ( ) {
 + return mReady ;
 + }
 +
 }

 }


<nb> public abstract class SimpleDataChangedNotifier extends DataChangedNotifier < Simp

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected abstract void onDataChanged ( ) ;


<nb> public class QDigest implements IQuantileEstimator {

 @ override
 public void offer ( long value ) {
 + if ( value < NUMBER0 || value == Long . MAX_VALUE ) {
 + throw new IllegalArgumentException ( STRING0 + ( Long . MAX_VALUE - NUMBER1 ) ) ;
 + }
 SINGLE
 if ( value >= capacity ) {
 rebuildToCapacity ( Long . highestOneBit ( value ) < < NUMBER1 ) ;

QDigest throw on negative values and Long MAX_VALUE


<nb> public class MainController implements Choreographer . FrameCallback {

 TabView currentTabView = getCurrentTab ( ) ;

 - if ( null == currentTabView || ! afterTouchAdjust && ! resetToOriginal && ( null == mOriginalBubbleFlowDraggableParams ||
 + if ( null == mOriginalBubbleFlowDraggableParams || null == currentTabView || ! afterTouchAdjust && ! resetToOriginal &&
 ( mPreviousBubbleAdjustmentValue - newY > ( NUMBER0 - PIXELS_TO_SKIP_BEFORE_SCROLL ) &&
 - mPreviousBubbleAdjustmentValue - newY < PIXELS_TO_SKIP_BEFORE_SCROLL ) ) ) {
 + mPreviousBubbleAdjustmentValue - newY < PIXELS_TO_SKIP_BEFORE_SCROLL ) ) {
 return ;
 }
 final int toolbarHeight = currentTabView . toolbarHeight ( ) ;


<nb> public class AtlasTmxMapLoader extends AsynchronousAssetLoader < TiledMap , AtlasTm
 String atlasFilePath = map . getProperties ( ) . get ( STRING0 , String . class ) ;
 if ( atlasFilePath == null ) {
 FileHandle atlasFile = tmxFile . sibling ( tmxFile . nameWithoutExtension ( ) + STRING1 ) ;
 - if ( atlasFile . exists ( ) ) atlasFilePath = atlasFile . path ( ) ;
 + if ( atlasFile . exists ( ) ) atlasFilePath = atlasFile . name ( ) ;
 }
 if ( atlasFilePath == null ) {
 throw new GdxRuntimeException ( STRING2 ) ;

Fixed atlas path when relative to TMX file


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

 - import static NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface Stream < T > extends LinearSeq < T > {
 }

 @ override
 - default Match < Stream < T > > match ( ) {
 - return Match ( this ) ;
 + default API . Match < Stream < T > > match ( ) {
 + return API . Match ( this ) ;
 }

 @ override


<nb>
 package NAMESPACE ;

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

 <nb> public class NativePipe extends AbstractPipe < Object , Object > {
 return this . tempIterator . next ( ) ;
 } else {
 Object object = this . block . invoke ( this . starts . next ( ) ) . getValue ( ) ;
 -
 +
 if ( object instanceof Iterator )
 this . tempIterator = ( Iterator < Object > ) object ;
 else if ( object instanceof Iterable )


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

Fixed type conversion Javadoc as recommended by phopkins


<nb> public class MissingSymbolsHandler {
 try {
 neededDependencies = getNeededDependencies ( missingSymbolEvents ) ;
 } catch ( IOException e ) {
 - LOG . warn ( STRING0 , e ) ;
 + LOG . warn ( e , STRING0 ) ;
 print ( STRING1 + e . getMessage ( ) ) ;
 return ;
 }


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

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class PyBaseDebuggerTask extends PyExecutionFixtureTestTask {
 protected boolean shouldPrintOutput = false ;
 protected boolean myProcessCanTerminate ;
 protected ExecutionResult myExecutionResult ;
 + protected SuspendPolicy myDefaultSuspendPolicy = SuspendPolicy . THREAD ;

 protected PyBaseDebuggerTask ( @ nullable final String relativeTestDataPath ) {
 super ( relativeTestDataPath ) ;
 <nb> public abstract class PyBaseDebuggerTask extends PyExecutionFixtureTestTask {
 doToggleBreakpoint ( file , line ) ;
 }
 } ) ;
 + setBreakpointSuspendPolicy ( getProject ( ) , line , myDefaultSuspendPolicy ) ;

 addOrRemoveBreakpoint ( file , line ) ;
 }

Use Thread as default suspend policy in debugger tests in order to avoid indeterminacy


<nb> public class OETLProcessor implements OETLComponent {
 end ( ) ;

 } catch ( OETLProcessHaltedException e ) {
 - out ( LOG_LEVELS . ERROR , STRING0 + e ) ;
 + out ( LOG_LEVELS . ERROR , STRING1 , e ) ;
 }
 }

 <nb> public class OETLProcessor implements OETLComponent {
 end ( ) ;

 } catch ( OETLProcessHaltedException e ) {
 - out ( LOG_LEVELS . ERROR , STRING0 + e ) ;
 + out ( LOG_LEVELS . ERROR , STRING1 , e ) ;
 }
 }

Fixed bug ETL giving error on out function missing argument for f


<nb>
 package NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class ELClass {

Add specification name to version number


<nb> public abstract class AbstractRememberMeServices implements RememberMeServices ,
 protected AuthenticationDetailsSource getAuthenticationDetailsSource ( ) {
 return authenticationDetailsSource ;
 }
 +
 + public void setAuthenticationDetailsSource ( AuthenticationDetailsSource authenticationDetailsSource ) {
 + this . authenticationDetailsSource = authenticationDetailsSource ;
 + }
 }

Added setter for authenticationDetailsSource to AbstractRememberMeServices


<nb> public class LogFileMvcEndpoint extends AbstractMvcEndpoint {

 Handler ( Resource resource ) {
 this . resource = resource ;
 + getLocations ( ) . add ( resource ) ;
 try {
 afterPropertiesSet ( ) ;
 }
 <nb> public class LogFileMvcEndpoint extends AbstractMvcEndpoint {
 }

 @ override
 + protected void initAllowedLocations ( ) {
 + this . getLocations ( ) . clear ( ) ;
 + }
 +
 + @ override
 protected Resource getResource ( HttpServletRequest request ) throws IOException {
 return this . resource ;
 }

Prevent erroneous empty locations log warnings


<nb> public class ReflectiveConfigOptionLoader {
 Iterator < URL > i = scanUrls . iterator ( ) ;
 while ( i . hasNext ( ) ) {
 File f = new File ( i . next ( ) . getPath ( ) ) ;
 - if ( ! f . exists ( ) || f . isDirectory ( ) ) {
 - log . trace ( STRING0 , f ) ;
 + if ( ! f . exists ( ) || ! f . canRead ( ) ) {
 + log . trace ( STRING1 , f ) ;
 i . remove ( ) ;
 }
 log . trace ( STRING2 , f ) ;

Make ReflectiveConfigOptionLoader try directories


<nb> public class EditorMarkupModelImpl extends MarkupModelImpl implements EditorMark
 private static final Dimension STRIPE_BUTTON_PREFERRED_SIZE = new Dimension ( PREFERRED_WIDTH , ERROR_ICON_HEIGHT + NUMBER0 ) ;
 private class ErrorStripeButton extends JButton {
 private ErrorStripeButton ( ) {
 + setFocusable ( false ) ;
 }

 @ override


<nb> public final class FileLineIterable implements Iterable < String > {
 private final boolean skipFirstLine ;

 COMMENT
 + public FileLineIterable ( File file ) {
 + this ( file , Charset . forName ( STRING0 ) , false ) ;
 + }
 +
 + COMMENT
 public FileLineIterable ( File file , boolean skipFirstLine ) {
 this ( file , Charset . forName ( STRING0 ) , skipFirstLine ) ;
 }
 <nb> public final class FileLineIterator implements SkippingIterator < String > , Closeab
 COMMENT
 COMMENT
 COMMENT
 + public FileLineIterator ( File file ) throws IOException {
 + this ( file , Charset . forName ( STRING0 ) , false ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public FileLineIterator ( File file , boolean skipFirstLine ) throws IOException {
 this ( file , Charset . forName ( STRING0 ) , skipFirstLine ) ;
 }

Added constructor that takes just a file and doesn t skip any lines


<nb> import NAMESPACE ;

 import NAMESPACE ;

 -
 public class GoogleCardsActivity extends Activity {
 @ override
 protected void onCreate ( Bundle savedInstanceState ) {
 <nb> public class GoogleCardsActivity extends Activity {
 }

 }
 -
 - public static int dpToPx ( Context context , int dp ) {
 - Resources r = context . getResources ( ) ;
 - float px = TypedValue . applyDimension ( TypedValue . COMPLEX_UNIT_DIP , dp , r . getDisplayMetrics ( ) ) ;
 - return ( int ) px ;
 - }
 }


<nb> public class DefaultBinaryNamingScheme implements BinaryNamingScheme {
 }

 public String makeName ( String . . . words ) {
 - StringBuilder builder = new StringBuilder ( ) ;
 + int expectedLength = NUMBER0 ;
 + for ( String word : words ) {
 + if ( word != null ) {
 + expectedLength += word . length ( ) ;
 + }
 + }
 + StringBuilder builder = new StringBuilder ( expectedLength ) ;
 for ( String word : words ) {
 if ( word == null || word . length ( ) == NUMBER0 ) {
 continue ;


<nb> public final class AndroidAudio implements Audio {
 COMMENT
 public void dispose ( ) {
 synchronized ( musics ) {
 - for ( AndroidMusic music : musics ) {
 + SINGLE
 + ArrayList < AndroidMusic > musicsCopy = new ArrayList < AndroidMusic > ( musics ) ;
 + for ( AndroidMusic music : musicsCopy ) {
 music . dispose ( ) ;
 }
 }

fixed concurrentmodification exception in AndroidAudio dispose


<nb> package NAMESPACE ;

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


<nb> public class Potion {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 + @ deprecated
 public short toDamageValue ( ) {
 short damage ;
 if ( type == PotionType . WATER ) {
 <nb> public enum PotionType {
 return null ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 public static PotionType getByEffect ( PotionEffectType effectType ) {
 if ( effectType == null )
 return WATER ;


<nb> public class BlockReplacer implements SuperPickaxeMode {
 LocalPlayer player , LocalSession session , WorldVector clicked ) {

 LocalWorld world = clicked . getWorld ( ) ;
 - EditSession editSession = new EditSession ( server , world , - NUMBER0 ) ;
 + EditSession editSession = new EditSession ( server , world , - NUMBER0 ,
 + session . getBlockBag ( player ) ) ;

 try {
 editSession . setBlock ( clicked , targetBlock ) ;
 <nb> public class SphereBrush implements SuperPickaxeMode {
 }

 ReplacingEditSession editSession = new ReplacingEditSession ( server , target . getWorld ( ) ,
 - session . getBlockChangeLimit ( ) ) ;
 + session . getBlockChangeLimit ( ) , session . getBlockBag ( player ) ) ;

 if ( nonReplacing ) {
 editSession . disableReplacing ( ) ;

Added block bag support to the block replacer and sphere brush super pickaxe tools


<nb> public class Capsule implements Runnable {
 private static final String PROP_TMP_DIR = STRING0 ;

 private static final String ATTR_MANIFEST_VERSION = STRING1 ;
 + private static final String ATTR_PREMAIN_CLASS = STRING2 ;
 private static final String ATTR_MAIN_CLASS = STRING3 ;
 private static final String ATTR_CLASS_PATH = STRING4 ;
 private static final String ATTR_IMPLEMENTATION_VERSION = STRING5 ;
 <nb> public class Capsule implements Runnable {
 }

 private void validateManifest ( Manifest manifest ) {
 + if ( ! Capsule . class . getName ( ) . equals ( manifest . getMainAttributes ( ) . getValue ( ATTR_PREMAIN_CLASS ) ) )
 + throw new IllegalStateException ( STRING6 + Capsule . class . getName ( )
 + + STRING7 + ATTR_PREMAIN_CLASS + STRING8 ) ;
 +
 if ( manifest . getMainAttributes ( ) . getValue ( ATTR_CLASS_PATH ) != null )
 throw new IllegalStateException ( STRING9 + ATTR_CLASS_PATH + STRING8
 + STRING10 + ATTR_APP_CLASS_PATH + STRING11 + ATTR_DEPENDENCIES + STRING12 ) ;

Require Capsule as manifest s Premain Class


<nb> public class DisUnityCli {
 optClassFilter . setArgs ( NUMBER0 ) ;
 optClassFilter . setArgName ( STRING0 ) ;
 opts . addOption ( optClassFilter ) ;
 +
 + Option optVerbose = new Option ( STRING1 , STRING2 , false , STRING3 ) ;
 + opts . addOption ( optVerbose ) ;

 try {
 if ( args . length == NUMBER1 ) {
 <nb> public class DisUnityCli {
 disunity . setClassFilter ( classFilter ) ;
 }

 + if ( cl . hasOption ( optVerbose . getOpt ( ) ) ) {
 + LogUtils . configure ( Level . ALL ) ;
 + }
 +
 SINGLE
 for ( String leftArg : cl . getArgs ( ) ) {
 disunity . getFiles ( ) . add ( new File ( leftArg ) ) ;


<nb> public class Accounts extends K9ListActivity implements OnItemClickListener {
 mActionBarSubTitle = ( TextView ) customView . findViewById ( R . id . actionbar_title_sub ) ;
 mActionBarUnread = ( TextView ) customView . findViewById ( R . id . actionbar_unread_count ) ;

 - mActionBar . setDisplayHomeAsUpEnabled ( true ) ;
 + mActionBar . setDisplayHomeAsUpEnabled ( false ) ;
 }

 COMMENT

Don t display up arrow in action bar of Accounts activity


<nb> public Object invoke ( Object proxy , Method method , Object [ ] args ) throws Throwabl
 return ( ( Number ) ret ) . floatValue ( ) ;
 else if ( rt == Double . TYPE )
 return ( ( Number ) ret ) . doubleValue ( ) ;
 - else if ( rt == Boolean . TYPE )
 + else if ( rt == Boolean . TYPE && ! ( ret instanceof Boolean ) )
 return ret == null ? Boolean . FALSE : Boolean . TRUE ;
 else if ( rt == Byte . TYPE )
 return ( byte ) ( ( Number ) ret ) . intValue ( ) ;

interim checkin do not use fixed boolean return in proxy handler


<nb> public class NonBlockingIOThread extends Thread implements OperationHostileThrea
 private final SwCounter eventCount = newSwCounter ( ) ;
 @ probe
 private final SwCounter selectorIOExceptionCount = newSwCounter ( ) ;
 + @ probe
 + private final SwCounter completedTaskCount = newSwCounter ( ) ;

 private final ILogger logger ;

 <nb> public class NonBlockingIOThread extends Thread implements OperationHostileThrea
 }

 private void executeTask ( Runnable task ) {
 + completedTaskCount . inc ( ) ;
 +
 NonBlockingIOThread target = getTargetIoThread ( task ) ;
 if ( target == this ) {
 task . run ( ) ;

Added completed task count to non blocking io thread


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PGraphics extends PImage implements PConstants {
 COMMENT
 COMMENT
 @ suppresswarnings ( STRING0 )
 - public FontRenderContext getFontRenderContext ( Font font ) {
 + public FontRenderContext getFontRenderContext ( Font font ) { SINGLE
 return Toolkit . getDefaultToolkit ( ) . getFontMetrics ( font ) . getFontRenderContext ( ) ;
 }

modify the FRC code so that it does not show up in PApplet


<nb> public abstract class AbstractChannel extends DefaultAttributeMap implements Cha
 MessageList < Object > messages = outboundBuffer . currentMessages ;
 int messageIndex = outboundBuffer . currentMessageIndex ;
 int messageCount = messages . size ( ) ;
 +
 + SINGLE
 if ( messageCount == NUMBER0 ) {
 messages . recycle ( ) ;
 promise . trySuccess ( ) ;
 <nb> public abstract class AbstractChannel extends DefaultAttributeMap implements Cha
 }
 }

 + SINGLE
 + if ( ! promise . setUncancellable ( ) ) {
 + messages . releaseAllAndRecycle ( ) ;
 + if ( ! outboundBuffer . next ( ) ) {
 + break ;
 + } else {
 + continue ;
 + }
 + }
 +
 + SINGLE
 int writtenMessages = doWrite ( messages , messageIndex ) ;
 outboundBuffer . currentMessageIndex = messageIndex += writtenMessages ;
 if ( messageIndex >= messageCount ) {

Implement Promise Future cancellation properly for outbound traffic


<nb> public class ExcludedEntriesConfiguration implements PersistentStateComponent < Ex
 }

 public void readExternal ( final Element node ) {
 + removeAllExcludeEntryDescriptions ( ) ;
 for ( final Object o : node . getChildren ( ) ) {
 Element element = ( Element ) o ;
 String url = element . getAttributeValue ( URL ) ;

when reloading ExcludedEntriesConfiguration state clear previous contents


<nb> public class MavenModuleNameMapper {
 for ( NameItem name : names ) {
 if ( name . module != null ) {
 boolean wasAdded = existingNames . add ( name . getResultName ( ) ) ;
 - assert wasAdded : name . getResultName ( ) ;
 + SINGLE
 }
 }

 <nb> public class MavenModuleNameMapper {
 mavenProjectToModuleName . put ( each . project , each . getResultName ( ) ) ;
 }

 - assert new HashSet < String > ( mavenProjectToModuleName . values ( ) ) . size ( ) == mavenProjectToModuleName . size ( ) : new HashMap < MavenProject , String > ( mavenProjectToModuleName ) ;
 + SINGLE
 }

 public static class NameItem implements Comparable < NameItem > {


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

 import NAMESPACE ;

Expand wildcard import in ForegroundDaemonAction


<nb> public class AudioTrack
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class AudioTrack
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 SINGLE
 SINGLE


<nb> public class Views {
 inject . invoke ( null , finder , target , source ) ;
 } catch ( ClassNotFoundException e ) {
 SINGLE
 + INJECTORS . put ( targetClass , NO_OP ) ;
 } catch ( RuntimeException e ) {
 throw e ;
 } catch ( Exception e ) {
 throw new UnableToInjectException ( STRING0 + target , e ) ;
 }
 }
 +
 + COMMENT
 + public static void noOp ( Object finder , Object target , Object source ) { }
 +
 + COMMENT
 + private static final Method NO_OP = Views . class . getMethod ( STRING1 , Object . class , Object . class , Object . class ) ;

 COMMENT
 @ suppresswarnings ( { STRING2 , STRING3 } ) SINGLE


<nb> public class ManagedDomainContainerConfiguration extends CommonDomainContainerCo

 private String modulePath = System . getProperty ( STRING0 ) ;

 - private String javaVmArguments = System . getProperty ( STRING1 , STRING2 ) ;
 + private String javaVmArguments = System . getProperty ( STRING1 , STRING3 ) ;

 private int startupTimeoutInSeconds = NUMBER0 ;

 <nb> public class ManagedDomainContainerConfiguration extends CommonDomainContainerCo
 public void setCleanServerBaseDir ( String cleanServerBaseDir ) {
 this . cleanServerBaseDir = cleanServerBaseDir ;
 }
 - }
 + }
 <nb> public class ManagedContainerConfiguration extends DistributionContainerConfigur
 COMMENT
 private static final Integer DEFAULT_VALUE_WAIT_FOR_PORTS_TIMEOUT_SECONDS = NUMBER1 ;

 - private String javaVmArguments = System . getProperty ( STRING1 , STRING2 ) ;
 + private String javaVmArguments = System . getProperty ( STRING1 , STRING3 ) ;

 private String jbossArguments ;

Synchronize Arquillian javaVmArguments with the AS memory defaults


<nb> class ModelMetricsHandler extends Handler {
 COMMENT
 COMMENT
 @ suppresswarnings ( STRING0 ) SINGLE
 - public JobV3 predict2 ( int version , final ModelMetricsListSchemaV3 s ) {
 + public JobV3 predictAsync ( int version , final ModelMetricsListSchemaV3 s ) {
 SINGLE
 if ( null == s . model ) throw new H2OIllegalArgumentException ( STRING1 , STRING2 , s . model ) ;
 if ( null == DKV . get ( s . model . name ) ) throw new H2OKeyNotFoundArgumentException ( STRING1 , STRING2 , s . model . name ) ;
 <nb> public class RequestServer extends NanoHTTPD {
 register ( STRING3 , STRING4 , ModelMetricsHandler . class , STRING2 , null ,
 STRING5 ) ;

 - register ( STRING6 , STRING4 , ModelMetricsHandler . class , STRING7 , null ,
 + register ( STRING6 , STRING4 , ModelMetricsHandler . class , STRING8 , null ,
 STRING5 ) ;

 register ( STRING9 , STRING10 , WaterMeterCpuTicksHandler . class , STRING11 , null ,


<nb> public final class ScriptIntrinsicLUT extends ScriptIntrinsic {
 mCache [ ct + NUMBER0 ] = ( byte ) ct ;
 mCache [ ct + NUMBER1 ] = ( byte ) ct ;
 }
 - bindAllocation ( mTables , NUMBER2 ) ;
 + setVar ( NUMBER2 , mTables ) ;
 }

 COMMENT


<nb> public class RestartTest {

 @ rule
 public ExpectedException thrown = ExpectedException . none ( ) ;
 - @ rule
 - public TestRule globalTimeout = new DisableOnDebug ( Timeout . seconds ( NUMBER0 ) ) ;

 + @ rule
 + public TestRule globalTimeout = new DisableOnDebug ( Timeout . seconds ( NUMBER1 ) ) ;

 @ after
 public void stop ( ) {


<nb> public class RestDefinition extends OptionalIdentifiedDefinition < RestDefinition >
 return new RestOperationResponseMsgDefinition ( verb ) ;
 }

 + public RestDefinition responseMessages ( List < RestOperationResponseMsgDefinition > msgs ) {
 + if ( getVerbs ( ) . isEmpty ( ) ) {
 + throw new IllegalArgumentException ( STRING0 ) ;
 + }
 + VerbDefinition verb = getVerbs ( ) . get ( getVerbs ( ) . size ( ) - NUMBER0 ) ;
 + verb . getResponseMsgs ( ) . addAll ( msgs ) ;
 + return this ;
 + }
 +
 public RestDefinition produces ( String mediaType ) {
 if ( getVerbs ( ) . isEmpty ( ) ) {
 this . produces = mediaType ;

add support for adding multiple response msg parameters


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

 private class IsLanguageKnown implements Predicate < QProfile > {
 @ override
 - public boolean apply ( @ nullable QProfile profile ) {
 + public boolean apply ( @ nonnull QProfile profile ) {
 return languages . get ( profile . language ( ) ) != null ;
 }
 }


<nb> public class UnderFileSystemSingleLocal extends UnderFileSystem {
 @ override
 public OutputStream create ( String path ) throws IOException {
 FileOutputStream stream = new FileOutputStream ( path ) ;
 - setPermission ( path , STRING0 ) ;
 + try {
 + setPermission ( path , STRING0 ) ;
 + } catch ( IOException e ) {
 + stream . close ( ) ;
 + throw e ;
 + }
 CommonUtils . setLocalFileStickyBit ( path ) ;
 return stream ;
 }
 <nb> public class TachyonMaster {
 new LeaderSelectorClient ( conf . ZOOKEEPER_ADDRESS , conf . ZOOKEEPER_ELECTION_PATH ,
 conf . ZOOKEEPER_LEADER_PATH , name ) ;
 mEditLogProcessor = new EditLogProcessor ( mJournal , journalFolder , mMasterInfo ) ;
 + SINGLE
 Thread logProcessor = new Thread ( mEditLogProcessor ) ;
 logProcessor . start ( ) ;
 }


<nb> public class EnglishGrammaticalStructure extends GrammaticalStructure {

 @ override
 protected void correctDependencies ( Collection < TypedDependency > list ) {
 + if ( DEBUG ) {
 + printListSorted ( STRING0 , list ) ;
 + }
 correctSubjPassAndPoss ( list ) ;
 + if ( DEBUG ) {
 + printListSorted ( STRING1 , list ) ;
 + }
 removeExactDuplicates ( list ) ;
 + if ( DEBUG ) {
 + printListSorted ( STRING2 , list ) ;
 + }
 }

 private static void printListSorted ( String title , Collection < TypedDependency > list ) {


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class DisabledMenuItem extends MenuItem
 }

 @ override
 - public Command getCommand ( )
 + public ScheduledCommand getScheduledCommand ( )
 {
 return null ;
 }


<nb> public class ContactList extends JList
 MetaContactGroup sourceGroup = evt . getSourceMetaContactGroup ( ) ;

 this . groupAdded ( sourceGroup ) ;
 +
 + this . ensureIndexIsVisible ( this . listModel . getSize ( ) - NUMBER0 ) ;
 }

 public void metaContactGroupModified ( MetaContactGroupEvent evt ) {
 <nb> public class ContactList extends JList
 int index = this . listModel . indexOf ( group ) ;

 this . listModel . contentAdded ( index , index ) ;
 - this . ensureIndexIsVisible ( index ) ;
 -
 +
 Iterator childContacts = group . getChildContacts ( ) ;

 while ( childContacts . hasNext ( ) ) {
 MetaContact contact = ( MetaContact ) childContacts . next ( ) ;

 int contactIndex = this . listModel . indexOf ( contact ) ;
 - this . listModel . contentAdded ( contactIndex , contactIndex ) ;
 - this . ensureIndexIsVisible ( contactIndex ) ;
 + this . listModel . contentAdded ( contactIndex , contactIndex ) ;
 }

 Iterator subGroups = group . getSubgroups ( ) ;


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

 import NAMESPACE ;
 <nb> public class DefaultRoboModule extends AbstractModule {

 requestStaticInjection ( Ln . class ) ;
 - requestStaticInjection ( RoboAsyncTask . class ) ;

 SINGLE
 if ( hasCompatibilityLibrarySupport ) {


<nb> public class MaterialDialog extends DialogBase implements
 protected void invalidateInputMinMaxIndicator ( int currentLength , boolean emptyDisabled ) {
 if ( inputMinMax != null ) {
 inputMinMax . setText ( currentLength + STRING0 + mBuilder . inputMaxLength ) ;
 - final boolean isDisabled = emptyDisabled || currentLength > mBuilder . inputMaxLength ;
 + final boolean isDisabled = ( emptyDisabled && currentLength == NUMBER0 ) || currentLength > mBuilder . inputMaxLength ;
 final int colorText = isDisabled ? mBuilder . inputMaxLengthErrorColor : mBuilder . contentColor ;
 final int colorWidget = isDisabled ? mBuilder . inputMaxLengthErrorColor : mBuilder . widgetColor ;
 inputMinMax . setTextColor ( colorText ) ;

Fixed an issue with prefilling the input dialog not invalidating the disabled state correctly when a max length is specified


<nb> public final class ScriptIntrinsicBLAS extends ScriptIntrinsic {

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

RenderScript fix BNNM docs for support lib


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

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

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

 public interface ScenarioMappingBuilder < S extends ScenarioMappingBuilder > extends RemoteMappingBuilder < S , S > {


<nb> public final class TlsTunnelBuilder {

 Socket makeTunnel ( String host , int port , String proxyUsername ,
 String proxyPassword , InetSocketAddress proxyAddress ) throws IOException {
 - if ( host == null || port == - NUMBER0 || host . isEmpty ( ) || proxyAddress == null ) {
 + if ( host == null || port < NUMBER1 || host . isEmpty ( ) || proxyAddress == null ) {
 throw new ProtocolException ( STRING0 ) ;
 }
 logger . debug ( STRING1 + proxyAddress . getAddress ( ) + STRING2 + proxyAddress . getPort ( ) ) ;

Fixing incorrect check for invalid port number


<nb> public final class GetUserListMembers {
 COMMENT
 COMMENT
 public static void main ( String [ ] args ) {
 - if ( args . length < NUMBER0 ) {
 + if ( args . length < NUMBER1 ) {
 System . out . println ( STRING0 ) ;
 System . exit ( - NUMBER0 ) ;
 }

fixing a list members examples trivial bug


<nb> public class HttpSession extends LocalClientSession {
 this . text = null ;
 this . packets = new ArrayList < String > ( ) ;
 for ( Packet packet : elements ) {
 + if ( packet instanceof Presence ||
 + packet instanceof Message ||
 + packet instanceof IQ ) {
 + packet . getElement ( ) . addNamespace ( STRING0 , STRING1 ) ;
 + }
 this . packets . add ( packet . toXML ( ) ) ;
 }
 }


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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 package NAMESPACE ;

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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 package NAMESPACE ;

 import NAMESPACE ;


<nb> ViewPager . OnPageChangeListener , EditNoteActivity . UpdatesChangedListener {
 webServices . setTask ( model ) ;
 webServices . reset ( ) ;
 }
 + loadMoreContainer ( ) ;
 }

 COMMENT

Reload more container when repopulating task edit fragment


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


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

 import NAMESPACE ;

 <nb> final class DictionaryExporter extends DictionaryBuilder {
 Writer out = new BufferedWriter ( new OutputStreamWriter ( new FileOutputStream ( outputFile ) , encoding ) ) ) {
 while ( scanner . hasNextLine ( ) ) {
 String line = scanner . nextLine ( ) ;
 - String [ ] parts = line . split ( separator ) ;
 + String [ ] parts = line . split ( Pattern . quote ( separator ) ) ;
 if ( parts . length == NUMBER0 ) {
 if ( hasFrequency ) { SINGLE
 parts [ NUMBER1 ] = parts [ NUMBER1 ] . substring ( NUMBER2 , parts [ NUMBER1 ] . length ( ) - NUMBER3 ) ;


<nb> public class AudioVideoNotesPlugin extends OsmandPlugin {
 }
 } ) ;
 }
 -
 } catch ( Exception e ) {
 logErr ( e ) ;
 cam . release ( ) ;
 e . printStackTrace ( ) ;
 }
 -
 }

 private void printCamParams ( Parameters parameters , boolean autoExposure ) {
 <nb> public class AudioVideoNotesPlugin extends OsmandPlugin {
 } ) ;
 dlg . setContentView ( view ) ;
 dlg . show ( ) ;
 -
 } catch ( RuntimeException e ) {
 logErr ( e ) ;
 cam . release ( ) ;


<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
 COMMENT
 COMMENT
 COMMENT
 + @ viewdebug.exportedproperty
 public boolean getFitsSystemWindows ( ) {
 return ( mViewFlags & FITS_SYSTEM_WINDOWS ) == FITS_SYSTEM_WINDOWS ;
 }
 <nb> public class PhoneWindow extends Window implements MenuBuilder . Callback {
 }
 }

 + SINGLE
 + SINGLE
 + showStatusGuard = mStatusGuard != null ;
 +
 SINGLE
 SINGLE
 SINGLE
 <nb> public class PhoneWindow extends Window implements MenuBuilder . Callback {
 final boolean nonOverlay = ( getLocalFeatures ( )
 & ( NUMBER0 < < FEATURE_ACTION_MODE_OVERLAY ) ) == NUMBER1 ;
 insets = insets . consumeSystemWindowInsets (
 - false , nonOverlay COMMENT , false , false ) ;
 -
 - SINGLE
 - SINGLE
 - showStatusGuard = true ;
 + false , nonOverlay && showStatusGuard COMMENT , false , false ) ;
 } else {
 SINGLE
 if ( mlp . topMargin != NUMBER1 ) {

Inset the non overlay contextual action bar without a status guard


<nb> public class OobActivity extends ActionBarActivity {
 public void onBackPressed ( ) {
 super . onBackPressed ( ) ;
 SINGLE
 - moveTaskToBack ( true ) ;
 Intent intent = new Intent ( Intent . ACTION_MAIN ) ;
 intent . addCategory ( Intent . CATEGORY_HOME ) ;
 startActivity ( intent ) ;


<nb> public class PluginHeaderPanel {
 public void actionPerformed ( ActionEvent e ) {
 switch ( myActionId ) {
 case UPDATE :
 - break ;
 case INSTALL :
 new ActionInstallPlugin ( myManager . getAvailable ( ) , myManager . getInstalled ( ) ) . install ( new Runnable ( ) {
 @ override


<nb> public class PeerGroup implements TransactionBroadcaster {
 return Utils . maxOfMostFreq ( heights ) ;
 }

 - private static class PeerAndPing {
 - Peer peer ;
 - long pingTime ;
 - }
 -
 COMMENT
 COMMENT
 COMMENT


<nb> public class XMLElement

 public XMLElement ( String s ) {
 + this ( ) ;
 +
 try {
 - parseString ( s ) ;
 + parseString ( s ) ;
 } catch ( XMLParseException e ) {
 - e . printStackTrace ( ) ;
 + e . printStackTrace ( ) ;
 }
 }

fix XMLElement String s had a bad constructor


<nb> public class InputMethodManagerService extends IInputMethodManager . Stub
 if ( ! mIWindowManager . inputMethodClientHasFocus ( client ) ) {
 if ( DEBUG ) Slog . w ( TAG , STRING0
 + uid + STRING1 + client ) ;
 - setImeWindowVisibilityStatusHiddenLocked ( ) ;
 return false ;
 }
 } catch ( RemoteException e ) {
 - setImeWindowVisibilityStatusHiddenLocked ( ) ;
 return false ;
 }
 }

Do nothing if hideSoftInput is called from not focused client


<nb> package NAMESPACE ;
 import NAMESPACE ;

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

 - public class HeaderXssProtectionScanner extends PluginPassiveScanner implements PassiveScanner {
 + public class HeaderXssProtectionScanner extends PluginPassiveScanner {

 private PassiveScanThread parent = null ;

Removed the implement declaration as it s not needed


<nb> public class TfsShellTest {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 private void checkFilePersisted ( TachyonFile file , int size ) throws TachyonException , IOException {
 Assert . assertTrue ( mTfs . getInfo ( file ) . isIsPersisted ( ) ) ;

Changed the documentation of the exceptions of checkFilePersisted


<nb> public class ChunkGenerationPipeline {
 }

 public void shutdown ( ) {
 - chunkReviewer . shutdown ( new ChunkRequest ( this , provider , ChunkRequest . Type . EXIT , Region3i . EMPTY ) , false ) ;
 - chunkGenerator . shutdown ( new ShutdownChunkTask ( ) , false ) ;
 + chunkReviewer . shutdown ( new ChunkRequest ( this , provider , ChunkRequest . Type . EXIT , Region3i . EMPTY ) , true ) ;
 + chunkGenerator . shutdown ( new ShutdownChunkTask ( ) , true ) ;
 }

 public WorldGenerator getWorldGenerator ( ) {

Await shutdown of chunk generation pipeline


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 public class TimerWheelTest
 {
 <nb> public class TimerWheelTest
 {
 final TimerWheel wheel = new TimerWheel ( NUMBER0 , TimeUnit . MILLISECONDS , NUMBER1 ) ;

 - assertThat ( wheel . calculateDelayInMsec ( ) , is ( NUMBER2 ) ) ;
 + assertThat ( wheel . calculateDelayInMsec ( ) , allOf ( greaterThanOrEqualTo ( NUMBER3 ) , lessThanOrEqualTo ( NUMBER4 ) ) ) ;
 }

 @ test

Relaxed test for real time delay calculation


<nb> public abstract class SocketReader implements Runnable {
 session . process ( reply ) ;
 continue ;
 }
 + SINGLE
 try {
 packet . getType ( ) ;
 }
 <nb> public abstract class SocketReader implements Runnable {
 SINGLE
 packet . setType ( null ) ;
 }
 + SINGLE
 + try {
 + packet . getShow ( ) ;
 + }
 + catch ( IllegalArgumentException e ) {
 + Log . warn ( STRING0 , e ) ;
 + SINGLE
 + SINGLE
 + packet . setShow ( null ) ;
 + }
 processPresence ( packet ) ;
 }
 else if ( STRING1 . equals ( tag ) ) {

Added validation of show values in Presence packets


<nb> public class ViewConfiguration {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 @ deprecated
 public static long getGlobalActionKeyTimeout ( ) {

Fix build due to deprecated tag not having content


<nb> public class SvnConfiguration implements ProjectComponent , JDOMExternalizable {
 public boolean MERGE_DIFF_USE_ANCESTRY = true ;
 public boolean UPDATE_LOCK_ON_DEMAND = false ;
 public boolean IGNORE_SPACES_IN_MERGE = false ;
 - public boolean DETECT_NESTED_COPIES = true ;
 + public boolean DETECT_NESTED_COPIES = false ;

 private final Map < File , MergeRootInfo > myMergeRootInfos = new HashMap < File , MergeRootInfo > ( ) ;
 private final Map < File , UpdateRootInfo > myUpdateRootInfos = new HashMap < File , UpdateRootInfo > ( ) ;


<nb> public class CommitLogSegment
 }
 else
 {
 - logger . debug ( STRING0 + logFile ) ;
 + logger . debug ( STRING1 , logFile ) ;
 }
 }


<nb> public class PhoneAccount implements Parcelable {
 Objects . hashCode ( mHandle ) + mCapabilities ;
 }

 + @ override
 + public String toString ( ) {
 + return new StringBuilder ( ) . append ( mComponentName )
 + . append ( STRING0 )
 + . append ( mId )
 + . append ( STRING0 )
 + . append ( Log . pii ( mHandle ) )
 + . append ( STRING0 )
 + . append ( String . valueOf ( mCapabilities ) )
 + . toString ( ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean equalsComponentAndId ( PhoneAccount other ) {
 + return other != null &&
 + Objects . equals ( other . getComponentName ( ) , getComponentName ( ) ) &&
 + Objects . equals ( other . getId ( ) , getId ( ) ) ;
 + }
 +
 SINGLE
 SINGLE
 SINGLE

Add toString equals helper methods to PhoneAccount java


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb>

 package NAMESPACE ;

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

 @ contextconfiguration ( inheritLocations = false )
 public class JmsSpringResequencerTest extends JmsResequencerTest {


<nb> package NAMESPACE ;

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

 public class ProjectViewModuleNode extends AbstractModuleNode {
 - private static final Logger LOG = Logger . getInstance ( STRING0 ) ;

 public ProjectViewModuleNode ( Project project , Module value , ViewSettings viewSettings ) {
 super ( project , value , viewSettings ) ;
 }

 - public ProjectViewModuleNode ( Project project , Object value , ViewSettings viewSettings ) {
 - this ( project , ( Module ) value , viewSettings ) ;
 - }
 -
 @ override
 @ notnull
 public Collection < AbstractTreeNode > getChildren ( ) {


<nb> public class CaldroidGridAdapter extends BaseAdapter {

 SINGLE
 if ( backgroundResource != null ) {
 - backgroundView . setBackgroundResource ( backgroundResource ) ;
 + try
 + {
 + String tmp = this . context . getResources ( ) . getResourceName ( backgroundResource ) ;
 + SINGLE
 + backgroundView . setBackgroundResource ( backgroundResource ) ;
 + }
 + catch ( Resources . NotFoundException e )
 + {
 + SINGLE
 + backgroundView . setBackgroundColor ( backgroundResource ) ;
 + }
 }
 }

 <nb> public class CaldroidSampleActivity extends AppCompatActivity {
 Toast . makeText ( getApplicationContext ( ) , formatter . format ( date ) ,
 Toast . LENGTH_SHORT ) . show ( ) ;

 + caldroidFragment . setBackgroundResourceForDate ( NUMBER0 , date ) ;
 + caldroidFragment . refreshView ( ) ;
 }

 @ override

Add ability set integer color for background


<nb> public class ItemSyncJobService extends JobService implements SyncDelegate . Progr

 @ override
 public boolean onStopJob ( JobParameters jobParameters ) {
 + mSyncDelegate . stopSync ( jobParameters . getJobId ( ) ) ;
 return true ;
 }

 <nb> public class SyncDelegate {
 }
 }

 + void stopSync ( int progressId ) {
 + SINGLE
 + mJob . connectionEnabled = false ;
 + mNotificationManager . cancel ( progressId ) ;
 + }
 +
 private PendingIntent getItemActivity ( String itemId ) {
 return PendingIntent . getActivity ( mContext , NUMBER0 ,
 new Intent ( Intent . ACTION_VIEW )


<nb> public final class SimpleExoPlayer implements ExoPlayer {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class SimpleExoPlayer implements ExoPlayer {

 SINGLE

 + @ override
 public void addListener ( EventListener listener ) {
 player . addListener ( listener ) ;
 }

 + @ override
 public void removeListener ( EventListener listener ) {
 player . removeListener ( listener ) ;
 }
 <nb> public final class DrmInitData implements Comparator < SchemeData > , Parcelable {
 dest . writeByteArray ( data ) ;
 }

 + @ suppresswarnings ( STRING0 )
 public static final Parcelable . Creator < SchemeData > CREATOR =
 new Parcelable . Creator < SchemeData > ( ) {

 <nb> import NAMESPACE ;
 }

 SINGLE
 - COMMENT
 - throws IOException , InterruptedException {
 + COMMENT

 if ( vorbisIdHeader == null ) {
 vorbisIdHeader = VorbisUtil . readVorbisIdentificationHeader ( scratch ) ;


<nb> public class SocketIOAtmosphereInterceptor implements AtmosphereInterceptor {
 public AsyncIOWriter flush ( AtmosphereResponse r ) throws IOException {
 return this ;
 }
 +
 + @ override
 + public void close ( AtmosphereResponse r ) throws IOException {
 + try {
 + r . getResponse ( ) . getWriter ( ) . close ( ) ;
 + } catch ( IOException ex ) {
 + r . getResponse ( ) . getOutputStream ( ) . close ( ) ;
 + }
 + }
 } ) ;
 }
 return transport . handle ( ( AtmosphereResourceImpl ) r , atmosphereHandler , getSessionManager ( version ) ) ;


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class FindInFilesOptimizingSearchHelper extends OptimizingSearchHelperBase {
 private PsiSearchHelper helper ;
 private THashMap < PsiFile , PsiFile > filesToScan ;
 private THashMap < PsiFile , PsiFile > filesToScan2 ;
 - private Lexer javaLexer ;

 private final boolean findMatchingFiles ;


<nb> public class TokenSequencePattern extends SequencePattern < CoreMap > {
 public TokenSequenceMatcher getMatcher ( List < ? extends CoreMap > tokens ) {
 return new TokenSequenceMatcher ( this , tokens ) ;
 }
 +
 + @ override
 + public String toString ( ) {
 + return this . pattern ( ) ;
 + }
 }


<nb> public class SubsystemDescriptionsUnitTestCase extends AbstractSubsystemTest {
 Assert . assertEquals ( ModelDescriptionConstants . SUCCESS , result . get ( ModelDescriptionConstants . OUTCOME ) . asString ( ) ) ;
 final ModelNode description = result . get ( STRING0 ) ;

 - System . out . println ( description . toString ( ) ) ;
 -
 servicesA . shutdown ( ) ;
 }


<nb> public abstract class JoglContext implements JmeContext {

 protected KeyInput keyInput ;
 protected MouseInput mouseInput ;
 + protected JoyInput joyInput ;

 public void setSystemListener ( SystemListener listener ) {
 this . listener = listener ;
 <nb> public abstract class JoglContext implements JmeContext {
 }

 public JoyInput getJoyInput ( ) {
 - return null ;
 + return joyInput ;
 }

 public Timer getTimer ( ) {

Adds a field for the JoyInput implementation into JoglContext


<nb> public class GroupedObservable < K , T > extends Observable < T > {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 + @ deprecated
 public static < K , T > GroupedObservable < K , T > from ( K key , final Observable < T > o ) {
 return new GroupedObservable < K , T > ( key , new OnSubscribe < T > ( ) {


<nb> public class OPropertyIndexUnique extends OPropertyIndex {
 List < ORecordId > values = map . get ( iKey ) ;
 if ( values == null )
 values = new ArrayList < ORecordId > ( ) ;
 -
 - SINGLE
 - if ( values . size ( ) > NUMBER0 )
 + else if ( values . size ( ) == NUMBER1 ) {
 + SINGLE
 + if ( ! values . get ( NUMBER0 ) . equals ( iSingleValue ) )
 + throw new OIndexException ( STRING0 + iKey + STRING1 + owner ) ;
 + } else if ( values . size ( ) > NUMBER1 )
 throw new OIndexException ( STRING0 + iKey + STRING1 + owner ) ;

 values . add ( iSingleValue ) ;

Fixed issue found by Luca Molino about unique index in update


<nb> public final class TextServicesManager {
 return null ;
 }
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setCurrentSpellChecker ( SpellCheckerInfo info ) {
 + try {
 + sService . setCurrentSpellChecker ( info ) ;
 + } catch ( RemoteException e ) {
 + Log . e ( TAG , STRING0 + e ) ;
 + }
 + }
 }

Add a method to set the current spell checker


<nb> final class FragmentManagerImpl extends FragmentManager {
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void enqueueAction ( Runnable action , boolean allowStateLoss ) {
 if ( ! allowStateLoss ) {
 checkStateLoss ( ) ;
 }
 synchronized ( this ) {
 - if ( mActivity == null ) {
 + if ( mDestroyed || mActivity == null ) {
 throw new IllegalStateException ( STRING0 ) ;
 }
 if ( mPendingActions == null ) {

Throw exception in FragmentManager when queuing to a destroyed activity


<nb> class Scroller {
 }
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 -
 - private void scrollScrollViewAllTheWay ( final ScrollView view , int direction ) {
 - final int currentScrollX = view . getScrollX ( ) ;
 - final int targetScrollY = ( direction == UP ) ? NUMBER0 : view . getMaxScrollAmount ( ) ;
 - inst . runOnMainSync ( new Runnable ( ) {
 - public void run ( ) {
 - view . scrollTo ( currentScrollX , targetScrollY ) ;
 - }
 - } ) ;
 - }
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 +
 + private void scrollScrollViewAllTheWay ( final ScrollView view , final int direction ) {
 + while ( scrollScrollView ( view , direction ) ) ;
 + }

 COMMENT
 COMMENT

Changed scrollScrollViewAllTheWay implementation as getMaxScrollAmount only returnes the max amount of an arrow event


<nb> public class DeepLearningMissingTest extends TestUtil {
 p . _missing_values_handling = mvh ;
 p . _activation = DeepLearningModel . DeepLearningParameters . Activation . RectifierWithDropout ;
 p . _convert_to_enum = true ;
 - p . _hidden = new int [ ] { NUMBER0 , NUMBER0 } ;
 + p . _hidden = new int [ ] { NUMBER1 , NUMBER1 } ;
 p . _l1 = FLOAT0 ;
 p . _input_dropout_ratio = FLOAT1 ;
 - p . _epochs = NUMBER2 ;
 + p . _epochs = NUMBER3 ;
 p . _quiet_mode = true ;
 p . _destination_key = Key . make ( ) ;
 p . _reproducible = true ;


<nb> public class DbTester extends ExternalResource {
 for ( int i = NUMBER0 ; i <= colCount ; i ++ ) {
 Object value = resultSet . getObject ( i ) ;
 if ( value instanceof Clob ) {
 - value = IOUtils . toString ( ( ( Clob ) value ) . getAsciiStream ( ) ) ;
 + Clob clob = ( Clob ) value ;
 + value = IOUtils . toString ( ( clob . getAsciiStream ( ) ) ) ;
 + clob . free ( ) ;
 } else if ( value instanceof BigDecimal ) {
 SINGLE
 value = ( ( BigDecimal ) value ) . longValue ( ) ;

Call Clob free to reduce memory consumption


<nb> public class WordPress extends Application {
 AppLog . enableRecording ( true ) ;
 if ( ! Utils . isDebugBuild ( ) ) {
 Crashlytics . start ( this ) ;
 - AppLog . enableCrashlytics ( true ) ;
 }
 versionName = getVersionName ( this ) ;
 initWpDb ( ) ;
 <nb> public class AppLog {
 mEnableCrashlytics = enable ;
 }

 - public static void crashlyticsLog ( T tag , Throwable throwable , String message ) {
 + private static void crashlyticsLog ( T tag , Throwable throwable , String message ) {
 if ( mEnableCrashlytics ) {
 CrashlyticsUtils . logException ( throwable , ExceptionType . USUAL , tag , message ) ;
 }

disable crashlytics logging of all caught exceptions


<nb> public abstract class UdpChannelTransport implements AutoCloseable
 }
 catch ( final IOException ex )
 {
 - ex . printStackTrace ( ) ;
 errorLog . record ( ex ) ;
 }
 }

Java Remove hangover printStackTrace from closing UdpChannelTransports


<nb> public class SimpleTensor implements Serializable {
 if ( slices [ i ] . numRows ( ) != numRows || slices [ i ] . numCols ( ) != numCols ) {
 throw new IllegalArgumentException ( STRING0 + i + STRING1 + slices [ i ] . numRows ( ) + STRING2 + slices [ i ] . numCols ( ) + STRING3 + numRows + STRING2 + numCols ) ;
 }
 - slices [ i ] = new SimpleMatrix ( slices [ i ] ) ;
 + this . slices [ i ] = new SimpleMatrix ( slices [ i ] ) ;
 }

 }

Ha stupid bug left the matrix slices unitialized


<nb> public class BlockMasterSync implements Runnable {
 SINGLE
 case Free :
 for ( long block : cmd . mData ) {
 - mBlockDataManager . removeBlock ( Users . MASTER_COMMAND_USER_ID , block ) ;
 + try {
 + mBlockDataManager . removeBlock ( Users . MASTER_COMMAND_USER_ID , block ) ;
 + } catch ( IOException ioe ) {
 + LOG . warn ( STRING0 ) ;
 + }
 }
 break ;
 SINGLE


<nb> public class ChunkPlotWidget extends Composite

 if ( isFixedSizePlotUrl ( url ) )
 {
 + boolean hide = chunkOutputSize_ != ChunkOutputSize . Default ;
 +
 SINGLE
 SINGLE
 SINGLE
 - plot_ . setVisible ( false ) ;
 + plot_ . setVisible ( hide ) ;
 }
 else if ( chunkOutputSize_ == ChunkOutputSize . Full )
 {

make fixed plot visible in satellite chunks


<nb> public class AvengerInformationModule {
 mCharacterId = characterId ;
 }

 - @ provides @ activity
 - GetCharacterInformationUsecase provideGetCharacterInformationUsecase ( Repository repository ) {
 + @ provides @ activity GetCharacterInformationUsecase provideGetCharacterInformationUsecase ( Repository repository ) {

 return new GetCharacterInformationUsecase ( mCharacterId , repository ) ;
 }


<nb> public class Account implements BaseAccount {
 mAutoExpandFolderName = INBOX ;
 mInboxFolderName = INBOX ;
 mMaxPushFolders = NUMBER0 ;
 - mChipColor = ( new Random ( ) ) . nextInt ( NUMBER1 ) + NUMBER2 ;
 + Random random = new Random ( ( long ) mAccountNumber + NUMBER3 ) ;
 + mChipColor = ( random . nextInt ( NUMBER4 ) +
 + ( random . nextInt ( NUMBER4 ) * NUMBER5 ) +
 + ( random . nextInt ( NUMBER4 ) * NUMBER6 ) +
 + NUMBER2 ) ;
 goToUnreadMessageSearch = false ;
 mNotificationShowsUnreadCount = true ;
 subscribedFoldersOnly = false ;
 <nb> public class Account implements BaseAccount {
 mNotificationSetting . setRing ( true ) ;
 mNotificationSetting . setRingtone ( STRING0 ) ;
 mNotificationSetting . setLedColor ( mChipColor ) ;
 +
 + cacheChips ( ) ;
 }

 protected Account ( Preferences preferences , String uuid ) {

Fix a bug that caused accounts to not have a color on initial load


<nb> public class MapJoinBytesTableContainer

 public JoinUtil . JoinResult setDirect ( byte [ ] bytes , int offset , int length ,
 BytesBytesMultiHashMap . Result hashMapResult ) {
 -
 - int keyHash = WriteBuffers . murmurHash ( bytes , offset , length ) ;
 aliasFilter = hashMap . getValueResult ( bytes , offset , length , hashMapResult ) ;
 dummyRow = null ;
 if ( hashMapResult . hasRows ( ) ) {

Vectorized map join runs Murmurhash twice Gopal V reviewed by Matt McCline


<nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PickDateFragment extends Fragment {
 private PickDateListener mOnDateSelectedListener ;

 @ override
 - public void onAttach ( Activity activity ) {
 - super . onAttach ( activity ) ;
 + public void onAttach ( Context context ) {
 + super . onAttach ( context ) ;

 try {
 - mOnDateSelectedListener = ( PickDateListener ) activity ;
 + mOnDateSelectedListener = ( PickDateListener ) context ;
 } catch ( ClassCastException e ) {
 - throw new ClassCastException ( activity . toString ( ) + STRING0 ) ;
 + throw new ClassCastException ( context . toString ( ) + STRING0 ) ;
 }
 }

Replace the deprecated onAttach method with the latest version


<nb> public class OpenSSLCipherConfigurationParser {
 initialized = true ;
 SINGLE
 addListAlias ( DEFAULT , parse ( STRING0 ) ) ;
 - LinkedHashSet < Cipher > complementOfDefault = new LinkedHashSet < > ( all ) ;
 - complementOfDefault . removeAll ( aliases . get ( DEFAULT ) ) ;
 + SINGLE
 + Set < Cipher > complementOfDefault = filterByKeyExchange ( all , new HashSet < > ( Arrays . asList ( KeyExchange . EDH , KeyExchange . EECDH ) ) ) ;
 + complementOfDefault = filterByAuthentication ( complementOfDefault , Collections . singleton ( Authentication . aNULL ) ) ;
 + complementOfDefault . removeAll ( aliases . get ( eNULL ) ) ;
 addListAlias ( COMPLEMENTOFDEFAULT , complementOfDefault ) ;
 }

 <nb> public class TestOpenSSLCipherConfigurationParser {
 }

 - SINGLE
 @ test
 - @ ignore ( STRING1 )
 public void testCOMPLEMENTOFDEFAULT ( ) throws Exception {
 testSpecification ( STRING2 ) ;
 }


<nb> public class PrepareContractionHierarchies extends AbstractAlgoPreparation < Prepa
 int updateCounter = NUMBER0 ;
 StopWatch sw = new StopWatch ( ) ;

 - boolean lazyUpdate = true ;
 + SINGLE
 + boolean lazyUpdate = false ;
 SINGLE
 SINGLE
 boolean periodicUpdate = true ;

disable lazyUpdates as it has not benefits even for larger graphs


<nb> public class DeadlineTest {
 ticker . reset ( System . nanoTime ( ) ) ;
 Deadline reference = Deadline . after ( NUMBER0 , TimeUnit . SECONDS , ticker ) ;
 SINGLE
 - assertAbout ( deadline ( ) ) . that ( d ) . isWithin ( NUMBER1 , TimeUnit . MILLISECONDS ) . of ( reference ) ;
 + assertAbout ( deadline ( ) ) . that ( d ) . isWithin ( NUMBER2 , TimeUnit . SECONDS ) . of ( reference ) ;
 }

 @ test


<nb> public class GotoActionModel implements ChooseByNameModel , CustomMatcherModel , C

 final Shortcut shortcut = preferKeyboardShortcut ( KeymapManager . getInstance ( ) . getActiveKeymap ( ) . getShortcuts ( ActionManager . getInstance ( ) . getId ( anAction ) ) ) ;
 if ( shortcut != null ) {
 - nameComponent . append ( STRING0 + KeymapUtil . getShortcutText ( shortcut ) , new SimpleTextAttributes ( SimpleTextAttributes . STYLE_BOLD , groupFg ) ) ;
 + nameComponent . append ( STRING0 + KeymapUtil . getShortcutText ( shortcut ) ,
 + new SimpleTextAttributes ( SimpleTextAttributes . STYLE_SMALLER | SimpleTextAttributes . STYLE_BOLD ,
 + UIUtil . isUnderDarcula ( ) ? groupFg : ColorUtil . shift ( groupFg , FLOAT0 ) ) ) ;
 }

 if ( toggle ) {


<nb> import NAMESPACE ;
 COMMENT
 public class Blade {

 - public static final String VERSION = STRING0 ;
 + public static final String VERSION = STRING1 ;

 private static final Blade ME = new Blade ( ) ;


<nb> public class UndertowComponent extends UriEndpointComponent implements RestConsu
 }
 path = FileUtil . stripLeadingSeparator ( path ) ;
 String scheme = STRING0 ;
 - String host = STRING1 ;
 + String host = STRING2 ;
 int port = NUMBER0 ;

 RestConfiguration config = configuration ;

Fixed undertow for rest dsl should use localhost as hostname by default


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

 import NAMESPACE ;


<nb> public class PyExtractMethodUtil {
 if ( data != null ) {
 anchor = data . first ;
 }
 + SINGLE
 final PsiElement compoundStatement = PyPsiUtils . getCompoundStatement ( anchor ) ;
 - if ( compoundStatement . getParent ( ) instanceof PyFunction ) {
 - compoundStatement . getParent ( ) . addBefore ( generatedMethod , compoundStatement ) ;
 + final PsiElement parent = compoundStatement . getParent ( ) ;
 + if ( parent instanceof PyFunction ) {
 + parent . getParent ( ) . addBefore ( generatedMethod , parent ) ;
 return generatedMethod ;
 }
 final PsiElement statement = PyPsiUtils . getStatement ( compoundStatement , anchor ) ;


<nb> public class ImageResizer {
 public Bitmap resizeCenterCrop ( final String path , final int width , final int height ) {
 final Bitmap streamed = loadApproximate ( path , width , height ) ;

 + if ( streamed == null ) return null ;
 +
 if ( streamed . getWidth ( ) == width && streamed . getHeight ( ) == height ) {
 return streamed ;
 }
 <nb> public class ImageResizer {
 COMMENT
 public Bitmap fitInSpace ( final String path , final int width , final int height ) {
 final Bitmap streamed = loadApproximate ( path , width > height ? NUMBER0 : width , height > width ? NUMBER0 : height ) ;
 +
 + if ( streamed == null ) return null ;
 +
 return fitInSpace ( streamed , width , height ) ;
 }

Fix NPEs if a load fails to return an image for


<nb> public class CassandraThriftKeyColumnValueStore implements KeyColumnValueStore {
 List < KeyRange > keyRanges = new ArrayList < KeyRange > ( ranges . size ( ) ) ;

 for ( TokenRange range : ranges ) {
 - System . out . println ( range ) ;
 if ( ! NetworkUtil . hasLocalAddress ( range . endpoints ) )
 continue ;

remove unnecessary output in Cassandra Thrift Store


<nb> public class CamelAutoConfiguration {
 camelContext . getShutdownStrategy ( ) . setLogInflightExchangesOnTimeout ( config . isShutdownLogInflightExchangesOnTimeout ( ) ) ;

 if ( config . getLogDebugMaxChars ( ) > NUMBER0 ) {
 - camelContext . getProperties ( ) . put ( Exchange . LOG_DEBUG_BODY_MAX_CHARS , STRING0 + config . getLogDebugMaxChars ( ) ) ;
 + camelContext . getGlobalOptions ( ) . put ( Exchange . LOG_DEBUG_BODY_MAX_CHARS , STRING0 + config . getLogDebugMaxChars ( ) ) ;
 }

 SINGLE

Remove the use of the deprecated api in camel spring boot


<nb> public class DialogWrapperPeerImpl extends DialogWrapperPeer implements FocusTra

 @ override
 public void setContentPane ( Container contentPane ) {
 + super . setContentPane ( contentPane ) ;
 if ( contentPane != null ) {
 contentPane . addMouseMotionListener ( new MouseMotionAdapter ( ) { } ) ; SINGLE
 }
 <nb> public class GlassPaneDialogWrapperPeer extends DialogWrapperPeer implements Foc

 @ override
 public void setContentPane ( Container contentPane ) {
 + super . setContentPane ( contentPane ) ;
 if ( contentPane != null ) {
 contentPane . addMouseMotionListener ( new MouseMotionAdapter ( ) { } ) ; SINGLE
 }


<nb> public class ContactListActivity extends ThemeableActivity implements View . OnCre
 }
 }
 SINGLE
 - mFilterView . setConnection ( mConn ) ;
 + mFilterView . setActivity ( ContactListActivity . this ) ;
 mContactListView . setConnection ( mConn ) ;
 mContactListView . setHideOfflineContacts ( mGlobalSettingMap
 . getHideOfflineContacts ( ) ) ;
 <nb> public class ContactListActivity extends ThemeableActivity implements View . OnCre
 mDestroyed = true ;
 SINGLE
 mContactListView . setConnection ( null ) ;
 - mFilterView . setConnection ( null ) ;
 +
 if ( mGlobalSettingMap != null ) {
 mGlobalSettingMap . close ( ) ;
 }

update filterview to support multiconnection types


<nb> public abstract class DelegatingMavenModule < T extends MavenModule > implements Ma
 }

 @ override
 - public MavenModule dependsOnModules ( String . . . dependencyArtifactIds ) {
 + public T dependsOnModules ( String . . . dependencyArtifactIds ) {
 backingModule . dependsOnModules ( dependencyArtifactIds ) ;
 return t ( ) ;
 }
 <nb> public abstract class DelegatingMavenModule < T extends MavenModule > implements Ma
 }

 @ override
 - public MavenModule dependsOn ( Module module ) {
 + public T dependsOn ( Module module ) {
 backingModule . dependsOn ( module ) ;
 return t ( ) ;
 }

 @ override
 - public MavenModule dependsOn ( Map < String , ? > attributes , Module module ) {
 + public T dependsOn ( Map < String , ? > attributes , Module module ) {
 backingModule . dependsOn ( attributes , module ) ;
 return t ( ) ;
 }


<nb> public class ResConfigFlags {
 private String generateQualifiers ( ) {
 StringBuilder ret = new StringBuilder ( ) ;
 if ( mcc != NUMBER0 ) {
 + ret . append ( STRING0 ) . append ( String . format ( STRING1 , mcc ) ) ;
 if ( mcc != MNC_ZERO ) {
 - ret . append ( STRING0 ) . append ( String . format ( STRING1 , mcc ) ) ;
 - if ( mnc != NUMBER0 ) {
 + if ( mnc != NUMBER0 && mnc != - NUMBER1 ) {
 ret . append ( STRING2 ) . append ( mnc ) ;
 }
 }


<nb> public class ErrorResUtils {
 case ImErrorInfo . NETWORK_ERROR :
 return R . string . network_error ;

 + case ImErrorInfo . INVALID_USERNAME :
 + return R . string . invalid_password ;
 +
 case ImpsErrorInfo . SERVICE_NOT_SUPPORTED :
 return R . string . service_not_support ;

 <nb> public class XmppConnection extends ImConnection implements CallbackHandler
 disconnected ( info ) ;
 mRetryLogin = false ;
 }
 - else if ( e . getMessage ( ) . contains ( STRING0 ) ) {
 + else if ( e . getMessage ( ) . contains ( STRING0 ) || e . getMessage ( ) . contains ( STRING1 ) ) {
 Log . w ( TAG , STRING2 ) ;
 info = new ImErrorInfo ( ImErrorInfo . INVALID_USERNAME , STRING3 ) ;
 disconnected ( info ) ;


<nb> public interface RScriptAsync {
 < R > Future < R > evalAsync ( Mode mode , String luaScript , ReturnType returnType , List < Object > keys , Object . . . values ) ;

 < R > Future < R > evalAsync ( Mode mode , Codec codec , String luaScript , ReturnType returnType , List < Object > keys , Object . . . values ) ;
 +
 + < R > Future < R > evalAsync ( String key , Mode mode , Codec codec , String luaScript , ReturnType returnType , List < Object > keys , Object . . . values ) ;

 < R > Future < R > evalAsync ( Mode mode , String luaScript , ReturnType returnType ) ;


<nb> public class Configuration {

 final String qualifier = getQualifier ( lang ) ;

 - final FileInputStream fis = new FileInputStream ( configFile ) ;
 + FileInputStream fis = null ;
 try {
 + fis = new FileInputStream ( configFile ) ;
 final Properties props = new Properties ( ) ;
 props . load ( fis ) ;

 <nb> public class Configuration {
 } catch ( final FileNotFoundException e ) {
 SINGLE
 } finally {
 - fis . close ( ) ;
 + if ( fis != null ) {
 + fis . close ( ) ;
 + }
 }
 }

undo parts of latest change it broke the tests


<nb> public final class CommonUtils {
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static void changeLocalFilePermission ( String filePath , String perms ) throws IOException {
 List < String > commands = new ArrayList < String > ( ) ;
 <nb> public final class CommonUtils {

 process . waitFor ( ) ;

 - if ( process . exitValue ( ) != NUMBER0 ) {
 - throw new IOException ( STRING0 + file . getAbsolutePath ( ) ) ;
 + if ( process . exitValue ( ) != NUMBER0 ) {
 + throw new IOException ( STRING1 + file . getAbsolutePath ( )
 + + STRING2 + perms ) ;
 }
 } catch ( InterruptedException e ) {
 LOG . error ( e . getMessage ( ) ) ;


<nb> public @ interface Bean {

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 Autowire autowire ( ) default Autowire . NO ;

Bean s autowire attribute does not affect annotation driven autowiring


<nb> public final class ContactsContract {
 Cursor cursor = cr . query ( photoUri ,
 new String [ ] { ContactsContract . CommonDataKinds . Photo . PHOTO } , null , null , null ) ;
 try {
 - if ( ! cursor . moveToNext ( ) ) {
 + if ( cursor == null || ! cursor . moveToNext ( ) ) {
 return null ;
 }
 byte [ ] data = cursor . getBlob ( NUMBER0 ) ;
 <nb> public final class ContactsContract {
 }
 return new ByteArrayInputStream ( data ) ;
 } finally {
 - cursor . close ( ) ;
 + if ( cursor != null ) {
 + cursor . close ( ) ;
 + }
 }
 }
 }

Fix null pointer exception in openContactPhotoInputStream


<nb> public class QuerySystemTable
 return table . build ( ) . cursor ( ) ;
 }

 - private Long toMillis ( Duration duration )
 + private static Long toMillis ( Duration duration )
 {
 if ( duration == null ) {
 return null ;
 <nb> public class QuerySystemTable
 return duration . toMillis ( ) ;
 }

 - private Long toTimeStamp ( DateTime dateTime )
 + private static Long toTimeStamp ( DateTime dateTime )
 {
 if ( dateTime == null ) {
 return null ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ApiHelper {
 XMLRPCClientInterface client = XMLRPCFactory . instantiate ( mBlog . getUri ( ) , mBlog . getHttpuser ( ) ,
 mBlog . getHttppassword ( ) ) ;

 + boolean alreadyTrackedAsJetpackBlog = mBlog . isJetpackPowered ( ) ;
 +
 if ( ! commentsOnly ) {
 SINGLE
 Map < String , String > hPost = ApiHelper . blogOptionsXMLRPCParameters ;
 <nb> public class ApiHelper {
 ApiHelper . updateBlogOptions ( mBlog , blogOptions ) ;
 }

 + if ( mBlog . isJetpackPowered ( ) && ! alreadyTrackedAsJetpackBlog ) {
 + SINGLE
 + AnalyticsTracker . track ( AnalyticsTracker . Stat . SIGNED_INTO_JETPACK ) ;
 + }
 +
 SINGLE
 new GetPostFormatsTask ( ) . execute ( mBlog ) ;
 }

Bump analytics when a Jetpack blogs is added to the app


<nb> public class ModelLoader extends ModelBakery

 private void loadItems ( )
 {
 - registerVariantNames ( ) ;
 -
 SINGLE
 if ( FluidRegistry . isUniversalBucketEnabled ( ) )
 {
 setBucketModelDefinition ( ForgeModContainer . getInstance ( ) . universalBucket ) ;
 }
 +
 + registerVariantNames ( ) ;

 List < String > itemVariants = Lists . newArrayList ( ) ;
 for ( Item item : GameData . getItemRegistry ( ) . typeSafeIterable ( ) )

Fix universal bucket logging an exception


<nb> public class ProjectDataManager {
 } ;
 }

 - @ deprecated SINGLE
 - @ nullable
 - public ProjectDataService < ? , ? > getDataService ( Key < ? > key ) {
 - final List < ProjectDataService < ? , ? > > dataServices = myServices . getValue ( ) . get ( key ) ;
 - assert dataServices == null || dataServices . isEmpty ( ) || dataServices . size ( ) == NUMBER0 ;
 - return ContainerUtil . getFirstItem ( dataServices ) ;
 - }
 -
 @ suppresswarnings ( STRING0 )
 public void importData ( @ notnull Collection < DataNode < ? > > nodes ,
 @ notnull Project project ,


<nb> public class TestCaseLoader {
 if ( IdeaTestUtil . isRotten ( bombedAnnotation ) ) {
 String message = STRING0 + method + STRING1 + method . getDeclaringClass ( ) + STRING2 ;
 System . err . println ( message ) ;
 - Assert . fail ( message ) ;
 + SINGLE
 }
 return ! IdeaTestUtil . bombExplodes ( bombedAnnotation ) ;
 }

Prevent stall bomb from canceling the build


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

 import NAMESPACE ;
 <nb> public class DaemonMain extends EntryPoint {
 private DaemonExpirationStrategy initializeExpirationStrategy ( final DaemonServerConfiguration params ) {
 DaemonIdleTimeoutExpirationStrategy timeoutStrategy = new DaemonIdleTimeoutExpirationStrategy ( params . getIdleTimeout ( ) , TimeUnit . MILLISECONDS ) ;
 DaemonRegistryUnavailableExpirationStrategy registryUnavailableStrategy = new DaemonRegistryUnavailableExpirationStrategy ( ) ;
 - return new CompositeDaemonExpirationStrategy ( ImmutableList . of ( timeoutStrategy , registryUnavailableStrategy ) ) ;
 + DaemonExpirationStrategy lowMemoryLruStrategy = new AllDaemonExpirationStrategy ( ImmutableList . of (
 + LowMemoryDaemonExpirationStrategy . belowFreePercentage ( FLOAT0 ) ,
 + new LruDaemonExpirationStrategy ( ) )
 + ) ;
 +
 + return new AnyDaemonExpirationStrategy ( ImmutableList . of ( registryUnavailableStrategy , lowMemoryLruStrategy ) ) ;
 }

 private void redirectOutputsAndInput ( PrintStream printStream ) {

expire the least recently busy daemon when memory is low


<nb> final class Bootstrap {
 COMMENT
 COMMENT
 COMMENT
 - @ suppressforbidden ( reason = STRING0 )
 static void init ( String [ ] args ) throws Throwable {
 SINGLE
 System . setProperty ( STRING1 , STRING2 ) ;


<nb> public class ServletCategory {
 return context . getAttribute ( key ) ;
 }

 + public static void set ( ServletContext context , String key , Object value ) {
 + context . setAttribute ( key , value ) ;
 + }
 +
 + public static void set ( HttpSession session , String key , Object value ) {
 + session . setAttribute ( key , value ) ;
 + }
 +
 + public static void set ( ServletRequest request , String key , Object value ) {
 + request . setAttribute ( key , value ) ;
 + }
 +
 + public static void set ( PageContext context , String key , Object value ) {
 + context . setAttribute ( key , value ) ;
 + }
 +
 }

Add the setters to the servlet getters in the category


<nb> public abstract class SharedTree < M extends SharedTreeModel < M , P , O > , P extends Sha

 SINGLE
 protected Key getGlobalQuantilesKey ( int i ) {
 - if ( _parms . _histogram_type != SharedTreeModel . SharedTreeParameters . HistogramType . QuantilesGlobal
 + if ( _model == null || _parms . _histogram_type != SharedTreeModel . SharedTreeParameters . HistogramType . QuantilesGlobal
 && _parms . _histogram_type != SharedTreeModel . SharedTreeParameters . HistogramType . RoundRobin ) return null ;
 return Key . makeSystem ( _model . _key + STRING0 + i ) ;
 }

Fix NPE in GBM DRF in exceptional completion when QuantilesGlobal is enabled


<nb> public class TimelineDrawer extends JPanel implements MouseListener , MouseMotion
 to = Math . min ( to , model . getCustomMax ( ) ) ;
 if ( from < to ) {
 controller . setInterval ( from , to ) ;
 - repaint ( ) ;
 }
 }
 }
 <nb> public class TimelineControllerImpl implements TimelineController {
 } else {
 filterController . filterVisible ( dynamicQuery ) ;
 }
 + fireTimelineModelEvent ( new TimelineModelEvent ( TimelineModelEvent . EventType . INTERVAL , model , new double [ ] { from , to } ) ) ;
 }
 }
 }


<nb> public class FactoryFinder {
 if ( className == null ) {
 throw new IOException ( STRING0 + propertyPrefix + STRING1 ) ;
 }
 - Class clazz ;
 - try {
 - clazz = Thread . currentThread ( ) . getContextClassLoader ( ) . loadClass ( className ) ;
 + Class clazz = null ;
 + ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ;
 + if ( loader != null ) {
 + try {
 + clazz = loader . loadClass ( className ) ;
 + }
 + catch ( ClassNotFoundException e ) {
 + SINGLE
 + }
 }
 - catch ( ClassNotFoundException e ) {
 + if ( clazz == null ) {
 clazz = FactoryFinder . class . getClassLoader ( ) . loadClass ( className ) ;
 }
 -
 return clazz ;
 }


<nb> public class AgentRegistrationElf
 HikariClassTransformer transformer = new HikariClassTransformer ( ) ;
 systemProperties . put ( STRING0 , transformer ) ;

 + LOGGER . info ( STRING1 , agentJarPath ) ;
 +
 registerInstrumentation ( agentJarPath ) ;
 LOGGER . info ( STRING2 ) ;

Add additional log message for path of agent jar


<nb> public class PostgreSQLConnector extends SQLMetadataConnector
 public boolean tableExists ( final Handle handle , final String tableName )
 {
 return ! handle . createQuery (
 - STRING0
 + STRING1
 )
 . bind ( STRING2 , tableName )
 . map ( StringMapper . FIRST )

Ignore case when testing for table existence


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GoogleAccountsServiceTests {
 + STRING0
 + STRING1
 + STRING2 ;
 - request . setParameter ( SamlProtocolConstants . PARAMETER_SAML_REQUEST , encodeMessage ( SAMLRequest ) ) ;
 + request . setParameter ( SamlProtocolConstants . PARAMETER_SAML_REQUEST , encodeMessage ( samlRequest ) ) ;
 request . setParameter ( SamlProtocolConstants . PARAMETER_SAML_RELAY_STATE , STRING3 ) ;

 final RegisteredService regSvc = mock ( RegisteredService . class ) ;


<nb> final class ActivityStack {
 next . idle = false ;
 next . results = null ;
 next . newIntents = null ;
 + if ( next . nowVisible ) {
 + SINGLE
 + mStackSupervisor . dismissKeyguard ( ) ;
 + }

 SINGLE
 mStackSupervisor . scheduleIdleTimeoutLocked ( next ) ;

Dismiss keyguard when resuming visible activities


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class ConfigurableJtaPlatform implements InvocationHandler {

 @ override
 public Object invoke ( Object proxy , Method method , Object [ ] args ) throws Throwable {
 - Method targetMethod = getClass ( ) . getMethod ( method . getName ( ) , method . getParameterTypes ( ) ) ;
 - return targetMethod . invoke ( this , args ) ;
 + try {
 + return getClass ( ) . getMethod ( method . getName ( ) , method . getParameterTypes ( ) ) . invoke ( this , args ) ;
 + }
 + catch ( InvocationTargetException ex ) {
 + throw ex . getTargetException ( ) ;
 + }
 + catch ( Throwable ex ) {
 + throw new IllegalStateException ( STRING0 , ex ) ;
 + }
 }

 COMMENT

Properly handle InvocationTargetException in reflective JtaPlatform implementation


<nb> public class XmppConnection implements Runnable {
 }

 public boolean sm ( ) {
 - if ( connection . streamFeatures == null ) {
 - return false ;
 - } else {
 - return connection . streamFeatures . hasChild ( STRING0 ) ;
 - }
 + return streamId != null ;
 }

 public boolean csi ( ) {

changed method that determins whether or not sm is available


<nb> public class MaterialDialog extends DialogBase implements View . OnClickListener ,
 private ListCallbackMulti listCallbackMulti ;
 protected Theme theme = Theme . LIGHT ;
 protected boolean cancelable = true ;
 - protected float contentLineSpacingMultiplier = FLOAT0 ;
 + protected float contentLineSpacingMultiplier = FLOAT1 ;
 protected int selectedIndex = - NUMBER0 ;
 protected Integer [ ] selectedIndicies = null ;
 protected ItemProcessor itemProcessor ;


<nb> public interface TelephonyProperties
 COMMENT
 COMMENT
 static final String PROPERTY_MMS_TRANSACTION = STRING0 ;
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - static final String PROPERTY_SIM_COUNT = STRING1 ;
 }

Remove PROPERTY_SIM_COUNT and ro telephony sim count


<nb> public class PGraphicsOpenGL extends PGraphics {
 try {
 pgl . glBlendEquation ( PGL . GL_FUNC_ADD ) ;
 blendEqSupported = true ;
 - } catch ( UnsupportedOperationException e ) {
 + } catch ( Exception e ) {
 blendEqSupported = false ;
 }

 <nb> public class PGraphicsOpenGL extends PGraphics {
 try {
 pgl . glBlendEquation ( PGL . GL_FUNC_ADD ) ;
 blendEqSupported = true ;
 - } catch ( UnsupportedOperationException e ) {
 + } catch ( Exception e ) {
 blendEqSupported = false ;
 }

try catch block for glBlendEquation handles any exception


<nb> public class SceneBuilderCreatorImpl implements SceneBuilderCreator {
 urls . add ( new File ( home , STRING0 ) . toURI ( ) . toURL ( ) ) ;
 }
 }
 +
 + final String rtPath = PathUtil . getJarPathForClass ( String . class ) ;
 + final File javaFxJar = new File ( new File ( new File ( rtPath ) . getParentFile ( ) , STRING1 ) , STRING2 ) ;
 + if ( javaFxJar . isFile ( ) ) {
 + urls . add ( javaFxJar . toURI ( ) . toURL ( ) ) ;
 + }
 +
 return new URLClassLoader ( urls . toArray ( new URL [ urls . size ( ) ] ) , SceneBuilderCreatorImpl . class . getClassLoader ( ) ) ;
 }
 }

include jfxrt jar in classloader to load SceneBuilder


<nb> public class Shortcut implements DirectEdge , Serializable {
 else
 s1 = first . traverse ( s0 ) ;

 + SINGLE
 + if ( s1 == null )
 + return null ;
 +
 if ( second instanceof Shortcut )
 s1 = ( ( Shortcut ) second ) . unpackTraverse ( s1 ) ;
 else

Add null checks to shortcut unpacking method


<nb> public class SmartLockHelper {

 public void smartLockAutoFill ( final Callback callback ) {
 Activity activity = getActivityAndCheckAvailability ( ) ;
 - if ( activity == null ) {
 + if ( activity == null || mCredentialsClient == null || ! mCredentialsClient . isConnected ( ) ) {
 return ;
 }
 CredentialRequest credentialRequest = new CredentialRequest . Builder ( )
 - . setSupportsPasswordLogin ( true )
 + . setPasswordLoginSupported ( true )
 . build ( ) ;
 Auth . CredentialsApi . request ( mCredentialsClient , credentialRequest ) . setResultCallback (
 new ResultCallback < CredentialRequestResult > ( ) {


<nb> public class SQLSelectTest {
 tags . add ( STRING0 ) ;

 ODocument doc = new ODocument ( database , STRING1 ) ;
 - doc . field ( STRING2 , tags ) ;
 + doc . field ( STRING2 , tags , OType . EMBEDDEDSET ) ;

 doc . save ( ) ;

 <nb> public class SQLSelectTest {
 Assert . assertEquals ( resultset . size ( ) , NUMBER0 ) ;
 Assert . assertEquals ( resultset . get ( NUMBER1 ) . getIdentity ( ) , doc . getIdentity ( ) ) ;

 + resultset = database . query ( new OSQLSynchQuery < ODocument > ( STRING3 ) ) ;
 +
 + Assert . assertEquals ( resultset . size ( ) , NUMBER0 ) ;
 + Assert . assertEquals ( resultset . get ( NUMBER1 ) . getIdentity ( ) , doc . getIdentity ( ) ) ;
 +
 + SINGLE
 +
 database . close ( ) ;
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class SentimentCoreAnnotations {
 -
 +
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static class AnnotatedTree implements CoreAnnotation < Tree > {
 + @ override
 public Class < Tree > getType ( ) {
 return Tree . class ;
 }
 <nb> public class SentimentCoreAnnotations {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static class ClassName implements CoreAnnotation < String > {
 + @ override
 public Class < String > getType ( ) {
 return String . class ;
 }

Add TODOs for proposed incompatible changes


<nb> final class YUVMonochromeBitmapSource extends BaseMonochromeBitmapSource {

 }

 + public void cacheColumnForLuminance ( int x ) {
 +
 + }
 +
 COMMENT
 COMMENT
 COMMENT

Add column caching to MonochromeBitmapSources and use it to improve Data Matrix speed


<nb> class PluginManagerColumnInfo extends ColumnInfo {
 if ( existing == null )
 return PluginNode . STATUS_MISSING ;

 + if ( existing . getVendor ( ) == null ? true : ! existing . getVendor ( ) . equals ( node . getVendor ( ) ) ) {
 + return PluginNode . STATUS_MISSING ;
 + }
 +
 int state = compareVersion ( node . getVersion ( ) , existing . getVersion ( ) ) ;

 if ( state == NUMBER0 )

missing plugin status for plugins without vendors


<nb> public class DescriptorRenderer implements Renderer {

 public String renderType ( JetType type ) {
 if ( type == null ) {
 - return escape ( STRING0 ) ;
 + return escape ( STRING1 ) ;
 } else {
 return escape ( type . toString ( ) ) ;
 }

change DescriptionRenderer for null internal error etc type