<nb> public class InternalEngine extends Engine {
 long translogId = translogIdGenerator . incrementAndGet ( ) ;
 translog . newTransientTranslog ( translogId ) ;
 indexWriter . setCommitData ( Collections . singletonMap ( Translog . TRANSLOG_ID_KEY , Long . toString ( translogId ) ) ) ;
 - logger . trace ( STRING0 ) ;
 + logger . trace ( STRING1 ) ;
 commitIndexWriter ( indexWriter ) ;
 logger . trace ( STRING2 ) ;
 SINGLE
 <nb> public class InternalEngine extends Engine {
 try {
 long translogId = translog . currentId ( ) ;
 indexWriter . setCommitData ( Collections . singletonMap ( Translog . TRANSLOG_ID_KEY , Long . toString ( translogId ) ) ) ;
 + logger . trace ( STRING3 ) ;
 commitIndexWriter ( indexWriter ) ;
 + logger . trace ( STRING2 ) ;
 } catch ( Throwable e ) {
 throw new FlushFailedEngineException ( shardId , e ) ;
 }

add trace logging for the commitTranslog false case in InternalEngine flush


<nb> public class GitCheckoutProvider implements CheckoutProvider {
 clone ( project , sourceRepositoryURL , new File ( dialog . getParentDirectory ( ) ) , dialog . getDirectoryName ( ) , dialog . getOriginName ( ) ) ;
 int code = GitHandlerUtil . doSynchronously ( handler , GitBundle . message ( STRING0 , sourceRepositoryURL ) , STRING1 ) ;

 - final VcsDirtyScopeManager mgr = VcsDirtyScopeManager . getInstance ( project ) ;
 destinationParent . refresh ( true , true , new Runnable ( ) {
 public void run ( ) {
 - mgr . fileDirty ( destinationParent ) ;
 + if ( ! project . isDefault ( ) ) {
 + final VcsDirtyScopeManager mgr = VcsDirtyScopeManager . getInstance ( project ) ;
 + mgr . fileDirty ( destinationParent ) ;
 + }
 }
 } ) ;


<nb> public class SlidingLayer extends FrameLayout {
 private static final int HORIZONTAL = NUMBER0 ;
 private static final int VERTICAL = NUMBER1 ;

 - private static final int HIGH_VELOCITY = NUMBER2 ;
 + private static final int HIGH_VELOCITY = NUMBER3 ;
 private static final int MAX_SCROLLING_DURATION = NUMBER4 ; SINGLE
 private static final int MIN_DISTANCE_FOR_FLING = NUMBER5 ; SINGLE
 private static final Interpolator sMenuInterpolator = new Interpolator ( ) {


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import static NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class PgpSignatoryFactory {
 + public class PgpSignatoryFactory extends GroovyObjectSupport {

 private static final String [ ] PROPERTIES = new String [ ] { STRING0 , STRING1 , STRING2 } ;

Add missing GroovyObjectSupport to PgpSignatoryFactory


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ suppresswarnings ( STRING0 )
 class ASERoutineDefinition extends AbstractRoutineDefinition {

 public ASERoutineDefinition ( SchemaDefinition schema , String name , String dataType , Number length , Number precision , Number scale ) {


<nb> public class Config
 @ documented
 public static final String RELATIONSHIP_AUTO_INDEXING = STRING0 ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + @ documented
 public static final String LUCENE_SEARCHER_CACHE_SIZE = STRING1 ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + @ documented
 public static final String LUCENE_WRITER_CACHE_SIZE = STRING2 ;

 static final String LOAD_EXTENSIONS = STRING3 ;

Added documentation for the two lucene cache parameters


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class OStorageRemote extends OStorageAbstract implements OStorageProxy {

 protected final List < String > serverURLs = new ArrayList < String > ( ) ;
 private OCluster [ ] clusters = new OCluster [ NUMBER0 ] ;
 - protected final Map < String , OCluster > clusterMap = new HashMap < String , OCluster > ( ) ;
 + protected final Map < String , OCluster > clusterMap = new ConcurrentHashMap < String , OCluster > ( ) ;
 private int defaultClusterId ;
 private int minPool ;
 private int maxPool ;

Fixed concurrency problem in OStorageRemote


<nb> public class EmitterShapePropertyEditor implements PropertyEditor {
 + STRING0
 + ( shape . getMin ( ) . x + shape . getLen ( ) . x )
 + STRING0
 - + ( shape . getMin ( ) . x + shape . getLen ( ) . y )
 + + ( shape . getMin ( ) . y + shape . getLen ( ) . y )
 + STRING0
 - + ( shape . getMin ( ) . x + shape . getLen ( ) . z )
 + + ( shape . getMin ( ) . z + shape . getLen ( ) . z )
 + STRING1 ;
 } else if ( emitter instanceof EmitterPointShape ) {
 EmitterPointShape shape = ( EmitterPointShape ) emitter ;

fixed another issue in EmitterBoxShapeEditor


<nb> public class SpriteHelper

 public static int getFreeSlot ( BitSet slots )
 {
 - return slots . nextSetBit ( NUMBER0 ) ;
 + int next = slots . nextSetBit ( NUMBER0 ) ;
 + slots . clear ( next ) ;
 + return next ;
 }

 }

Actually mark the sprite as used when you allocate it


<nb> public final class ModelManagerListener < K , M , U > implements ServletContextListener

 modelManager = loadManagerInstance ( ) ;
 new Thread ( LoggingCallable . log ( ( ) - > {
 + SINGLE
 + if ( modelManager == null ) {
 + return ;
 + }
 SINGLE
 try {
 modelManager . consume ( transformed , new Configuration ( ) ) ;

Fix possible harmless NPE when serving layer shuts down immediately


<nb> public class PyModuleType implements PyType { SINGLE
 if ( namesAlready != null ) {
 namesAlready . add ( name ) ;
 }
 + if ( PyUtil . isClassPrivateName ( name ) ) {
 + continue ;
 + }
 result . add ( LookupElementBuilder . create ( name ) . withIcon ( member . getIcon ( ) ) . withTypeText ( member . getShortType ( ) ) ) ;
 }
 }

Don t complete class private names from module members providers


<nb> class PackageManagerShellCommand extends ShellCommand {
 pw . println ( STRING0 ) ;
 pw . println ( STRING1 ) ;
 pw . println ( STRING2 ) ;
 + pw . println ( STRING3 ) ;
 + pw . println ( STRING4 ) ;
 + pw . println ( STRING5 ) ;
 pw . println ( STRING6 ) ;
 pw . println ( STRING7 ) ;
 pw . println ( STRING8 ) ;


<nb> public class ReaderPostDetailActivity extends WPActionBarActivity {
 private boolean mIsMoving ;
 private float mLastMotionY ;

 - private static final int MOVE_MIN_DIFF = NUMBER0 ;
 + private static final int MOVE_MIN_DIFF = NUMBER1 ;
 private static final long WEBVIEW_DELAY_MS = NUMBER2 ;

 COMMENT
 <nb> public class ReaderPostDetailActivity extends WPActionBarActivity {
 case MotionEvent . ACTION_MOVE :
 if ( mIsMoving ) {
 if ( yDiff < - MOVE_MIN_DIFF && ! mIsFullScreen && canScrollDown ( mListView ) ) {
 + SINGLE
 setIsFullScreen ( true ) ;
 return true ;
 } else if ( mIsFullScreen && ! canScrollUp ( mListView ) ) {
 + SINGLE
 + setIsFullScreen ( false ) ;
 + } else if ( mIsFullScreen && ! canScrollDown ( mListView ) ) {
 + SINGLE
 setIsFullScreen ( false ) ;
 } else if ( yDiff > MOVE_MIN_DIFF && mIsFullScreen ) {
 + SINGLE
 setIsFullScreen ( false ) ;
 return true ;
 }

ActionBar now automatically appears once user scrolls to the bottom of reader post detail


<nb> public class Texture implements PConstants {

 public void disposeSourceBuffer ( ) {
 - System . out . println ( STRING0 ) ;
 if ( usedBuffers == null ) return ;

 while ( NUMBER0 < usedBuffers . size ( ) ) {
 BufferData data = null ;
 try {
 data = usedBuffers . remove ( NUMBER0 ) ;
 - System . out . println ( STRING1 + data + STRING0 ) ;
 } catch ( NoSuchElementException ex ) {
 PGraphics . showWarning ( STRING2 ) ;
 }
 <nb> public class Capture extends PImage implements PConstants {
 SINGLE
 SINGLE
 SINGLE
 - System . out . println ( STRING3 ) ;
 natBuffer . dispose ( ) ;
 }
 natBuffer = buffer ;
 <nb> public class Movie extends PImage implements PConstants {
 SINGLE
 SINGLE
 SINGLE
 - System . out . println ( STRING3 ) ;
 natBuffer . dispose ( ) ;
 }
 natBuffer = buffer ;


<nb> public class CameraDevice implements android . hardware . camera2 . CameraDevice {
 @ override
 public void captureBurst ( List < CaptureRequest > requests , CaptureListener listener )
 throws CameraAccessException {
 + if ( requests . isEmpty ( ) ) {
 + Log . w ( TAG , STRING0 ) ;
 + return ;
 + }
 SINGLE
 throw new UnsupportedOperationException ( STRING1 ) ;

 <nb> public class CameraDevice implements android . hardware . camera2 . CameraDevice {
 @ override
 public void setRepeatingBurst ( List < CaptureRequest > requests , CaptureListener listener )
 throws CameraAccessException {
 + if ( requests . isEmpty ( ) ) {
 + Log . w ( TAG , STRING2 ) ;
 + return ;
 + }
 SINGLE
 throw new UnsupportedOperationException ( STRING1 ) ;
 }

Send warning when burst request list is empty


<nb> public abstract class Lockable < T extends Lockable < T > > extends Iced {
 _lockers = Arrays . copyOf ( lks , lks . length - NUMBER0 ) ;
 int j = NUMBER0 ; SINGLE
 for ( int i = NUMBER0 ; i < lks . length ; i ++ )
 - if ( job_key == lks [ i ] || ( job_key != null && ! job_key . equals ( lks [ i ] ) ) )
 - _lockers [ j ++ ] = lks [ i ] ;
 + if ( job_key != null && ! job_key . equals ( lks [ i ] ) || ( job_key == null && lks [ i ] != null ) ) {
 + _lockers [ j ++ ] = lks [ i ] ;
 + }
 assert j == lks . length - NUMBER0 ; SINGLE
 }
 assert ! is_locked ( job_key ) ;

Fixed bug in Lockables when unlocking with a null key


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

 import NAMESPACE ;


<nb> public class MinecraftForge
 COMMENT
 public static ItemStack getItemForCart ( EntityMinecart cart )
 {
 - if ( cart . getClass ( ) == EntityMinecart . class )
 - {
 - return getItemForCart ( cart . getClass ( ) , cart . getMinecartType ( ) ) ;
 - }
 - return getItemForCart ( cart . getClass ( ) , NUMBER0 ) ;
 + return getItemForCart ( cart . getClass ( ) , cart . getMinecartType ( ) ) ;
 }

 COMMENT

Fixed a minor bug with the Minecart Dictionary


<nb> public class HdfsFetcher implements FileFetcher {
 COMMENT
 COMMENT
 public static void main ( String [ ] args ) throws Exception {
 - if ( args . length != NUMBER0 )
 + if ( args . length < NUMBER0 )
 Utils . croak ( STRING0 + HdfsFetcher . class . getName ( )
 + STRING1 ) ;
 String url = args [ NUMBER1 ] ;
 - String keytabLocation = args [ NUMBER0 ] ;
 - String proxyUser = args [ NUMBER2 ] ;
 +
 + String keytabLocation = STRING2 ;
 + String proxyUser = STRING2 ;
 + if ( args . length >= NUMBER3 ) {
 + keytabLocation = args [ NUMBER0 ] ;
 + proxyUser = args [ NUMBER2 ] ;
 + }
 +
 long maxBytesPerSec = NUMBER4 * NUMBER4 * NUMBER4 ;
 Path p = new Path ( url ) ;

Fixed the main method params in HdfsFetcher


<nb> public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea
 COMMENT
 COMMENT
 COMMENT
 - double calcOutlierThreshold ( Vec mse , double quantile ) {
 + public double calcOutlierThreshold ( Vec mse , double quantile ) {
 Frame mse_frame = new Frame ( Key . make ( ) , new String [ ] { STRING0 } , new Vec [ ] { mse } ) ;
 DKV . put ( mse_frame . _key , mse_frame ) ;


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public interface EntityModel {
 COMMENT
 COMMENT
 COMMENT
 - Collection < Type < ? > > allTypes ( ) ;
 + Set < Type < ? > > allTypes ( ) ;
 }
 <nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

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

 <nb> final class ImmutableEntityModel implements EntityModel {
 }

 @ override
 - public Collection < Type < ? > > allTypes ( ) {
 - return map . values ( ) ;
 + public Set < Type < ? > > allTypes ( ) {
 + return new LinkedHashSet < > ( map . values ( ) ) ;
 }

 @ override

Fix duplicate types returned in EntityModel allTypes


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

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 public class ConvertContextFactory {
 public static ConvertContext createConvertContext ( final DomElement element ) {
 return new ConvertContextImpl ( DomManagerImpl . getDomInvocationHandler ( element ) ) {
 + @ notnull
 @ override
 public DomElement getInvocationElement ( ) {
 return element ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public final class SpanishVerbStripper {
 + public final class SpanishVerbStripper implements Serializable {

 SINGLE
 SINGLE
 <nb> public final class SpanishVerbStripper {
 return null ;
 }

 + private static final long serialVersionUID = - NUMBER0 ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class AndroidModuleBuilder extends JavaModuleBuilder {
 entry . setScope ( DependencyScope . PROVIDED ) ;
 }

 - StartupManager . getInstance ( project ) . runWhenProjectIsInitialized ( new Runnable ( ) {
 + StartupManager . getInstance ( project ) . runWhenProjectIsInitialized ( new DumbAwareRunnable ( ) {
 public void run ( ) {
 ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) {
 public void run ( ) {

use DumbAwareRunnable to create initial android structure


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

Changed javadoc example to add an extension using the class generator backed way and to show nested extensions


<nb> public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal
 private void requestAccessibilityFocusFromHover ( ) {
 if ( includeForAccessibility ( ) && isActionableForAccessibility ( ) ) {
 requestAccessibilityFocus ( ) ;
 - requestFocusNoSearch ( View . FOCUS_DOWN , null ) ;
 } else {
 if ( mParent != null ) {
 View nextFocus = mParent . findViewToTakeAccessibilityFocusFromHover ( this , this ) ;
 if ( nextFocus != null ) {
 nextFocus . requestAccessibilityFocus ( ) ;
 - nextFocus . requestFocusNoSearch ( View . FOCUS_DOWN , null ) ;
 }
 }
 }

Removing leftover code to sync accessibility and input focus


<nb> public class MissingTests extends ElasticsearchIntegrationTest {

 @ test
 public void unmapped ( ) throws Exception {
 + client ( ) . admin ( ) . cluster ( ) . prepareHealth ( STRING0 ) . setWaitForYellowStatus ( ) . execute ( ) . actionGet ( ) ;
 +
 SearchResponse response = client ( ) . prepareSearch ( STRING0 )
 . addAggregation ( missing ( STRING1 ) . field ( STRING2 ) )
 . execute ( ) . actionGet ( ) ;
 <nb> public class MissingTests extends ElasticsearchIntegrationTest {

 @ test
 public void partiallyUnmapped ( ) throws Exception {
 + client ( ) . admin ( ) . cluster ( ) . prepareHealth ( STRING0 ) . setWaitForYellowStatus ( ) . execute ( ) . actionGet ( ) ;
 +
 SearchResponse response = client ( ) . prepareSearch ( STRING3 , STRING0 )
 . addAggregation ( missing ( STRING1 ) . field ( STRING2 ) )
 . execute ( ) . actionGet ( ) ;

added a waitForGreen condition for the unmapped tests on missing agg


<nb> public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
 }
 catch ( BeanCreationException ex ) {
 SINGLE
 - if ( logger . isDebugEnabled ( ) ) {
 - logger . debug ( STRING0 + ex ) ;
 + if ( logger . isWarnEnabled ( ) ) {
 + logger . warn ( STRING1 + ex ) ;
 }
 onSuppressedException ( ex ) ;
 return null ;

AbstractBeanFactory logs bean creation exception on FactoryBean type check at warn level


<nb> public final class ZXingMIDlet extends MIDlet {
 showOpenURL ( STRING0 , smsResult . getNumbers ( ) [ NUMBER0 ] , smsResult . getSMSURI ( ) ) ;
 } else if ( type . equals ( ParsedResultType . PRODUCT ) ) {
 ProductParsedResult productResult = ( ProductParsedResult ) result ;
 - String uri = STRING1 + productResult . getNormalizedProductID ( ) ;
 + String uri = STRING2 +
 + productResult . getNormalizedProductID ( ) + STRING3 ;
 showOpenURL ( STRING4 , productResult . getProductID ( ) , uri ) ;
 } else if ( type . equals ( ParsedResultType . TEL ) ) {
 TelParsedResult telResult = ( TelParsedResult ) result ;

For consistency with android search Google


<nb> public class AudioNode extends Node implements AudioSource {
 protected transient AudioData data = null ;
 protected transient volatile AudioSource . Status status = AudioSource . Status . Stopped ;
 protected transient volatile int channel = - NUMBER0 ;
 - protected Vector3f previousWorldTranslation = Vector3f . NAN ;
 + protected Vector3f previousWorldTranslation = Vector3f . NAN . clone ( ) ;
 protected Vector3f velocity = new Vector3f ( ) ;
 protected boolean reverbEnabled = false ;
 protected float maxDistance = NUMBER1 ; SINGLE

Fixed an issue where Vector3f NAN constant reference was assigned to an attribute instead of being cloned in AudioNode


<nb> public class AetherGrapeEngine implements GrapeEngine {
 . getManagedDependencies ( ) ) ;

 DependencyRequest dependencyRequest = new DependencyRequest ( collectRequest ,
 - DependencyFilterUtils . classpathFilter ( JavaScopes . COMPILE ) ) ;
 + DependencyFilterUtils . classpathFilter ( JavaScopes . COMPILE ,
 + JavaScopes . RUNTIME ) ) ;

 DependencyResult dependencyResult = this . repositorySystem
 . resolveDependencies ( this . session , dependencyRequest ) ;

Add RUNTME scope to transitive dependencies in CLI


<nb> public class PolygonRegion {
 this . triangles = triangles ;

 float [ ] textureCoords = this . textureCoords = new float [ vertices . length ] ;
 - float u = region . u , v = region . u ;
 + float u = region . u , v = region . v ;
 float uvWidth = region . u2 - u ;
 float uvHeight = region . v2 - v ;
 int width = region . regionWidth ;


<nb> public class ServerImpl implements Server {

 @ override
 public void messageRead ( final InputStream message ) {
 - if ( cancelled ) {
 - return ;
 - }
 -
 try {
 + if ( cancelled ) {
 + return ;
 + }
 +
 listener . onPayload ( methodDef . parseRequest ( message ) ) ;
 } finally {
 try {

Make sure to close InputStream even if cancelled


<nb> package NAMESPACE ;
 public enum Backend {
 POSTGRES ,
 GREENPLUM ;
 -
 - private final Backend baseBackend ;
 -
 - private Backend ( ) {
 - this . baseBackend = this ;
 - }
 -
 - private Backend ( Backend baseBackend ) {
 - this . baseBackend = baseBackend ;
 - }
 -
 - public Backend baseBackend ( ) {
 - return baseBackend ;
 - }
 }
 <nb> package NAMESPACE ;

 public enum Protocol {
 MONGO ,
 - MONGO_REPL_SET ( MONGO ) ;
 -
 - private final Protocol baseProtocol ;
 -
 - private Protocol ( ) {
 - this . baseProtocol = this ;
 - }
 -
 - private Protocol ( Protocol baseProtocol ) {
 - this . baseProtocol = baseProtocol ;
 - }
 -
 - public Protocol baseProtocol ( ) {
 - return baseProtocol ;
 - }
 + MONGO_REPL_SET ;
 }

Removed some unused code on Backend and Protocol integration test enums


<nb> public class NonUniqueLuceneIndexSampler extends LuceneIndexSampler
 throw new RuntimeException ( e ) ;
 }
 }
 - Thread . dumpStack ( ) ;

 return sampler . result ( indexReader . numDocs ( ) ) ;
 }


<nb> public class SSTableWriter extends SSTable
 while ( rowPosition < dfile . length ( ) )
 {
 key = SSTableReader . decodeKey ( StorageService . getPartitioner ( ) , desc , ByteBufferUtil . readWithShortLength ( dfile ) ) ;
 +
 + SINGLE
 + SINGLE
 + cfs . invalidateCachedRow ( key ) ;
 +
 iwriter . afterAppend ( key , rowPosition ) ;

 long dataSize = SSTableReader . readRowSize ( dfile , desc ) ;


<nb> public class PrivacyService {
 }
 } ;
 mHandler . postDelayed ( rProgress , NUMBER0 ) ;
 + } catch ( NameNotFoundException ex ) {
 + latch . countDown ( ) ;
 } catch ( Throwable ex ) {
 Util . bug ( null , ex ) ;
 latch . countDown ( ) ;

Catch NameNotFoundException support info


<nb> import NAMESPACE ;
 public abstract class Joint {
 World world ;
 org . jbox2d . dynamics . joints . Joint joint ;
 + Object userData ;
 JointEdge jointEdgeA ;
 JointEdge jointEdgeB ;

 <nb> public abstract class Joint {
 return joint . getReactionTorque ( inv_dt ) ;
 }

 + COMMENT
 + public Object getUserData ( ) {
 + return userData ;
 + }
 +
 + COMMENT
 + public void setUserData ( Object userData ) {
 + this . userData = userData ;
 + }
 +
 COMMENT
 public boolean isActive ( ) {
 return joint . IsActive ( ) ;
 <nb> public final class World implements Disposable {
 COMMENT
 COMMENT
 public void destroyJoint ( Joint joint ) {
 + joint . setUserData ( null ) ;
 world . destroyJoint ( joint . joint ) ;
 joints . remove ( joint . joint ) ;
 }

Updated gwt backend emulation with Joint user data capability


<nb> public class GrizzlyAsyncHttpProvider implements AsyncHttpProvider {
 secure . add ( clientFilter ) ;
 secure . add ( new WebSocketClientFilter ( ) ) ;

 -
 + clientTransport . getAsyncQueueIO ( ) . getWriter ( )
 + . setMaxPendingBytesPerConnection ( AUTO_SIZE ) ;
 if ( providerConfig != null ) {
 final TransportCustomizer customizer = ( TransportCustomizer )
 providerConfig . getProperty ( Property . TRANSPORT_CUSTOMIZER ) ;
 <nb> public class GrizzlyAsyncHttpProvider implements AsyncHttpProvider {
 . setClientSideNegotiator ( clientTransport , pn ) ;
 }

 - SINGLE
 - clientTransport . getAsyncQueueIO ( ) . getWriter ( )
 - . setMaxPendingBytesPerConnection ( AUTO_SIZE ) ;
 -
 SINGLE
 SINGLE
 FilterChainBuilder nonSecure = FilterChainBuilder . stateless ( ) ;

Call setMaxPendingBytesPerConnection at the right time


<nb> public class DexBackedMethodImplementation implements MethodImplementation {
 SINGLE
 int offset = reader . getOffset ( ) ;
 if ( offset > endOffset || offset < NUMBER0 ) {
 - throw new ExceptionWithContext ( STRING0 ) ;
 + throw new ExceptionWithContext ( STRING1 , method ) ;
 }
 return instruction ;
 }

Improve the error message for a truncated last instruction


<nb> public class PackageNamesLoader
 {
 if ( aQName . equals ( STRING0 ) ) {
 SINGLE
 - final String name = ( String ) aAtts . getValue ( STRING1 ) ;
 + final String name = aAtts . getValue ( STRING1 ) ;
 if ( name == null ) {
 throw new SAXException ( STRING2 ) ;
 }

removed redundant type cast the magic of InelliJ IDEA


<nb> public class TaskServlet extends HttpServlet {
 }

 public void executeTask ( ImmutableMultimap < String , String > params , PrintWriter output ) throws Exception {
 - try {
 - task . execute ( params , output ) ;
 - } catch ( Exception e ) {
 - throw e ;
 - }
 + task . execute ( params , output ) ;
 }
 }


<nb> public class SherlockFragmentActivity extends Watson implements OnActionModeStar

 @ override
 public final boolean onMenuItemSelected ( int featureId , android . view . MenuItem item ) {
 - if ( BuildConfig . DEBUG ) Log . d ( TAG , STRING0 + featureId + STRING1 + item ) ;
 + if ( BuildConfig . DEBUG ) Log . d ( TAG , STRING0 + featureId + STRING1 + item . getTitle ( ) ) ;

 if ( featureId == Window . FEATURE_OPTIONS_PANEL && ! mIgnoreNativeSelected ) {
 mIgnoreNativeSelected = true ;


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

 import NAMESPACE ;
 <nb> public abstract class PageCacheTest < T extends RunnablePageCache >
 }
 }

 - @ ignore ( STRING0 )
 @ test ( timeout = NUMBER0 )
 public void pageCacheMustRemainInternallyConsistentWhenGettingRandomFailures ( ) throws Exception
 {

Reenable the advesarial FSA based page cache test


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public class XML implements Serializable {

XML object now cross references loadXML ref docs


<nb> public class SearchingClassLoader extends ClassLoader {
 SINGLE
 addIfNewElement ( loaders , currentThread ( ) . getContextClassLoader ( ) ) ;

 - addIfNewElement ( loaders , ClassLoader . getSystemClassLoader ( ) ) ;
 + SINGLE
 + SINGLE

 return combine ( loaders ) ;
 }

fixed the code for Spring in container tests


<nb> public final class ActivityThread {
 }

 VMRuntime . registerAppInfo ( profileFile . getAbsolutePath ( ) , appInfo . dataDir ,
 - codePaths . toArray ( new String [ codePaths . size ( ) ] ) ) ;
 + codePaths . toArray ( new String [ codePaths . size ( ) ] ) , null ) ;
 }

 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class InternalEngineTests extends ElasticsearchLuceneTestCase {
 public void testIndexWriterIFDInfoStream ( ) {
 MockAppender mockAppender = new MockAppender ( ) ;

 - Logger iwIFDLogger = Logger . getLogger ( STRING0 ) ;
 + SINGLE
 + Logger iwIFDLogger = LogManager . exists ( STRING1 ) ;
 + if ( iwIFDLogger == null ) {
 + SINGLE
 + iwIFDLogger = LogManager . exists ( STRING0 ) ;
 + assertNotNull ( iwIFDLogger ) ;
 + }
 +
 Level savedLevel = iwIFDLogger . getLevel ( ) ;
 iwIFDLogger . addAppender ( mockAppender ) ;
 iwIFDLogger . setLevel ( Level . DEBUG ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MultiUserChatServiceImpl implements Component , MultiUserChatService

 private void removeChatRoom ( String roomName , boolean notify ) {
 MUCRoom room = rooms . remove ( roomName ) ;
 + Log . info ( STRING0 + roomName + STRING1 + room . getClass ( ) . getName ( ) ) ;
 + if ( room instanceof LocalMUCRoom )
 + GroupEventDispatcher . removeListener ( ( LocalMUCRoom ) room ) ;
 if ( room != null ) {
 totalChatTime += room . getChatLength ( ) ;
 if ( notify ) {

solve the memory leak problems which is caused by add LocalMUCRoom objects to GroupEventDispatcher but never remove it


<nb> public class ProjectManagerImpl extends ProjectManagerEx implements Disposable {
 project = loadProjectWithProgress ( filePath ) ;
 if ( project == null ) return null ;
 }
 + catch ( ProcessCanceledException e ) {
 + return null ;
 + }
 catch ( Throwable t ) {
 LOG . info ( t ) ;
 throw new IOException ( t ) ;


<nb> public class CudaLoader {
 m_libCudas = new ArrayList < String > ( ) ;
 m_rootbeers = new ArrayList < String > ( ) ;

 - if ( STRING0 . equals ( System . getProperty ( STRING1 ) ) {
 + if ( STRING0 . equals ( System . getProperty ( STRING1 ) ) ) {
 m_libCudas . add ( STRING2 ) ;
 m_rootbeers . add ( STRING3 ) ;
 extract ( STRING3 ) ;


<nb> public class DirectoryIndexImpl extends DirectoryIndex implements ProjectCompone
 if ( info == null ) {
 info = new DirectoryInfo ( ) ;
 myDirToInfoMap . put ( dir , info ) ;
 - putInfoById ( ( ( NewVirtualFile ) dir ) . getId ( ) , info ) ;
 + if ( dir instanceof NewVirtualFile ) {
 + SINGLE
 + putInfoById ( ( ( NewVirtualFile ) dir ) . getId ( ) , info ) ;
 + }
 }
 return info ;
 }

do not track deprecated implementations of VirtualFile


<nb> public class HttpServerManager {
 COMMENT
 public static class JettyLog implements Logger {

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + private boolean debugEnabled = JiveGlobals . getBooleanProperty ( STRING0 ) ;
 +
 public boolean isDebugEnabled ( ) {
 - return Log . isDebugEnabled ( ) ;
 + return debugEnabled && Log . isDebugEnabled ( ) ;
 }

 public void setDebugEnabled ( boolean b ) {

Don t enable Jetty debug logging by default


<nb> ViewPager . OnPageChangeListener , EditNoteActivity . UpdatesChangedListener {
 SINGLE

 public static final int REQUEST_LOG_IN = NUMBER0 ;
 - private static final int REQUEST_VOICE_RECOG = NUMBER1 ;
 + private static final int REQUEST_VOICE_RECOG = NUMBER2 ;

 SINGLE

 <nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class QuickAddBar extends LinearLayout {
 int prompt = R . string . voice_edit_title_prompt ;
 if ( Preferences . getBoolean ( R . string . p_voiceInputCreatesTask , false ) )
 prompt = R . string . voice_create_prompt ;
 - voiceInputAssistant = new VoiceInputAssistant ( activity ,
 + voiceInputAssistant = new VoiceInputAssistant ( fragment ,
 voiceAddButton , quickAddBox ) ;
 voiceInputAssistant . configureMicrophoneButton ( prompt ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class NoPriorityByteDistributionBenchmark extends AbstractMicrobenchmark
 }

 @ override
 - public ChannelHandlerInvoker invoker ( ) {
 - throw new UnsupportedOperationException ( ) ;
 - }
 -
 - @ override
 public String name ( ) {
 throw new UnsupportedOperationException ( ) ;
 }


<nb> public class AudioManager {
 }
 if ( listener != null ) {
 Log . d ( TAG , STRING0
 - + msg . what + STRING1 + msg . obj ) ;
 + + msg . arg1 + STRING1 + msg . obj ) ;
 listener . onAudioFocusChange ( msg . arg1 ) ;
 }
 break ;


<nb> Symbol . create ( STRING0 ) , STRING1 ,
 Symbol . create ( STRING2 ) , STRING3 ,
 Symbol . create ( STRING4 ) , STRING5 ,
 Symbol . create ( STRING6 ) , STRING7 ,
 + Symbol . create ( STRING8 ) , STRING9 ,
 Symbol . create ( STRING10 ) , STRING11 ,
 Symbol . create ( STRING12 ) , STRING13 ,
 Symbol . create ( STRING14 ) , STRING15 ,


<nb> public class WPMainActivity extends AppCompatActivity {
 }

 private void moderateCommentOnActivityResult ( Intent data ) {
 +
 Note note = NotificationsTable . getNoteById ( StringUtils . notNullStr ( data . getStringExtra
 ( NotificationsListFragment . NOTE_MODERATE_ID_EXTRA ) ) ) ;
 +
 + if ( note == null ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + return ;
 + }
 +
 CommentStatus status = CommentStatus . fromString ( data . getStringExtra (
 NotificationsListFragment . NOTE_MODERATE_STATUS_EXTRA ) ) ;
 +
 NotificationsUtils . moderateCommentForNote ( note , status , findViewById ( R . id . root_view_main ) ) ;
 }


<nb> public class InternalEngine extends AbstractIndexShardComponent implements Engin
 return ;
 }
 try {
 - logger . warn ( STRING0 , reason , failure ) ;
 + logger . warn ( STRING0 , failure , reason ) ;
 SINGLE
 failedEngine = failure ;
 for ( FailedEngineListener listener : failedEngineListeners ) {


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class JedisPoolConfig implements Serializable {
 - public static final String DEFAULT_HOST = STRING0 ;

 private String host ;
 private int port ;
 <nb> public class JedisPoolConfig implements Serializable {
 COMMENT
 COMMENT
 public static class Builder {
 - private String host = DEFAULT_HOST ;
 + private String host = Protocol . DEFAULT_HOST ;
 private int port = Protocol . DEFAULT_PORT ;
 private int timeout = Protocol . DEFAULT_TIMEOUT ;
 private int database = Protocol . DEFAULT_DATABASE ;

using Jedis Protocol DEFAULT_HOST to replace DEFAULT_HOST


<nb> public abstract class OrientBaseGraph implements IndexableGraph , MetaGraph < OData
 if ( className == null )
 className = ancestorClassName ;

 - final OClass cls = db . getMetadata ( ) . getSchema ( ) . getOrCreateClass ( className , schema . getClass ( ancestorClassName ) ) ;
 + final OClass cls = schema . getOrCreateClass ( className , schema . getClass ( ancestorClassName ) ) ;
 final OProperty property = cls . getProperty ( key ) ;
 if ( property != null )
 keyType = property . getType ( ) ;

use the schema that was looked up previously


<nb> public class TaskListActivity extends AstridActivity implements MainMenuListener
 if ( newList != null ) {
 onFilterItemClicked ( newList ) ; SINGLE
 FilterListFragment fla = getFilterListFragment ( ) ;
 - if ( fla != null )
 + if ( fla != null && getFragmentLayout ( ) != LAYOUT_SINGLE )
 fla . clear ( ) ;
 }
 } else if ( requestCode == TaskListFragment . ACTIVITY_EDIT_TASK && resultCode != Activity . RESULT_CANCELED ) {

Fixed bug with activity shown for new lists


<nb> public class EnglishGrammaticalRelations {
 SINGLE
 STRING0 ,
 STRING1 , SINGLE
 - STRING2 , SINGLE
 + STRING3 , SINGLE
 SINGLE
 STRING4 ,
 SINGLE
 <nb> public class EnglishGrammaticalStructureTest extends TestCase {
 STRING5 ,
 STRING6 ,
 STRING7 ,
 + STRING8 ,
 SINGLE
 SINGLE
 } ;
 <nb> public class EnglishGrammaticalStructureTest extends TestCase {
 STRING9 +
 STRING10 +
 STRING11 ,
 + STRING12 +
 + STRING13 +
 + STRING14 +
 + STRING15 +
 + STRING16 +
 + STRING17 +
 + STRING18 +
 + STRING19 +
 + STRING20 +
 + STRING21 +
 + STRING22 +
 + STRING23 ,
 SINGLE
 SINGLE
 SINGLE

Restore ccomp for comparative standard in ADJP


<nb> class ClientConnection extends ConnectionBase {
 }

 @ override
 + public void channelInactive ( ChannelHandlerContext ctx ) throws Exception {
 + super . channelInactive ( ctx ) ;
 + context . execute ( ctx . channel ( ) . eventLoop ( ) , new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + if ( ! handshaking ) {
 + client . handleException ( new WebSocketHandshakeException ( STRING0 ) ) ;
 + }
 + }
 + } ) ;
 + }
 +
 + @ override
 public void channelRead ( final ChannelHandlerContext ctx , final Object msg ) throws Exception {
 context . execute ( ctx . channel ( ) . eventLoop ( ) , new Runnable ( ) {
 public void run ( ) {
 <nb> class ClientConnection extends ConnectionBase {
 }
 } ) ;

 +
 }

 private void handshakeComplete ( ChannelHandlerContext ctx , FullHttpResponse response ) {

Correctly notify exceptionHandler if a channel is closed during the websocket handshake


<nb> public abstract class TomcatBaseTest extends TestCase {
 STRING0 ) ;

 tempDir = new File ( System . getProperty ( STRING1 , STRING2 ) ) ;
 - if ( ! tempDir . mkdir ( ) ) {
 + if ( ! tempDir . exists ( ) && ! tempDir . mkdir ( ) ) {
 fail ( STRING3 ) ;
 }

 File appBase = new File ( tempDir , STRING4 ) ;
 - if ( ! appBase . mkdir ( ) ) {
 + if ( ! appBase . exists ( ) && ! appBase . mkdir ( ) ) {
 fail ( STRING5 ) ;
 }


<nb> public final class Runtime {
 paths . add ( STRING0 ) ;

 if ( Bro . IS_DARWIN ) {
 + paths . add ( STRING1 ) ;
 String dyLdRootPath = System . getenv ( STRING2 ) ;
 if ( dyLdRootPath != null ) {
 List < String > oldSearchPaths = new ArrayList < String > ( paths ) ;

Added usr lib system to library search paths on Darwin


<nb> public class MaterialEditText extends EditText {
 } else {
 getLabelFocusAnimator ( ) . reverse ( ) ;
 }
 - if ( outerFocusChangeListener != null ) {
 - outerFocusChangeListener . onFocusChange ( v , hasFocus ) ;
 - }
 }
 - }
 + if ( outerFocusChangeListener != null ) {
 + outerFocusChangeListener . onFocusChange ( v , hasFocus ) ;
 + }
 + }
 } ;
 super . setOnFocusChangeListener ( innerFocusChangeListener ) ;
 }

Moved outerFocusChangeListener check outside the floatingLabelEnabled check so a focus listener can be added without having to set a label


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SQLCompletionProposal implements ICompletionProposal , ICompletionPr
 @ override
 public void apply ( IDocument document ) {
 try {
 + boolean insertTrailingSpace = true ;
 + if ( object instanceof DBSObjectContainer ) {
 + SINGLE
 + } else {
 + int docLen = document . getLength ( ) ;
 + if ( docLen <= replacementOffset + NUMBER0 ) {
 + insertTrailingSpace = false ;
 + } else {
 + insertTrailingSpace = document . getChar ( replacementOffset + NUMBER1 ) != STRING0 ;
 + }
 + if ( insertTrailingSpace ) {
 + replacementString += STRING1 ;
 + }
 + cursorPosition ++ ;
 + }
 document . replace ( replacementOffset , replacementLength , replacementString ) ;
 } catch ( BadLocationException e ) {
 SINGLE

add trailing space but not after schemas catalogs


<nb> public class Compiler extends AbstractCompiler {
 CheckLevel . OFF ) ;
 }

 - if ( options . checkGlobalThisLevel . isOn ( ) ) {
 + if ( options . checkGlobalThisLevel . isOn ( ) &&
 + ! options . disables ( DiagnosticGroups . GLOBAL_THIS ) ) {
 options . setWarningLevel (
 DiagnosticGroups . GLOBAL_THIS ,
 options . checkGlobalThisLevel ) ;
 <nb> public class CommandLineRunnerTest extends TestCase {
 test ( STRING0 , CheckGlobalThis . GLOBAL_THIS ) ;
 }

 + public void testCheckGlobalThisOff ( ) {
 + args . add ( STRING1 ) ;
 + args . add ( STRING2 ) ;
 + testSame ( STRING0 ) ;
 + }
 +
 public void testTypeCheckingOffByDefault ( ) {
 test ( STRING3 ,
 STRING4 ) ;

Fix order of operations of GLOBAL_THIS options


<nb> public class PeerEurekaNode {
 for ( ReplicationTask task : tasks ) {
 boolean done = true ;
 do {
 - try {
 + done = true ;
 + try {
 Object [ ] args = {
 task . getAppName ( ) ,
 task . getId ( ) ,
 <nb> public class PeerEurekaNode {
 logger . warn (
 STRING0 ,
 args ) ;
 +
 continue ;
 }
 task . execute ( ) ;


<nb> public class TestCassandraDistributed
 }

 @ override
 + public void testCreateTableAsSelect ( )
 + throws Exception
 + {
 + SINGLE
 + }
 +
 + @ override
 public void testDelete ( )
 throws Exception
 {

Disable testCreateTableAsSelect for Cassandra


<nb> public class MysqlStorageEngine extends AbstractStorageEngine < ByteArray , byte [ ] ,

 @ override
 public void truncate ( ) {
 - Connection conn = null ;
 - PreparedStatement stmt = null ;
 - String select = STRING0 + getName ( ) ;
 - try {
 - conn = datasource . getConnection ( ) ;
 - stmt = conn . prepareStatement ( select ) ;
 - stmt . executeUpdate ( ) ;
 - } catch ( SQLException e ) {
 - throw new PersistenceFailureException ( STRING1 , e ) ;
 - } finally {
 - tryClose ( stmt ) ;
 - tryClose ( conn ) ;
 - }
 + execute ( STRING0 + getName ( ) ) ;
 }

 @ override


<nb> public class ConcurrencyWithSchedulersDemoFragment
 @ override
 public void onActivityCreated ( @ nullable Bundle savedInstanceState ) {
 super . onActivityCreated ( savedInstanceState ) ;
 - _setupLogAdapter ( ) ;
 + _setupLogger ( ) ;
 }

 @ override
 <nb> public class ConcurrencyWithSchedulersDemoFragment
 return layout ;
 }

 - private void _setupLogAdapter ( ) {
 + private void _setupLogger ( ) {
 _logs = new ArrayList < String > ( ) ;
 _adapter = new LogAdapter ( getActivity ( ) , new ArrayList < String > ( ) ) ;
 _logsList . setAdapter ( _adapter ) ;

rename setuplogadapter to just setuplogger


<nb> public class NettyAsyncHttpProviderConfig implements AsyncHttpProviderConfig < Cha
 this . nettyTimer = nettyTimer ;
 }

 - public long getHandshakeTimeoutInMillis ( ) {
 + public long getHandshakeTimeout ( ) {
 return handshakeTimeoutInMillis ;
 }

 <nb> public class ChannelManager {
 private final Bootstrap webSocketBootstrap ;
 private final Bootstrap secureWebSocketBootstrap ;

 - private final long handshakeTimeoutInMillis ;
 + private final long handshakeTimeout ;

 private final ChannelPool channelPool ;
 private final boolean maxConnectionsEnabled ;
 <nb> public class ChannelManager {
 channel2KeyPool = null ;
 }

 - handshakeTimeoutInMillis = nettyConfig . getHandshakeTimeoutInMillis ( ) ;
 + handshakeTimeout = nettyConfig . getHandshakeTimeout ( ) ;

 SINGLE
 allowReleaseEventLoopGroup = nettyConfig . getEventLoopGroup ( ) == null ;
 <nb> public class ChannelManager {
 }

 SslHandler sslHandler = new SslHandler ( sslEngine ) ;
 - if ( handshakeTimeoutInMillis > NUMBER0 )
 - sslHandler . setHandshakeTimeoutMillis ( handshakeTimeoutInMillis ) ;
 + if ( handshakeTimeout > NUMBER0 )
 + sslHandler . setHandshakeTimeoutMillis ( handshakeTimeout ) ;

 return sslHandler ;
 }

Rename handshakeTimeoutInMillis into handshakeTimeout


<nb> public abstract class ClientCall < ReqT , RespT > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class ServerCall < RespT > {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class ServerCall < RespT > {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public abstract void close ( Status status , Metadata trailers ) ;

Make thread safety ownership of Metadata explicit


<nb> public class SimpleWebServer extends NanoHTTPD {
 }

 SINGLE
 - if ( uri . startsWith ( STRING0 ) || uri . endsWith ( STRING0 ) || uri . contains ( STRING1 ) ) {
 + if ( uri . contains ( STRING1 ) ) {
 return getForbiddenResponse ( STRING2 ) ;
 }

Removed non generic hard coded path test


<nb> public class LuceneQuery implements SimpleQuery < LuceneQuery > , SimpleProjectable <

 @ override
 public long countDistinct ( ) {
 - queryMixin . getMetadata ( ) . setDistinct ( true ) ;
 return count ( ) ;
 }

 <nb> public class LuceneQuery implements SimpleQuery < LuceneQuery > , SimpleProjectable <

 @ override
 public List < Document > listDistinct ( ) {
 - queryMixin . getMetadata ( ) . setDistinct ( true ) ;
 return list ( ) ;
 }

 @ override
 public SearchResults < Document > listDistinctResults ( ) {
 - queryMixin . getMetadata ( ) . setDistinct ( true ) ;
 return listResults ( ) ;
 }

 @ override
 public SearchResults < Document > listResults ( ) {
 - SINGLE
 - return null ;
 + SINGLE
 + throw new UnsupportedOperationException ( ) ;
 }

 @ override


<nb>
 package NAMESPACE ;

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

 - public class GroovyModelDsl implements ModelDsl {
 + public class GroovyModelDsl extends GroovyObjectSupport implements ModelDsl {

 private final ModelPath modelPath ;
 private final ModelRules modelRules ;

GroovyModelDsl must implement GroovyObject in order to get correct dynamic dispatch during nested closures


<nb> public class CatalogResource extends JaxRsResourceBase {

 @ timed
 @ post
 - @ produces ( APPLICATION_XML )
 @ consumes ( APPLICATION_XML )
 @ apioperation ( value = STRING0 )
 @ apiresponses ( value = { } )
 <nb> public class OverdueResource extends JaxRsResourceBase {

 @ timed
 @ post
 - @ produces ( APPLICATION_XML )
 @ consumes ( APPLICATION_XML )
 - @ apioperation ( value = STRING0 )
 + @ apioperation ( value = STRING1 )
 @ apiresponses ( value = { } )
 public Response uploadOverdueConfigXml ( final String overdueXML ,
 @ headerparam ( HDR_CREATED_BY ) final String createdBy ,


<nb> public abstract class AbstractAdapter < Item extends IItem > extends RecyclerView . A
 COMMENT
 COMMENT
 COMMENT
 - public AbstractAdapter < Item > wrap ( FastAdapter < Item > fastAdapter ) {
 + public AbstractAdapter wrap ( FastAdapter fastAdapter ) {
 SINGLE
 this . mFastAdapter = fastAdapter ;
 this . mFastAdapter . registerAdapter ( this ) ;
 <nb> public abstract class AbstractAdapter < Item extends IItem > extends RecyclerView . A
 COMMENT
 COMMENT
 COMMENT
 - public AbstractAdapter < Item > wrap ( IAdapter < Item > abstractAdapter ) {
 + public AbstractAdapter wrap ( IAdapter abstractAdapter ) {
 SINGLE
 this . mFastAdapter = abstractAdapter . getFastAdapter ( ) ;
 this . mFastAdapter . registerAdapter ( this ) ;

remove the type from the wrap method as it should be possible to have different adapters with different types


<nb> public class MetricsUtils {
 public static File getCsvLogDir ( Map stormConf ) {
 String csvMetricsLogDirectory = Utils . getString ( stormConf . get ( Config . STORM_DAEMON_METRICS_REPORTER_CSV_LOG_DIR ) , null ) ;
 if ( csvMetricsLogDirectory == null ) {
 - csvMetricsLogDirectory = ConfigUtils . absoluteHealthCheckDir ( stormConf ) ;
 + csvMetricsLogDirectory = ConfigUtils . absoluteStormLocalDir ( stormConf ) ;
 csvMetricsLogDirectory = csvMetricsLogDirectory + ConfigUtils . FILE_SEPARATOR + STRING0 ;
 }
 File csvMetricsDir = new File ( csvMetricsLogDirectory ) ;

Fixing MetricsUtils csv directory location


<nb> public abstract class FailureDetectorPerformanceTest {
 + failureDetectorConfig . getThresholdInterval ( ) )
 . withRequiredArg ( )
 . ofType ( Long . class ) ;
 + parser . accepts ( STRING0 , STRING1 ) ;

 OptionSet options = parser . parse ( args ) ;


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class UndertowJSRWebSocketDeploymentProcessor implements DeploymentUnitPr
 if ( filters == null ) {
 metaData . getMergedJBossWebMetaData ( ) . setFilters ( filters = new FiltersMetaData ( ) ) ;
 }
 - FilterMetaData filterMetaData = new FilterMetaData ( ) ;
 - filterMetaData . setAsyncSupported ( true ) ;
 - filterMetaData . setFilterClass ( JsrWebSocketFilter . class . getName ( ) ) ;
 - filterMetaData . setName ( FILTER_NAME ) ;
 - filters . add ( filterMetaData ) ;
 -
 List < FilterMappingMetaData > mappings = metaData . getMergedJBossWebMetaData ( ) . getFilterMappings ( ) ;
 if ( mappings == null ) {
 metaData . getMergedJBossWebMetaData ( ) . setFilterMappings ( mappings = new ArrayList < > ( ) ) ;


<nb> public class PodDBAdapter {
 + KEY_FLATTR_STATUS + STRING0
 + KEY_USERNAME + STRING1
 + KEY_PASSWORD + STRING1
 - + KEY_INCLUDE_FILTER + STRING1
 - + KEY_EXCLUDE_FILTER + STRING1
 + + KEY_INCLUDE_FILTER + STRING2
 + + KEY_EXCLUDE_FILTER + STRING2
 + KEY_IS_PAGED + STRING3
 + KEY_NEXT_PAGE_LINK + STRING1
 + KEY_HIDE + STRING1


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TestMapper extends TestBase {
 String text ;
 }

 - @ test
 + @ test @ ignore ( STRING0 )
 public void SingleLookup ( ) throws Exception {
 final A a = new A ( ) ;
 HoldsMultipleA holder = new HoldsMultipleA ( ) ;


<nb> public class RelationSplitter {
 }
 }

 -
 - private static class FieldReplacingCtx {
 - Map < Symbol , Field > fieldMap ;
 -
 - public FieldReplacingCtx ( Map < Symbol , Field > fieldMap ) {
 - this . fieldMap = fieldMap ;
 - }
 -
 - public Field get ( Symbol symbol ) {
 - return fieldMap . get ( symbol ) ;
 - }
 - }
 -
 public static class SplitContext {
 final AnalyzedRelation relation ;
 final List < Symbol > directSplit = new ArrayList < > ( ) ;


<nb> public class FolderMessageList extends ExpandableListActivity
 }
 }

 - @ override
 public int compareTo ( MessageInfoHolder o )
 {
 int ascender = ( sortAscending ? NUMBER0 : - NUMBER0 ) ;

Removed Override flag from compareTo method since it isn t in the superclass


<nb> public class Client implements IConnection {
 }

 }
 - } ) ;
 + } , STRING0 ) ;

 flushChecker . setDaemon ( true ) ;
 flushChecker . start ( ) ;


<nb> class EmbeddedEventLoop extends AbstractExecutorService implements
 }

 @ override
 - public EventLoop parent ( ) {
 - return null ;
 - }
 -
 - @ override
 public Unsafe unsafe ( ) {
 return this ;
 }


<nb> public class ContextConfig
 }

 if ( sci == null ) {
 - break ;
 + continue ;
 }

 initializerClassMap . put ( sci , new HashSet < Class < ? > > ( ) ) ;

Fix SCI when there is more than one JAR on the classpath


<nb> public class ImageHelper {
 BitmapFactory . Options optBounds = new BitmapFactory . Options ( ) ;
 optBounds . inJustDecodeBounds = true ;

 - BitmapFactory . decodeFile ( filePath , optBounds ) ;
 + try {
 + BitmapFactory . decodeFile ( filePath , optBounds ) ;
 + } catch ( OutOfMemoryError e ) {
 + WPMobileStatsUtil . trackEventForSelfHostedAndWPCom ( WPMobileStatsUtil . StatsEventMediaOutOfMemory ) ;
 + return null ;
 + }

 SINGLE
 SINGLE
 <nb> public class ImageHelper {
 optActual . inSampleSize = scale ;

 SINGLE
 - Bitmap bmpResized = BitmapFactory . decodeFile ( filePath , optActual ) ;
 + Bitmap bmpResized ;
 + try {
 + bmpResized = BitmapFactory . decodeFile ( filePath , optActual ) ;
 + } catch ( OutOfMemoryError e ) {
 + WPMobileStatsUtil . trackEventForSelfHostedAndWPCom ( WPMobileStatsUtil . StatsEventMediaOutOfMemory ) ;
 + return null ;
 + }
 +
 if ( bmpResized == null )
 return null ;

Catch a few more OutOfMemoryErrors in createThumbnailFromUri wherever we are creating a Bitmap


<nb> public class WebView extends AbsoluteLayout
 @ override
 protected void onScrollChanged ( int l , int t , int oldl , int oldt ) {
 super . onScrollChanged ( l , t , oldl , oldt ) ;
 - sendOurVisibleRect ( ) ;
 + if ( ! mInOverScrollMode ) {
 + sendOurVisibleRect ( ) ;
 + SINGLE
 + SINGLE
 + int titleHeight = getTitleHeight ( ) ;
 + if ( Math . max ( titleHeight - t , NUMBER0 ) != Math . max ( titleHeight - oldt , NUMBER0 ) ) {
 + sendViewSizeZoom ( ) ;
 + }
 + }
 }

 @ override

only send new visiblerect and size on onscrollchanged if we re not in overscroll mode


<nb> public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow
 actionBar . setElevation ( FLOAT0 ) ;
 actionBar . setDisplayShowTitleEnabled ( true ) ;
 actionBar . setDisplayHomeAsUpEnabled ( true ) ;
 - actionBar . setTitle ( STRING0 ) ;
 + actionBar . setTitle ( R . string . themes ) ;

 mThemeBrowserFragment = ( ThemeBrowserFragment ) getFragmentManager ( ) . findFragmentById ( R . id . theme_tab_fragment ) ;
 }


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

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


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

 import NAMESPACE ;

 <nb> public class Preferences {
 SINGLE

 - SINGLE
 + SINGLE

 deletePreviousBox =
 - new JCheckBox ( STRING0 ) ;
 + new JCheckBox ( STRING1 ) ;
 pain . add ( deletePreviousBox ) ;
 d = deletePreviousBox . getPreferredSize ( ) ;
 deletePreviousBox . setBounds ( left , top , d . width + NUMBER0 , d . height ) ;


<nb> public class CxfRsComponentConfigurationAndDocumentationTest extends CamelTestSu
 String json = compConf . createParameterJsonSchema ( ) ;
 assertNotNull ( json ) ;

 - assertTrue ( json . contains ( STRING0 ) ) ;
 + assertTrue ( json . contains ( STRING1 ) ) ;
 assertTrue ( json . contains ( STRING2 ) ) ;
 }

Fixed Test failure of CxfRsComponentConfigurationAndDocumentationTest


<nb> public class DrawableCompat {
 @ override
 public int getLayoutDirection ( Drawable drawable ) {
 final int dir = DrawableCompatJellybeanMr1 . getLayoutDirection ( drawable ) ;
 - return dir < NUMBER0 ? dir : ViewCompat . LAYOUT_DIRECTION_LTR ;
 + return dir >= NUMBER0 ? dir : ViewCompat . LAYOUT_DIRECTION_LTR ;
 }
 }

Fix DrawableCompat getLayoutDirection shim pre M


<nb> public interface Try < T > extends CheckedMonad < T , Try < ? > > , ValueObject , Bivalent < T
 @ suppresswarnings ( STRING0 )
 @ override
 default < U > Try < U > flatten ( ) {
 - try {
 - return ( ( Try < ? extends Try < U > > ) this ) . flatten ( CheckedFunction . identity ( ) ) ;
 - } catch ( Throwable x ) {
 - SINGLE
 - return ( Try < U > ) new Failure < > ( x ) ;
 - }
 + return ( ( Try < ? extends Try < U > > ) this ) . flatten ( CheckedFunction . identity ( ) ) ;
 }

 COMMENT


<nb> public class KafkaStarterUtils {
 SINGLE
 configureTopicDeletion ( configuration , true ) ;

 + SINGLE
 + configuration . put ( STRING0 , STRING1 ) ;
 +
 return configuration ;
 }

Fix integration tests requiring Kafka when connected to VPN


<nb> public final class Aggregations {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - public static < Key > Aggregation < Key , Object , Long > count ( ) {
 - return new AggregationAdapter ( new CountAggregation < Object , Object > ( ) ) ;
 + public static < Key , Value > Aggregation < Key , Value , Long > count ( ) {
 + return new AggregationAdapter ( new CountAggregation < Key , Value > ( ) ) ;
 }

 COMMENT


<nb>
 package NAMESPACE ;

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

 - package NAMESPACE ;
 + package NAMESPACE ;

 + import NAMESPACE ;
 +
 import static NAMESPACE ;

 COMMENT
 <nb> package NAMESPACE ;

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

Move WalletTransaction into the wallet package


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class NotificationActivity extends TaskListFragment implements OnTimeSetListener {
 + public class NotificationFragment extends TaskListFragment implements OnTimeSetListener {

 SINGLE

 <nb> public class NotificationActivity extends TaskListFragment implements OnTimeSetL
 LinearLayout snoozePicker ;
 NumberPicker snoozeValue ;
 Spinner snoozeUnits ;
 - NotificationActivity parent ;
 + NotificationFragment parent ;

 - public SnoozeDialog ( NotificationActivity parent ) {
 + public SnoozeDialog ( NotificationFragment parent ) {
 super ( parent . getActivity ( ) ) ;
 this . parent = parent ;

 <nb> public class Notifications extends BroadcastReceiver {

 Intent notifyIntent = new Intent ( context , NotificationWrapperActivity . class ) ;
 notifyIntent . setAction ( STRING0 + id ) ; SINGLE
 - notifyIntent . putExtra ( NotificationActivity . TOKEN_ID , id ) ;
 + notifyIntent . putExtra ( NotificationFragment . TOKEN_ID , id ) ;
 notifyIntent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK | Intent . FLAG_ACTIVITY_MULTIPLE_TASK ) ;
 notifyIntent . putExtra ( TaskListFragment . TOKEN_SOURCE , Constants . SOURCE_NOTIFICATION ) ;


<nb> public abstract class AbstractInvocationFuture < V > implements InternalCompletable
 for ( ; ; ) {
 final Object oldState = state ;
 if ( isDone ( oldState ) ) {
 - SINGLE
 - SINGLE
 - logger . warning ( STRING0 + invocationToString ( )
 - + STRING1 + getState ( ) + STRING2 + value ) ;
 -
 + if ( oldState != value ) {
 + SINGLE
 + SINGLE
 + logger . warning ( STRING3 + invocationToString ( )
 + + STRING4 + oldState + STRING5 + value ) ;
 + }
 return false ;
 }


<nb> public class DefaultCxfBinding implements CxfBinding , HeaderFilterStrategyAware
 if ( dataFormat == DataFormat . POJO ) {
 answer = out . getBody ( ) ;
 } else if ( dataFormat == DataFormat . PAYLOAD ) {
 - answer = out . getBody ( ) ;
 + answer = out . getBody ( CxfPayload . class ) ;
 } else if ( dataFormat == DataFormat . MESSAGE ) {
 answer = out . getBody ( InputStream . class ) ;
 }

call getBody CxfPayload class to trigger converter on the response message body


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

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

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

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class JarHandler implements FileSystemInterface {
 }

 public long getCRC ( final VirtualFile file ) {
 + if ( file . getParent ( ) == null ) return - NUMBER0 ; SINGLE
 lock . lock ( ) ;
 try {
 final ZipEntry entry = convertToEntry ( file ) ;
 <nb> public class JarHandler implements FileSystemInterface {
 }

 public long getTimeStamp ( final VirtualFile file ) {
 + if ( file . getParent ( ) == null ) return - NUMBER0 ; SINGLE
 lock . lock ( ) ;
 try {
 final ZipEntry entry = convertToEntry ( file ) ;
 <nb> public class JarHandler implements FileSystemInterface {
 }

 public boolean isDirectory ( final VirtualFile file ) {
 + if ( file . getParent ( ) == null ) return true ; SINGLE
 +
 lock . lock ( ) ;
 try {
 String path = getRelativePath ( file ) ;

Even more jar root handling optimization


<nb> public class TemporaryPlacesInjector implements MultiHostInjector {

 public void getLanguagesToInject ( @ notnull final MultiHostRegistrar registrar , @ notnull final PsiElement context ) {
 final PsiLanguageInjectionHost host = ( PsiLanguageInjectionHost ) context ;
 - final PsiLanguageInjectionHost originalHost = PsiUtilBase . getOriginalElement ( host , host . getClass ( ) ) ;
 final ElementManipulator < PsiLanguageInjectionHost > manipulator = ElementManipulators . getManipulator ( host ) ;
 - LOG . assertTrue ( manipulator != null , STRING0 + host ) ;
 + if ( manipulator == null ) return ; SINGLE
 + SINGLE
 + final PsiLanguageInjectionHost originalHost = PsiUtilBase . getOriginalElement ( host , host . getClass ( ) ) ;
 final List < TemporaryPlacesRegistry . TemporaryPlace > list = TemporaryPlacesRegistry . getInstance ( context . getProject ( ) ) . getTempInjectionsSafe ( originalHost ) ;
 for ( final TemporaryPlacesRegistry . TemporaryPlace place : list ) {
 LOG . assertTrue ( place . language != null , STRING1 ) ;

no need to stop the world iff there is no manipulator no manipulator no injection


<nb> public class WindowManagerService extends IWindowManager . Stub
 && ! mWallpaperTarget . mWinAnimator . isDummyAnimation ( )
 ? null : mWallpaperTarget ;

 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + final AppWindowToken wallpaperTargetAppToken =
 + mWallpaperTarget != null ? mWallpaperTarget . mAppToken : null ;
 + if ( wallpaperTargetAppToken != null
 + && ! mClosingApps . contains ( wallpaperTargetAppToken )
 + && ! mOpeningApps . contains ( wallpaperTargetAppToken )
 + && ( transit & AppTransition . TRANSIT_EXIT_MASK ) != NUMBER0 ) {
 + mOpeningApps . add ( wallpaperTargetAppToken ) ;
 + NN ++ ;
 + }
 mInnerFields . mWallpaperMayChange = false ;

 SINGLE

Fix jank for translucent window transitions


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FileIncludeContextHectorProvider implements HectorComponentPanelsPr

 @ nullable
 public HectorComponentPanel createConfigurable ( @ notnull final PsiFile file ) {
 + if ( DumbService . getInstance ( file . getProject ( ) ) . isDumb ( ) ) {
 + return null ;
 + }
 if ( myIncludeManager . getIncludingFiles ( file . getVirtualFile ( ) , false ) . length > NUMBER0 ) {
 return new FileIncludeContextHectorPanel ( file , myIncludeManager ) ;
 }


<nb> public class PApplet extends Applet
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public int screenWidth ;

 <nb> public class PApplet extends Applet
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public int screenHeight ;

added webref tags to screenWidth and screenHeight


<nb> import NAMESPACE
 import NAMESPACE ;
 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 @ contextconfiguration ( locations = { STRING0 } )
 @ runwith ( SpringJUnit4ClassRunner . class )
 public class SEC936ApplicationContextTests {


<nb> public final class Main implements ActionListener {
 buttonCons . gridy = NUMBER0 ;
 panel . add ( insidePanel ) ;

 - autoDetectBox = new JCheckBox ( STRING0 ) ;
 + autoDetectBox = new JCheckBox ( messages . getString ( STRING1 ) ) ;
 autoDetectBox . addActionListener ( new ActionListener ( ) {
 @ override
 public void actionPerformed ( ActionEvent e ) {


<nb> public class MediaScanner
 long lastModifiedSeconds = file . lastModified ( ) / NUMBER0 ;

 if ( ! MediaFile . isAudioFileType ( fileType ) && ! MediaFile . isVideoFileType ( fileType ) &&
 - ! MediaFile . isImageFileType ( fileType ) && ! MediaFile . isPlayListFileType ( fileType ) ) {
 + ! MediaFile . isImageFileType ( fileType ) && ! MediaFile . isPlayListFileType ( fileType ) &&
 + ! MediaFile . isDrmFileType ( fileType ) ) {

 SINGLE
 ContentValues values = new ContentValues ( ) ;

Musicplayer application can not display DRM files of internal storage


<nb> final class WebSocketSessionRemoteEndpoint implements RemoteEndpoint {
 throw new EncodeException ( o , STRING0 ) ;
 }
 } catch ( Exception e ) {
 - callback . onError ( webSocketChannel , o , e ) ;
 + callback . onError ( webSocketChannel , null , e ) ;
 }
 }


<nb> public class TestPageGenerator extends HtmlPageGenerator < PerformanceTestHistory >
 + STRING0
 + STRING1 + history . getDisplayName ( ) + STRING1
 + STRING2
 - + ( BaselineVersion . isStrict ( ) ? STRING3 : STRING4 ) ;
 + + STRING3 ;
 }

 private static class Link {

Fix showing parameters in reproducing instructions


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ThreadStarvationTest
 } ) ;
 }

 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 -
 try
 {
 List < Future < String > > responses = clientExecutors . invokeAll ( clientTasks , NUMBER0 , TimeUnit . SECONDS ) ;


<nb> public class HttpRestClient implements RestClient {
 public HttpRestClient ( ) {
 DependencyInjectionService . getInstance ( ) . inject ( this ) ;

 - System . err . println ( STRING0 ) ;
 -
 SchemeRegistry schemeRegistry = new SchemeRegistry ( ) ;
 schemeRegistry . register ( new Scheme ( STRING1 , PlainSocketFactory . getSocketFactory ( ) , NUMBER0 ) ) ;
 schemeRegistry . register ( new Scheme ( STRING2 , SSLSocketFactory . getSocketFactory ( ) , NUMBER1 ) ) ;
 <nb> public class HttpRestClient implements RestClient {
 private HttpParams params ;
 private ThreadSafeClientConnManager cm ;

 - @ suppresswarnings ( STRING3 )
 private synchronized HttpClient getClient ( ) {
 if ( httpClient == null || httpClient . get ( ) == null ) {
 DefaultHttpClient client = new DefaultHttpClient ( cm , params ) ;

Removd printline and unneeded suppress warning


<nb> public class OHazelcastPlugin extends ODistributedAbstractPlugin implements Memb
 }

 public String getNodeId ( final Member iMember ) {
 - return iMember . getInetSocketAddress ( ) . toString ( ) . substring ( NUMBER0 ) ;
 + final Object ipAddress = iMember . getInetSocketAddress ( ) ;
 + if ( ipAddress != null )
 + SINGLE
 + return ipAddress . toString ( ) . substring ( NUMBER0 ) ;
 +
 + SINGLE
 + return iMember . getUuid ( ) ;
 }

 public Set < String > getRemoteNodeIds ( ) {

Fixed bug on Hazelcast members where the IP address can t be retrieved using hostnames


<nb> public abstract class UdpChannelTransport implements AutoCloseable
 if ( NUMBER0 != Configuration . SOCKET_SNDBUF_LENGTH )
 {
 datagramChannel . setOption ( StandardSocketOptions . SO_SNDBUF , Configuration . SOCKET_SNDBUF_LENGTH ) ;
 - final int soSndbuf = datagramChannel . getOption ( StandardSocketOptions . SO_SNDBUF ) ;
 -
 - if ( soSndbuf != Configuration . SOCKET_SNDBUF_LENGTH )
 - {
 - throw new IllegalStateException ( String . format (
 - STRING0 , Configuration . SOCKET_SNDBUF_LENGTH , soSndbuf ) ) ;
 - }
 }

 if ( NUMBER0 != Configuration . SOCKET_RCVBUF_LENGTH )
 {
 datagramChannel . setOption ( StandardSocketOptions . SO_RCVBUF , Configuration . SOCKET_RCVBUF_LENGTH ) ;
 - final int soRcvbuf = datagramChannel . getOption ( StandardSocketOptions . SO_RCVBUF ) ;
 -
 - if ( soRcvbuf != Configuration . SOCKET_RCVBUF_LENGTH )
 - {
 - throw new IllegalStateException ( String . format (
 - STRING1 , Configuration . SOCKET_RCVBUF_LENGTH , soRcvbuf ) ) ;
 - }
 }

 datagramChannel . configureBlocking ( false ) ;

Removed checks for not getting enough socket buffer space during creation of UdpChannelTransport


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


<nb> public class SignInFragment extends AbstractFragment implements TextWatcher , Con
 @ override
 public void onDestroyView ( ) {
 super . onDestroyView ( ) ;
 - disconnectCredentialsClient ( ) ;
 }

 @ override
 <nb> public class SignInFragment extends AbstractFragment implements TextWatcher , Con
 } ) ;
 }

 - private void disconnectCredentialsClient ( ) {
 - if ( mCredentialsClient != null && mCredentialsClient . isConnected ( ) ) {
 - mCredentialsClient . stopAutoManage ( getActivity ( ) ) ;
 - mCredentialsClient . disconnect ( ) ;
 - }
 - }
 -
 private boolean isGooglePlayServicesAvailable ( ) {
 return GoogleApiAvailability . getInstance ( ) . isGooglePlayServicesAvailable ( getActivity ( ) ) == ConnectionResult . SUCCESS ;
 }
 <nb> public class MagicLinkSignInFragment extends SignInFragment {
 mSignInButton . setText ( getString ( R . string . button_next ) ) ;
 }

 -
 -
 private void showPasswordFieldAndFocus ( ) {
 showPasswordField ( ) ;
 mPasswordEditText . requestFocus ( ) ;

Removing disconnection of credentials client


<nb> public class ShadowSQLiteDatabase extends ShadowSQLiteClosable {
 }

 @ implementation
 + public boolean isReadOnly ( ) {
 + return false ;
 + }
 +
 + @ implementation
 public void beginTransaction ( ) {
 try {
 getConnection ( ) . setAutoCommit ( false ) ;

Added an implementation for isReadOnly that just returns false


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

 @ runwith ( Parameterized . class )
 + @ category ( QuickTest . class )
 public class WebFilterTest extends AbstractWebFilterTest {

 @ parameters ( name = STRING0 )


<nb> public class ConversationFragment extends Fragment implements EditMessage . Keyboa
 if ( actionId == EditorInfo . IME_ACTION_SEND ) {
 InputMethodManager imm = ( InputMethodManager ) v . getContext ( )
 . getSystemService ( Context . INPUT_METHOD_SERVICE ) ;
 - imm . hideSoftInputFromWindow ( v . getWindowToken ( ) , NUMBER0 ) ;
 + if ( imm . isFullscreenMode ( ) ) {
 + imm . hideSoftInputFromWindow ( v . getWindowToken ( ) , NUMBER0 ) ;
 + }
 sendMessage ( ) ;
 return true ;
 } else {

minimize softkeyboard only if it has been in fullscreen mode


<nb> public class CatalogUpdater {
 }

 private Product getExistingProduct ( final String productName ) {
 - for ( final Product input : catalog . getCurrentProducts ( ) ) {
 - if ( input . getName ( ) . equals ( productName ) ) {
 - return input ;
 - }
 + try {
 + return catalog . findCurrentProduct ( productName ) ;
 + } catch ( final CatalogApiException e ) {
 + return null ;
 }
 - return null ;
 }

 private Plan getExistingPlan ( final String planName ) {
 - for ( final Plan input : catalog . getCurrentPlans ( ) ) {
 - if ( input . getName ( ) . equals ( planName ) ) {
 - return input ;
 - }
 + try {
 + return catalog . findCurrentPlan ( planName ) ;
 + } catch ( CatalogApiException e ) {
 + return null ;
 }
 - return null ;
 }

 private DefaultPlanRules getSaneDefaultPlanRules ( final DefaultPriceList defaultPriceList ) {


<nb> public class IterableSerializer
 @ override
 public boolean isEmpty ( Iterable < ? > value ) {
 SINGLE
 - return ( value == null ) || value . iterator ( ) . hasNext ( ) ;
 + return ( value == null ) || ! value . iterator ( ) . hasNext ( ) ;
 }

 @ override


<nb> public class IndexBatchCreator {
 System . err . println ( STRING0 + f . getName ( ) + STRING1 ) ;
 return false ; SINGLE
 }
 - double originalLength = original . length ( ) / MB ;
 + double originalLength = ( double ) original . length ( ) / MB ;
 if ( ! uploadToOsmandDownloads ) {
 try {
 DownloaderIndexFromGoogleCode . deleteFileFromGoogleDownloads ( f . getName ( ) , token , pagegen , cookieHSID , cookieSID ) ;


<nb> public class ProgressWindow extends BlockingProgressIndicator {
 setCancelButtonText ( text ) ;
 }

 - protected boolean isProgressDialog ( ) {
 - return true ;
 - }
 -
 public void doCancelAction ( ) {
 if ( myShouldShowCancel ) {
 ProgressWindow . this . cancel ( ) ;
 <nb> public class ProgressWindow extends BlockingProgressIndicator {
 }
 }

 + protected boolean isProgressDialog ( ) {
 + return true ;
 + }
 +
 protected JComponent createCenterPanel ( ) {
 return myPanel ;
 }

Deadlock running laters with modality states of progress indicator


<nb> public class NoSuchBufferException extends ChannelPipelineException {
 private static final String DEFAULT_MESSAGE =
 STRING0 +
 STRING1 ;
 - public static final NoSuchBufferException INSTANCE = new NoSuchBufferException ( ) ;
 -
 - static {
 - INSTANCE . setStackTrace ( new StackTraceElement [ NUMBER0 ] ) ;
 - }

 private static final long serialVersionUID = - NUMBER1 ;


<nb> public class RouteResultPreparation {
 } else if ( target . isActiveTurnMostRight ( ) ) {
 SINGLE
 SINGLE
 - if ( target . activeLen < active . activeLen ) {
 + if ( target . activeLen < active . activeLen ) {
 active . activeStartIndex += ( active . activeLen - target . activeLen ) ;
 changed = true ;
 }
 <nb> public class RouteResultPreparation {
 }
 if ( singleTurn == NUMBER0 ) {
 singleTurn = currentTurn . getValue ( ) ;
 + if ( singleTurn == TurnType . KL || singleTurn == TurnType . KR ) {
 + return ;
 + }
 }
 for ( int i = NUMBER0 ; i < lanes . length ; i ++ ) {
 if ( lanes [ i ] % NUMBER1 == NUMBER2 && TurnType . getPrimaryTurn ( lanes [ i ] ) != singleTurn ) {


<nb> public class CoverageOptionsConfigurable implements SearchableConfigurable , Conf
 }

 @ override
 - public Icon getIcon ( ) {
 - return null ;
 - }
 -
 - @ override
 public String getHelpTopic ( ) {
 return STRING0 ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public interface BinaryTasksCollection extends DomainObjectSet < Task > {
 COMMENT

add some meaningful javadoc to BinaryTasksCollection


<nb> public class PyContentEntriesEditor extends CommonContentEntriesEditor {
 }
 VirtualFilePointer root = getRoot ( provider , folder ) ;
 if ( root != null ) {
 - provider . removeRoot ( contentEntry , root ) ;
 + provider . removeRoot ( contentEntry , root , getModel ( ) ) ;
 fireUpdate ( ) ;
 }
 }
 <nb> public abstract class PyRootTypeProvider {

 public abstract boolean isMine ( ContentFolder folder ) ;

 - public void removeRoot ( ContentEntry contentEntry , @ notnull final VirtualFilePointer root ) {
 + public void removeRoot ( ContentEntry contentEntry , @ notnull final VirtualFilePointer root , ModifiableRootModel model ) {
 getRoots ( ) . remove ( contentEntry , root ) ;
 }
 public abstract MultiMap < ContentEntry , VirtualFilePointer > getRoots ( ) ;

fixed resource roots deletion from project structure in plugin


<nb> public abstract class GraphAlgoFactory

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Updated a javadoc to be correct with the behaviour


<nb> public class RandomForest implements Regression < double [ ] > {
 try {
 trees = MulticoreExecutor . run ( tasks ) ;
 } catch ( Exception ex ) {
 - System . err . println ( ex ) ;
 + ex . printStackTrace ( ) ;

 trees = new ArrayList < RegressionTree > ( T ) ;
 for ( int i = NUMBER0 ; i < T ; i ++ ) {
 <nb> public class RegressionTree implements Regression < double [ ] > {
 SINGLE
 SINGLE
 if ( M < p ) {
 - Math . permutate ( variables ) ;
 + SINGLE
 + SINGLE
 + synchronized ( RegressionTree . class ) {
 + Math . permutate ( variables ) ;
 + }
 +
 SINGLE
 for ( int j = NUMBER0 ; j < M ; j ++ ) {
 Node split = findBestSplit ( n , sum , variables [ j ] ) ;

Fix the race condition of random number generation


<nb> import NAMESPACE ;

 final class DeepLinkEntry {

 - private static final String PARAM_VALUE = STRING0 ;
 + private static final String PARAM_VALUE = STRING1 ;
 private static final String PARAM = STRING2 ;
 private static final String PARAM_REGEX = STRING3 + PARAM + STRING4 ;

 <nb> public class DeepLinkEntryTest {
 assertThat ( parameters . get ( STRING5 ) ) . isEqualTo ( STRING6 ) ;
 assertThat ( parameters . get ( STRING7 ) ) . isEqualTo ( STRING8 ) ;
 }
 +
 + @ test public void testParamWithSpecialCharacters ( ) throws Exception {
 + DeepLinkEntry entry = new DeepLinkEntry (
 + STRING9 , DeepLinkEntry . Type . CLASS , String . class , null ) ;
 +
 + Map < String , String > parameters = entry . getParameters ( STRING10 ) ;
 + assertThat ( parameters . get ( STRING11 ) ) . isEqualTo ( STRING12 ) ;
 + }
 }

Add support for hyphens and underscores as values for deeplink parameters


<nb> public class GitHistoryUtils {
 return rc ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + @ deprecated
 + @ suppresswarnings ( STRING0 )
 + public static List < Pair < SHAHash , Date > > onlyHashesHistory ( Project project , FilePath path , final String . . . parameters )
 + throws VcsException {
 + final VirtualFile root = GitUtil . getGitRoot ( path ) ;
 + return onlyHashesHistory ( project , path , root , parameters ) ;
 + }
 +
 public static List < Pair < SHAHash , Date > > onlyHashesHistory ( Project project , FilePath path , final VirtualFile root , final String . . . parameters )
 throws VcsException {
 SINGLE

Restore some obsolete method in GitHistoryUtils for TeamCity plugin compatibility


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

 - @ clusterscope ( scope = Scope . TEST , numDataNodes = NUMBER0 )
 + @ clusterscope ( scope = Scope . TEST , numDataNodes = NUMBER0 , numClientNodes = NUMBER0 , transportClientRatio = NUMBER0 )
 public class RecoveryPercolatorTests extends ElasticsearchIntegrationTest {

 @ override


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ReplicatedMapTest
 final ReplicatedMap < String , String > map1 = instance1 . getReplicatedMap ( STRING0 ) ;
 final ReplicatedMap < String , String > map2 = instance2 . getReplicatedMap ( STRING0 ) ;

 - SimpleEntryListener listener = new SimpleEntryListener ( NUMBER0 , NUMBER1 ) ;
 + SimpleEntryListener listener = new SimpleEntryListener ( NUMBER0 , NUMBER2 ) ;
 map2 . addEntryListener ( listener ) ;

 SimpleEntryListener listenerKey = new SimpleEntryListener ( NUMBER0 , NUMBER3 ) ;
 <nb> public class ReplicatedMapTest
 }

 @ override
 - public void mapEvicted ( MapEvent event ) {
 + public void entryEvicted ( EntryEvent event ) {
 evictLatch . countDown ( ) ;
 }
 }


<nb> public class JetControlFlowTest extends JetLiteFixture {
 private static String formatInstruction ( Instruction instruction , int maxLength , Set < Instruction > remainedAfterPostProcessInstructions ) {
 String [ ] parts = instruction . toString ( ) . split ( STRING0 ) ;
 boolean isRemovedThroughPostProcess = ! remainedAfterPostProcessInstructions . contains ( instruction ) ;
 - String prefix = isRemovedThroughPostProcess ? STRING1 : ( ( InstructionImpl ) instruction ) . isDead ( ) ? STRING2 : STRING3 ;
 + assert isRemovedThroughPostProcess == ( ( InstructionImpl ) instruction ) . isDead ( ) ;
 + String prefix = isRemovedThroughPostProcess ? STRING1 : STRING3 ;
 if ( parts . length == NUMBER0 ) {
 return prefix + String . format ( STRING4 + maxLength + STRING5 , instruction ) ;
 }


<nb> public @ interface TableModelSpec {

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 boolean noRowIdAlias ( ) default false ;

Update a doc in TableModelSpec annotation


<nb> public class SvnConfigurationState {

 @ attribute ( STRING0 )
 public SvnConfiguration . SSLProtocols sslProtocols =
 - SystemInfo . JAVA_RUNTIME_VERSION . startsWith ( STRING1 ) || SystemInfo . JAVA_RUNTIME_VERSION . startsWith ( STRING2 )
 - ? SvnConfiguration . SSLProtocols . all
 - : SvnConfiguration . SSLProtocols . sslv3 ;
 + SystemInfo . isJavaVersionAtLeast ( STRING1 ) ? SvnConfiguration . SSLProtocols . all : SvnConfiguration . SSLProtocols . sslv3 ;

 @ optiontag ( STRING3 )
 public long sshConnectionTimeout = NUMBER0 * NUMBER1 ;

Refactored SvnConfigurationState simplify java version checks


<nb> public class PieChartRenderer extends DataRenderer {
 c . translate ( boundingRect . left , boundingRect . top + ( boundingRect . height ( ) - layoutHeight ) / FLOAT0 ) ;
 mCenterTextLayout . draw ( c ) ;
 c . restore ( ) ;
 -
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 }
 }


<nb> public class EntropyService extends Binder {
 out . println ( SystemProperties . get ( STRING0 ) ) ;
 out . println ( SystemProperties . get ( STRING1 ) ) ;
 out . println ( SystemProperties . get ( STRING2 ) ) ;
 + out . println ( new Object ( ) . hashCode ( ) ) ;
 out . println ( System . currentTimeMillis ( ) ) ;
 out . println ( System . nanoTime ( ) ) ;
 } catch ( IOException e ) {

squeeze a few more bits of randomness into dev random


<nb> public class SyncManager implements OnAccountsUpdateListener {
 }
 } ;

 + private BroadcastReceiver mAccountsUpdatedReceiver = new BroadcastReceiver ( ) {
 + public void onReceive ( Context context , Intent intent ) {
 + onAccountsUpdated ( null ) ;
 + }
 + } ;
 +
 private final PowerManager mPowerManager ;

 SINGLE
 <nb> public class SyncManager implements OnAccountsUpdateListener {
 } ) ;

 if ( ! factoryTest ) {
 - AccountManager . get ( mContext ) . addOnAccountsUpdatedListener ( SyncManager . this ,
 - mSyncHandler , false COMMENT ) ;
 + SINGLE
 + mContext . registerReceiverAsUser ( mAccountsUpdatedReceiver ,
 + UserHandle . ALL ,
 + new IntentFilter ( AccountManager . LOGIN_ACCOUNTS_CHANGED_ACTION ) ,
 + null , null ) ;
 SINGLE
 onAccountsUpdated ( null ) ;
 }

Fix sync problems when setting up a new user and account


<nb> public class DefaultManagementAgent extends ServiceSupport implements Management
 }

 public < T > T newProxyClient ( ObjectName name , Class < T > mbean ) {
 - if ( server != null && server . isRegistered ( name ) ) {
 - return MBeanServerInvocationHandler . newProxyInstance ( server , name , mbean , false ) ;
 + if ( isRegistered ( name ) ) {
 + ObjectName on = mbeansRegistered . get ( name ) ;
 + return MBeanServerInvocationHandler . newProxyInstance ( server , on != null ? on : name , mbean , false ) ;
 } else {
 return null ;
 }


<nb> public class TimerHandler implements IUpdateHandler {
 }

 public TimerHandler ( final float pTimerSeconds , final boolean pAutoReset , final ITimerCallback pTimerCallback ) {
 - if ( pTimerSeconds < NUMBER0 ) {
 - throw new IllegalStateException ( STRING0 ) ;
 + if ( pTimerSeconds <= NUMBER0 ) {
 + throw new IllegalStateException ( STRING1 ) ;
 }

 this . mTimerSeconds = pTimerSeconds ;
 <nb> public class TimerHandler implements IUpdateHandler {
 }

 public void setTimerSeconds ( final float pTimerSeconds ) {
 - if ( pTimerSeconds < NUMBER0 ) {
 - throw new IllegalStateException ( STRING0 ) ;
 + if ( pTimerSeconds <= NUMBER0 ) {
 + throw new IllegalStateException ( STRING1 ) ;
 }

 this . mTimerSeconds = pTimerSeconds ;


<nb> public class TodoCheckinHandlerWorker {
 private static ArrayList < LineFragment > getLineFragments ( String beforeContent , String afterContent ) {
 DiffFragment [ ] woFormattingBlocks = DiffPolicy . LINES_WO_FORMATTING . buildFragments ( beforeContent , afterContent ) ;
 DiffFragment [ ] step1lineFragments =
 - new DiffCorrection . TrueLineBlocks ( ComparisonPolicy . DEFAULT ) . correctAndNormalize ( woFormattingBlocks ) ;
 + new DiffCorrection . TrueLineBlocks ( ComparisonPolicy . IGNORE_SPACE ) . correctAndNormalize ( woFormattingBlocks ) ;
 return new DiffFragmentsProcessor ( ) . process ( step1lineFragments ) ;
 }

ignore spaces when doing fragments with todo comparison


<nb> public class DuplicatesIndex extends FileBasedIndexExtension < Integer , TIntArrayL
 private static boolean ourEnabledOldProfiles = false ;

 @ nonnls public static final ID < Integer , TIntArrayList > NAME = ID . create ( STRING0 ) ;
 - private static final int myBaseVersion = NUMBER0 ;
 + private static final int myBaseVersion = NUMBER1 ;

 private final FileBasedIndex . InputFilter myInputFilter = new FileBasedIndex . InputFilter ( ) {
 @ override

Duplicate hash for method call to include number of arguments


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


<nb> public abstract class Equivalence < T > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Fix Equivalence wrap documentation to match the appropriate usage of the method and the javadoc on the Wrapper class


<nb> public @ interface TableModelSpec {
 COMMENT
 String virtualModule ( ) default STRING0 ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + boolean noRowIdAlias ( ) default false ;
 +
 }

Add a flag to TableModelSpec for disabling the automatic integer primary key rowid alias


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - @ state ( name = STRING0 , storages = { @ storage ( file = StoragePathMacros . APP_CONFIG + STRING1 ) } )
 + @ state ( name = STRING0 , roamingType = RoamingType . DISABLED , storages = { @ storage ( file = StoragePathMacros . APP_CONFIG + STRING1 ) } )
 public class UsageTrigger implements PersistentStateComponent < UsageTrigger . State > {

 public static class State {
 <nb> import NAMESPACE ;

 @ state (
 name = STRING2 ,
 + roamingType = RoamingType . DISABLED ,
 storages = {
 @ storage (
 file = StoragePathMacros . APP_CONFIG + STRING1

Serega Vasiliev don t share statistics application usages xml


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


<nb> class ParquetHiveRecordCursor
 requireNonNull ( partitionKeys , STRING0 ) ;
 requireNonNull ( columns , STRING1 ) ;

 -
 this . totalBytes = length ;

 int size = columns . size ( ) ;


<nb> package NAMESPACE ;

 import NAMESPACE ;

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

 abstract public class BaseJob implements Serializable {
 public static final int DEFAULT_RETRY_LIMIT = NUMBER0 ;
 - private final boolean requiresNetwork ;
 - private final String groupId ;
 + private boolean requiresNetwork ;
 + private String groupId ;
 private transient int currentRunCount ;

 protected BaseJob ( boolean requiresNetwork ) {
 <nb> abstract public class BaseJob implements Serializable {
 this . groupId = groupId ;
 }

 + private void writeObject ( ObjectOutputStream oos ) throws IOException {
 + oos . writeBoolean ( requiresNetwork ) ;
 + oos . writeObject ( groupId ) ;
 + }
 +
 +
 + private void readObject ( ObjectInputStream ois ) throws ClassNotFoundException , IOException {
 + requiresNetwork = ois . readBoolean ( ) ;
 + groupId = ( String ) ois . readObject ( ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT

add custom serialization code to base job


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 COMMENT
 COMMENT
 @ incubating
 + @ hasinternalprotocol
 public interface TypeBuilder < C > {

 COMMENT


<nb> public class SQLiteDatabase extends SQLiteClosable {
 }
 int i = mConnectionPool . getMaxPoolSize ( ) ;
 if ( size < i ) {
 - throw new IllegalStateException (
 + throw new IllegalArgumentException (
 STRING0 +
 i + STRING1 ) ;
 }


<nb> public class WifiEnterpriseConfig implements Parcelable {
 StringBuffer sb = new StringBuffer ( ) ;
 for ( String key : mFields . keySet ( ) ) {
 SINGLE
 - String value = ( key == PASSWORD_KEY ) ? STRING0 : mFields . get ( key ) ;
 + String value = PASSWORD_KEY . equals ( key ) ? STRING0 : mFields . get ( key ) ;
 sb . append ( key ) . append ( STRING1 ) . append ( value ) . append ( STRING2 ) ;
 }
 return sb . toString ( ) ;


<nb> public class SummaryJavadocTest extends BaseCheckTestSupport {
 @ test
 public void testIncorrect ( ) throws Exception {

 - String msg_first_sentence = getCheckMessage ( SummaryJavadocCheck . class , STRING0 ) ;
 - String msg_forbidden_fragment = getCheckMessage ( SummaryJavadocCheck . class , STRING1 ) ;
 + String msgFirstSentence = getCheckMessage ( SummaryJavadocCheck . class , STRING0 ) ;
 + String msgForbiddenFragment = getCheckMessage ( SummaryJavadocCheck . class , STRING1 ) ;

 final String [ ] expected = {
 - STRING2 + msg_first_sentence ,
 - STRING3 + msg_first_sentence ,
 - STRING4 + msg_forbidden_fragment ,
 - STRING5 + msg_forbidden_fragment ,
 - STRING6 + msg_first_sentence ,
 - STRING7 + msg_forbidden_fragment ,
 - STRING8 + msg_first_sentence ,
 + STRING2 + msgFirstSentence ,
 + STRING3 + msgFirstSentence ,
 + STRING4 + msgForbiddenFragment ,
 + STRING5 + msgForbiddenFragment ,
 + STRING6 + msgFirstSentence ,
 + STRING7 + msgForbiddenFragment ,
 + STRING8 + msgFirstSentence ,
 } ;

 Configuration checkConfig = builder . getCheckConfig ( STRING9 ) ;

Rename local variables according to convention


<nb> public class VirtualWebappLoader extends WebappLoader {
 COMMENT
 COMMENT
 COMMENT
 - private String virtualClasspath ;
 + private String virtualClasspath = STRING0 ;

 COMMENT
 COMMENT

Fix NPE in unconfigured VirtualWebappLoader


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


<nb> public final class DashMediaSource implements MediaSource {
 private void processManifest ( ) {
 SINGLE
 for ( int i = NUMBER0 ; i < periodsById . size ( ) ; i ++ ) {
 - periodsById . valueAt ( i ) . updateManifest ( manifest , firstPeriodId + periodsById . keyAt ( i ) ) ;
 + periodsById . valueAt ( i ) . updateManifest ( manifest , periodsById . keyAt ( i ) - firstPeriodId ) ;
 }
 SINGLE
 handler . removeCallbacks ( simulateManifestRefreshRunnable ) ;


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

 package NAMESPACE ;


<nb> public final class StrictJavaDepsPlugin extends BlazeJavaCompilerPlugin {
 }
 }

 + private static final String TIKTOK_COMPONENT_PROCESSOR_NAME =
 + STRING0 ;
 +
 + private static final String DAGGER_PROCESSOR_PREFIX = STRING1 ;
 +
 public static boolean generatedByDagger ( JCTree . JCClassDecl tree ) {
 if ( tree . sym == null ) {
 return false ;
 <nb> public final class StrictJavaDepsPlugin extends BlazeJavaCompilerPlugin {
 return false ;
 }
 for ( String value : generated . value ( ) ) {
 - if ( value . startsWith ( STRING1 ) ) {
 + if ( value . startsWith ( DAGGER_PROCESSOR_PREFIX ) ) {
 + return true ;
 + }
 + SINGLE
 + if ( value . equals ( TIKTOK_COMPONENT_PROCESSOR_NAME ) ) {
 return true ;
 }
 }

Relax strict java deps for tiktok s component processor


<nb> public class HystrixObservableCollapserTest {
 }

 @ test
 + public void stressTestRequestCollapser ( ) throws Exception {
 + for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
 + init ( ) ;
 + testTwoRequests ( ) ;
 + cleanup ( ) ;
 + }
 + }
 +
 + @ test
 public void testTwoRequestsWhichShouldEachEmitTwice ( ) throws Exception {
 SINGLE
 CollapserTimer timer = new RealCollapserTimer ( ) ;

Reinstate the HystrixObservableCollapserTest stress test after some runs showed there might still be a bug


<nb> public class OpenALAudio implements Audio {
 if ( state != AL_STOPPED ) alSourceStop ( streamID ) ;
 alDeleteSources ( streamID ) ;
 }
 +
 + AL . destroy ( ) ;
 }

 public AudioDevice newAudioDevice ( boolean isMono ) {
 <nb> public class OpenALAudio implements Audio {

 public AudioRecorder newAudioRecoder ( int samplingRate , boolean isMono ) {
 return new JavaSoundAudioRecorder ( samplingRate , isMono ) ;
 - }
 + }
 }

fixed missing AL destroy in OpenALAudio dispose


<nb> public class AlpnOpenListener implements ChannelListener < StreamConnection > , Open
 this ( bufferPool , undertowOptions , STRING0 , httpListener ) ;
 }

 + public AlpnOpenListener ( ByteBufferPool bufferPool ) {
 + this ( bufferPool , OptionMap . EMPTY , null , null ) ;
 + }
 public AlpnOpenListener ( ByteBufferPool bufferPool , OptionMap undertowOptions ) {
 this ( bufferPool , undertowOptions , null , null ) ;
 }


<nb> public class HttpStreamCacheFileTest extends CamelTestSupport {
 String out = template . requestBody ( STRING0 , STRING1 , String . class ) ;
 assertEquals ( STRING2 , out ) ;

 + SINGLE
 + Thread . sleep ( NUMBER0 ) ;
 +
 SINGLE
 File file = new File ( STRING3 ) ;
 String [ ] files = file . list ( ) ;
 <nb> public class HttpStreamCacheFileTest extends CamelTestSupport {
 assertEquals ( STRING4 , body , s ) ;
 }

 + SINGLE
 + Thread . sleep ( NUMBER0 ) ;
 +
 SINGLE
 File file = new File ( STRING3 ) ;
 String [ ] files = file . list ( ) ;


<nb> class LogbackModule extends Module {
 }
 }

 - private static class Log4jDeserializers extends Deserializers . Base {
 + private static class LogbackDeserializers extends Deserializers . Base {
 @ override
 public JsonDeserializer < ? > findBeanDeserializer ( JavaType type ,
 DeserializationConfig config ,
 <nb> class LogbackModule extends Module {

 @ override
 public void setupModule ( SetupContext context ) {
 - context . addDeserializers ( new Log4jDeserializers ( ) ) ;
 + context . addDeserializers ( new LogbackDeserializers ( ) ) ;
 }
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class NDArray extends DoubleMatrix {
 + public class NDArray extends DoubleMatrix {

 private int [ ] shape ;
 private int [ ] stride ;


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

 package NAMESPACE ;

 <nb> public interface SharedLibraryFinder {

 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 String getSharedLibraryNameLinux ( String sharedLibName , boolean is64Bit , boolean isArm , ZipFile nativesJar ) ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class DefaultProjectsPluginContainer extends DefaultPluginCollection < Plug
 return getPlugin ( id ) ;
 }

 + public < T extends Plugin > T getAt ( Class < T > type ) throws UnknownPluginException {
 + return getPlugin ( type ) ;
 + }
 +
 public < T extends Plugin > T getPlugin ( Class < T > type ) throws UnknownPluginException {
 Plugin plugin = findPlugin ( type ) ;
 if ( plugin == null ) {
 <nb> public interface PluginContainer extends PluginCollection < Plugin > {
 COMMENT
 COMMENT
 Plugin getAt ( String id ) throws UnknownPluginException ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + < T extends Plugin > T getAt ( Class < T > type ) throws UnknownPluginException ;
 }


<nb> public enum Material {
 DIAMOND ( NUMBER0 ) ,
 IRON_INGOT ( NUMBER1 ) ,
 GOLD_INGOT ( NUMBER2 ) ,
 - IRON_SWORD ( NUMBER3 , NUMBER4 , NUMBER5 ) ,
 + IRON_SWORD ( NUMBER3 , NUMBER4 , NUMBER6 ) ,
 WOOD_SWORD ( NUMBER7 , NUMBER4 , NUMBER5 ) ,
 WOOD_SPADE ( NUMBER8 , NUMBER4 , NUMBER5 ) ,
 WOOD_PICKAXE ( NUMBER9 , NUMBER4 , NUMBER5 ) ,
 <nb> public enum Material {
 POWERED_MINECART ( NUMBER10 , NUMBER4 ) ,
 EGG ( NUMBER11 , NUMBER12 ) ,
 COMPASS ( NUMBER13 ) ,
 - FISHING_ROD ( NUMBER14 , NUMBER4 , NUMBER15 ) ,
 + FISHING_ROD ( NUMBER14 , NUMBER4 , NUMBER16 ) ,
 WATCH ( NUMBER17 ) ,
 GLOWSTONE_DUST ( NUMBER18 ) ,
 RAW_FISH ( NUMBER19 ) ,


<nb> public class ODistributedServerManager extends OServerHandlerAbstract {

 public List < ODistributedServerNodeRemote > getNodeList ( ) {
 lock . acquireSharedLock ( ) ;
 + if ( nodes . isEmpty ( ) )
 + return null ;
 +
 try {
 return new ArrayList < ODistributedServerNodeRemote > ( nodes . values ( ) ) ;
 } finally {

Optimized clustering node checking when no nodes exists at all


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 public class TrackableResource < T extends Trackable > {

 + private static final Logger logger = LoggerFactory . getLogger ( TrackableResource . class ) ;
 public static final String TRACKING_HEADER = STRING0 ;

 private final Class < T > type ;
 <nb> public class TrackableResource < T extends Trackable > {
 try {
 latch . await ( NUMBER0 , TimeUnit . SECONDS ) ;
 } catch ( InterruptedException e ) {
 - e . printStackTrace ( ) ; SINGLE
 + logger . trace ( STRING1 , e ) ;
 }
 return resource ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TagSettingsActivity extends Activity {
 Toast . makeText ( this , R . string . tag_list_saved , Toast . LENGTH_LONG ) . show ( ) ;

 tagDataService . save ( tagData ) ;
 + InputMethodManager imm = ( InputMethodManager ) getSystemService ( Context . INPUT_METHOD_SERVICE ) ;
 + imm . hideSoftInputFromWindow ( tagName . getWindowToken ( ) , NUMBER0 ) ;

 if ( isNewTag ) {
 Intent intent = new Intent ( this , TagViewActivity . class ) ;

Fixed a bug where keyboard would stay up after editing tag settings


<nb> public class ReaderWebView extends WebView {
 this . setWebChromeClient ( mReaderChromeClient ) ;
 this . setWebViewClient ( new ReaderWebViewClient ( this ) ) ;
 this . getSettings ( ) . setUserAgentString ( WordPress . getUserAgent ( ) ) ;
 + this . getSettings ( ) . setDefaultFontSize (
 + ( int ) ( this . getSettings ( ) . getDefaultFontSize ( ) * getResources ( ) . getConfiguration ( ) . fontScale ) ) ;
 + this . getSettings ( ) . setDefaultFixedFontSize (
 + ( int ) ( this . getSettings ( ) . getDefaultFixedFontSize ( ) * getResources ( ) . getConfiguration ( ) . fontScale ) ) ;
 SINGLE
 SINGLE
 if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ) {

Follow system font size in Reader post detail


<nb> public abstract class AbstractService < S extends ServiceManager > implements Servi

 @ override
 public String toString ( ) {
 - return getClass ( ) . getName ( ) + STRING0 + serviceManager + STRING1 ;
 + return getClass ( ) . getName ( ) + STRING2 + serviceManager . getClass ( ) + STRING1 ;
 }
 }

Fixed a stack overflow exception if one println ed


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

 - import NAMESPACE ;
 -
 import static NAMESPACE ;

 public class ViolationMigrationTest {
 <nb> public class ViolationMigrationTest {

 private void assertMigrationEnded ( ) {
 assertThat ( db . count ( STRING0 ) ) . isEqualTo ( NUMBER0 ) ;
 -
 - SINGLE
 - Set < Thread > threads = Thread . getAllStackTraces ( ) . keySet ( ) ;
 - for ( Thread thread : threads ) {
 - assertThat ( thread . getName ( ) ) . isNotEqualTo ( Progress . THREAD_NAME ) ;
 - }
 }
 }

Remove test that has too many false positives


<nb> public abstract class PageCacheTest < T extends PageCache > extends PageCacheTestSu
 {
 assertTrue ( cursor . next ( ) ) ;
 }
 + int offset = cursor . getOffset ( ) ;
 byte b ;
 do
 {
 + cursor . setOffset ( offset ) ;
 b = cursor . getByte ( ) ;
 }
 while ( cursor . shouldRetry ( ) ) ;


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

 - import NAMESPACE ;
 + import NAMESPACE ;

 public class EditorExampleActivity extends ActionBarActivity implements EditorFragmentListener {
 @ override
 <nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 - public class EditorFragment extends EditorFragmentInterface {
 + public class EditorFragment extends EditorFragmentAbstract {
 private static final String ARG_PARAM_TITLE = STRING0 ;
 private static final String ARG_PARAM_CONTENT = STRING1 ;

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

 - public abstract class EditorFragmentInterface extends Fragment {
 + public abstract class EditorFragmentAbstract extends Fragment {
 public abstract void setTitle ( CharSequence text ) ;
 public abstract void setContent ( CharSequence text ) ;
 protected EditorFragmentListener mEditorFragmentListener ;

rename EditorFragmentInterface to EditorFragmentAbstract


<nb> public class AdjustDwellTime extends TimetableFilter {

 for ( int i = NUMBER0 ; i < tt . getNumStops ( ) ; i ++ ) {
 SINGLE
 - if ( stopId . contains ( tp . getStop ( i ) . getId ( ) . getId ( ) ) )
 + if ( stopId == null || stopId . contains ( tp . getStop ( i ) . getId ( ) . getId ( ) ) )
 dwellTimes [ i ] = dwellTime ;
 else
 dwellTimes [ i ] = tt . getScheduledDepartureTime ( i ) - tt . getScheduledArrivalTime ( i ) ;


<nb> public class ClientSplitBrainTest extends HazelcastTestSupport {
 public void run ( ) throws Exception {
 assertEquals ( STRING0 + id , NUMBER0 , atomicIntegers [ id ] . get ( ) ) ;
 }
 - } , NUMBER1 ) ;
 + } ) ;
 }
 }

increase the timeout of eventually in ClientSplitBraintTest


<nb> public class WebSettingsTest {

 @ test
 public void testPluginState ( ) {
 - WebSettings . PluginState [ ] states = {
 - WebSettings . PluginState . OFF ,
 - WebSettings . PluginState . ON ,
 - WebSettings . PluginState . ON_DEMAND
 - } ;

 - for ( WebSettings . PluginState state : states ) {
 + for ( WebSettings . PluginState state : WebSettings . PluginState . values ( ) ) {
 webSettings . setPluginState ( state ) ;
 assertThat ( webSettings . getPluginState ( ) ) . isEqualTo ( state ) ;
 }


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


<nb> public class MailServiceTestUtil {
 return _smtpServer . getMessage ( _smtpServer . getEmailCount ( ) - NUMBER0 ) ;
 }

 - return null ;
 + throw new IndexOutOfBoundsException (
 + STRING0 ) ;
 }

 public static List < MailMessage > getMailMessages (

throw exception instead of returning null


<nb> public class ResultSetViewer extends Viewer
 }

 void updatePresentation ( final DBCResultSet resultSet ) {
 + if ( getControl ( ) . isDisposed ( ) ) {
 + return ;
 + }
 boolean changed = false ;
 try {
 if ( resultSet instanceof StatResultSet ) {


<nb> public class VariableInplaceRenamer {
 } ) ;
 }
 } , RENAME_TITLE , null ) ;
 + PsiDocumentManager . getInstance ( myProject ) . commitDocument ( myEditor . getDocument ( ) ) ;
 }

 private static VirtualFile getTopLevelVirtualFile ( final FileViewProvider fileViewProvider ) {

commit document after modifications in a command