<nb> public class AnalyzedTokenReadings {
 }
 if ( anTokReadings [ anTokReadings . length - NUMBER0 ] . getPOSTag ( ) != null ) {
 l . add ( anTokReadings [ anTokReadings . length - NUMBER0 ] ) ;
 - }
 + }
 + tok . setWhitespaceBefore ( isWhitespaceBefore ) ;
 l . add ( tok ) ;
 anTokReadings = l . toArray ( new AnalyzedToken [ l . size ( ) ] ) ;
 if ( tok . getToken ( ) . length ( ) > token . length ( ) ) { SINGLE
 <nb> public class AnalyzedTokenReadings {
 anTokReadings [ anTokReadings . length - NUMBER0 ] .
 setWhitespaceBefore ( isWhitespaceBefore ) ;
 isParaEnd = hasPosTag ( JLanguageTool . PARAGRAPH_END_TAGNAME ) ;
 - isSentEnd = hasPosTag ( JLanguageTool . SENTENCE_END_TAGNAME ) ;
 + isSentEnd = hasPosTag ( JLanguageTool . SENTENCE_END_TAGNAME ) ;
 }

 public final void removeReading ( final AnalyzedToken tok ) {


<nb> public class GameData
 if ( item instanceof ItemBlock )
 {
 ItemBlock itemBlock = ( ItemBlock ) item ;
 - BLOCK_TO_ITEM . put ( itemBlock . getBlock ( ) , item ) ;
 + BLOCK_TO_ITEM . put ( itemBlock . getBlock ( ) . delegate . get ( ) , item ) ;
 }
 }
 }

Actually use the delegate for the itemblock


<nb> public final class DreamManagerService extends IDreamManager . Stub {
 }

 private static ComponentName [ ] componentsFromString ( String names ) {
 + if ( names == null ) {
 + return null ;
 + }
 String [ ] namesArray = names . split ( STRING0 ) ;
 ComponentName [ ] componentNames = new ComponentName [ namesArray . length ] ;
 for ( int i = NUMBER0 ; i < namesArray . length ; i ++ ) {


<nb> package NAMESPACE ;

 import static NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class AtomicLongMap < K > {
 COMMENT
 COMMENT
 COMMENT
 + @ beta
 @ canignorereturnvalue
 public boolean removeIfZero ( K key ) {
 return remove ( key , NUMBER0 ) ;

Add Beta to new method that hasn t yet been API reviewed


<nb> public class SystemTable
 QueryFilter filter = QueryFilter . getNamesFilter ( decorate ( COOKIE_KEY ) , new QueryPath ( STATUS_CF ) , upgradeMarker ) ;
 ColumnFamily cf = table . getColumnFamilyStore ( STATUS_CF ) . getColumnFamily ( filter ) ;
 if ( cf != null )
 + {
 + logger . debug ( STRING0 ) ;
 return ;
 + }

 SINGLE
 ColumnFamilyStore hintsCfs = Table . open ( Table . SYSTEM_TABLE ) . getColumnFamilyStore ( HintedHandOffManager . HINTS_CF ) ;
 <nb> public class SystemTable
 hintsCfs . snapshot ( STRING1 ) ;
 hintsCfs . removeAllSSTables ( ) ;
 }
 + logger . debug ( STRING2 ) ;
 RowMutation rm = new RowMutation ( Table . SYSTEM_TABLE , COOKIE_KEY ) ;
 rm . add ( new QueryPath ( STATUS_CF , null , upgradeMarker ) , ByteBufferUtil . bytes ( STRING3 ) , System . currentTimeMillis ( ) ) ;
 rm . apply ( ) ;

add debug logging to purgeIncompatibleHints


<nb> public class ShadowFragment {

 @ implementation
 public Resources getResources ( ) {
 - return getActivity ( ) . getResources ( ) ;
 + if ( activity == null ) {
 + throw new IllegalStateException ( STRING0 + this + STRING1 ) ;
 + }
 + return activity . getResources ( ) ;
 }

 public void setTag ( String tag ) {
 <nb> public class FragmentTest {
 assertEquals ( STRING2 , hello ) ;
 }

 + @ test ( expected = IllegalStateException . class )
 + public void unattachedFragmentsCannotGetResources ( ) throws Exception {
 + new TestFragment ( ) . getResources ( ) ;
 + }
 }

ShadowFragment getResources throws an IllegalStateException if it s not attached to an Activity just like real Android


<nb> public class TextureView extends View {
 mSurface . release ( ) ;
 }
 mSurface = surfaceTexture ;
 +
 + SINGLE
 + SINGLE
 + if ( ( ( mViewFlags & VISIBILITY_MASK ) == VISIBLE ) ) {
 + mSurface . setOnFrameAvailableListener ( mUpdateListener , mAttachInfo . mHandler ) ;
 + }
 mUpdateSurface = true ;
 invalidateParentIfNeeded ( ) ;
 }

Fix setSurfaceTexture to handle surface caching


<nb> public class CompilationUnit extends ProcessingUnit {
 try {
 ClassNode classNode = ( ClassNode ) classNodes . next ( ) ;
 context = classNode . getModule ( ) . getContext ( ) ;
 - if ( context == null || context . phase <= phase ) {
 + if ( context == null || context . phase < phase || ( context . phase == phase && ! context . phaseComplete ) ) {
 body . call ( context , new GeneratorContext ( this . ast ) , classNode ) ;
 }
 } catch ( CompilationFailedException e ) {

OptimizerVisitor may run twice corrupting constants test pending


<nb> public class TestOrderByTypeExpander extends AbstractTestBase
 {
 for ( String name : names )
 {
 - System . out . println ( name ) ;
 Node node = itr . next ( ) ;
 assertEquals ( STRING0 + name + STRING1 + node . getProperty ( STRING2 ) ,
 getNodeWithName ( name ) , node ) ;


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CustomConstraintTest {
 @ deployment
 public static Archive < ? > deployment ( ) {
 WebArchive war = ShrinkWrap . create ( WebArchive . class )
 - . addClasses ( MyBean . class )
 + . addClasses ( MyBean . class , ZipCode . class , ZipCodeValidator . class )
 . addAsResource ( STRING0 ) ;

 System . out . println ( war . toString ( true ) ) ;
 <nb> public class CustomConstraintTest {
 public void saveZipCodeForIndia ( ) {
 SINGLE
 SINGLE
 - SINGLE
 + thrown . expectMessage ( STRING1 ) ;
 bean . saveZipIndia ( STRING2 ) ;
 }

Add Bean Validation validator and annotation to deployment


<nb> public class ZLTextPlainModel implements ZLTextModel , ZLTextStyleEntry . Feature {
 ++ dataOffset ;
 switch ( type ) {
 case ZLTextParagraph . Entry . TEXT :
 - myTextLength =
 + {
 + int textLength =
 ( int ) data [ dataOffset ++ ] +
 ( ( ( int ) data [ dataOffset ++ ] ) < < NUMBER0 ) ;
 + if ( textLength > data . length - dataOffset ) {
 + textLength = data . length - dataOffset ;
 + }
 + myTextLength = textLength ;
 myTextData = data ;
 myTextOffset = dataOffset ;
 - dataOffset += myTextLength ;
 + dataOffset += textLength ;
 break ;
 + }
 case ZLTextParagraph . Entry . CONTROL :
 {
 short kind = ( short ) data [ dataOffset ++ ] ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class StatusViewHolder extends RecyclerView . ViewHolder implements Constan
 screenNameView . setText ( STRING0 + TWIDERE_PREVIEW_SCREEN_NAME ) ;
 textView . setText ( toPlainText ( TWIDERE_PREVIEW_TEXT_HTML ) ) ;
 timeView . setTime ( System . currentTimeMillis ( ) ) ;
 + mediaPreviewContainer . displayMedia ( R . drawable . nyan_stars_background ) ;
 }

 public void displayStatus ( final ParcelableStatus status , final boolean displayInReplyTo ) {


<nb> import NAMESPACE ;
 abstract public class AbstractPluginAware implements PluginAware {

 public void apply ( Closure closure ) {
 - DefaultObjectConfigurationAction action = new DefaultObjectConfigurationAction ( getFileResolver ( ) , getScriptPluginFactory ( ) , getScriptHandlerFactory ( ) , getClassLoaderScope ( ) , this ) ;
 + DefaultObjectConfigurationAction action = new DefaultObjectConfigurationAction ( getFileResolver ( ) , getScriptPluginFactory ( ) , getScriptHandlerFactory ( ) , getClassLoaderScope ( ) . getBase ( ) . createChild ( ) , this ) ;
 ConfigureUtil . configure ( closure , action ) ;
 action . execute ( ) ;
 }

 public void apply ( Map < String , ? > options ) {
 - DefaultObjectConfigurationAction action = new DefaultObjectConfigurationAction ( getFileResolver ( ) , getScriptPluginFactory ( ) , getScriptHandlerFactory ( ) , getClassLoaderScope ( ) , this ) ;
 + DefaultObjectConfigurationAction action = new DefaultObjectConfigurationAction ( getFileResolver ( ) , getScriptPluginFactory ( ) , getScriptHandlerFactory ( ) , getClassLoaderScope ( ) . getBase ( ) . createChild ( ) , this ) ;
 ConfigureUtil . configureByMap ( options , action ) ;
 action . execute ( ) ;
 }

Script plugins use a child class loader scope of the base


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

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

 import NAMESPACE ;
 import NAMESPACE ;

fixed testng assert imports into junit assert imports


<nb> public class Tapjacker extends Service implements View . OnTouchListener {
 super . onDestroy ( ) ;
 }

 - @ override
 public boolean onTouch ( View v , MotionEvent event ) {
 Log . w ( STRING0 ,
 String . valueOf ( event . getX ( ) ) + STRING1 + String . valueOf ( event . getY ( ) ) ) ;

Fixed incorrect package directory structure


<nb> public class SelectorDimFilter implements DimFilter
 )
 {
 Preconditions . checkArgument ( dimension != null , STRING0 ) ;
 - Preconditions . checkArgument ( value != null , STRING1 ) ;
 +
 this . dimension = dimension ;
 this . value = value ;
 }
 <nb> public class SelectorDimFilter implements DimFilter
 public byte [ ] getCacheKey ( )
 {
 byte [ ] dimensionBytes = dimension . getBytes ( ) ;
 - byte [ ] valueBytes = value . getBytes ( ) ;
 + byte [ ] valueBytes = ( value == null ) ? new byte [ ] { } : value . getBytes ( ) ;

 return ByteBuffer . allocate ( NUMBER0 + dimensionBytes . length + valueBytes . length )
 . put ( DimFilterCacheHelper . SELECTOR_CACHE_ID )

fix selector dim filter check for value null


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


<nb> public class FB2Reader extends ZLXMLReader {
 myModelReader . pushKind ( ( byte ) FBTextKind . POEM_TITLE . Index ) ;
 } else if ( mySectionDepth == NUMBER0 ) {
 myModelReader . insertEndOfSectionParagraph ( ) ;
 - myModelReader . pushKind ( ( byte ) tag . ordinal ( ) ) ;
 + myModelReader . pushKind ( ( byte ) FBTextKind . TITLE . Index ) ;
 } else {
 myModelReader . pushKind ( ( byte ) FBTextKind . SECTION_TITLE . Index ) ;
 myInsideTitle = true ;


<nb> public abstract class DKV {
 SINGLE
 SINGLE
 SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 + if ( ! isConvertedFrameKeyString ( key . toString ( ) ) ) {
 + String frameKeyString = calcConvertedFrameKeyString ( key . toString ( ) ) ;
 + Key k = Key . make ( frameKeyString ) ;
 + remove ( k ) ;
 + }

 SINGLE
 SINGLE

Uncommented for now previously commented out hook in DKV to remove


<nb> public class DataSourceDefinitionInjectionSource extends ResourceDefinitionInjec

 private void setProperty ( final DeploymentReflectionIndex deploymentReflectionIndex , final Class < ? > dataSourceClass , final Map < String , String > properties , final String name , final Object value ) {
 SINGLE
 - if ( value == null ) return ;
 - if ( value instanceof String && STRING0 . equals ( value ) ) return ;
 + if ( value == null || STRING0 . equals ( value ) ) return ;
 if ( value instanceof Integer && ( ( Integer ) value ) . intValue ( ) == - NUMBER0 ) return ;
 StringBuilder builder = new StringBuilder ( STRING1 ) . append ( name ) ;
 builder . setCharAt ( NUMBER1 , Character . toUpperCase ( name . charAt ( NUMBER2 ) ) ) ;


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 -

 COMMENT
 COMMENT
 <nb>

 package NAMESPACE ;

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

 COMMENT

Remove unused imports idnetified by Eclipse


<nb> public interface Row extends Unfiltered , Collection < ColumnData >
 public Clustering clustering ( ) ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void addPrimaryKeyLivenessInfo ( LivenessInfo info ) ;


<nb> public class AsyncSocketMiddleware extends SimpleMiddleware {
 SINGLE
 if ( lastException == null )
 lastException = new ConnectionFailedException ( STRING0 ) ;
 - setComplete ( lastException ) ;
 + if ( setComplete ( lastException ) ) {
 + data . connectCallback . onConnectCompleted ( lastException , null ) ;
 + }
 }
 } ) ;


<nb> public class RecoverySourceHandler {

 @ override
 public final void write ( int b ) throws IOException {
 - write ( new byte [ ] { ( byte ) b } , NUMBER0 , NUMBER1 ) ;
 + throw new UnsupportedOperationException ( STRING0 ) ;
 }

 @ override
 <nb> public class RecoverySourceHandler {
 COMMENT
 COMMENT
 COMMENT
 + boolean success = false ;
 try {
 sendNextChunk ( position , new BytesArray ( b , offset , length ) , md . length ( ) == position + length ) ;
 position += length ;
 assert md . length ( ) >= position : STRING1 + md . length ( ) + STRING2 + position ;
 - } catch ( Exception e ) {
 - failed = true ;
 - throw e ;
 + success = true ;
 + } finally {
 + if ( success == false ) {
 + failed = true ;
 + }
 }
 }
 }

don t allow writing single bytes on recovery outputstream


<nb> public class ModCluster {
 return ttl ;
 }

 - public void setTtl ( long ttl ) {
 + public Builder setTtl ( long ttl ) {
 this . ttl = ttl ;
 + return this ;
 }
 }


<nb> import NAMESPACE ;
 COMMENT
 public class ExecuteJobsRunnable implements Runnable
 {
 - private static Logger log = LoggerFactory . getLogger ( AcquireJobsRunnable . class ) ;
 + private static Logger log = LoggerFactory . getLogger ( ExecuteJobsRunnable . class ) ;

 private final List < String > jobIds ;
 private final JobExecutor jobExecutor ;

fixed silly copy paste error in logger factory method


<nb> public class ContentTypeHeader extends HttpHeader {

 private String [ ] parts ;

 - public static Optional < ContentTypeHeader > getFrom ( Request request ) {
 - String value = request . getHeader ( KEY ) ;
 - if ( value != null ) {
 - return Optional . of ( new ContentTypeHeader ( value ) ) ;
 - }
 -
 - return Optional . absent ( ) ;
 - }
 -
 public ContentTypeHeader ( String stringValue ) {
 super ( KEY , stringValue ) ;
 parts = stringValue != null ? stringValue . split ( STRING0 ) : new String [ NUMBER0 ] ;

Removed unused method from ContentTypeHeader


<nb> public class BroadcastProducer extends AbstractGenericInputTask {
 COMMENT
 COMMENT
 COMMENT
 - public static final int TIMESTAMP_INTERVAL = NUMBER0 ;
 + public static final int TIMESTAMP_INTERVAL = NUMBER1 ;

 COMMENT
 COMMENT

Increased logging interval for latency measurement


<nb> public abstract class XmlSchemaProvider {

 @ nullable
 public abstract XmlFile getSchema ( @ notnull @ nonnls String url , @ nullable Module module , @ notnull final PsiFile baseFile ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + @ nullable
 + protected String [ ] getAvailableNamespaces ( final @ notnull XmlFile file , final @ notnull Module module ) {
 + return null ;
 + }
 }


<nb> public class NetworkManager extends Plugin {
 private static final String LOG_TAG = STRING0 ;

 private String connectionCallbackId ;
 + private boolean registered = false ;

 ConnectivityManager sockMan ;
 BroadcastReceiver receiver ;
 <nb> public class NetworkManager extends Plugin {
 }
 } ;
 cordova . getActivity ( ) . registerReceiver ( this . receiver , intentFilter ) ;
 + this . registered = true ;
 }

 }
 <nb> public class NetworkManager extends Plugin {
 COMMENT
 COMMENT
 public void onDestroy ( ) {
 - if ( this . receiver != null ) {
 + if ( this . receiver != null && this . registered ) {
 try {
 this . cordova . getActivity ( ) . unregisterReceiver ( this . receiver ) ;
 + this . registered = false ;
 } catch ( Exception e ) {
 Log . e ( LOG_TAG , STRING1 + e . getMessage ( ) , e ) ;
 }

Don t unregister the listener if it was never registered


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

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

 import NAMESPACE ;


<nb> public class ConfirmDeleteDialogFragment extends DialogFragment {
 if ( show != null && show . moveToFirst ( ) ) {
 showName = show . getString ( NUMBER0 ) ;
 }
 -
 - show . close ( ) ;
 + if ( show != null ) {
 + show . close ( ) ;
 + }

 AlertDialog . Builder builder = new AlertDialog . Builder ( getActivity ( ) )
 . setNegativeButton ( getString ( R . string . dontdelete_show ) , null ) ;


<nb> public final class GsmDataConnectionTracker extends DataConnectionTracker {
 Telephony . Carriers . CONTENT_URI , true , mApnObserver ) ;

 COMMENT
 - createDataConnection ( Phone . APN_TYPE_DEFAULT ) ;
 + int id = createDataConnection ( Phone . APN_TYPE_DEFAULT ) ;
 + mRetryMgr = mDataConnections . get ( id ) . getRetryMgr ( ) ;
 + mRetryMgr . resetRetryCount ( ) ;
 +
 broadcastMessenger ( ) ;
 }

Initialize mRetyMgr when constructing GsmDataConnectionTracker


<nb> public final class QueryAssertions
 log . info ( STRING0 , sourceCatalog , sourceSchema , nanosSince ( startTime ) . toString ( SECONDS ) ) ;
 }

 - public static void copyAllTables ( QueryRunner queryRunner , String sourceCatalog , String sourceSchema , Session session )
 - throws Exception
 - {
 - for ( QualifiedObjectName table : queryRunner . listTables ( session , sourceCatalog , sourceSchema ) ) {
 - if ( table . getObjectName ( ) . equalsIgnoreCase ( STRING1 ) ) {
 - continue ;
 - }
 - copyTable ( queryRunner , table , session ) ;
 - }
 - }
 -
 public static void copyTable ( QueryRunner queryRunner , String sourceCatalog , String sourceSchema , String sourceTable , Session session )
 throws Exception
 {

Remove unused method from QueryAssertions


<nb> public class WorkspaceAndProjectGenerator {
 projectFilesystem ,
 executionContext ,
 projectFilesystem . getPathForRelativePath ( Paths . get ( basePath ) ) ,
 - Paths . get ( basePath ) . getFileName ( ) . toString ( ) ,
 + xcodeProjectConfig . getProjectName ( ) ,
 ProjectGenerator . SEPARATED_PROJECT_OPTIONS ) ;
 generator . createXcodeProjects ( ) ;


<nb> import static NAMESPACE ;
 COMMENT
 COMMENT
 public class VimKeymapPanel {
 - private JComboBox < Keymap > myKeymapComboBox ;
 + private JComboBox myKeymapComboBox ;
 private JPanel myPanel ;

 public VimKeymapPanel ( final String parentKeymap ) {
 <nb> public class VimKeymapPanel {
 }
 }

 - myKeymapComboBox . setModel ( new DefaultComboBoxModel < Keymap > ( keymaps . toArray ( new Keymap [ keymaps . size ( ) ] ) ) ) ;
 + myKeymapComboBox . setModel ( new DefaultComboBoxModel ( keymaps . toArray ( new Keymap [ keymaps . size ( ) ] ) ) ) ;
 final ListCellRendererWrapper < Keymap > renderer = new ListCellRendererWrapper < Keymap > ( ) {
 @ override
 public void customize ( final JList list ,


<nb> public class TextureLoader extends AsynchronousAssetLoader < Texture , TextureLoade
 @ override
 public void loadAsync ( AssetManager manager , String fileName , FileHandle file , TextureParameter parameter ) {
 info . filename = fileName ;
 - if ( parameter == null || ( parameter != null && parameter . textureData == null ) ) {
 + if ( parameter == null || parameter . textureData == null ) {
 Pixmap pixmap = null ;
 Format format = null ;
 boolean genMipMaps = false ;


<nb> public interface Message {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 + @ deprecated
 String createExchangeId ( ) ;
 }
 <nb> public class JmsMessage extends DefaultMessage {
 }

 private String getSanitizedString ( Object value ) {
 - return value != null ? value . toString ( ) . replaceAll ( STRING0 , STRING1 ) : STRING2 ;
 - }
 -
 - @ override
 - public String createExchangeId ( ) {
 - if ( jmsMessage != null ) {
 - try {
 - return jmsMessage . getJMSMessageID ( ) ;
 - } catch ( JMSException e ) {
 - throw new RuntimeExchangeException ( STRING3 , getExchange ( ) , e ) ;
 - }
 - }
 - return super . createExchangeId ( ) ;
 + return value != null ? value . toString ( ) . replaceAll ( STRING4 , STRING1 ) : STRING2 ;
 }

 }

camel jms should use default exchange id instead of overriding and use JMSMessageID


<nb> public class StatusBarPolicy {
 iconId = sWifiSignalImages [ mLastWifiSignalLevel ] ;
 }

 + mService . setIcon ( STRING0 , iconId , NUMBER0 ) ;
 SINGLE
 mService . setIconVisibility ( STRING0 , true ) ;

 <nb> public class StatusBarPolicy {
 mIsWifiConnected = false ;
 iconId = sWifiSignalImages [ NUMBER0 ] ;

 + mService . setIcon ( STRING0 , iconId , NUMBER0 ) ;
 SINGLE
 mService . setIconVisibility ( STRING0 , false ) ;
 }

 - mService . setIcon ( STRING0 , iconId , NUMBER0 ) ;
 } else if ( action . equals ( WifiManager . RSSI_CHANGED_ACTION ) ) {
 int iconId ;
 final int newRssi = intent . getIntExtra ( WifiManager . EXTRA_NEW_RSSI , - NUMBER1 ) ;


<nb> public class XPrivacy implements IXposedHookLoadPackage , IXposedHookZygoteInit {
 SINGLE
 hookAll ( XUsageStatsManager . getInstances ( true ) , classLoader , mSecret , false ) ;

 + SINGLE
 + hookAll ( XWifiManager . getInstances ( null , true ) , classLoader , mSecret , false ) ;
 COMMENT
 COMMENT
 COMMENT


<nb> public class ClientModuleResolver implements DependencyToModuleVersionResolver {

 setClientModuleArtifact ( clientModuleMetaData ) ;

 - SINGLE
 result . setMetaData ( clientModuleMetaData ) ;
 }
 }
 <nb> public class DependencyGraphBuilder {
 return dependencyMetaData . getSelector ( ) ;
 }

 - SINGLE
 + SINGLE
 public ModuleVersionSelector getRequestedModuleVersion ( ) {
 return dependencyMetaData . getRequested ( ) ;
 }


<nb> public class PasswordAuthenticator extends Authenticator {

 @ override
 protected PasswordAuthentication getPasswordAuthentication ( ) {
 + if ( getRequestingURL ( ) == null ) {
 + return null ;
 + }
 String userInfo = getRequestingURL ( ) . getUserInfo ( ) ;
 if ( StringTools . isEmpty ( userInfo ) ) {
 return null ;

avoid NPE which can occur under some unclear conditions


<nb> public class TextureHelper extends AbstractBlenderHelper {
 SINGLE
 for ( String assetName : assetNames ) {
 try {
 - result = assetManager . loadTexture ( new TextureKey ( assetName ) ) ;
 + TextureKey key = new TextureKey ( assetName ) ;
 + key . setGenerateMips ( true ) ;
 + key . setAsCube ( false ) ;
 + result = assetManager . loadTexture ( key ) ;
 break ; SINGLE
 } catch ( AssetNotFoundException e ) {
 LOGGER . fine ( e . getLocalizedMessage ( ) ) ;

apply some defaults to blender loader texture key when loading from file


<nb> public interface JobProxy {
 public Job . Result executeJobRequest ( @ nonnull JobRequest request ) {
 long waited = System . currentTimeMillis ( ) - request . getScheduledAt ( ) ;
 String timeWindow ;
 - if ( JobApi . V_14 . equals ( request . getJobApi ( ) ) ) {
 + if ( request . isPeriodic ( ) ) {
 + timeWindow = STRING0 + JobUtil . timeToString ( request . getIntervalMs ( ) ) ;
 + } else if ( JobApi . V_14 . equals ( request . getJobApi ( ) ) ) {
 timeWindow = STRING1 + JobUtil . timeToString ( getAverageDelayMs ( request ) ) ;
 } else {
 timeWindow = String . format ( Locale . US , STRING2 , JobUtil . timeToString ( getStartMs ( request ) ) ,

Improve timing logging for periodic jobs


<nb> public class LineColumnReader extends BufferedReader {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 @ override
 public int read ( char [ ] chars , int startOffset , int length ) throws IOException {


<nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 + import NAMESPACE ;

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

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

 COMMENT
 COMMENT
 <nb> public class JaxpTest extends TestCase {

 LOG . debug ( STRING0 + source ) ;
 }
 +
 + public void testStreamSourceToDomSource ( ) throws Exception {
 + StreamSource streamSource = new StreamSource ( new StringReader ( STRING1 ) ) ;
 + DOMSource domSource = converter . convertTo ( DOMSource . class , streamSource ) ;
 + assertNotNull ( STRING2 , domSource ) ;
 +
 + LOG . debug ( STRING0 + domSource ) ;
 + }
 }

added an extra test case for StreamSource DOMSource


<nb> public class SimperiumUtils {
 private static Simperium mSimperium ;
 private static Bucket < Note > mNotesBucket ;
 private static Bucket < BucketObject > mMetaBucket ;
 -
 +
 public static Bucket < Note > getNotesBucket ( ) {
 return mNotesBucket ;
 }
 <nb> public class SimperiumUtils {
 meta . save ( ) ;
 }
 } catch ( BucketObjectMissingException e ) {
 - e . printStackTrace ( ) ;
 + AppLog . e ( AppLog . T . NOTIFS , STRING0 ) ;
 }
 }
 }


<nb> package NAMESPACE ;

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

Remove duplicate import of class SecureRandom


<nb> public class FrameworkNetworkSecurityPolicy extends libcore . net . NetworkSecurityP
 public boolean isCleartextTrafficPermitted ( ) {
 return mCleartextTrafficPermitted ;
 }
 +
 + @ override
 + public boolean isCleartextTrafficPermitted ( String hostname ) {
 + return isCleartextTrafficPermitted ( ) ;
 + }
 }
 <nb> public class NetworkSecurityPolicy {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class NetworkSecurityPolicy {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean isCleartextTrafficPermitted ( String hostname ) {
 + return libcore . net . NetworkSecurityPolicy . getInstance ( )
 + . isCleartextTrafficPermitted ( hostname ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add hostname aware isCleartextTrafficPermitted


<nb> public class SearchWidget extends Composite implements SearchDisplay
 {
 public void onKeyDown ( KeyDownEvent event )
 {
 - if ( ignore_ = ! ignore_ )
 - handler . onKeyDown ( event ) ;
 + handler . onKeyDown ( event ) ;
 }
 -
 - private boolean ignore_ = false ;
 } ) ;
 }


<nb> public final class NettyRemoteBlockReader implements RemoteBlockReader {
 . getClientChannelClass ( CHANNEL_TYPE ) ;
 SINGLE
 SINGLE
 + SINGLE
 private static final EventLoopGroup WORKER_GROUP = NettyUtils . createEventLoop ( CHANNEL_TYPE ,
 - TACHYON_CONF . getInt ( Constants . USER_NETTY_WORKER_THREADS , NUMBER0 ) , STRING0 , true ) ;
 + TACHYON_CONF . getInt ( Constants . USER_NETTY_WORKER_THREADS , NUMBER1 ) , STRING0 , true ) ;

 private final Bootstrap mClientBootstrap ;
 private final ClientHandler mHandler ;
 <nb> public final class NettyDataServer implements DataServer {
 private ServerBootstrap createBootstrapOfType ( final ChannelType type ) {
 final ServerBootstrap boot = new ServerBootstrap ( ) ;
 final int bossThreadCount = mTachyonConf . getInt ( Constants . WORKER_NETTY_BOSS_THREADS , NUMBER0 ) ;
 + SINGLE
 final int workerThreadCount = mTachyonConf . getInt ( Constants . WORKER_NETTY_WORKER_THREADS , NUMBER1 ) ;
 final EventLoopGroup bossGroup =
 NettyUtils . createEventLoop ( type , bossThreadCount , STRING1 , false ) ;


<nb> class ExitTransitionCoordinator extends ActivityTransitionCoordinator {
 getWindow ( ) . setBackgroundDrawable ( new ColorDrawable ( Color . BLACK ) ) ;
 }
 ActivityOptions options = ActivityOptions . makeSceneTransitionAnimation ( mActivity , this ,
 - mAllSharedElementNames , resultCode , data ) ;
 + mSharedElementNames , resultCode , data ) ;
 mActivity . convertToTranslucent ( new Activity . TranslucentConversionListener ( ) {
 @ override
 public void onTranslucentConversionComplete ( boolean drawComplete ) {

When returning transition only existing shared elements


<nb> public class ServerManagerTest

 queryNotifyLatch . await ( ) ;

 + Assert . assertEquals ( NUMBER0 , factory . getSegmentReferences ( ) . size ( ) ) ;
 +
 + for ( ReferenceCountingSegment referenceCountingSegment : factory . getSegmentReferences ( ) ) {
 + Assert . assertEquals ( NUMBER1 , referenceCountingSegment . getNumReferences ( ) ) ;
 + }
 +
 + queryWaitYieldLatch . countDown ( ) ;
 +
 Assert . assertTrue ( factory . getAdapters ( ) . size ( ) == NUMBER0 ) ;

 for ( SegmentForTesting segmentForTesting : factory . getAdapters ( ) ) {
 <nb> public class ServerManagerTest

 queryNotifyLatch . await ( ) ;

 - Assert . assertTrue ( factory . getSegmentReferences ( ) . size ( ) == NUMBER0 ) ;
 + Assert . assertEquals ( NUMBER0 , factory . getSegmentReferences ( ) . size ( ) ) ;

 for ( ReferenceCountingSegment referenceCountingSegment : factory . getSegmentReferences ( ) ) {
 Assert . assertEquals ( NUMBER0 , referenceCountingSegment . getNumReferences ( ) ) ;


<nb> public class ResourceHttpRequestHandler extends WebContentGenerator implements H
 COMMENT
 COMMENT
 public void setLocations ( List < Resource > locations ) {
 - Assert . notEmpty ( locations , STRING0 ) ;
 + Assert . notNull ( locations , STRING1 ) ;
 this . locations . clear ( ) ;
 this . locations . addAll ( locations ) ;
 }

Remove assertion making locations mandatory


<nb> public abstract class ConnectionService extends Service {

 COMMENT
 protected void removeConnection ( Connection connection ) {
 - String id = mIdByConnection . get ( connection ) ;
 connection . unsetConnectionService ( this ) ;
 connection . removeConnectionListener ( mConnectionListener ) ;
 - mConnectionById . remove ( mIdByConnection . get ( connection ) ) ;
 - mIdByConnection . remove ( connection ) ;
 - mAdapter . removeCall ( id ) ;
 + String id = mIdByConnection . get ( connection ) ;
 + if ( id != null ) {
 + mConnectionById . remove ( id ) ;
 + mIdByConnection . remove ( connection ) ;
 + mAdapter . removeCall ( id ) ;
 + }
 }

 private String addConferenceInternal ( Conference conference ) {

Add null pointer check in removeConnection


<nb> public class MultiReducedMetric implements IMetric {
 public Object getValueAndReset ( ) {
 Map ret = new HashMap ( ) ;
 for ( Map . Entry < String , ReducedMetric > e : _value . entrySet ( ) ) {
 - ret . put ( e . getKey ( ) , e . getValue ( ) . getValueAndReset ( ) ) ;
 + Object val = e . getValue ( ) . getValueAndReset ( ) ;
 + if ( val != null ) {
 + ret . put ( e . getKey ( ) , val ) ;
 + }
 }
 return ret ;
 }

ignore null values in MultiReducedMetric


<nb> public class TransportIndicesSegmentsAction extends TransportBroadcastOperationA
 return new ShardSegments ( indexShard . routingEntry ( ) , indexShard . engine ( ) . segments ( ) ) ;
 }

 - public static class IndexShardSegmentRequest extends BroadcastShardOperationRequest {
 + static class IndexShardSegmentRequest extends BroadcastShardOperationRequest {

 IndexShardSegmentRequest ( ) {
 }
 <nb> public class TransportIndicesStatsAction extends TransportBroadcastOperationActi
 return new ShardStats ( indexShard , flags ) ;
 }

 - public static class IndexShardStatsRequest extends BroadcastShardOperationRequest {
 + static class IndexShardStatsRequest extends BroadcastShardOperationRequest {

 SINGLE
 IndicesStatsRequest request ;

adjusted internal requests visibility from public to package private


<nb> public class Http2UpgradeHandler extends AbstractStream implements InternalHttpU
 target . flip ( ) ;
 ByteUtil . setThreeBytes ( header , NUMBER0 , target . limit ( ) ) ;
 if ( first ) {
 + first = false ;
 header [ NUMBER1 ] = FrameType . HEADERS . getIdByte ( ) ;
 if ( stream . getOutputBuffer ( ) . hasNoBody ( ) ) {
 header [ NUMBER2 ] = FLAG_END_OF_STREAM ;


<nb> public class LockAdvancedTest extends HazelcastTestSupport {
 t . start ( ) ;
 sleepMillis ( NUMBER0 ) ;
 t . interrupt ( ) ;
 - assertTrue ( latch . await ( NUMBER1 , TimeUnit . SECONDS ) ) ;
 + assertTrue ( latch . await ( NUMBER2 , TimeUnit . SECONDS ) ) ;
 }

 @ test

Increased timeout to make the test less fragile


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 <nb> public class JBList extends JList implements ComponentWithEmptyText , ComponentWi
 init ( ) ;
 }

 + @ override
 + protected void paintComponent ( Graphics g ) {
 + super . paintComponent ( g ) ;
 + myEmptyTextHelper . paint ( g ) ;
 + }
 +
 private void init ( ) {
 myEmptyTextHelper = new EmptyTextHelper ( this ) {
 @ override
 <nb> public class JBTable extends JTable implements ComponentWithEmptyText , Component
 boolean marker = Patches . SUN_BUG_ID_4503845 ; SINGLE
 }

 + @ override
 + protected void paintComponent ( Graphics g ) {
 + super . paintComponent ( g ) ;
 + myEmptyTextHelper . paint ( g ) ;
 + }
 +
 public static DefaultCellEditor createBooleanEditor ( ) {
 return new DefaultCellEditor ( new JCheckBox ( ) ) {
 {


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE
 COMMENT
 COMMENT
 COMMENT
 - class SpringFlushSynchronization extends TransactionSynchronizationAdapter {
 + public class SpringFlushSynchronization extends TransactionSynchronizationAdapter {

 private final Session session ;

 <nb> import NAMESPACE
 COMMENT
 COMMENT
 COMMENT
 - class SpringSessionSynchronization implements TransactionSynchronization , Ordered {
 + public class SpringSessionSynchronization implements TransactionSynchronization , Ordered {

 private final SessionHolder sessionHolder ;

 <nb> class SpringSessionSynchronization implements TransactionSynchronization , Ordere
 private boolean holderActive = true ;

 + public SpringSessionSynchronization ( SessionHolder sessionHolder , SessionFactory sessionFactory ) {
 + this ( sessionHolder , sessionFactory , false ) ;
 + }
 +
 public SpringSessionSynchronization ( SessionHolder sessionHolder , SessionFactory sessionFactory , boolean newSession ) {
 this . sessionHolder = sessionHolder ;
 this . sessionFactory = sessionFactory ;
 this . newSession = newSession ;
 }

 +
 private Session getCurrentSession ( ) {
 return this . sessionHolder . getSession ( ) ;
 }

Reintroduced original SpringSessionSynchronization constructor and made SpringSession FlushSynchronization public for GORM


<nb> public class BufferedRandomAccessFile extends RandomAccessFile implements FileDa
 throw new IllegalArgumentException ( STRING0 ) ;

 if ( isReadOnly ( ) && newPosition > fileLength )
 - throw new EOFException ( STRING1 + filePath + STRING2 ) ;
 + throw new EOFException ( String . format ( STRING3 ,
 + newPosition , filePath , fileLength ) ) ;

 current = newPosition ;


<nb> public class PackageManagerService extends IPackageManager . Stub {
 pkgs = PackageManagerServiceUtils . getPackagesForDexopt ( mPackages . values ( ) , this ) ;
 }

 - UsageStatsManager usageMgr =
 - ( UsageStatsManager ) mContext . getSystemService ( Context . USAGE_STATS_SERVICE ) ;
 -
 int curr = NUMBER0 ;
 int total = pkgs . size ( ) ;
 for ( PackageParser . Package pkg : pkgs ) {
 <nb> public class PackageManagerService extends IPackageManager . Stub {
 continue ;
 }

 - if ( ! causeFirstBoot && usageMgr . isAppInactive ( pkg . packageName ) ) {
 - if ( DEBUG_DEXOPT ) {
 - Log . i ( TAG , STRING0 + pkg . packageName ) ;
 - }
 - continue ;
 - }
 -
 if ( DEBUG_DEXOPT ) {
 Log . i ( TAG , STRING1 + curr + STRING2 + total + STRING3 + pkg . packageName ) ;
 }

Remove UsageStats post OTA package update filter


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class RuleActivatorMediumTest {
 }

 @ test
 + @ ignore
 public void reset_activation_on_child_profile ( ) throws Exception {
 grantPermission ( ) ;
 createChildProfiles ( ) ;

fix quality flaw ignore not implemented functionality test


<nb> public class JettyPlugin implements ProfilerPlugin , JettyConstants {
 private void addServerInterceptor ( ProfilerPluginContext context , JettyConfiguration config ) {
 ClassFileTransformerBuilder builder = context . getClassFileTransformerBuilder ( STRING0 ) ;
 builder . injectInterceptor ( STRING1 , config . getJettyExcludeUrlFilter ( ) ) ;
 - builder . injectMetadata ( METADATA_TRACE ) ;
 + SINGLE
 context . addClassFileTransformer ( builder . build ( ) ) ;
 }
 }


<nb> package NAMESPACE ;

 SINGLE

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class BasicBSONObject extends LinkedHashMap < String , Object > implements BSO
 COMMENT
 COMMENT
 public String toString ( ) {
 - return com . mongodb . util . JSON . serialize ( this ) ;
 + return JSONSerializers . getStrict ( ) . serialize ( this ) ;
 }

 COMMENT
 <nb> public class BasicBSONObject extends LinkedHashMap < String , Object > implements BSO
 return new BasicBSONEncoder ( ) . encode ( this ) ;
 }

 + private BSONObject decode ( final byte [ ] encodedBytes ) {
 + return new BasicBSONDecoder ( ) . readObject ( encodedBytes ) ;
 + }
 +
 SINGLE
 private static BasicBSONObject canonicalize ( final BSONObject from ) {
 BasicBSONObject canonicalized = new BasicBSONObject ( ) ;

Use strict JSON serializer in BasicBSONObject toString


<nb> public class CloudGitDeploymentRuntime extends CloudDeploymentRuntime {
 }

 protected void commit ( ) throws ServerRuntimeException {
 + commit ( COMMIT_MESSAGE ) ;
 + }
 +
 + protected void commit ( String message ) throws ServerRuntimeException {
 try {
 if ( GitUtil . hasLocalChanges ( true , getProject ( ) , myContentRoot ) ) {
 GitSimpleHandler handler = new GitSimpleHandler ( getProject ( ) , myContentRoot , GitCommand . COMMIT ) ;
 handler . setSilent ( false ) ;
 handler . setStdoutSuppressed ( false ) ;
 - handler . addParameters ( STRING0 , COMMIT_MESSAGE ) ;
 + handler . addParameters ( STRING0 , message ) ;
 handler . endOptions ( ) ;
 handler . run ( ) ;
 }

update java sample to prevent jsp compilation failure


<nb> public class IcedBitSet extends Iced {
 for ( int i = NUMBER0 ; i < bytes ; i ++ ) {
 if ( i > NUMBER0 ) sb . p ( STRING0 ) ;
 for ( int j = NUMBER0 ; j < NUMBER1 ; j ++ )
 - sb . p ( ( _val [ i ] > > j ) & NUMBER2 ) ;
 + sb . p ( ( _val [ _byteoff + i ] > > j ) & NUMBER2 ) ;
 }
 return sb . p ( STRING1 ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class VcsDirectoryConfigurationPanel extends PanelWithButtons implements
 VcsRootErrorLabel ( String title ) {
 super ( new BorderLayout ( DEFAULT_HGAP , DEFAULT_VGAP ) ) ;

 - setBorder ( BorderFactory . createCompoundBorder ( BorderFactory . createMatteBorder ( NUMBER0 , NUMBER1 , NUMBER0 , NUMBER1 , UIUtil . getPanelBackground ( ) ) ,
 - BorderFactory . createLineBorder ( UIUtil . getPanelBackground ( ) . darker ( ) ) ) ) ;
 + CompoundBorder outsideBorder = BorderFactory . createCompoundBorder ( BorderFactory . createMatteBorder ( NUMBER0 , NUMBER1 , NUMBER0 , NUMBER1 , UIUtil . getPanelBackground ( ) ) ,
 + BorderFactory . createLineBorder ( UIUtil . getPanelBackground ( ) . darker ( ) ) ) ;
 + setBorder ( BorderFactory . createCompoundBorder ( outsideBorder , BorderFactory . createEmptyBorder ( DEFAULT_VGAP , DEFAULT_HGAP ,
 + DEFAULT_VGAP , DEFAULT_HGAP ) ) ) ;
 setOpaque ( true ) ;
 setBackground ( new Color ( NUMBER2 , NUMBER3 , NUMBER4 ) ) ;

Padding in root error label in Settings Version Control


<nb> public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
 protected void markBeanAsCreated ( String beanName ) {
 if ( ! this . alreadyCreated . contains ( beanName ) ) {
 synchronized ( this . mergedBeanDefinitions ) {
 - if ( this . alreadyCreated . add ( beanName ) ) {
 + if ( ! this . alreadyCreated . contains ( beanName ) ) {
 SINGLE
 SINGLE
 clearMergedBeanDefinition ( beanName ) ;
 + this . alreadyCreated . add ( beanName ) ;
 }
 }
 }
 <nb> public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
 COMMENT
 COMMENT
 protected void cleanupAfterBeanCreationFailure ( String beanName ) {
 - this . alreadyCreated . remove ( beanName ) ;
 + synchronized ( this . mergedBeanDefinitions ) {
 + this . alreadyCreated . remove ( beanName ) ;
 + }
 }

 COMMENT

AbstractBeanFactory consistently guards add remove operations against alreadyCreated Set


<nb> public final class Const {
 STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5
 } ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final long MAX_INT_IN_DOUBLE = NUMBER0 ;
 }

Add Const MAX_INT_IN_DOUBLE used to fix the rate calculation bug


<nb> public class MinimumMasterNodesTests extends AbstractZenNodesTests {
 logger . info ( STRING0 ) ;
 startNode ( nonMasterNodeName , settings ) ;

 - clusterHealthResponse = client ( STRING1 ) . admin ( ) . cluster ( ) . prepareHealth ( ) . setWaitForNodes ( STRING2 ) . execute ( ) . actionGet ( ) ;
 + Thread . sleep ( NUMBER0 ) ;
 +
 + clusterHealthResponse = client ( STRING1 ) . admin ( ) . cluster ( ) . prepareHealth ( ) . setWaitForNodes ( STRING2 ) . setWaitForGreenStatus ( ) . execute ( ) . actionGet ( ) ;
 assertThat ( clusterHealthResponse . timedOut ( ) , equalTo ( false ) ) ;

 state = client ( STRING1 ) . admin ( ) . cluster ( ) . prepareState ( ) . setLocal ( true ) . execute ( ) . actionGet ( ) . state ( ) ;

improve test wait for green state post master node startup


<nb> public interface SynthesisCallback {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class Table implements TableOrView {
 throw new RuntimeException ( STRING0 + String . valueOf ( colTypes [ ( int ) columnIndex ] ) ) ;
 }
 }
 - this . internal . insertDone ( ) ;
 + SINGLE
 + nativeInsertDone ( nativePtr ) ;
 +
 }

 private void insertSubtableValues ( long rowIndex , long columnIndex , Object value ) {


<nb> class NettyClientHandler extends Http2ConnectionHandler {
 stream . transportReportStatus ( Status . UNKNOWN , false , new Metadata . Trailers ( ) ) ;
 }

 - @ override
 - public void close ( ChannelHandlerContext ctx , ChannelPromise promise ) throws Exception {
 - goAwayStatus ( Status . UNAVAILABLE . withDescription ( STRING0 ) ) ;
 - super . close ( ctx , promise ) ;
 - }
 -
 COMMENT
 COMMENT
 COMMENT


<nb> public class BoundedOverheadBlockStore implements BlockStore {
 SINGLE
 SINGLE
 SINGLE
 - private final StoredBlock notFoundMarker = new StoredBlock ( null , null , - NUMBER0 ) ;
 + private static final StoredBlock notFoundMarker = new StoredBlock ( null , null , - NUMBER0 ) ;
 private LinkedHashMap < Sha256Hash , StoredBlock > notFoundCache = new LinkedHashMap < Sha256Hash , StoredBlock > ( ) {
 @ override
 protected boolean removeEldestEntry ( Map . Entry < Sha256Hash , StoredBlock > entry ) {


<nb>
 COMMENT
 COMMENT

 + package NAMESPACE ;
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - package NAMESPACE ;
 +


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DefaultGradleLauncherFactory implements GradleLauncherFactory {
 listenerManager . addListener ( new ProfileListener ( requestMetaData . getBuildTimeClock ( ) . getStartTime ( ) ) ) ;
 }

 - DefaultGradle gradle = new DefaultGradle (
 - tracker . getCurrentBuild ( ) ,
 - startParameter , serviceRegistry ) ;
 + GradleInternal gradle = serviceRegistry . get ( Instantiator . class ) . newInstance ( DefaultGradle . class , tracker . getCurrentBuild ( ) , startParameter , serviceRegistry ) ;
 return new DefaultGradleLauncher (
 gradle ,
 serviceRegistry . get ( InitScriptHandler . class ) ,


<nb> public class EmulatorView extends View implements GestureDetector . OnGestureListe
 COMMENT
 private void createLinks ( char [ ] text , int row )
 {
 - if ( text == null || row < NUMBER0 )
 + if ( text == null )
 return ;

 + SINGLE
 + row -= mTopRow ;
 +
 SpannableStringBuilder textLine = new SpannableStringBuilder ( new String ( text ) ) ;
 Linkify . addLinks ( textLine , Linkify . WEB_URLS ) ;
 URLSpan [ ] spans = textLine . getSpans ( NUMBER0 , mColumns , URLSpan . class ) ;

Added support for links at any point in transcript


<nb> public class LookupManagerImpl extends LookupManager implements ProjectComponent
 }

 public static boolean isUseNewSorting ( ) {
 - return SmartCodeCompletionAction . isDoingSmartCodeCompleteAction ( ) && STRING0 . equals ( System . getProperty ( STRING1 ) ) ;
 + return SmartCodeCompletionAction . isDoingSmartCodeCompleteAction ( ) ;
 }

 protected boolean shouldSortItems ( final PsiFile containingFile , final LookupItem [ ] items ) {


<nb>

 package NAMESPACE ;

 - import static NAMESPACE ;

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

 + import static NAMESPACE ;
 + import static NAMESPACE ;
 +
 @ runwith ( Parameterized . class )
 public class SearchSanityTest extends MahoutTestCase {
 private static final int NUM_DATA_POINTS = NUMBER0 < < NUMBER1 ;

Removed import and replaced by explicit imports


<nb> public class ContextTools {
 return sb . toString ( ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 public void setErrorMarkerStart ( String errorMarkerStart ) {
 this . errorMarkerStart = errorMarkerStart ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 public void setErrorMarkerEnd ( String errorMarkerEnd ) {
 this . errorMarkerEnd = errorMarkerEnd ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void setContextSize ( int contextSize ) {
 this . contextSize = contextSize ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 public void setEscapeHtml ( boolean escapeHtml ) {
 this . escapeHtml = escapeHtml ;
 }


<nb> public class GetGlue {

 private static final String GETGLUE_APIPATH_V2 = STRING0 ;

 - private static final String GETGLUE_SOURCE = STRING1 ;
 + private static final String GETGLUE_SOURCE = STRING2 ;

 public static final String REQUEST_URL = STRING3 ;


<nb> public class OtpsSPT {
 return individual . eval ( spt , sampleFactory ) ;
 }

 + public double getOriginLatitude ( ) {
 + return spt . getOptions ( ) . rctx . origin . getLat ( ) ;
 + }
 +
 + public double getOriginLongitude ( ) {
 + return spt . getOptions ( ) . rctx . origin . getLon ( ) ;
 + }
 +
 public List < OtpsEvaluatedIndividual > eval ( Iterable < OtpsIndividual > population ) {
 List < OtpsEvaluatedIndividual > retval = new ArrayList < > ( ) ; SINGLE
 for ( OtpsIndividual individual : population ) {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Application implements ApplicationEventHandlers ,
 view_ . hideSerializationProgress ( ) ;
 break ;
 }
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + RSAEncrypt . clearCache ( ) ;
 }

 private String getSuffix ( SessionSerializationEvent event )
 <nb> public class RSAEncrypt
 }
 } ) ;
 }
 +
 + public static void clearCache ( )
 + {
 + publicKeyInfo_ = null ;
 + }

 private static native String encrypt ( String value ,
 String exponent ,

clear rsa encrypt cache on session serialization


<nb> public class GLM extends ModelBuilder < GLMModel , GLMParameters , GLMOutput > {
 throw new NonSPDMatrixException ( STRING0 + Arrays . toString ( ArrayUtils . select ( _dinfo . coefNames ( ) , collinear_cols ) ) ) ;
 }
 if ( ! chol . isSPD ( ) ) throw new NonSPDMatrixException ( ) ;
 + _chol = chol ;
 if ( ! ignoredCols . isEmpty ( ) ) { SINGLE
 int [ ] collinear_cols = new int [ ignoredCols . size ( ) ] ;
 for ( int i = NUMBER0 ; i < collinear_cols . length ; ++ i )


<nb> public class ReaderPostAdapter extends RecyclerView . Adapter < ReaderPostAdapter . Re
 int cardSpacing = context . getResources ( ) . getDimensionPixelSize ( R . dimen . reader_card_spacing ) ;
 mPhotonWidth = displayWidth - ( cardSpacing * NUMBER0 ) ;
 mPhotonHeight = context . getResources ( ) . getDimensionPixelSize ( R . dimen . reader_featured_image_height ) ;
 +
 + setHasStableIds ( true ) ;
 }

 public void setOnPostSelectedListener ( ReaderInterfaces . OnPostSelectedListener listener ) {

Added setHasStableIds true to ReaderPostAdapter


<nb> public class ProcessDiagramCanvas {

 SINGLE
 protected static Color TASK_BOX_COLOR = new Color ( NUMBER0 , NUMBER0 , NUMBER1 ) ;
 - protected static Paint TASK_COLOR = new GradientPaint ( NUMBER2 , NUMBER3 , Color . white , NUMBER2 , NUMBER4 , new Color ( NUMBER0 , NUMBER0 , NUMBER1 ) ) ;
 protected static Color BOUNDARY_EVENT_COLOR = new Color ( NUMBER0 , NUMBER0 , NUMBER0 ) ;
 protected static Color CONDITIONAL_INDICATOR_COLOR = new Color ( NUMBER0 , NUMBER0 , NUMBER0 ) ;
 protected static Color HIGHLIGHT_COLOR = Color . RED ;


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SurroundAction extends AbstractGuiEditorAction {
 newConstraints . setRowSpan ( rc . height ) ;
 newConstraints . setColSpan ( rc . width ) ;
 }
 + else if ( selectionParent . getLayout ( ) instanceof XYLayoutManager && selection . size ( ) == NUMBER0 ) {
 + newContainer . setBounds ( selection . get ( NUMBER1 ) . getBounds ( ) ) ;
 + }

 if ( selection . size ( ) == NUMBER0 ) {
 newContainer . setCustomLayoutConstraints ( selection . get ( NUMBER1 ) . getCustomLayoutConstraints ( ) ) ;

surround with for top level container keeps bounds


<nb> public class RepositoryBrowserDialog extends DialogWrapper {

 protected void doCheckout ( ) {
 SVNURL url = getRepositoryBrowser ( ) . getSelectedNode ( ) . getURL ( ) ;
 - final File dir = selectFile ( STRING0 , STRING1 ) ;
 + File dir = selectFile ( STRING0 , STRING1 ) ;
 if ( dir == null ) {
 return ;
 }
 Project p = myProject ;
 CheckoutOptionsDialog dialog = new CheckoutOptionsDialog ( p , url , dir ) ;
 + dir = dialog . getTarget ( ) ;
 dialog . show ( ) ;
 if ( dialog . isOK ( ) ) {
 SvnCheckoutProvider . doCheckout ( myVCS . getProject ( ) , dir , url . toString ( ) , dialog . isRecursive ( ) , dialog . isIgnoreExternals ( ) ) ;


<nb> public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler
 loop:
 for ( ; ; ) {
 SSLEngineResult result ;
 + boolean needsNonAppWrap = false ;
 synchronized ( handshakeLock ) {
 if ( initialHandshake && ! engine . getUseClientMode ( ) &&
 ! engine . isInboundDone ( ) && ! engine . isOutboundDone ( ) ) {
 <nb> public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler
 break loop ;
 }
 case NEED_WRAP :
 - wrapNonAppData ( ctx , channel ) ;
 + SINGLE
 + SINGLE
 + needsNonAppWrap = true ;
 break ;
 case NEED_TASK :
 runDelegatedTasks ( ) ;
 <nb> public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler
 result . getHandshakeStatus ( ) ) ;
 }
 }
 +
 + if ( needsNonAppWrap ) {
 + wrapNonAppData ( ctx , channel ) ;
 + }
 }

 if ( needsWrap ) {


<nb> public class JoinNode
 private final Symbol left ;
 private final Symbol right ;

 + @ jsoncreator
 public EquiJoinClause ( @ jsonproperty ( STRING0 ) Symbol left , @ jsonproperty ( STRING1 ) Symbol right )
 {
 Preconditions . checkNotNull ( left , STRING2 ) ;


<nb> public interface XmlRpcServer {
 boolean hasHandler ( String name ) ;
 void removeHandler ( String name ) ;

 - COMMENT
 - COMMENT
 - COMMENT
 - int getPortNumber ( ) ;
 -
 final class SERVICE {
 private SERVICE ( ) {
 }
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class XmlRpcServerImpl extends SimpleChannelUpstreamHandler implements Xm
 pipeline . addLast ( STRING0 , this ) ;
 }

 - public int getPortNumber ( ) {
 - return WebServerManager . getInstance ( ) . getPort ( ) ;
 - }
 -
 @ override
 public boolean hasHandler ( String name ) {
 return handlerMapping . handlers . containsKey ( name ) ;


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

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


<nb> public class LdapConnector {
 }

 for ( Attribute attribute : e . getAttributes ( ) ) {
 - if ( activeDirectory && attribute . getId ( ) . equalsIgnoreCase ( STRING0 ) ) {
 + if ( activeDirectory && STRING0 . equalsIgnoreCase ( attribute . getId ( ) ) ) {
 ldapEntry . setBindPrincipal ( attribute . getString ( ) ) ;
 }
 if ( attribute . isHumanReadable ( ) ) {


<nb> public class ProcessEngineImpl implements ProcessEngine {

 if ( DbSchemaStrategy . CREATE_DROP == dbSchemaStrategy
 || DbSchemaStrategy . CREATE == dbSchemaStrategy ) {
 - if ( DbSchemaStrategy . CREATE_DROP == dbSchemaStrategy ) {
 - try {
 - persistenceSessionFactory . dbSchemaDrop ( ) ;
 - } catch ( RuntimeException e ) {
 - SINGLE
 - }
 - }
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 persistenceSessionFactory . dbSchemaCreate ( ) ;
 } else if ( DbSchemaStrategy . CHECK_VERSION == dbSchemaStrategy ) {
 persistenceSessionFactory . dbSchemaCheckVersion ( ) ;

Removed stacktraces from logging when creating database schema in tests


<nb> final class Constants {
 SINGLE
 static final String PROPERTY_DEVICE_TYPE = STRING0 ;

 + SINGLE
 + SINGLE
 + static final String PROPERTY_WAKE_ON_HOTPLUG = STRING1 ;
 +
 SINGLE
 SINGLE
 static final String PROPERTY_KEEP_AWAKE = STRING2 ;
 <nb> import NAMESPACE ;
 final class HdmiCecLocalDevicePlayback extends HdmiCecLocalDevice {
 private static final String TAG = STRING3 ;

 + private static final boolean WAKE_ON_HOTPLUG =
 + SystemProperties . getBoolean ( Constants . PROPERTY_WAKE_ON_HOTPLUG , true ) ;
 +
 private boolean mIsActiveSource = false ;

 SINGLE
 <nb> final class HdmiCecLocalDevicePlayback extends HdmiCecLocalDevice {
 assertRunOnServiceThread ( ) ;
 mCecMessageCache . flushAll ( ) ;
 SINGLE
 - if ( connected && mService . isPowerStandbyOrTransient ( ) ) {
 + if ( WAKE_ON_HOTPLUG && connected && mService . isPowerStandbyOrTransient ( ) ) {
 mService . wakeUp ( ) ;
 }
 if ( ! connected ) {


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 - @ retention ( RUNTIME ) @ target ( FIELD )
 + @ retention ( CLASS ) @ target ( FIELD )
 public @ interface InjectView {
 int value ( ) ;
 }

Reduce the retention of the annotation to compile time only


<nb> public final class Settings {
 public static final String SMS_SHORT_CODE_RULE = STRING0 ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String TCP_DEFAULT_INIT_RWND = STRING1 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ConnectivityService extends IConnectivityManager . Stub {
 }
 setBufferSize ( bufferSizes ) ;
 }
 +
 + final String defaultRwndKey = STRING2 ;
 + int defaultRwndValue = SystemProperties . getInt ( defaultRwndKey , NUMBER0 ) ;
 + Integer rwndValue = Settings . Global . getInt ( mContext . getContentResolver ( ) ,
 + Settings . Global . TCP_DEFAULT_INIT_RWND , defaultRwndValue ) ;
 + final String sysctlKey = STRING3 ;
 + if ( rwndValue != NUMBER0 ) {
 + SystemProperties . set ( sysctlKey , rwndValue . toString ( ) ) ;
 + }
 }

 COMMENT


<nb> public final class UsbAlsaManager {

 UsbAudioDevice audioDevice = mAudioDevices . remove ( usbDevice ) ;
 if ( audioDevice != null ) {
 - if ( audioDevice . mHasPlayback || audioDevice . mHasPlayback ) {
 + if ( audioDevice . mHasPlayback || audioDevice . mHasCapture ) {
 notifyDeviceState ( audioDevice , false ) ;

 SINGLE

Fixed capture only devices not removed when disconnected


<nb> public class Antlr4Mojo extends AbstractMojo {
 }

 URI relativePath = project . getBasedir ( ) . toURI ( ) . relativize ( outputFile . toURI ( ) ) ;
 - getLog ( ) . info ( STRING0 + relativePath ) ;
 + getLog ( ) . debug ( STRING0 + relativePath ) ;
 FileWriter fw = new FileWriter ( outputFile ) ;
 return new BufferedWriter ( fw ) ;
 }


<nb> public class ClientCapabilities
 try
 {
 ( ( ListeningPointExt ) lp )
 - . sendHeartbeat ( address . getHostString ( ) ,
 + . sendHeartbeat ( address . getAddress ( ) . getHostAddress ( ) ,
 address . getPort ( ) ) ;
 }
 catch ( IOException e )

Always use the IP for the CRLF heartbeat


<nb> public class ExtractMethodDialog extends AbstractExtractDialog {
 myVariableData = inputVariables ;
 myHelpId = helpId ;
 mySignature = new MethodSignatureComponent ( STRING0 , project , JavaFileType . INSTANCE ) ;
 + mySignature . setPreferredSize ( new Dimension ( - NUMBER0 , NUMBER1 ) ) ;
 setTitle ( title ) ;

 SINGLE


<nb> public class OHazelcastPlugin extends ODistributedAbstractPlugin implements Memb
 if ( cfg == null )
 return ;

 - if ( iDatabase instanceof ODatabase < ? > && ! ( iDatabase . getStorage ( ) instanceof ODistributedStorage ) ) {
 + if ( iDatabase instanceof ODatabase < ? >
 + && ( ! ( iDatabase . getStorage ( ) instanceof ODistributedStorage ) || ( ( ODistributedStorage ) iDatabase . getStorage ( ) )
 + . getDistributedManager ( ) . isOffline ( ) ) ) {
 ODistributedStorage storage = storages . get ( iDatabase . getURL ( ) ) ;
 if ( storage == null ) {
 storage = new ODistributedStorage ( serverInstance , ( OAbstractPaginatedStorage ) iDatabase . getStorage ( ) ) ;

fixed problem with restarting a distributed server on the same JVM mostly test purpose


<nb> public final class FileSystemMaster extends AbstractMaster {
 try {
 return loadMetadataAndJournal ( inodePath , options ) ;
 } catch ( Exception e ) {
 - LOG . error ( STRING0 , inodePath . getUri ( ) ) ;
 + SINGLE
 + SINGLE
 + LOG . debug ( STRING1 , inodePath . getUri ( ) ) ;
 }
 }
 return AsyncJournalWriter . INVALID_FLUSH_COUNTER ;

SMALLFIX Move a master log message from error to debug


<nb> public final class ActFmSyncService {
 taskPushThreads . incrementAndGet ( ) ;
 try {
 Task t = taskDao . fetch ( fileMetadata . getValue ( Metadata . TASK ) , Task . REMOTE_ID ) ;
 - if ( t == null || t . getValue ( Task . REMOTE_ID ) <= NUMBER0 )
 + if ( t == null || t . getValue ( Task . REMOTE_ID ) == null || t . getValue ( Task . REMOTE_ID ) <= NUMBER0 )
 return ;
 if ( fileMetadata . getValue ( FileMetadata . DELETION_DATE ) > NUMBER0 )
 deleteAttachment ( fileMetadata ) ;

Fixed a potential crash when trying to upload attachments for an unsynced task


<nb> public abstract class ClassBrowser extends BrowseModuleValueActionListener {

 public static NoFilterException moduleDoesntExist ( final ConfigurationModuleSelector moduleSelector ) {
 final Project project = moduleSelector . getProject ( ) ;
 + final String moduleName = moduleSelector . getModuleName ( ) ;
 return new NoFilterException ( new MessagesEx . MessageInfo (
 project ,
 - ExecutionBundle . message ( STRING0 , moduleSelector . getModuleName ( ) , project . getName ( ) ) ,
 + moduleName . isEmpty ( ) ? STRING1 : ExecutionBundle . message ( STRING0 , moduleName , project . getName ( ) ) ,
 ExecutionBundle . message ( STRING2 ) ) ) ;
 }
 }


<nb> public class MagicLinkSignInActivity extends SignInActivity
 getSignInFragment ( ) . setToken ( STRING0 ) ;
 }
 } ) ;
 + mProgressDialog . show ( ) ;
 }

 private void saveEmailToAccount ( String email ) {


<nb> public class EFragmentHolder extends EComponentWithViewSupportHolder implements

 private void setFindViewById ( ) {
 JMethod findViewById = generatedClass . method ( PUBLIC , classes ( ) . VIEW , STRING0 ) ;
 + findViewById . annotate ( Override . class ) ;
 +
 JVar idParam = findViewById . param ( codeModel ( ) . INT , STRING1 ) ;

 JBlock body = findViewById . body ( ) ;
 <nb> public class EFragmentHolder extends EComponentWithViewSupportHolder implements
 onDetachBeforeSuperBlock = onDetachBody . block ( ) ;
 onDetachBody . invoke ( _super ( ) , onDetach ) ;
 }
 -
 +
 private void setOnStop ( ) {
 JMethod onStop = generatedClass . method ( PUBLIC , codeModel ( ) . VOID , STRING2 ) ;
 onStop . annotate ( Override . class ) ;

Add missing Override annotation for generated fragments


<nb> final class LoadAndDisplayImageTask implements Runnable , IoUtils . CopyListener {
 private static final String LOG_TASK_INTERRUPTED = STRING0 ;

 private static final String ERROR_PRE_PROCESSOR_NULL = STRING1 ;
 - private static final String ERROR_POST_PROCESSOR_NULL = STRING1 ;
 + private static final String ERROR_POST_PROCESSOR_NULL = STRING2 ;
 private static final String ERROR_PROCESSOR_FOR_DISC_CACHE_NULL = STRING3 ;

 private static final int BUFFER_SIZE = NUMBER0 * NUMBER1 ; SINGLE


<nb> public class DebugTimer {
 root . dump ( NUMBER0 ) ;

 if ( pClear ) {
 - this . mDebugTimes . clear ( ) ;
 - this . init ( root . mLabel ) ;
 + this . clear ( ) ;
 }
 }

 + public void clear ( ) {
 + final DebugTime root = this . mDebugTimes . firstElement ( ) ;
 + this . mDebugTimes . clear ( ) ;
 + this . init ( root . mLabel ) ;
 + }
 +
 SINGLE
 SINGLE
 SINGLE


<nb> public class FileUploader extends Service implements OnDatatransferProgressListe
 COMMENT
 private void saveUploadedFile ( ) {
 OCFile file = mCurrentUpload . getFile ( ) ;
 + if ( file . fileExists ( ) ) {
 + file = mStorageManager . getFileById ( file . getFileId ( ) ) ;
 + }
 long syncDate = System . currentTimeMillis ( ) ;
 file . setLastSyncDateForData ( syncDate ) ;

Fixed local state of file after a successful reupload


<nb> public final class Intrinsics {
 }

 private void declareStringIntrinsics ( ) {
 - PropertyDescriptor lengthProperty =
 + SINGLE
 + PropertyDescriptor stringLengthProperty =
 + getPropertyByName ( library . getString ( ) . getDefaultType ( ) . getMemberScope ( ) , STRING0 ) ;
 + functionIntrinsics . put ( stringLengthProperty . getGetter ( ) , lengthPropertyIntrinsic ) ;
 + PropertyDescriptor charSequenceLengthProperty =
 getPropertyByName ( library . getCharSequence ( ) . getDefaultType ( ) . getMemberScope ( ) , STRING0 ) ;
 - functionIntrinsics . put ( lengthProperty . getGetter ( ) , new BuiltInPropertyIntrinsic ( STRING0 ) ) ;
 + functionIntrinsics . put ( charSequenceLengthProperty . getGetter ( ) , lengthPropertyIntrinsic ) ;
 FunctionDescriptor getFunction =
 getFunctionByName ( library . getString ( ) . getDefaultType ( ) . getMemberScope ( ) , STRING1 ) ;
 functionIntrinsics . put ( getFunction , CharAtIntrinsic . INSTANCE ) ;


<nb>
 package NAMESPACE ;

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

 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 @ listeners ( {
 - ReproduceInfoPrinter . class
 + ReproduceInfoPrinter . class ,
 + LoggingListener . class
 } )
 @ threadleakscope ( Scope . SUITE )
 @ threadleaklingering ( linger = NUMBER0 ) SINGLE

add LoggingListener to ElasticsearchLuceneTestCase


<nb> public final class Constant {
 }

 public static boolean isDevBuild ( ) {
 + return isDevBuild ( PROGRAM_VERSION ) ;
 + }
 +
 + public static boolean isDevBuild ( String version ) {
 SINGLE
 - return PROGRAM_VERSION . equals ( DEV_VERSION ) ;
 + return DEV_VERSION . equals ( version ) ;
 }

 public static boolean isDailyBuild ( String version ) {
 <nb> public class CheckForUpdates extends SwingWorker < String , String > {

 private boolean isNewerVersion ( String progVersionStr , String latestVersionStr , boolean checkDaily ) {
 boolean newerVersion = false ;
 - if ( Constant . isDailyBuild ( progVersionStr ) ) {
 + if ( Constant . isDevBuild ( progVersionStr ) ) {
 return false ;
 } else if ( checkDaily && Constant . isDailyBuild ( ) ) {
 SINGLE


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

 <nb> package NAMESPACE ;

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

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

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

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


<nb> public abstract class RectangularShape extends Shape {
 SINGLE
 SINGLE

 - protected final float mBaseWidth ;
 - protected final float mBaseHeight ;
 + protected float mBaseWidth ;
 + protected float mBaseHeight ;

 protected float mWidth ;
 protected float mHeight ;

Fixed text having wrong width height set RectangularShape needs mBaseWidth mBaseHeight as no more final


<nb> public class DevicePolicyManager {
 COMMENT
 COMMENT
 public static final String ACTION_PROVISIONING_USER_HAS_CONSENTED
 - = STRING0 ;
 + = STRING1 ;

 COMMENT
 COMMENT

Changing the value of the user consent extra in DevicePolicyManager


<nb> public class DividerView extends FrameLayout implements OnTouchListener ,
 int position = DockedDividerUtils . calculatePositionForBounds ( event . initialRect ,
 mDockSide , mDividerSize ) ;
 mEntranceAnimationRunning = true ;
 +
 + SINGLE
 + if ( mStableInsets . isEmpty ( ) ) {
 + SystemServicesProxy . getInstance ( mContext ) . getStableInsets ( mStableInsets ) ;
 + mSnapAlgorithm = null ;
 + initializeSnapAlgorithm ( ) ;
 + }
 +
 resizeStack ( position , mSnapAlgorithm . getMiddleTarget ( ) . position ,
 mSnapAlgorithm . getMiddleTarget ( ) ) ;
 }


<nb> public class HostConfig

 COMMENT
 - COMMENT
 - COMMENT
 - protected String configClass = STRING0 ;
 -
 -
 - COMMENT
 COMMENT
 COMMENT
 protected String contextClass = STRING1 ;
 <nb> public class HostConfig

 COMMENT
 - COMMENT
 - COMMENT
 - public String getConfigClass ( ) {
 -
 - return ( this . configClass ) ;
 -
 - }
 -
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public void setConfigClass ( String configClass ) {
 -
 - this . configClass = configClass ;
 -
 - }
 -
 -
 - COMMENT
 COMMENT
 COMMENT
 public String getContextClass ( ) {


<nb> public class IngestGeoIpPlugin extends Plugin {

 @ override
 public String description ( ) {
 - return STRING0 ;
 + return STRING1 ;
 }

 public void onModule ( NodeModule nodeModule ) throws IOException {


<nb> public class SystemUtils {
 SINGLE

 private static final String BOGOMIPS_PATTERN = STRING0 ;
 - private static final String MEMTOTAL_PATTERN = STRING1 ;
 - private static final String MEMFREE_PATTERN = STRING2 ;
 + private static final String MEMTOTAL_PATTERN = STRING3 ;
 + private static final String MEMFREE_PATTERN = STRING4 ;

 SINGLE
 SINGLE

Fixed typo in the patterns used to retrieve info about current memory situation of the device


<nb> public final class CreateDialogAction extends AbstractCreateFormAction {
 result . append ( STRING0 ) ;
 result . append ( className + STRING1 + className + STRING2 ) ;
 result . append ( STRING3 ) ;
 - result . append ( STRING4 ) ;
 + result . append ( STRING5 ) ;
 result . append ( STRING6 ) ;
 result . append ( STRING7 ) ;
 }

remove usage of deprecated method in generated code


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


<nb> public class XmlTagInsertHandler implements InsertHandler < LookupElement > {
 }
 else if ( completionChar == Lookup . AUTO_INSERT_SELECT_CHAR || completionChar == Lookup . NORMAL_SELECT_CHAR || completionChar == Lookup . REPLACE_SELECT_CHAR ) {
 if ( WebEditorOptions . getInstance ( ) . isAutomaticallyInsertClosingTag ( ) && isHtmlCode && HtmlUtil . isSingleHtmlTag ( tag . getName ( ) ) ) {
 - template . addTextSegment ( tag instanceof HtmlTag ? STRING0 : STRING1 ) ;
 + template . addTextSegment ( HtmlUtil . isHtmlTag ( tag ) ? STRING0 : STRING1 ) ;
 }
 else {
 if ( needAlLeastOneAttribute ( tag ) && WebEditorOptions . getInstance ( ) . isAutomaticallyStartAttribute ( ) && tag . getAttributes ( ) . length == NUMBER0


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public final class StackBlur implements BlurAlgorithm {
 private boolean canReuseInBitmap ;


<nb> public final class AnalyticsTracker {
 SITE_SETTINGS_EXPORT_SITE_RESPONSE_OK ,
 SITE_SETTINGS_EXPORT_SITE_RESPONSE_ERROR ,
 SITE_SETTINGS_DELETE_SITE_ACCESSED ,
 + SITE_SETTINGS_DELETE_SITE_PURCHASES_REQUESTED ,
 SITE_SETTINGS_DELETE_SITE_PURCHASES_SHOWN ,
 SITE_SETTINGS_DELETE_SITE_PURCHASES_SHOW_CLICKED ,
 SITE_SETTINGS_DELETE_SITE_REQUESTED ,
 <nb> public class AnalyticsTrackerMixpanel extends Tracker {
 case SITE_SETTINGS_DELETE_SITE_ACCESSED :
 instructions = AnalyticsTrackerMixpanelInstructionsForStat . mixpanelInstructionsForEventName ( STRING0 ) ;
 break ;
 + case SITE_SETTINGS_DELETE_SITE_PURCHASES_REQUESTED :
 + instructions = AnalyticsTrackerMixpanelInstructionsForStat . mixpanelInstructionsForEventName ( STRING1 ) ;
 + break ;
 case SITE_SETTINGS_DELETE_SITE_PURCHASES_SHOWN :
 instructions = AnalyticsTrackerMixpanelInstructionsForStat . mixpanelInstructionsForEventName ( STRING2 ) ;
 break ;
 <nb> public class AnalyticsTrackerNosara extends Tracker {
 case SITE_SETTINGS_DELETE_SITE_ACCESSED :
 eventName = STRING3 ;
 break ;
 + case SITE_SETTINGS_DELETE_SITE_PURCHASES_REQUESTED :
 + eventName = STRING4 ;
 + break ;
 case SITE_SETTINGS_DELETE_SITE_PURCHASES_SHOWN :
 eventName = STRING5 ;
 break ;


<nb> public enum Biome {
 OCEAN ,
 RIVER ,
 EXTREME_HILLS ,
 + FROZEN_OCEAN ,
 + FROZEN_RIVER ,
 + ICE_PLAINS ,
 + ICE_MOUNTAINS ,
 + MUSHROOM_ISLAND ,
 + MUSHROOM_SHORE
 }


<nb> public class AceEditorIdleCommands
 else if ( DOM . eventGetType ( event ) == Event . ONERROR )
 {
 container . setWidget ( noImageLabel ) ;
 + onResize . execute ( NUMBER0 ) ;
 }
 }
 } ) ;
 <nb> public class AceEditorIdleCommands
 return ;

 SINGLE
 + container . setWidget ( new SimplePanel ( ) ) ;
 noImageLabel . setText ( STRING0 + href_ + STRING1 ) ;
 image . getElement ( ) . setAttribute ( STRING2 , imgSrcPathFromHref ( href_ ) ) ;
 }

resize line widget on error set placeholder when loading new image


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TestShardEjector
 NodeManager nodeManager = createNodeManager ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 ) ;

 ShardEjector ejector = new ShardEjector (
 - nodeManager ,
 + nodeManager . getCurrentNode ( ) . getNodeIdentifier ( ) ,
 + new RaptorNodeSupplier ( nodeManager , new RaptorConnectorId ( STRING5 ) ) ,
 shardManager ,
 storageService ,
 new Duration ( NUMBER0 , HOURS ) ,

Fix compilation error for TestShardEjector


<nb> public class WorldBuilder {
 }
 orderedProviders . add ( provider ) ;
 }
 - result . putAll ( facet , orderedProviders ) ;
 - facetCalculationInProgress . remove ( facet ) ;
 }
 + result . putAll ( facet , orderedProviders ) ;
 + facetCalculationInProgress . remove ( facet ) ;
 }

 private boolean producesFacet ( FacetProvider provider , Class < ? extends WorldFacet > facet ) {

Fix redundant entries in facet provider chain


<nb> public class FloatingToolbar extends LinearLayoutCompat implements View . OnClickL
 COMMENT
 COMMENT
 animate ( ) . x ( mOriginalX ) . setStartDelay ( CIRCULAR_REVEAL_DELAY )
 - . setDuration ( CIRCULAR_REVEAL_DURATION )
 + . setDuration ( NUMBER0 )
 . setInterpolator ( new AccelerateDecelerateInterpolator ( ) ) ;
 }


<nb> public class SplitDefinition extends ExpressionNode implements ExecutorServiceAw
 Splitter answer = new Splitter ( routeContext . getCamelContext ( ) , exp , childProcessor , aggregationStrategy ,
 isParallelProcessing , threadPool , shutdownThreadPool , isStreaming , isStopOnException ( ) ,
 timeout , onPrepare , isShareUnitOfWork , isParallelAggregate ) ;
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 return answer ;
 }

Removed unused code after a recent fix in this file


<nb> public class HelloWorldClient {
 COMMENT
 public HelloWorldClient ( String host , int port ) {
 channel = ManagedChannelBuilder . forAddress ( host , port )
 + SINGLE
 + SINGLE
 . usePlaintext ( true )
 . build ( ) ;
 blockingStub = GreeterGrpc . newBlockingStub ( channel ) ;


<nb> public interface DLLocalService {
 public Hits search (
 String companyId , String portletId , String groupId ,
 String [ ] repositoryIds , String keywords )
 - throws RemoteException , SystemException ;
 + throws SystemException ;

 }
 <nb> public class DLLocalServiceUtil {
 public static Hits search (
 String companyId , String portletId , String groupId ,
 String [ ] repositoryIds , String keywords )
 - throws PortalException , SystemException {
 + throws SystemException {

 try {
 DLLocalService dlLocalService = DLLocalServiceFactory . getService ( ) ;


<nb>
 package NAMESPACE ;

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

 <nb> import static NAMESPACE ;

 @ runwith ( WithTestDefaultsRunner . class )
 public class EditTextTest {
 - @ before public void setUp ( ) throws Exception {
 - Robolectric . bindDefaultShadowClasses ( ) ;
 - }
 -
 @ test
 public void shouldBeFocusableByDefault ( ) throws Exception {
 assertTrue ( new EditText ( null ) . isFocusable ( ) ) ;


<nb> public class IdentDynamicMethod extends AbstractDynamicMethodInvocation {
 this . application = application ;
 }

 - public Object invoke ( Object target , Object [ ] arguments ) {
 + public Object invoke ( Object target , String methodName , Object [ ] arguments ) {
 BeanWrapper bean = new BeanWrapperImpl ( target ) ;
 GrailsDomainClass domainClass = application . getGrailsDomainClass ( target . getClass ( ) . getName ( ) ) ;
 return bean . getPropertyValue ( domainClass . getIdentifier ( ) . getName ( ) ) ;

Implemented new MetaClass that does regex matching but extends ExpandoMetaClass


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class PooledConnection {
 COMMENT
 COMMENT
 private static final Log log = LogFactory . getLog ( PooledConnection . class ) ;
 - COMMENT
 - COMMENT
 - COMMENT
 - protected static AtomicInteger counter = new AtomicInteger ( NUMBER0 ) ;

 COMMENT
 COMMENT
 <nb> public class PooledConnection {
 COMMENT
 private volatile long lastValidated = System . currentTimeMillis ( ) ;
 COMMENT
 - COMMENT
 - COMMENT
 - private int instanceCount = NUMBER1 ;
 - COMMENT
 COMMENT
 COMMENT
 protected ConnectionPool parent ;
 <nb> public class PooledConnection {
 COMMENT
 COMMENT
 public PooledConnection ( PoolConfiguration prop , ConnectionPool parent ) {
 - instanceCount = counter . addAndGet ( NUMBER2 ) ;
 poolProperties = prop ;
 this . parent = parent ;
 }


<nb> public class Sensor {

 COMMENT
 public static final int TYPE_GYROSCOPE = NUMBER0 ;
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public static final int TYPE_LIGHT = NUMBER1 ;
 COMMENT
 public static final int TYPE_PRESSURE = NUMBER2 ;
 COMMENT
 public static final int TYPE_TEMPERATURE = NUMBER3 ;
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public static final int TYPE_PROXIMITY = NUMBER4 ;

 <nb> public class SensorEvent {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public final float [ ] values ;

 COMMENT

Add documentation for proximity and light sensors


<nb> public class BTree < T extends Comparable < T > > {
 if ( index >= keysSize )
 return null ;
 T value = keys [ index ] ;
 - keys [ index ] = null ;
 for ( int i = index + NUMBER0 ; i < keysSize ; i ++ ) {
 SINGLE
 keys [ i - NUMBER0 ] = keys [ i ] ;

Removed an unnessacary line of code in B Tree


<nb> public class EditorFragment extends EditorFragmentAbstract {
 public void setContent ( CharSequence text ) {
 SINGLE
 }
 +
 + @ override
 + public CharSequence getTitle ( ) {
 + SINGLE
 + return null ;
 + }
 +
 + @ override
 + public CharSequence getContent ( ) {
 + SINGLE
 + return null ;
 + }
 }
 <nb> import NAMESPACE ;
 public abstract class EditorFragmentAbstract extends Fragment {
 public abstract void setTitle ( CharSequence text ) ;
 public abstract void setContent ( CharSequence text ) ;
 + public abstract CharSequence getTitle ( ) ;
 + public abstract CharSequence getContent ( ) ;
 +
 protected EditorFragmentListener mEditorFragmentListener ;

 @ override


<nb> import NAMESPACE ;
 COMMENT
 public class MockView extends TextView {

 + public MockView ( Context context , AttributeSet attrs ) {
 + this ( context , attrs , NUMBER0 ) ;
 + }
 +
 public MockView ( Context context , AttributeSet attrs , int defStyle ) {
 this ( context , attrs , defStyle , NUMBER0 ) ;
 }

Add MockView constructor used by LayoutInflater


<nb> public class MarkupTemplateEngine extends TemplateEngine {
 }
 }

 - static class TemplateResource {
 + public static class TemplateResource {
 private final String baseName ;
 private final String locale ;
 private final String extension ;

Make TemplateResource public to make it reusable from other frameworks


<nb> public class MBCategoryLocalServiceImpl implements MBCategoryLocalService {
 throw new SystemException ( ioe ) ;
 }
 catch ( ParseException pe ) {
 - throw new SystemException ( pe ) ;
 + SINGLE
 +
 + _log . error ( STRING0 + keywords ) ;
 +
 + return new Hits ( ) ;
 }
 }

 <nb> public class Hits implements Serializable {
 private org . apache . lucene . search . Hits _hits ;
 private long _start ;
 private float _searchTime ;
 - private Document [ ] _docs ;
 + private Document [ ] _docs = new Document [ NUMBER0 ] ;
 private int _length ;
 - private float [ ] _scores ;
 + private float [ ] _scores = new float [ NUMBER0 ] ;

 }

Don t throw an exception if there s a parse error instead log it


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

 public final class TypeJsonUtils
 <nb> public final class TypeJsonUtils
 if ( element instanceof SqlDecimal ) {
 type . writeLong ( blockBuilder , ( ( SqlDecimal ) element ) . getUnscaledValue ( ) . longValue ( ) ) ;
 }
 + else if ( FLOAT . equals ( type ) ) {
 + type . writeLong ( blockBuilder , floatToRawIntBits ( ( ( Number ) element ) . floatValue ( ) ) ) ;
 + }
 else {
 type . writeLong ( blockBuilder , ( ( Number ) element ) . longValue ( ) ) ;
 }


<nb> public class ActualHttpServer extends HttpServer {
 }

 public Object getMonitor ( ) {
 - if ( this . monitor == null ) {
 - return new MocoEventListener ( ) ;
 - }
 -
 return monitor ;
 }

removed unused monitor initialization in getter


<nb> public class FakeHttpLayer {
 }
 }

 + System . err . println ( STRING0 + httpRequest . getRequestLine ( ) ) ;
 +
 return defaultHttpResponse ;
 }

Adding print to err stream when there s an HTTP call made that doesn t match any response rules


<nb> public class WindowManagerService extends IWindowManager . Stub
 SINGLE
 SINGLE
 if ( ! gone || ! win . mHaveFrame || win . mLayoutNeeded
 - || win . isConfigChanged ( )
 + || ( win . mAttrs . type == TYPE_KEYGUARD && win . isConfigChanged ( ) )
 || win . mAttrs . type == TYPE_UNIVERSE_BACKGROUND ) {
 if ( ! win . mLayoutAttached ) {
 if ( initial ) {

WindowManager shouldn t layout non visible windows


<nb> public abstract class AbstractXMPPConnection implements XMPPConnection {
 private String usedUsername , usedPassword , usedResource ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class AbstractXMPPConnection implements XMPPConnection {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public synchronized void login ( ) throws XMPPException , SmackException , IOException {
 if ( isAnonymous ( ) ) {

Fix AbstractXMPPConnection login javadoc


<nb> public abstract class AbstractPlatformToolProvider implements PlatformToolProvid

 public abstract String getPCHFileExtension ( ) ;

 - public abstract String getObjectFileExtension ( ) ;
 + public String getObjectFileExtension ( ) {
 + return targetOperatingSystem . isWindows ( ) ? STRING0 : STRING1 ;
 + }
 }
 <nb> class GccPlatformToolProvider extends AbstractPlatformToolProvider {
 public String getPCHFileExtension ( ) {
 return STRING2 ;
 }
 -
 - @ override
 - public String getObjectFileExtension ( ) {
 - return STRING1 ;
 - }
 }
 <nb> class VisualCppPlatformToolProvider extends AbstractPlatformToolProvider {
 public String getPCHFileExtension ( ) {
 return STRING3 ;
 }
 -
 - @ override
 - public String getObjectFileExtension ( ) {
 - return STRING0 ;
 - }
 }

Changing native object file extensions back to being os specific


<nb> public class EventBusBridge implements Handler < SockJSSocket > {
 sock . endHandler ( new VoidHandler ( ) {
 public void handle ( ) {
 System . out . println ( STRING0 ) ;
 - new Exception ( ) . printStackTrace ( ) ;
 handleSocketClosed ( sock , handlers ) ;
 }
 } ) ;


<nb> public class TexturePackerFileProcessor extends FileProcessor {
 while ( true ) {
 settings = dirToSettings . get ( parent ) ;
 if ( settings != null ) break ;
 - if ( parent . equals ( root ) ) break ;
 + if ( parent == null || parent . equals ( root ) ) break ;
 parent = parent . getParentFile ( ) ;
 }
 if ( settings == null ) settings = defaultSettings ;


<nb> public class ZooClient extends AbstractZooKeeperManager
 @ override
 public void shutdown ( )
 {
 + msgLog . close ( ) ;
 this . shutdown = true ;
 super . shutdown ( ) ;
 }

Close the message logger so that the file is closed on windows


<nb> public class QueryOptions
 flags . add ( Flag . SKIP_METADATA ) ;
 if ( options . getPageSize ( ) >= NUMBER0 )
 flags . add ( Flag . PAGE_SIZE ) ;
 + if ( options . getPagingState ( ) != null )
 + flags . add ( Flag . PAGING_STATE ) ;
 if ( options . getSerialConsistency ( ) != ConsistencyLevel . SERIAL )
 flags . add ( Flag . SERIAL_CONSISTENCY ) ;
 return flags ;
 <nb> public class RegisterMessage extends Message . Request
 {
 int size = NUMBER1 ;
 for ( Event . Type type : msg . eventTypes )
 - CBUtil . sizeOfEnumValue ( type ) ;
 + size += CBUtil . sizeOfEnumValue ( type ) ;
 return size ;
 }
 } ;

Fix broken native protocol serialization methods


<nb> public final class ViewRootImpl implements ViewParent ,

 SINGLE
 SINGLE
 - if ( view . isHardwareAccelerated ( ) ) {
 - final int surfaceInset = ( int ) Math . ceil ( view . getZ ( ) * NUMBER0 ) ;
 - attrs . surfaceInsets . set ( surfaceInset , surfaceInset , surfaceInset , surfaceInset ) ;
 - } else {
 - SINGLE
 - attrs . surfaceInsets . setEmpty ( ) ;
 - }
 + final int surfaceInset = ( int ) Math . ceil ( view . getZ ( ) * NUMBER0 ) ;
 + attrs . surfaceInsets . set ( surfaceInset , surfaceInset , surfaceInset , surfaceInset ) ;

 CompatibilityInfo compatibilityInfo = mDisplayAdjustments . getCompatibilityInfo ( ) ;
 mTranslator = compatibilityInfo . getTranslator ( ) ;


<nb> public class JavaEditor extends Editor {
 COMMENT
 COMMENT
 @ override
 - protected void setCode ( SketchCode code ) {
 + public void setCode ( SketchCode code ) {
 SINGLE
 SINGLE
 super . setCode ( code ) ;

make public because of the superclass change


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class DependencyTree {
 + class DependencyTree {
 public int n ;
 List < Integer > head ;
 List < String > label ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 - public class Util
 - {
 + class Util {

 private Util ( ) { } SINGLE

Make nndep DependencyTree nndep Util package local


<nb> public class CatalystInstanceImpl implements CatalystInstance {
 }

 @ override
 - public void handleMemoryPressure ( MemoryPressure level ) {
 - Assertions . assertNotNull ( mBridge ) . handleMemoryPressure ( level ) ;
 + public void handleMemoryPressure ( final MemoryPressure level ) {
 + mReactQueueConfiguration . getJSQueueThread ( ) . runOnQueue (
 + new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + Assertions . assertNotNull ( mBridge ) . handleMemoryPressure ( level ) ;
 + }
 + } ) ;
 }

 COMMENT

Schedule memory pressure handlers onto JS queue thread


<nb> public class HgChangeProvider implements ChangeProvider {
 final VirtualFile root = vcsManager . getVcsRootFor ( vf ) ;
 if ( root != null ) {
 final HgRevisionNumber beforeRevisionNumber = new HgWorkingCopyRevisionsCommand ( myProject ) . identify ( root ) ;
 - builder . processChange ( new Change ( new HgContentRevision ( myProject , new HgFile ( myProject , vf ) , beforeRevisionNumber ) ,
 - CurrentContentRevision . create ( filePath ) , FileStatus . MODIFIED ) , myVcsKey ) ;
 + final ContentRevision beforeRevision = ( beforeRevisionNumber == null ? null :
 + new HgContentRevision ( myProject , new HgFile ( myProject , vf ) , beforeRevisionNumber ) ) ;
 + builder . processChange ( new Change ( beforeRevision , CurrentContentRevision . create ( filePath ) , FileStatus . MODIFIED ) , myVcsKey ) ;
 }
 }
 }


<nb> public class Util
 javax . servlet . http . HttpSessionListener . class . isAssignableFrom ( c ) ||
 javax . servlet . http . HttpSessionAttributeListener . class . isAssignableFrom ( c ) ||
 javax . servlet . AsyncListener . class . isAssignableFrom ( c ) ||
 - javax . servlet . http . HttpUpgradeHandler . class . isAssignableFrom ( null ) )
 + javax . servlet . http . HttpUpgradeHandler . class . isAssignableFrom ( c ) )
 return true ;

 return false ;
 <nb> public class Util
 javax . servlet . http . HttpSessionListener . class . isAssignableFrom ( c ) ||
 javax . servlet . http . HttpSessionAttributeListener . class . isAssignableFrom ( c ) ||
 javax . servlet . AsyncListener . class . isAssignableFrom ( c ) ||
 - javax . servlet . http . HttpUpgradeHandler . class . isAssignableFrom ( null ) )
 + javax . servlet . http . HttpUpgradeHandler . class . isAssignableFrom ( c ) )
 return true ;

 return false ;


<nb> public final class MediaStore {
 public final static String ACTION_IMAGE_CAPTURE = STRING0 ;

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

Add secure version of image capture intent


<nb> public class EMLParser {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - public EMLParser defaultSession ( Properties properties ) {
 - this . session = getDefaultSession ( properties ) ;
 + public EMLParser defaultSession ( ) {
 + this . session = Session . getDefaultInstance ( System . getProperties ( ) ) ;
 return this ;
 }

 - public EMLParser defaultSession ( ) {
 - return defaultSession ( null ) ;
 - }

 COMMENT
 COMMENT
 <nb> public class EMLParser {

 return Session . getInstance ( properties ) ;
 }
 - COMMENT
 - COMMENT
 - COMMENT
 - protected Session getDefaultSession ( Properties properties ) {
 - if ( properties == null ) {
 - properties = new Properties ( ) ;
 - }
 -
 - return Session . getDefaultInstance ( properties ) ;
 - }

 }

Fixing defaultSession not to use passed properties


<nb> public class ExpandableNotificationRow extends ActivatableNotificationView {
 int headsUpheight = headsUpCustom && beforeN ? mMaxHeadsUpHeightLegacy
 : mMaxHeadsUpHeight ;
 layout . setHeights ( minHeight , headsUpheight , mNotificationMaxHeight ) ;
 - if ( mSettingsIconRow != null ) {
 - mSettingsIconRow . updateVerticalLocation ( ) ;
 - }
 }

 public StatusBarNotification getStatusBarNotification ( ) {

Fix NPE when updating gear vertical location


<nb> public class ComponentSystemManager {
 InjectionHelper . share ( newSystem ) ;
 register ( newSystem , id ) ;
 logger . debug ( STRING0 , id ) ;
 - } catch ( Throwable t ) {
 - logger . error ( STRING1 , id , t ) ;
 + } catch ( RuntimeException | IllegalAccessException | InstantiationException e ) {
 + logger . error ( STRING1 , id , e ) ;
 }
 }
 }

Changed catch throwable type when loading systems


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface Filter {
 public List < ResultItem > getResultItems ( ) {
 List < ResultItem > resultItems = myResultItems ;
 if ( resultItems == null ) {
 - resultItems = Collections . singletonList ( ( ResultItem ) this ) ;
 + resultItems = Collections . singletonList ( this ) ;
 }
 return resultItems ;
 }


<nb> public class GrizzlyServer {
 SINGLE
 SINGLE
 SINGLE
 - final String clientPath = STRING0 ;
 + final String clientPath = STRING1 ;
 httpServer . getServerConfiguration ( ) . addHttpHandler ( new StaticHttpHandler ( clientPath ) , STRING2 ) ;
 -
 COMMENT
 try {
 httpServer . start ( ) ;

Make the leaflet client the default front end for the otp standalone


<nb> public class MainFrame
 . addListSelectionListener ( callManager ) ;
 this . tabbedPane . addChangeListener ( callManager ) ;
 }
 -
 +
 SINGLE
 String multiChatClassName = OperationSetMultiUserChat . class . getName ( ) ;

 <nb> public class MainFrame
 this . protocolProviders . remove ( protocolProvider ) ;
 this . updateProvidersIndexes ( protocolProvider ) ;

 - if ( getStatusPanel ( ) . containsAccount ( protocolProvider ) ) {
 -
 + if ( getStatusPanel ( ) . containsAccount ( protocolProvider ) )
 + {
 this . getStatusPanel ( ) . removeAccount ( protocolProvider ) ;
 }
 -
 - if ( callManager . containsCallAccount ( protocolProvider ) ) {
 +
 + if ( callManager . containsCallAccount ( protocolProvider ) )
 + {
 callManager . removeCallAccount ( protocolProvider ) ;
 }
 +
 + SINGLE
 + this . getChatRoomsListPanel ( ) . getChatRoomsList ( )
 + . removeChatServer ( protocolProvider ) ;
 }

 COMMENT

remove related chat rooms when a multi user chat account is removed


<nb> public class LookupImpl extends LightweightHint implements Lookup , Disposable {
 SINGLE
 }

 - LookupElement element = items . get ( i ) ;
 + final LookupElement element = items . get ( i ) ;
 final LookupElementPresentation presentation = new LookupElementPresentation ( ) ;
 element . renderElement ( presentation ) ;

 <nb> public class LookupImpl extends LightweightHint implements Lookup , Disposable {

 row . setBorder ( new EmptyBorder ( NUMBER0 , itemTextPadding , NUMBER0 , NUMBER0 ) ) ;

 + row . addMouseListener ( new MouseAdapter ( ) {
 + @ override
 + public void mouseClicked ( MouseEvent e ) {
 + setCurrentItem ( element ) ;
 + CommandProcessor . getInstance ( ) . executeCommand ( myProject , new Runnable ( ) {
 + public void run ( ) {
 + finishLookup ( NORMAL_SELECT_CHAR ) ;
 + }
 + } , STRING0 , null ) ;
 + }
 + } ) ;
 +
 pane . add ( row , gb . nextLine ( ) ) ;
 }


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


<nb> public enum OGlobalConfiguration {
 Float . class , FLOAT0 ) ,

 SINGLE
 - LAZYSET_WORK_ON_STREAM ( STRING0 , STRING1 , Boolean . class , true ) ,
 + LAZYSET_WORK_ON_STREAM ( STRING2 , STRING1 , Boolean . class , true ) ,

 SINGLE
 FILE_DEFRAG_STRATEGY (
 <nb> public enum OGlobalConfiguration {

 FILE_MMAP_OVERLAP_STRATEGY (
 STRING3 ,
 - STRING4 ,
 + STRING5 ,
 Integer . class , NUMBER0 , new OConfigurationChangeCallback ( ) {
 public void change ( final Object iCurrentValue , final Object iNewValue ) {
 OMMapManager . setOverlapStrategy ( ( Integer ) iNewValue ) ;
 <nb> public enum OGlobalConfiguration {
 NETWORK_HTTP_MAX_CONTENT_LENGTH ( STRING6 , STRING7 , Integer . class ,
 NUMBER1 ) ,

 - NETWORK_HTTP_SESSION_EXPIRE_TIMEOUT ( STRING8 , STRING9 ,
 + NETWORK_HTTP_SESSION_EXPIRE_TIMEOUT ( STRING8 , STRING10 ,
 Integer . class , NUMBER2 ) ,

 SINGLE

Documented some new global configuration parameters


<nb> public class HtmlConverter {
 Log . e ( K9 . LOG_TAG , STRING0 , e ) ;
 }
 text = buff . toString ( ) ;
 +
 + SINGLE
 text = text . replaceAll ( STRING1 , STRING2 ) ;
 +
 + SINGLE
 text = text . replaceAll ( STRING3 , STRING4 ) ;
 +
 + SINGLE
 text = text . replaceAll ( STRING5 , STRING6 ) ;

 StringBuffer sb = new StringBuffer ( text . length ( ) + TEXT_TO_HTML_EXTRA_BUFFER_LENGTH ) ;


<nb> public final class BridgeContext extends Context {
 }

 @ override
 + public String getOpPackageName ( ) {
 + SINGLE
 + return null ;
 + }
 +
 + @ override
 public ApplicationInfo getApplicationInfo ( ) {
 return mApplicationInfo ;
 }

Add new getOpPackageName for BridgeContext


<nb> public class DummyActivity extends Activity {
 . setPositiveButton ( android . R . string . ok , new DialogInterface . OnClickListener ( ) {
 @ override
 public void onClick ( DialogInterface dialog , int which ) {
 - finish ( ) ;
 }
 } )
 . setOnDismissListener ( new DialogInterface . OnDismissListener ( ) {


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class RoundRobinRule extends AbstractLoadBalancerRule {
 - AtomicInteger nextIndexAI ;
 + COMMENT
 + private AtomicLong nextIndexAI ;

 private static Logger log = LoggerFactory . getLogger ( RoundRobinRule . class ) ;

 public RoundRobinRule ( ) {
 - nextIndexAI = new AtomicInteger ( NUMBER0 ) ;
 + nextIndexAI = new AtomicLong ( NUMBER0 ) ;
 }

 public RoundRobinRule ( ILoadBalancer lb ) {
 <nb> public class RoundRobinRule extends AbstractLoadBalancerRule {
 return null ;
 }

 - index = nextIndexAI . incrementAndGet ( ) % serverCount ;
 + index = ( int ) ( nextIndexAI . incrementAndGet ( ) % serverCount ) ;
 server = allList . get ( index ) ;

 if ( server == null ) {

Fix wrap around issue with RoundRobinRule


<nb> public class Word2Vec implements Persistable {

 - getSentenceIter ( ) . reset ( ) ;

 final AtomicLong changed = new AtomicLong ( System . currentTimeMillis ( ) ) ;

removed reset call on sentence iterator during train


<nb> public class OutgoingServerSession extends Session {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public abstract class Camera {
 float x = vec . x , y = vec . y ;
 x = x - viewportX ;
 y = Gdx . graphics . getHeight ( ) - y - NUMBER0 ;
 - y = y - viewportY ;
 - System . out . print ( x + STRING0 + y ) ;
 + y = y - viewportY ;
 vec . x = ( NUMBER1 * x ) / viewportWidth - NUMBER0 ;
 vec . y = ( NUMBER1 * y ) / viewportHeight - NUMBER0 ;
 - vec . z = NUMBER1 * vec . z - NUMBER0 ;
 - System . out . println ( STRING1 + vec ) ;
 + vec . z = NUMBER1 * vec . z - NUMBER0 ;
 vec . prj ( invProjectionView ) ;
 }


<nb> public class Accounts extends K9ListActivity implements OnItemClickListener {
 new String [ ] { STRING0 , STRING1 } ,
 new String [ ] { STRING2 , STRING3 } ,
 new String [ ] { STRING4 , STRING5 } ,
 - new String [ ] { STRING6 , STRING7 }
 + new String [ ] { STRING6 , STRING7 } ,
 + new String [ ] { STRING8 , STRING9 }
 } ;

 private void onAbout ( ) {

Add Android PullToRefresh to about screen


<nb> public class CommentsActivity extends WPDrawerActivity
 ActionBar actionBar = getSupportActionBar ( ) ;
 if ( actionBar != null ) {
 actionBar . setDisplayShowTitleEnabled ( true ) ;
 + actionBar . setTitle ( getString ( R . string . tab_comments ) ) ;
 }

 getFragmentManager ( ) . addOnBackStackChangedListener ( mOnBackStackChangedListener ) ;

 - setTitle ( getString ( R . string . tab_comments ) ) ;
 restoreSavedInstance ( savedInstanceState ) ;
 }

 <nb> public class PostsActivity extends WPDrawerActivity
 }

 if ( mIsPage ) {
 - setTitle ( getString ( R . string . pages ) ) ;
 + getSupportActionBar ( ) . setTitle ( getString ( R . string . pages ) ) ;
 } else {
 - setTitle ( getString ( R . string . posts ) ) ;
 + getSupportActionBar ( ) . setTitle ( getString ( R . string . posts ) ) ;
 }

 WordPress . currentPost = null ;

Fixed title on Posts Pages and Comments activities


<nb> public class SettingsDevelopmentActivity extends SettingsBaseActivity {
 pref . setTitle ( R . string . version_settings ) ;
 pref . setSummary ( R . string . version_settings_descr ) ;
 pref . setKey ( STRING0 ) ;
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 + pref . setOnPreferenceClickListener ( new OnPreferenceClickListener ( ) {
 + @ override
 + public boolean onPreferenceClick ( Preference preference ) {
 + startActivityForResult ( new Intent ( SettingsDevelopmentActivity . this , ContributionVersionActivity . class ) ) ;
 + return ( false ) ;
 + }
 + } ) ;
 cat . addPreference ( pref ) ;
 }


<nb> import NAMESPACE ;
 public interface ClassChooser < T extends DomElement > {
 Class < ? extends T > chooseClass ( XmlTag tag ) ;
 void distinguishTag ( XmlTag tag , Class < ? extends T > aClass ) throws IncorrectOperationException ;
 + Class [ ] getChooserClasses ( ) ;
 }
 <nb> public class ClassChooserManager {

 public void distinguishTag ( final XmlTag tag , final Class aClass ) {
 }
 +
 + public Class [ ] getChooserClasses ( ) {
 + return new Class [ NUMBER0 ] ;
 + }
 } ;
 }


<nb> public class EditPost extends Activity {
 } else {

 if ( extras != null ) {
 - id = WordPress . currentBlog . getId ( ) ;
 try {
 + id = WordPress . currentBlog . getId ( ) ;
 blog = new Blog ( id , this ) ;
 } catch ( Exception e ) {
 Toast . makeText ( this ,

Moved post id creation to try catch block to help EditPost activity recover if there s no valid currentBlog


<nb> import NAMESPACE ;
 public abstract class AbstractSocketObjectStreamEchoTest {

 static final Random random = new Random ( ) ;
 - static final String [ ] data = new String [ NUMBER0 ] ;
 + static final String [ ] data = new String [ NUMBER1 ] ;

 private static ExecutorService executor ;


<nb> public abstract class AbstractDaoTestSinglePk < D extends AbstractDao < T , K > , T , K >
 return cursor ;
 }

 + COMMENT
 protected K nextPk ( ) {
 for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
 K pk = createRandomPk ( ) ;
 <nb> public abstract class AbstractDaoTestSinglePk < D extends AbstractDao < T , K > , T , K >
 }

 protected T createEntityWithRandomPk ( ) {
 - return createEntity ( createRandomPk ( ) ) ;
 + return createEntity ( nextPk ( ) ) ;
 }

 COMMENT