<nb> public abstract class SafeAsyncTask < ArgumentT , ResultT > {
 return rtrn ;

 } catch ( final Exception e ) {
 - Log . d ( STRING0 , STRING1 , e ) ;
 try {
 postToUiThreadAndWait ( new Callable < Object > ( ) {
 public Object call ( ) throws Exception {
 <nb> public abstract class SafeAsyncTask < ArgumentT , ResultT > {
 protected void onSuccess ( ResultT t ) throws Exception { }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 - protected void onException ( Exception e ) { }
 + protected void onException ( Exception e ) {
 + Log . e ( STRING0 , STRING1 , e ) ;
 + }

 COMMENT
 COMMENT


<nb> public class InstalledPluginsManagerMain extends PluginManagerMain {
 }

 IdeaPluginDescriptor installedPlugin = PluginManager . getPlugin ( pluginDescriptor . getPluginId ( ) ) ;
 - if ( installedPlugin != null ) {
 + if ( installedPlugin != null && ! installedPlugin . isBundled ( ) ) {
 File oldFile = installedPlugin . getPath ( ) ;
 if ( oldFile != null ) {
 StartupActionScriptManager . addActionCommand ( new StartupActionScriptManager . DeleteCommand ( oldFile ) ) ;

don t delete bundled plugins when installing an updated plugin with the same ID from the plugin repo


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class ContainerUtil extends ContainerUtilRt {
 }
 @ notnull
 @ contract ( pure = true )
 + public static < K , V > ConcurrentMap < K , V > createConcurrentSoftMap ( int initialCapacity ,
 + float loadFactor ,
 + int concurrencyLevel ,
 + @ notnull TObjectHashingStrategy < K > hashingStrategy ) {
 + SINGLE
 + return new ConcurrentSoftHashMap < K , V > ( initialCapacity , loadFactor , concurrencyLevel , hashingStrategy ) ;
 + }
 + @ notnull
 + @ contract ( pure = true )
 public static < K , V > ConcurrentMap < K , V > createConcurrentWeakMap ( int initialCapacity ,
 float loadFactor ,
 int concurrencyLevel ,


<nb> public class Cancel extends Command {
 public Cancel ( Object identifier ) {
 super ( identifier ) ;
 }
 -
 - @ override
 - public String toString ( ) {
 - return getClass ( ) . getSimpleName ( ) + STRING0
 - + STRING1 + getIdentifier ( )
 - + STRING2 ;
 - }
 }
 <nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class HandleCancel implements DaemonCommandAction {
 }
 } ) ;
 try {
 - try {
 - execution . proceed ( ) ;
 - } finally {
 - execution . getConnection ( ) . onCancel ( null ) ;
 - }
 - } catch ( Exception e ) {
 - throw UncheckedException . throwAsUncheckedException ( e ) ;
 + execution . proceed ( ) ;
 + } finally {
 + execution . getConnection ( ) . onCancel ( null ) ;
 }
 }
 }


<nb> public class TestResource extends JaxRsResourceBase {
 areAllNotificationsProcessed = areAllNotificationsProcessed && areAllBusEventsProcessed ( tenantRecordId ) ;
 SINGLE
 areAllNotificationsProcessed = areAllNotificationsProcessed && areAllNotificationsProcessed ( tenantRecordId ) ;
 + areAllNotificationsProcessed = areAllNotificationsProcessed && areAllBusEventsProcessed ( tenantRecordId ) ;
 if ( ! areAllNotificationsProcessed ) {
 Thread . sleep ( MILLIS_IN_SEC ) ;
 nbTryLeft -- ;

add workaround for race conditions in TestResource


<nb> public class ExpressionTypingVisitorDispatcher extends JetVisitor < JetType , Expre
 result = null ;
 }

 - if ( ! context . trace . get ( BindingContext . PROCESSED , expression ) ) {
 + if ( ! context . trace . get ( BindingContext . PROCESSED , expression ) && ! ( expression instanceof JetReferenceExpression ) ) {
 context . trace . record ( BindingContext . RESOLUTION_SCOPE , expression , context . scope ) ;
 }
 context . trace . record ( BindingContext . PROCESSED , expression ) ;

not to rewrite RESOLUTION_SCOPE for references


<nb> public class InMemoryMetricsTest {
 verifyMetrics ( STRING0 , ImmutableMap . of ( M_GET_SLICE , NUMBER0 , M_MUTATE , NUMBER1 , M_ACQUIRE_LOCK , NUMBER0 ) ) ;
 assertEquals ( NUMBER2 , CachedKeyColumnValueStore . getGlobalCacheMisses ( ) ) ;
 assertEquals ( NUMBER3 , CachedKeyColumnValueStore . getGlobalCacheHits ( ) ) ;
 + SINGLE
 + SINGLE
 + SINGLE

 tx = graph . buildTransaction ( ) . setMetricsPrefix ( METRICS ) . start ( ) ;
 Iterable < TitanRelation > relations = ( ( TitanVertexQuery ) tx . getVertex ( parentVertex ) . query ( ) ) . relations ( ) ;


<nb> public class DataSchema
 final Set < String > dimensionExclusions = Sets . newHashSet ( ) ;
 for ( AggregatorFactory aggregator : aggregators ) {
 dimensionExclusions . addAll ( aggregator . requiredFields ( ) ) ;
 + dimensionExclusions . add ( aggregator . getName ( ) ) ;
 }

 if ( inputRowParser . getParseSpec ( ) != null ) {
 <nb> public class DataSchemaTest
 ) ;

 Assert . assertEquals (
 - ImmutableSet . of ( STRING0 , STRING1 , STRING2 ) ,
 + ImmutableSet . of ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 ) ,
 schema . getParser ( ) . getParseSpec ( ) . getDimensionsSpec ( ) . getDimensionExclusions ( )
 ) ;
 }
 <nb> public class DataSchemaTest
 ) ;

 Assert . assertEquals (
 - ImmutableSet . of ( STRING5 , STRING1 ) ,
 + ImmutableSet . of ( STRING5 , STRING1 , STRING3 , STRING4 ) ,
 schema . getParser ( ) . getParseSpec ( ) . getDimensionsSpec ( ) . getDimensionExclusions ( )
 ) ;
 }

Exclude metric names from dimension list


<nb> public final class CameraManager {
 if ( DEBUG ) {
 Log . v ( TAG ,
 String . format (
 - STRING0 +
 - STRING1 +
 + STRING2 +
 + STRING3 +
 STRING4 ,
 - isAvailable ( status ) , isAvailable ( status ) ) ) ;
 + isAvailable ( oldStatus ) , isAvailable ( status ) ) ) ;
 }
 return ;
 }


<nb> public class IWindowManagerImpl implements IWindowManager {
 SINGLE
 return null ;
 }
 +
 + @ override
 + public void cancelTaskWindowTransition ( int taskId ) {
 + }
 }


<nb> public class ImageProcessor {
 private final HashMap < String , Rect > crcs = new HashMap ( ) ;
 private final Array < Rect > rects = new Array ( ) ;

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 public ImageProcessor ( File rootDir , Settings settings ) {
 this . settings = settings ;

 <nb> public class TexturePacker2 {
 private final MaxRectsPacker maxRectsPacker ;
 private final ImageProcessor imageProcessor ;

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 public TexturePacker2 ( File rootDir , Settings settings ) {
 this . settings = settings ;


<nb> public class ResourceManagementServiceImpl
 public ImageIcon getImage ( String imageID )
 {
 URL imageURL = getImageURL ( imageID ) ;
 -
 + if ( imageURL == null )
 + {
 + return null ;
 + }
 return new ImageIcon ( imageURL ) ;
 }
 }

Fix NPE when trying to get an image from an imageID that is missing in the resources


<nb> public abstract class Editor extends JFrame implements RunnerListener {
 if ( formattedText . equals ( source ) ) {
 statusNotice ( Language . text ( STRING0 ) ) ;
 } else {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + endTextEditHistory ( ) ;
 startCompoundEdit ( ) ;
 +
 SINGLE
 SINGLE
 int scrollPos = textarea . getVerticalScrollPosition ( ) ;
 - setText ( formattedText ) ;
 + textarea . setText ( formattedText ) ;
 setSelection ( selectionEnd , selectionEnd ) ;

 SINGLE

Fix hopefully issues with undoing auto format again


<nb> public class ManagementCenterService {
 return ;
 }

 - managementCenterUrl = newUrl ;
 if ( newUrl . equals ( managementCenterUrl ) ) {
 return ;
 }
 + managementCenterUrl = newUrl ;

 if ( ! isRunning ( ) ) {
 start ( ) ;

fix management center url update problem


<nb> final class DefaultChannelHandlerContext extends DefaultAttributeMap implements
 pipeline . childExecutors . put ( executor , childExecutor ) ;
 }
 this . executor = childExecutor ;
 + } else if ( channel . isRegistered ( ) ) {
 + this . executor = channel . eventLoop ( ) ;
 } else {
 this . executor = null ;
 }

Get the executor of the context earlier if possible


<nb> public class CommandContext {
 SINGLE
 log . debug ( STRING0 + exception ) ;
 } else {
 - log . debug ( STRING1 , exception ) ;
 + log . error ( STRING1 , exception ) ;
 }

 transactionContext . rollback ( ) ;


<nb> public class MethodInvoker {
 this . method = method ;
 }

 - public void invoke ( Object target , Object [ ] javaArgs ) throws Throwable {
 + public Object invoke ( Object target , Object [ ] javaArgs ) throws Throwable {
 try {
 if ( method . isAnnotationPresent ( Pending . class ) ) {
 throw JRuby . cucumberPending ( method . getAnnotation ( Pending . class ) . value ( ) ) ;
 } else {
 - method . invoke ( target , javaArgs ) ;
 + return method . invoke ( target , javaArgs ) ;
 }
 } catch ( IllegalArgumentException e ) {
 String m = STRING0 + method . toGenericString ( ) + STRING1 + cuke4duke . internal . Utils . join ( javaArgs , STRING2 ) ;

Wanted a return type from the methodinvoker


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class TitanGraphTest extends TitanGraphBaseTest {
 assertEquals ( NUMBER0 , mgmt . getTTL ( label1 ) . getLength ( TimeUnit . SECONDS ) ) ;
 mgmt . commit ( ) ;

 - Vertex v1 = tx . addVertex ( STRING0 , STRING1 , STRING2 , STRING3 , System . currentTimeMillis ( ) ) ;
 + Vertex v1 = tx . addVertex ( T . label , STRING0 , STRING1 , STRING2 , STRING3 , System . currentTimeMillis ( ) ) ;
 tx . commit ( ) ;
 Object id = v1 . id ( ) ;

Fix bug in testVertexTTLWithCompositeIndex


<nb> public class DnsEventListenerService extends IDnsEventListener . Stub {
 return ;
 }

 + SINGLE
 + byte [ ] eventTypes = Arrays . copyOf ( mEventTypes , mEventCount ) ;
 byte [ ] returnCodes = Arrays . copyOf ( mReturnCodes , mEventCount ) ;
 int [ ] latenciesMs = Arrays . copyOf ( mLatenciesMs , mEventCount ) ;
 - DnsEvent . logEvent ( mNetId , mEventTypes , mReturnCodes , mLatenciesMs ) ;
 + DnsEvent . logEvent ( mNetId , eventTypes , returnCodes , latenciesMs ) ;
 maybeLog ( String . format ( STRING0 , mEventCount , mNetId ) ) ;
 mEventCount = NUMBER0 ;
 }

Only actually log the DNS events we have


<nb> class AlignmentImpl extends Alignment {
 }
 return false ;
 }
 +
 + @ override
 + public String toString ( ) {
 + return STRING0 + System . identityHashCode ( this ) ;
 + }
 }
 <nb> public class FormattingModelDumper {
 if ( indent != null ) {
 blockData . append ( STRING1 ) . append ( indent ) ;
 }
 + final Alignment alignment = block . getAlignment ( ) ;
 + if ( alignment != null ) {
 + blockData . append ( STRING1 ) . append ( alignment ) ;
 + }
 }

 private static void dumpSpacing ( final Spacing spacing , final int indent , final StringBuilder out ) {

include alignment in formatting model dump


<nb> public class FromFileDoNotDeleteFileIfProcessFailsTest extends ContextTestSuppor
 template . sendBodyAndHeader ( STRING0 , body , Exchange . FILE_NAME , STRING1 ) ;

 MockEndpoint mock = getMockEndpoint ( STRING2 ) ;
 - mock . expectedBodiesReceived ( body ) ;
 + SINGLE
 + SINGLE
 + mock . expectedMinimumMessageCount ( NUMBER0 ) ;

 mock . assertIsSatisfied ( ) ;


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class GsonConverter < T > implements FileObjectQueue . Converter < T > {
 gson . toJson ( object , writer ) ;
 writer . close ( ) ;
 }
 - }
 + }
 <nb> import static NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class TemplateCompiler {
 parser . parse ( templateSource , scriptSource ) ;

 String scriptSourceString = scriptSource . toString ( CharsetUtil . UTF_8 ) ;
 + scriptSource . release ( ) ;

 if ( verbose && logger . isLoggable ( Level . INFO ) ) {
 logger . info ( STRING0 + scriptSourceString + STRING1 ) ;


<nb> public class CodeStyleSettingsCodeFragmentFilter {
 private class FilterFieldsTask implements SequentialTaskWithFixedIterationsNumber {
 private final Iterator < String > myIterator ;
 private final int myTotalFieldsNumber ;
 + private final Collection < String > myAllFields ;

 private List < String > myAffectingFields = ContainerUtil . newArrayList ( ) ;

 public FilterFieldsTask ( @ notnull Collection < String > fields ) {
 + myAllFields = fields ;
 myIterator = fields . iterator ( ) ;
 myTotalFieldsNumber = fields . size ( ) ;
 }
 <nb> public class CodeStyleSettingsCodeFragmentFilter {

 @ override
 public void stop ( ) {
 + if ( ! isDone ( ) ) myAffectingFields = ContainerUtil . newArrayList ( myAllFields ) ;
 }

 @ override
 <nb> class CompositeSequentialTask implements SequentialTask {

 @ override
 public void stop ( ) {
 + if ( myCurrentTask != null ) myCurrentTask . stop ( ) ;
 + for ( SequentialTaskWithFixedIterationsNumber task : myUnfinishedTasks ) {
 + task . stop ( ) ;
 + }
 }

 public void setProgressText2 ( String progressText2 ) {


<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> import NAMESPACE ;
 public interface StreetVertexIndexService {

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public Vertex getClosestVertex ( final Coordinate location , String name , RoutingRequest request ) ;
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public Vertex getClosestVertex ( final Coordinate location , String name , RoutingRequest request ,
 - List < Edge > extraEdges ) ;
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Delete old methods from the StreetVertexIndexService interface


<nb> class StripCode implements CompilerPass {

 @ override
 public void process ( Node externs , Node root ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + for ( String type : stripTypes ) {
 + stripTypePrefixes . add ( type + STRING0 ) ;
 + }
 +
 NodeTraversal . traverse ( compiler , root , new Strip ( ) ) ;
 }

 <nb> class StripCode implements CompilerPass {
 boolean qualifiedNameBeginsWithStripType ( String name ) {
 if ( name != null ) {
 for ( String type : stripTypes ) {
 - if ( name . equals ( type ) || name . startsWith ( type + STRING0 ) ) {
 + if ( name . equals ( type ) ) {
 return true ;
 }
 }

Avoid excessive string building when running StripCode


<nb> public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl
 }

 COMMENT
 + COMMENT
 + COMMENT
 + public void collapse ( ) {
 + for ( int expandedItem : getExpandedItems ( ) ) {
 + collapse ( expandedItem ) ;
 + }
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

add new method which will collapse all items


<nb> public class CollabEditStartParams extends JavaScriptObject
 public final native boolean isMaster ( ) COMMENT
 COMMENT
 COMMENT ;
 +
 + public final native boolean isRejoining ( ) COMMENT
 + COMMENT
 + COMMENT ;
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class FilterStreamInput extends StreamInput {
 + public abstract class FilterStreamInput extends StreamInput {

 private final StreamInput delegate ;


<nb> public class TestlibTest extends UsefulTestCase {

 configuration . add ( CommonConfigurationKeys . SOURCE_ROOTS_KEY , JetParsingTest . getTestDataDir ( ) + STRING0 ) ;
 configuration . add ( CommonConfigurationKeys . SOURCE_ROOTS_KEY , JetParsingTest . getTestDataDir ( ) + STRING1 ) ;
 - configuration . put ( CLIConfigurationKeys . MESSAGE_COLLECTOR_KEY , MessageCollectorPlainTextToStream . PLAIN_TEXT_TO_SYSTEM_ERR ) ;
 + configuration . put ( CLIConfigurationKeys . MESSAGE_COLLECTOR_KEY ,
 + new MessageCollectorPlainTextToStream ( System . out , MessageCollectorPlainTextToStream . NON_VERBOSE ) ) ;

 myEnvironment = new JetCoreEnvironment ( getTestRootDisposable ( ) , configuration ) ;

 <nb> public class ForTestCompileRuntime {
 }

 private static void compileStdlib ( File destdir ) throws IOException {
 - ExitCode exitCode = new K2JVMCompiler ( ) . exec ( System . err ,
 + ExitCode exitCode = new K2JVMCompiler ( ) . exec ( System . out ,
 STRING2 , destdir . getPath ( ) ,
 STRING3 , STRING4 ,
 STRING5 ,

Replaced sout with serr in some test to reduce noise


<nb> public class CSVResultRestExecutor implements RestExecutor {
 }
 boolean includeScore = getBooleanOrDefault ( params , STRING0 , false ) ;
 boolean includeType = getBooleanOrDefault ( params , STRING1 , false ) ;
 - CSVResult result = new CSVResultsExtractor ( includeScore , includeType ) . extractResults ( queryResult , flat , separator ) ;
 + boolean includeId = getBooleanOrDefault ( params , STRING2 , false ) ;
 + CSVResult result = new CSVResultsExtractor ( includeScore , includeType , includeId ) . extractResults ( queryResult , flat , separator ) ;
 String newLine = STRING3 ;
 if ( params . containsKey ( STRING4 ) ) {
 newLine = params . get ( STRING4 ) ;


<nb> public abstract class Animation implements Cloneable {
 COMMENT
 public void detach ( ) {
 if ( mStarted && ! mEnded ) {
 - if ( mListener != null ) mListener . onAnimationEnd ( this ) ;
 mEnded = true ;
 + if ( mListener != null ) mListener . onAnimationEnd ( this ) ;
 }
 }

 <nb> public abstract class Animation implements Cloneable {
 if ( expired ) {
 if ( mRepeatCount == mRepeated ) {
 if ( ! mEnded ) {
 + mEnded = true ;
 if ( mListener != null ) {
 mListener . onAnimationEnd ( this ) ;
 }
 - mEnded = true ;
 }
 } else {
 if ( mRepeatCount > NUMBER0 ) {


<nb> public class DeprecationLogger {

 private final Logger logger ;

 - public Logger getLogger ( ) {
 - return logger ;
 - }
 -
 COMMENT
 COMMENT
 COMMENT

Remove logger getter from DeprecationLogger


<nb> public class SinaWeibo2Example
 public static void main ( String [ ] args )
 {
 SINGLE
 - String apiKey = STRING0 ;
 - String apiSecret = STRING1 ;
 + String apiKey = STRING2 ;
 + String apiSecret = STRING3 ;
 OAuthService service = new ServiceBuilder ( )
 . provider ( SinaWeiboApi20 . class )
 . apiKey ( apiKey )

removed key and secret from sina weibo example


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class WPWebChromeClient extends WebChromeClient {
 }

 public void onProgressChanged ( WebView webView , int progress ) {
 - if ( mActivity != null && ! mActivity . isFinishing ( ) && mAutoUpdateActivityTitle ) {
 + if ( mActivity != null
 + && ! mActivity . isFinishing ( )
 + && mAutoUpdateActivityTitle
 + && ! TextUtils . isEmpty ( webView . getTitle ( ) ) ) {
 mActivity . setTitle ( webView . getTitle ( ) ) ;
 }
 if ( mProgressBar != null ) {

Updated ViewSiteActivity and WebViewActivity to use support toolbar w o drawer


<nb> public class DefaultStructBindingsStore implements StructBindingsStore {
 }
 }

 - private < T , D > ImmutableSortedMap < String , ManagedProperty < ? > > collectManagedProperties ( StructBindingExtractionContext < T > extractionContext , Map < String , Multimap < PropertyAccessorType , StructMethodBinding > > propertyBindings ) {
 + private < T > ImmutableSortedMap < String , ManagedProperty < ? > > collectManagedProperties ( StructBindingExtractionContext < T > extractionContext , Map < String , Multimap < PropertyAccessorType , StructMethodBinding > > propertyBindings ) {
 ImmutableSortedMap . Builder < String , ManagedProperty < ? > > managedPropertiesBuilder = ImmutableSortedMap . naturalOrder ( ) ;
 - ModelType < T > publicType = extractionContext . getPublicSchema ( ) . getType ( ) ;
 for ( Map . Entry < String , Multimap < PropertyAccessorType , StructMethodBinding > > propertyEntry : propertyBindings . entrySet ( ) ) {
 String propertyName = propertyEntry . getKey ( ) ;
 Multimap < PropertyAccessorType , StructMethodBinding > accessorBindings = propertyEntry . getValue ( ) ;


<nb> public final class HttpBindManager {
 initializers . add ( new ContainerInitializer ( new JasperInitializer ( ) , null ) ) ;
 context . setAttribute ( STRING0 , initializers ) ;
 context . setAttribute ( InstanceManager . class . getName ( ) , new SimpleInstanceManager ( ) ) ;
 + context . setAllowNullPathInfo ( true ) ;
 context . addServlet ( new ServletHolder ( new HttpBindServlet ( ) ) , STRING1 ) ;
 if ( isHttpCompressionEnabled ( ) ) {
 Filter gzipFilter = new AsyncGzipFilter ( ) {
 <nb> public final class HttpBindManager {
 initializers . add ( new ContainerInitializer ( new JasperInitializer ( ) , null ) ) ;
 context . setAttribute ( STRING0 , initializers ) ;
 context . setAttribute ( InstanceManager . class . getName ( ) , new SimpleInstanceManager ( ) ) ;
 + context . setAllowNullPathInfo ( true ) ;
 context . addServlet ( new ServletHolder ( new FlashCrossDomainServlet ( ) ) , STRING2 ) ;
 }

BOSH endpoints redirect all the requests with the trailing slash


<nb> public class FindingRedundantInvocationsInOrderTest extends TestBase {
 }

 @ test
 + public void shouldSayNoInteractionsWanted ( ) throws Exception {
 + SINGLE
 + mock . simpleMethod ( ) ;
 +
 + SINGLE
 + InOrder inOrder = inOrder ( mock ) ;
 + try {
 + inOrder . verifyNoMoreInteractions ( ) ;
 + fail ( ) ;
 + } catch ( VerificationInOrderFailure e ) {
 + assertContains ( STRING0 , e . getMessage ( ) ) ;
 + }
 + }
 +
 + @ test
 public void shouldVerifyNoMoreInteractionsInOrder ( ) throws Exception {
 SINGLE
 mock . simpleMethod ( ) ;


<nb> public class BitmapFactoryTest {
 }

 @ test
 + public void decodeResource_canTakeOptions ( ) throws Exception {
 + BitmapFactory . Options options = new BitmapFactory . Options ( ) ;
 + options . inSampleSize = NUMBER0 ;
 + Bitmap bitmap = BitmapFactory . decodeResource ( Robolectric . application . getResources ( ) , R . drawable . an_image , options ) ;
 + assertEquals ( true , shadowOf ( bitmap ) . getDescription ( ) . contains ( STRING0 ) ) ;
 + }
 +
 + @ test
 public void decodeFile_shouldGetWidthAndHeightFromHints ( ) throws Exception {
 ShadowBitmapFactory . provideWidthAndHeightHints ( STRING1 , NUMBER1 , NUMBER2 ) ;

Added unit test for decodeResource with Options in ShadowBitmapFactory


<nb> class StringConverter extends AbstractConverter
 throw new IllegalArgumentException ( STRING0 + str ) ;
 }

 - DateTimeParser dateTimeParser = ISODateTimeFormat . getInstance ( ) . dateTimeParser ( ) ;
 + DateTimeParser dateTimeParser = ISODateTimeFormat . getInstance ( chrono ) . dateTimeParser ( ) ;
 PeriodFormatter periodParser = ISOPeriodFormat . getInstance ( ) . standard ( ) ;
 long startInstant = NUMBER0 , endInstant = NUMBER0 ;
 Period period = null ;


<nb> package NAMESPACE ;

 import NAMESPACE ;

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

 import NAMESPACE ;

removed swing imports from cross platform code


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FunctionalInterfaceSuggester {
 @ override
 public boolean process ( PsiMember member ) {
 if ( member instanceof PsiClass && ! Java15APIUsageInspectionBase . isForbiddenApiUsage ( member , PsiUtil . getLanguageLevel ( element ) ) ) {
 + if ( ! JavaResolveUtil . isAccessible ( member , null , member . getModifierList ( ) , element , null , null ) ) {
 + return true ;
 + }
 ContainerUtil . addIfNotNull ( types , acceptanceChecker . fun ( ( PsiClass ) member ) ) ;
 }
 return true ;


<nb> public class PresenceFilter
 COMMENT
 public boolean isMatching ( SourceContact contact )
 {
 + SINGLE
 return
 isShowOffline
 || contact . getPresenceStatus ( ) . isOnline ( )
 - || GuiActivator . getMUCService ( ) . isMUCSourceContact ( contact ) ;
 + || GuiActivator . getMUCService ( ) . isMUCSourceContact ( contact )
 + || contact . getContactSource ( ) . getType ( )
 + == ContactSourceService . RECENT_MESSAGES_TYPE ;
 }

 COMMENT

Always show recent messages contacts even when offline and using presence filter


<nb> public class AxisReportIncidentServiceTest extends TestCase {
 SINGLE
 Connector connector = new SelectChannelConnector ( ) ;
 connector . setPort ( NUMBER0 ) ;
 - connector . setHost ( STRING0 ) ;
 + connector . setHost ( STRING1 ) ;
 server . addConnector ( connector ) ;

 SINGLE

Fixed the camel example axis unit test error on OSX


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public class SentenceWhitespaceRule extends Rule {


<nb> public class DrawHandler extends Handler {
 }

 public void quit ( ) {
 - removeCallbacksAndMessages ( null ) ;
 + removeMessages ( QUIT ) ;
 sendEmptyMessage ( QUIT ) ;
 }


<nb> public class VirtualFileWindowImpl extends LightVirtualFile implements VirtualFi
 }

 @ override
 - public boolean isWritable ( ) {
 - return getDelegate ( ) . isWritable ( ) ;
 - }
 -
 - @ override
 public String toString ( ) {
 return STRING0 + myDelegate . getPresentableUrl ( ) ;
 }
 <nb> public class MultiHostRegistrarImpl implements MultiHostRegistrar , ModificationT
 }

 virtualFile . setContent ( null , documentWindow . getText ( ) , false ) ;
 + virtualFile . setWritable ( virtualFile . getDelegate ( ) . isWritable ( ) ) ;

 cacheEverything ( place , documentWindow , viewProvider , psiFile , pointer ) ;


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TestClass extends TestElement {
 return results ;
 }

 - public Constructor < ? > getConstructor ( ) throws SecurityException ,
 - NoSuchMethodException {
 - return fClass . getConstructor ( ) ;
 + public Constructor < ? > getConstructor ( ) throws SecurityException {
 + SINGLE
 +
 + return fClass . getConstructors ( ) [ NUMBER0 ] ;
 }

 public Class < ? > getJavaClass ( ) {
 <nb> public class TestClass extends TestElement {
 validateStaticMethods ( errors ) ;
 validateInstanceMethods ( errors ) ;
 }
 +
 + public Constructor < ? > getOnlyConstructor ( ) {
 + Constructor < ? > [ ] constructors = fClass . getConstructors ( ) ;
 + Assert . assertEquals ( NUMBER1 , constructors . length ) ;
 + return constructors [ NUMBER0 ] ;
 + }
 }


<nb> public class SingleRootFileViewProvider extends UserDataHolderBase implements Fi
 }

 FileType fileType = file . getFileType ( ) ;
 - if ( fileType == UnknownFileType . INSTANCE ) {
 - fileType = FileTypeRegistry . getInstance ( ) . detectFileTypeFromContent ( file ) ;
 - }
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 if ( fileType . isBinary ( ) ) return Language . ANY ;
 if ( isTooLarge ( file ) ) return PlainTextLanguage . INSTANCE ;


<nb> package NAMESPACE ;
 public abstract class ScriptIntrinsic extends Script {
 ScriptIntrinsic ( long id , RenderScript rs ) {
 super ( id , rs ) ;
 + if ( id == NUMBER0 ) {
 + throw new RSRuntimeException ( STRING0 ) ;
 + }
 }
 }

Add check and throw for failed Intrinsic init


<nb> public final class FirebaseMessage {
 return databaseError ;
 }

 + @ override
 + public String toString ( ) {
 + return STRING0
 + + STRING1 + operation
 + + STRING2 + dataSnapshot
 + + STRING3 + previousChildName + STRING4
 + + STRING5 + databaseError + STRING6 ;
 + }
 +
 public static class Builder {
 private final Operation operation ;


<nb> public class RoutingHelper {
 Thread job = currentRunningJob ;
 if ( job instanceof RouteRecalculationThread ) {
 RouteRecalculationThread thread = ( RouteRecalculationThread ) job ;
 - if ( thread . isParamsChanged ( ) ) {
 + if ( ! thread . isParamsChanged ( ) ) {
 thread . stopCalculation ( ) ;
 }
 }


<nb> public class SurroundWithHandler implements CodeInsightActionHandler {
 final PsiElement [ ] elements = descriptor . getElementsToSurround ( file , startOffset , endOffset ) ;
 if ( elements . length > NUMBER0 ) {
 doSurround ( project , editor , surrounder , elements ) ;
 + return ;
 }
 }
 }


<nb> public class ClassicStyleFragment extends Fragment implements OnRefreshListener ,
 @ override
 public void onActivityCreated ( Bundle savedInstanceState ) {
 super . onActivityCreated ( savedInstanceState ) ;
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 + swipeToLoadLayout . post ( new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + swipeToLoadLayout . setRefreshing ( true ) ;
 + }
 + } ) ;
 }

 @ override
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class Characoters {
 + public class Characters {
 private List < Hero > heroes ;

 private List < Section > sections ;

rename some files and unblock the comment


<nb> public class StoreDefinitionsMapper {
 }
 }

 - @ suppresswarnings ( STRING0 )
 public List < StoreDefinition > readStoreList ( Reader input ) {
 try {

 <nb> public class StoreDefinitionsMapper {
 throw new MappingException ( STRING1
 + doc . getRootElement ( ) . getName ( ) ) ;
 List < StoreDefinition > stores = new ArrayList < StoreDefinition > ( ) ;
 - for ( Element store : ( List < Element > ) root . getChildren ( STORE_ELMT ) )
 - stores . add ( readStore ( store ) ) ;
 + for ( Object store : root . getChildren ( STORE_ELMT ) )
 + stores . add ( readStore ( ( Element ) store ) ) ;
 return stores ;
 } catch ( JDOMException e ) {
 throw new MappingException ( e ) ;

Replace unchecked cast with checked one and remove now unnecessary SuppressWarnings


<nb> public class RestAssuredMockMvc {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static void standaloneSetup ( DefaultMockMvcBuilder builder ) {
 + mockMvc = builder . build ( ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add a RestAssuredMockMvc standaloneSetup DefaultMockMvcBuilder method in order to allow more flexible customization of the spring context


<nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ManualRangeMarker {
 return Pair . create ( range , linesCols ) ;
 }

 - public boolean applyEvents ( List < DocumentEvent > events ) {
 - if ( ! myValid ) return false ;
 + public void applyEvents ( List < DocumentEvent > events ) {
 + if ( ! myValid ) return ;

 Pair < ProperTextRange , PersistentRangeMarker . LinesCols > pair = getUpdatedState ( events ) ;
 if ( pair != null ) {
 <nb> public class ManualRangeMarker {
 } else {
 myValid = false ;
 }
 - return myValid ;
 }

 @ nullable
 public ProperTextRange getRange ( ) {
 return myValid ? myRange : null ;
 }
 +
 + public boolean isValid ( ) {
 + return myValid ;
 + }
 }


<nb> public class ChatConversationPanel
 extends JEditorPane
 {
 COMMENT
 - COMMENT
 - COMMENT
 - public JToolTip createToolTip ( )
 - {
 - JToolTip tip = new JToolTip ( ) ;
 - tip . setComponent ( this ) ;
 -
 - return tip ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ChatConversationPanel
 if ( currentHref != null && currentHref . length ( ) != NUMBER0 )
 return currentHref ;
 else
 - return STRING0 ;
 + return null ;
 }
 }
 }

Remove empty tooltip that shows in conversation panel


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ImageGalleryActivity extends BaseActivity {
 public void onCreate ( Bundle savedInstanceState ) {
 super . onCreate ( savedInstanceState ) ;

 - requestWindowFeature ( Window . FEATURE_NO_TITLE ) ;
 - getWindow ( ) . setFlags ( WindowManager . LayoutParams . FLAG_FULLSCREEN , WindowManager . LayoutParams . FLAG_FULLSCREEN ) ;
 -
 setContentView ( R . layout . ac_image_gallery ) ;
 Bundle bundle = getIntent ( ) . getExtras ( ) ;
 String [ ] imageUrls = bundle . getStringArray ( Extra . IMAGES ) ;

Removed full screen mode of gallery activity


<nb> public class PyClassicStyleClassInspection extends LocalInspectionTool {
 return new Visitor ( holder ) ;
 }

 - @ override
 - public boolean isEnabledByDefault ( ) {
 - return true ;
 - }
 -
 private static class Visitor extends PyInspectionVisitor {

 public Visitor ( final ProblemsHolder holder ) {

disable PyClassicStyleClassInspection by default


<nb>
 package NAMESPACE ;

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

apt compiler should sort eip properties in order that feels more natural


<nb> import NAMESPACE ;
 public class XmppConnection extends ImConnection implements CallbackHandler {

 final static String TAG = STRING0 ;
 - private final static boolean DEBUG_ENABLED = true ;
 + private final static boolean DEBUG_ENABLED = false ;

 private XmppContactList mContactListManager ;
 private Contact mUser ;


<nb> public class GdxSetupUI extends JFrame {
 JTextField destinationText = new JTextField ( new File ( STRING0 ) . getAbsolutePath ( ) ) ;
 SetupButton destinationButton = new SetupButton ( STRING1 ) ;
 JLabel sdkLocationLabel = new JLabel ( STRING2 ) ;
 - JTextField sdkLocationText = new JTextField ( STRING3 ) ;
 + JTextField sdkLocationText = new JTextField (
 + System . getProperty ( STRING4 ) . contains ( STRING5 )
 + ? STRING3
 + : STRING6
 + ) ;
 SetupButton sdkLocationButton = new SetupButton ( STRING1 ) ;

 JPanel subProjectsPanel = new JPanel ( new GridLayout ( ) ) ;

sdkLocationText uses correct directory structure based on OS name


<nb> public class TextField extends Widget implements Disableable {
 int maxIndex = Math . max ( cursor , selectionStart ) ;
 float minX = Math . max ( glyphPositions [ minIndex ] , - renderOffset ) ;
 float maxX = Math . min ( glyphPositions [ maxIndex ] , visibleWidth - renderOffset ) ;
 - selectionX = minX ;
 + selectionX = minX + textOffset ;
 selectionWidth = maxX - minX - style . font . getData ( ) . cursorX ;
 }
 }


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

 COMMENT
 COMMENT


<nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;

 <nb> public class NodeRelationshipCache implements MemoryStatsVisitor . Visitable
 private static final int INDEX_LOOP = NUMBER0 ;

 private LongArray array ;
 - private final AtomicInteger nextFreeId = new AtomicInteger ( ) ;
 + private final AtomicLong nextFreeId = new AtomicLong ( ) ;

 RelGroupCache ( NumberArrayFactory arrayFactory , long chunkSize )
 {
 <nb> public class NodeRelationshipCache implements MemoryStatsVisitor . Visitable
 array . set ( index , IdFieldManipulator . cleanId ( array . get ( index ) ) ) ;
 }

 - private int nextFreeId ( )
 + private long nextFreeId ( )
 {
 return nextFreeId . getAndIncrement ( ) ;
 }


<nb> public class LwjglCanvas implements Application {
 } catch ( Exception ex ) {
 stopped ( ) ;
 exception ( ex ) ;
 - throw new GdxRuntimeException ( ex ) ;
 + return ;
 }

 EventQueue . invokeLater ( new Runnable ( ) {

Allow exception method to decide if it is thrown


<nb> public class FileAnalyzerFactory {
 COMMENT
 COMMENT
 COMMENT
 - public final List < String > getSuffixes ( ) {
 + final List < String > getSuffixes ( ) {
 return suffixes ;
 }

 <nb> public class FileAnalyzerFactory {
 COMMENT
 COMMENT
 COMMENT
 - public final List < String > getMagicStrings ( ) {
 + final List < String > getMagicStrings ( ) {
 return magics ;
 }

 <nb> public class FileAnalyzerFactory {
 COMMENT
 COMMENT
 COMMENT
 - public final List < Matcher > getMatchers ( ) {
 + final List < Matcher > getMatchers ( ) {
 return matchers ;
 }

 <nb> public class FileAnalyzerFactory {
 COMMENT
 COMMENT
 COMMENT
 - public final String getContentType ( ) {
 + final String getContentType ( ) {
 return contentType ;
 }

Use more restrictive access modifiers on some methods


<nb> public class AbstractBreadthFirstTraversalTest {
 return deps ;
 }

 + @ override
 public int compareTo ( FakeNode other ) {
 return this . name . compareTo ( other . name ) ;
 }


<nb> public class GradientDrawable extends Drawable {
 mPositions = state . mPositions . clone ( ) ;
 }
 mHasSolidColor = state . mHasSolidColor ;
 + mSolidColor = state . mSolidColor ;
 mStrokeWidth = state . mStrokeWidth ;
 mStrokeColor = state . mStrokeColor ;
 mStrokeDashWidth = state . mStrokeDashWidth ;

Copy the solid color when mutating a gradient drawable


<nb> public class MeshLoader extends DefaultHandler implements AssetLoader {
 if ( materialList == null && materialName != null ) {
 materialList = ( MaterialList ) assetManager . loadAsset ( new OgreMaterialKey ( folderName + materialName + STRING0 ) ) ;
 }
 + else {
 + materialList = ( MaterialList ) assetManager . loadAsset ( new OgreMaterialKey ( folderName + meshName + STRING0 ) ) ;
 + }
 } else {
 try {
 materialList = ( MaterialList ) assetManager . loadAsset ( new OgreMaterialKey ( folderName + meshName + STRING0 ) ) ;

add fallback to default material name also when using OgreMeshKey


<nb> public abstract class AbstractBytesReferenceTestCase extends ESTestCase {
 public void testSliceArrayOffset ( ) throws IOException {
 int length = randomInt ( PAGE_SIZE * randomIntBetween ( NUMBER0 , NUMBER1 ) ) ;
 BytesReference pbr = newBytesReference ( length ) ;
 - int sliceOffset = randomIntBetween ( NUMBER2 , pbr . length ( ) - NUMBER3 ) ;
 + int sliceOffset = randomIntBetween ( NUMBER2 , pbr . length ( ) - NUMBER3 ) ; SINGLE
 int sliceLength = randomIntBetween ( pbr . length ( ) - sliceOffset , pbr . length ( ) - sliceOffset ) ;
 BytesReference slice = pbr . slice ( sliceOffset , sliceLength ) ;
 if ( slice . hasArray ( ) ) {

Add comment explaining bytes reference edge case


<nb> public class TextEditingTarget implements
 if ( lineCount < NUMBER0 )
 return ;

 - if ( prefs_ . stripTrailingWhitespace ( ) . getValue ( ) )
 + if ( prefs_ . stripTrailingWhitespace ( ) . getValue ( ) &&
 + ! fileType_ . isMarkdown ( ) )
 {
 String code = docDisplay_ . getCode ( ) ;
 Pattern pattern = Pattern . create ( STRING0 ) ;

never strip trailing whitespaces in markdown documents


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class EhCacheFactoryBean implements FactoryBean < Ehcache > , BeanNameAware ,

 private Set < CacheEventListener > cacheEventListeners ;

 + private boolean disabled = false ;
 +
 private String beanName ;

 private Ehcache cache ;
 <nb> public class EhCacheFactoryBean implements FactoryBean < Ehcache > , BeanNameAware ,
 this . cacheEventListeners = cacheEventListeners ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setDisabled ( boolean disabled ) {
 + this . disabled = disabled ;
 + }
 +
 public void setBeanName ( String name ) {
 this . beanName = name ;
 }
 <nb> public class EhCacheFactoryBean implements FactoryBean < Ehcache > , BeanNameAware ,
 cache . getCacheEventNotificationService ( ) . registerListener ( listener ) ;
 }
 }
 -
 + if ( this . disabled ) {
 + cache . setDisabled ( true ) ;
 + }
 return cache ;
 }

added disabled property to EhCacheFactoryBean


<nb> public class DumbServiceImpl extends DumbService implements Disposable , Modifica
 LOG . info ( STRING0 , trace ) ;
 }
 else if ( permission == DumbModePermission . MAY_START_MODAL ) {
 - LOG . info ( STRING1 , trace ) ;
 + LOG . debug ( STRING1 , trace ) ;
 }

 SINGLE

don t pollute logs with expected modal indexing start traces


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

 import NAMESPACE ;

 - abstract class NavigationAction extends AnAction {
 + abstract class NavigationAction extends AnAction implements DumbAware {

 private final ShadowAction myShadow ;

make project structure navigation actions dumb aware


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

 <nb> public class NewUserPageFragment extends NewAccountAbstractPageFragment implemen
 . inflate ( R . layout . new_account_user_fragment_screen , container , false ) ;

 WPTextView termsOfServiceTextView = ( WPTextView ) rootView . findViewById ( R . id . l_agree_terms_of_service ) ;
 - termsOfServiceTextView . setText ( Html . fromHtml ( String . format ( getString ( R . string . agree_terms_of_service , STRING0 , STRING1 ) ) ) ) ;
 + termsOfServiceTextView . setText ( Html . fromHtml ( String . format ( getString ( R . string . agree_terms_of_service ) , STRING0 , STRING1 ) ) ) ;
 termsOfServiceTextView . setOnClickListener (
 new OnClickListener ( ) {
 @ override


<nb> public final class CharSeq implements CharSequence , IndexedSeq < Character > , Seria
 COMMENT
 COMMENT
 COMMENT
 - public static CharSeq tabulate ( int n , Function < ? super Integer , Character > f ) {
 + public static CharSeq tabulate ( int n , Function < ? super Integer , ? extends Character > f ) {
 Objects . requireNonNull ( f , STRING0 ) ;
 StringBuilder sb = new StringBuilder ( ) ;
 for ( int i = NUMBER0 ; i < n ; i ++ ) {
 <nb> public final class CharSeq implements CharSequence , IndexedSeq < Character > , Seria
 COMMENT
 COMMENT
 COMMENT
 - public static CharSeq fill ( int n , Supplier < Character > s ) {
 + public static CharSeq fill ( int n , Supplier < ? extends Character > s ) {
 return tabulate ( n , anything - > s . get ( ) ) ;
 }

Change f and s output type in CharSeq to


<nb> public Object [ ] toArray ( Object [ ] a ) {
 {
 a [ i ] = s . first ( ) ;
 }
 - if ( a . length >= count ( ) )
 + if ( a . length > count ( ) )
 a [ count ( ) ] = null ;
 return a ;
 }


<nb> public class Sender implements Agent
 roundRobinIndex = NUMBER0 ;
 }

 + final int roundRobinIndex = this . roundRobinIndex ;
 if ( length > NUMBER0 )
 {
 int i = roundRobinIndex ;


<nb> public abstract class FieldAccessor implements Instrumentation {

 @ override
 public int hashCode ( ) {
 - return NUMBER0 * ( NUMBER0 * super . hashCode ( ) + fieldLocatorFactory . hashCode ( ) ) + fieldNameExtractor . hashCode ( ) ;
 + return NUMBER0 * ( NUMBER0 * super . hashCode ( ) + fieldLocatorFactory . hashCode ( ) ) + fieldNameExtractor . hashCode ( ) ;
 }

 @ override
 <nb> public abstract class FieldAccessor implements Instrumentation {
 public Size apply ( MethodVisitor methodVisitor ,
 Instrumentation . Context instrumentationContext ,
 MethodDescription instrumentedMethod ) {
 - if ( isConstructor ( ) . matches ( instrumentedMethod ) ) {
 + if ( isConstructor ( ) . matches ( instrumentedMethod ) ) {
 throw new IllegalArgumentException ( STRING0 + instrumentedMethod ) ;
 }
 if ( takesArguments ( NUMBER1 ) . and ( not ( returns ( void . class ) ) ) . matches ( instrumentedMethod ) ) {


<nb> public class RetryTests extends ESTestCase {

 private static class AssertingListener implements ActionListener < BulkResponse > {
 private final CountDownLatch latch ;
 - private int countOnResponseCalled = NUMBER0 ;
 - private Throwable lastFailure ;
 - private BulkResponse response ;
 + private volatile int countOnResponseCalled = NUMBER0 ;
 + private volatile Throwable lastFailure ;
 + private volatile BulkResponse response ;

 private AssertingListener ( ) {
 latch = new CountDownLatch ( NUMBER1 ) ;


<nb> public class XMPP {
 is = url . openStream ( ) ;
 OutgoingFileTransfer . setResponseTimeout ( NUMBER0 ) ;
 transfer . sendStream ( is , url . getFile ( ) , is . available ( ) , message ) ;
 - logger . debug ( STRING0 , new String [ ] { message , attachmentUrl , to } ) ;
 + logger . debug ( STRING0 , ( Object [ ] ) new String [ ] { message , attachmentUrl , to } ) ;
 success = true ;
 } catch ( IOException e ) {
 logger . error ( STRING1 , attachmentUrl , e ) ;


<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 ;

Remove extra imports in blockservice handler integration test


<nb> public class Tethering extends INetworkManagementEventObserver . Stub {
 if ( mTetheredNotification . icon == icon ) {
 return ;
 }
 - notificationManager . cancel ( mTetheredNotification . icon ) ;
 + notificationManager . cancelAsUser ( null , mTetheredNotification . icon ,
 + UserHandle . ALL ) ;
 }

 Intent intent = new Intent ( ) ;


<nb> public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
 empty . signal ( ) ; SINGLE

 if ( estimate <= NUMBER0 ) {
 - throw new GetConnectionTimeoutException ( ) ;
 + if ( this . createError == null ) {
 + throw new GetConnectionTimeoutException ( createError ) ;
 + } else {
 + throw new GetConnectionTimeoutException ( ) ;
 + }
 }

 notEmptyWaitThreadCount ++ ;


<nb> package NAMESPACE ;
 import NAMESPACE ;

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

 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class MockWebServer implements TestRule {

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public URL getUrl ( String path ) {
 - return url ( path ) . url ( ) ;
 - }
 -
 - COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class WebChromeClient {
 COMMENT
 COMMENT
 COMMENT
 - public void onSelectionStart ( ) {
 + public void onSelectionStart ( WebView view ) {
 + SINGLE
 + SINGLE
 + view . notifySelectDialogDismissed ( ) ;
 }

 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - public void onSelectionDone ( ) {
 + public void onSelectionDone ( WebView view ) {
 }

 COMMENT
 <nb> public class WebView extends AbsoluteLayout
 setUpSelect ( ) ;
 if ( mNativeClass != NUMBER0 && nativeWordSelection ( x , y ) ) {
 nativeSetExtendSelection ( ) ;
 - getWebChromeClient ( ) . onSelectionStart ( ) ;
 + getWebChromeClient ( ) . onSelectionStart ( this ) ;
 return true ;
 }
 notifySelectDialogDismissed ( ) ;
 <nb> public class WebView extends AbsoluteLayout
 COMMENT
 public void selectionDone ( ) {
 if ( mSelectingText ) {
 - getWebChromeClient ( ) . onSelectionDone ( ) ;
 + getWebChromeClient ( ) . onSelectionDone ( this ) ;
 invalidate ( ) ; SINGLE
 notifySelectDialogDismissed ( ) ;
 }

Cancel test selections when they start if the client hasn t overridden the


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

 - import NAMESPACE ;
 -
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class ScrollPaneScrollBarsTest extends GdxTest {
 horizOnlyBottom . add ( horizOnlyBottomScroll ) . expand ( ) . fill ( ) . colspan ( NUMBER0 ) ;
 vertOnlyLeft . add ( vertOnlyLeftScroll ) . expand ( ) . fill ( ) . colspan ( NUMBER0 ) ;
 vertOnlyRight . add ( vertOnlyRightScroll ) . expand ( ) . fill ( ) . colspan ( NUMBER0 ) ;
 +
 + for ( ScrollPane pane : scrollPanes ) {
 + pane . setFadeScrollBars ( doFade ) ;
 + pane . setScrollbarsOnTop ( doOnTop ) ;
 + }
 }

 public void render ( ) {

Fix initial scrollpane flag in ScrollbarTest scroll bar are not ontop


<nb> public class SpringSecurityCoreVersion {
 SINGLE
 logger . info ( STRING0 + version ) ;
 if ( ! springVersion . startsWith ( STRING1 ) ) {
 - logger . error ( STRING2 + springVersion ) ;
 + logger . error ( STRING2
 + + springVersion + STRING3 ) ;
 }

 if ( springVersion . compareTo ( STRING4 ) < NUMBER0 ) {

Expand message on incorrect Spring version to suggest checking the classpath for unwanted jars


<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener
 }
 }

 + @ remotableviewmethod
 @ override
 public void setEnabled ( boolean enabled ) {
 if ( enabled == isEnabled ( ) ) {

add RemotableViewMethod to TextView setEnabled


<nb> public class PGPDataFormatTest extends AbstractPGPDataFormatTest {
 . to ( STRING0 ) ;
 SINGLE

 + SINGLE
 PGPDataFormat pgpSignAndEncrypt = new PGPDataFormat ( ) ;
 pgpSignAndEncrypt . setKeyFileName ( keyFileName ) ;
 pgpSignAndEncrypt . setKeyUserid ( keyUserid ) ;
 <nb> public class PGPDataFormatTest extends AbstractPGPDataFormatTest {
 . to ( STRING1 )
 . unmarshal ( pgpVerifyAndDecrypt )
 . to ( STRING0 ) ;
 + SINGLE
 }
 } ;
 }

Applied the second patch intended for the documentation with thanks to Daniel Gredler


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

 COMMENT


<nb> public class BlockLockManager {
 SINGLE
 boolean success ;
 try {
 - success = lock . tryLock ( Constants . SECOND_MS , TimeUnit . MILLISECONDS ) ;
 + success = lock . tryLock ( NUMBER0 , TimeUnit . SECONDS ) ;
 } catch ( InterruptedException ie ) {
 SINGLE
 LOG . error ( STRING0 ) ;
 throw new IOException ( ie . getMessage ( ) , ie . getCause ( ) ) ;
 }
 if ( ! success ) {
 + LOG . error ( STRING1 + blockId + STRING2 + userId + STRING3 ) ;
 throw new IOException ( STRING1 + blockId + STRING2 + userId + STRING3 ) ;
 }
 - lock . lock ( ) ;
 if ( ! mMetaManager . hasBlockMeta ( blockId ) ) {
 lock . unlock ( ) ;
 throw new IOException ( STRING4 + blockId + STRING5 ) ;


<nb> class CommandResultCallback < T > extends CommandResultBaseCallback < BsonDocument > {
 if ( ! ProtocolHelper . isCommandOk ( response ) ) {
 callback . onResult ( null , ProtocolHelper . getCommandFailureException ( response , getServerAddress ( ) ) ) ;
 } else {
 - callback . onResult ( decoder . decode ( new BsonDocumentReader ( response ) , DecoderContext . builder ( ) . build ( ) ) , null ) ;
 + try {
 + callback . onResult ( decoder . decode ( new BsonDocumentReader ( response ) , DecoderContext . builder ( ) . build ( ) ) , null ) ;
 + } catch ( Throwable t1 ) {
 + callback . onResult ( null , t1 ) ;
 + }
 }
 }
 }

Catch decoding errors in CommandResultCallback


<nb> public class Constant {

 public static final int DESIRED_FAVICON_SIZE = NUMBER0 ;

 - public static final String WELCOME_MESSAGE_URL = STRING0 ;
 + public static final String WELCOME_MESSAGE_URL = STRING1 ;
 public static final String WELCOME_MESSAGE_DISPLAY_URL = STRING2 ;

 SINGLE


<nb> public abstract class Service < T extends Configuration > {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public abstract void initialize ( Bootstrap < T > bootstrap ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class Service < T extends Configuration > {
 public abstract void run ( T configuration , Environment environment ) throws Exception ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ suppresswarnings ( STRING0 )
 - public void initialize ( Bootstrap < T > bootstrap ) {
 - SINGLE
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public interface Fish extends Projectile { }
 + public interface Fish extends Projectile {
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public double getBiteChance ( ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setBiteChance ( double chance ) throws IllegalArgumentException ;
 + }

Allow fishing success rate to be adjustable


<nb> public class ReaderTagTable {
 return getTagsOfType ( ReaderTagType . FOLLOWED ) ;
 }

 + public static ReaderTagList getCustomListTags ( ) {
 + return getTagsOfType ( ReaderTagType . CUSTOM_LIST ) ;
 + }
 +
 private static ReaderTagList getTagsOfType ( ReaderTagType tagType ) {
 String [ ] args = { Integer . toString ( tagType . toInt ( ) ) } ;
 Cursor c = ReaderDatabase . getReadableDb ( ) . rawQuery ( STRING0 , args ) ;
 <nb> public class ReaderUpdateService extends Service {
 ReaderTagList localTopics = new ReaderTagList ( ) ;
 localTopics . addAll ( ReaderTagTable . getDefaultTags ( ) ) ;
 localTopics . addAll ( ReaderTagTable . getFollowedTags ( ) ) ;
 + localTopics . addAll ( ReaderTagTable . getCustomListTags ( ) ) ;

 if ( ! localTopics . isSameList ( serverTopics ) ) {
 AppLog . d ( AppLog . T . READER , STRING1 ) ;

Added method to retrieve CUSTOM_LIST tags now included in comparison after parsing read menu


<nb> public class MongoFind extends MongoQuery {
 return this ;
 }

 - SINGLE
 public MongoFind order ( MongoSortCriteria sortCriteria ) {
 this . sortCriteria = sortCriteria ;
 return this ;
 <nb> public class MongoFind extends MongoQuery {
 return this ;
 }

 - public MongoFind hintIndex ( final String idxName ) {
 - throw new UnsupportedOperationException ( ) ;
 + public MongoFind hintIndex ( final String indexName ) {
 + throw new UnsupportedOperationException ( ) ; SINGLE
 }

 public MongoFind snapshot ( ) {


<nb> public class AceEditorIdleMonitor
 {
 IdleState state = new IdleState ( type , mouseX_ , mouseY_ , modifiers_ ) ;
 Map < HandlerRegistration , IdleCommand > commandMap = COMMAND_MAP . get ( editor ) ;
 + if ( commandMap == null )
 + return ;
 +
 for ( Map . Entry < HandlerRegistration , IdleCommand > entry : commandMap . entrySet ( ) )
 {
 IdleCommand command = entry . getValue ( ) ;

protect against NULL command map entries


<nb> public class Daemon implements Runnable , Stoppable {
 COMMENT
 COMMENT
 public void start ( ) {
 + LOGGER . lifecycle ( STRING0 ) ;
 lifecycleLock . lock ( ) ;
 try {
 if ( stateCoordinator != null ) {
 <nb> public class Daemon implements Runnable , Stoppable {
 COMMENT
 COMMENT
 public void stop ( ) {
 + LOGGER . lifecycle ( STRING1 ) ;
 lifecycleLock . lock ( ) ;
 try {
 stateCoordinator . stop ( ) ;
 <nb> public class Daemon implements Runnable , Stoppable {
 COMMENT
 COMMENT
 public void awaitStop ( ) {
 + LOGGER . lifecycle ( STRING2 ) ;
 stateCoordinator . awaitStop ( ) ;
 }

 <nb> public class Daemon implements Runnable , Stoppable {
 COMMENT
 COMMENT
 public boolean awaitStopOrIdleTimeout ( int idleTimeout ) {
 + LOGGER . lifecycle ( STRING3 , idleTimeout ) ;
 return stateCoordinator . awaitStopOrIdleTimeout ( idleTimeout ) ;
 }

Add some lifecycle logging to the daemon


<nb>
 SINGLE
 SINGLE
 SINGLE
 + SINGLE

 package NAMESPACE ;

 <nb> public class View implements ViewDelegate {
 SINGLE
 public void init ( ) {
 mainFrame = new MainFrame ( displayOption ) ;
 - ExtensionHelp . enableHelpKey ( getOutputPanel ( ) , STRING0 ) ;

 getWorkbench ( ) . getTabbedWork ( ) . setAlternativeParent ( mainFrame . getPaneDisplay ( ) ) ;
 getWorkbench ( ) . getTabbedStatus ( ) . setAlternativeParent ( mainFrame . getPaneDisplay ( ) ) ;
 <nb> public class View implements ViewDelegate {
 public OutputPanel getOutputPanel ( ) {
 if ( outputPanel == null ) {
 outputPanel = new OutputPanel ( ) ;
 + ExtensionHelp . enableHelpKey ( outputPanel , STRING0 ) ;
 }
 return outputPanel ;
 }

Move output panel help key registration to prevent NPE


<nb> public class TaskViewServiceTest {
 List < PluggableViewModel > viewModels = taskViewService . getTaskViewModels ( ) ;

 assertThat ( viewModels . size ( ) , is ( NUMBER0 ) ) ;
 + assertThat ( viewModels . get ( NUMBER1 ) . getModel ( ) , instanceOf ( ExecTask . class ) ) ;
 assertThat ( viewModels . get ( NUMBER2 ) . getModel ( ) , instanceOf ( PluggableTask . class ) ) ;
 assertThat ( viewModels . get ( NUMBER3 ) . getModel ( ) , instanceOf ( PluggableTask . class ) ) ;


<nb> public class MulticastManager implements ChannelLookupProtocol {
 } else {

 if ( targetVertex . getExecutionState ( ) != ExecutionState . RUNNING
 - && targetVertex . getExecutionState ( ) != ExecutionState . FINISHING
 - && targetVertex . getExecutionState ( ) != ExecutionState . READY
 - && targetVertex . getExecutionState ( ) != ExecutionState . STARTING ) {
 + && targetVertex . getExecutionState ( ) != ExecutionState . FINISHING ) {
 return false ;
 }
 }
 }
 }

 - if ( verticesToDeploy != null ) {
 + if ( verticesToDeploy != null ) {
 this . scheduler . deployAssignedVertices ( verticesToDeploy ) ;
 return false ;
 }
 -
 +
 return true ;
 }


<nb> public abstract class MixinWorld implements World , IMixinWorld {

 SINGLE
 DataContainer generatorSettings = this . getProperties ( ) . getGeneratorSettings ( ) ;
 + if ( generatorSettings . contains ( IMixinWorldType . STRING_VALUE ) ) {
 + String options = generatorSettings . getString ( IMixinWorldType . STRING_VALUE ) . get ( ) ;
 + if ( options . equals ( STRING0 ) ) {
 + return ;
 + }
 + }
 SpongeWorldGenerator newGenerator = worldType . createGenerator ( this , generatorSettings ) ;

 SINGLE
 <nb> public abstract class MixinWorld implements World , IMixinWorld {
 return new SpongeWorldGenerator (
 SpongeBiomeGenerator . of ( getWorldChunkManager ( ) ) ,
 SpongeGeneratorPopulator . of ( world , serverChunkProvider . serverChunkGenerator ) ,
 - generatorPopulators ,
 - populators ) ;
 + this . generatorPopulators ,
 + this . populators ) ;
 }

 @ override

Don t modify generator if there are no options


<nb> public class GhostView extends View {
 mView . mGhostView = this ;
 final ViewGroup parent = ( ViewGroup ) mView . getParent ( ) ;
 setGhostedVisibility ( View . INVISIBLE ) ;
 - parent . mRecreateDisplayList = true ;
 - parent . updateDisplayListIfDirty ( ) ;
 + parent . invalidate ( ) ;
 }

 @ override

Fix crash during Activity Transition with TextureView


<nb> public class WXScrollView extends ScrollView implements Callback , IWXScroller ,

 getLocationOnScreen ( stickyScrollerP ) ;
 stickyData . getView ( ) . getLocationOnScreen ( stickyViewP ) ;
 - int parentH = stickyData . getParent ( ) . getRealView ( ) . getHeight ( ) ;
 + int parentH = NUMBER0 ;
 + if ( stickyData . getParent ( ) != null && stickyData . getParent ( ) . getRealView ( ) != null ) {
 + stickyData . getParent ( ) . getRealView ( ) . getHeight ( ) ;
 + }
 int stickyViewH = stickyData . getView ( ) . getHeight ( ) ;
 int stickyShowPos = stickyScrollerP [ NUMBER1 ] ;
 int stickyStartHidePos = - parentH + stickyScrollerP [ NUMBER1 ] + stickyViewH ;


<nb> public class EarlyCloseServlet extends HttpServlet {
 HttpServletRequestImpl request = ServletRequestContext . requireCurrent ( ) . getOriginalRequest ( ) ;
 if ( connection == null ) {
 connection = request . getExchange ( ) . getConnection ( ) ;
 - } else {
 - if ( connection != request . getExchange ( ) . getConnection ( ) ) {
 - throw new RuntimeException ( STRING0 ) ;
 - }
 + } else if ( ! DefaultServer . isAjp ( ) && ! DefaultServer . isProxy ( ) && connection != request . getExchange ( ) . getConnection ( ) ) {
 + throw new RuntimeException ( STRING0 ) ;
 }
 }
 }


<nb> public class IQBindHandler extends IQHandler {
 Element child = reply . setChildElement ( STRING0 , STRING1 ) ;
 SINGLE
 String resource = packet . getChildElement ( ) . elementTextTrim ( STRING2 ) ;
 - if ( resource == null && resource . length ( ) == NUMBER0 ) {
 + if ( resource == null || resource . length ( ) == NUMBER0 ) {
 SINGLE
 resource = session . getAddress ( ) . getResource ( ) ;
 }


<nb> public class UIDropdown < T > extends CoreWidget {
 private static final String LIST = STRING0 ;
 private static final String LIST_ITEM = STRING1 ;

 + private UIScrollbar verticalBar = new UIScrollbar ( true ) ;
 +
 private Binding < List < T > > options = new DefaultBinding < > ( new ArrayList < > ( ) ) ;
 private Binding < T > selection = new DefaultBinding < > ( ) ;
 private InteractionListener mainListener = new BaseInteractionListener ( ) {
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class UIDropdownScroll < T > extends UIDropdown {
 - private final int MAX_ITEM_NOSCROLL_COUNT = NUMBER0 ;
 -
 private static final String LIST = STRING0 ;
 private static final String LIST_ITEM = STRING1 ;


<nb> public class AnalyzeStacktraceUtil {
 toolbarActions . add ( new CloseAction ( executor , descriptor , project ) ) ;
 ExecutionManager . getInstance ( project ) . getContentManager ( ) . showRunContent ( executor , descriptor ) ;
 consoleView . allowHeavyFilters ( ) ;
 + if ( consoleFactory == null ) {
 + printStacktrace ( consoleView , text ) ;
 + }
 return descriptor ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 import static NAMESPACE ;
 <nb> public class Image
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public FileChannel fileChannel ( )
 + {
 + return logBuffers . fileChannel ( ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Provide access to the FileChannel under an Image


<nb> public class SimpleCameraHost implements CameraHost {
 @ override
 public void configureRecorderProfile ( int cameraId ,
 MediaRecorder recorder ) {
 - recorder . setProfile ( CamcorderProfile . get ( cameraId ,
 - CamcorderProfile . QUALITY_HIGH ) ) ;
 + if ( CamcorderProfile . hasProfile ( cameraId ,
 + CamcorderProfile . QUALITY_HIGH ) ) {
 + recorder . setProfile ( CamcorderProfile . get ( cameraId ,
 + CamcorderProfile . QUALITY_HIGH ) ) ;
 + }
 + else if ( CamcorderProfile . hasProfile ( cameraId ,
 + CamcorderProfile . QUALITY_LOW ) ) {
 + recorder . setProfile ( CamcorderProfile . get ( cameraId ,
 + CamcorderProfile . QUALITY_LOW ) ) ;
 + }
 + else {
 + throw new IllegalStateException ( STRING0 ) ;
 + }
 }

 @ override

test the CamcorderProfile before trying it


<nb> public class Job extends Request2 {
 Log . info ( STRING0 ) ;
 }
 else {
 - Log . info ( STRING1 + cols . length + STRING2 ) ;
 + Log . info ( STRING1 + ignored_cols . length + STRING2 ) ;
 }
 }

Fix cut and paste error in logging of ignored columns


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class XHRTransport extends AbstractTransport {
 AtmosphereResourceImpl resource = session . getAtmosphereResourceImpl ( ) ;
 SINGLE
 if ( resource != null && DefaultBroadcaster . class . isAssignableFrom ( resource . getBroadcaster ( ) . getClass ( ) ) ) {
 - DefaultBroadcaster . class . cast ( resource . getBroadcaster ( ) ) . broadcasterCache . addToCache ( resource . getBroadcaster ( ) . getID ( ) , resource , msg ) ;
 + DefaultBroadcaster . class . cast ( resource . getBroadcaster ( ) ) .
 + broadcasterCache . addToCache ( resource . getBroadcaster ( ) . getID ( ) , resource ,
 + new BroadcasterCache . Message ( msg ) ) ;
 }
 }
 break ;


<nb> public class FrameUtils {
 _wsum += w ;
 }
 }
 - @ override public void reduce ( WeightedMean mrt ) { _wresponse += mrt . _wresponse ; }
 + @ override public void reduce ( WeightedMean mrt ) {
 + _wresponse += mrt . _wresponse ;
 + _wsum += mrt . _wsum ;
 + }
 }
 }

Fix weighted mean wasn t reducing the sum of weights


<nb> public class GroovyPropertyUtils {
 public static boolean isSimplePropertyGetter ( PsiMethod method , String propertyName ) {
 if ( method == null || method . isConstructor ( ) ) return false ;
 if ( method . getParameterList ( ) . getParametersCount ( ) != NUMBER0 ) return false ;
 - final PsiType type = method . getReturnType ( ) ;
 - if ( type != null && type == PsiType . VOID ) return false ;
 if ( ! isGetterName ( method . getName ( ) ) ) return false ;
 - return propertyName == null || propertyName . equals ( getPropertyNameByGetter ( method ) ) ;
 + return ( propertyName == null || propertyName . equals ( getPropertyNameByGetter ( method ) ) ) && method . getReturnType ( ) != PsiType . VOID ;
 }

 public static boolean isSimplePropertySetter ( PsiMethod method ) {

Changing preconditions order may have significant performance implications


<nb> public class Toolkit {
 SINGLE
 SINGLE
 if ( hasNonAsciiChars ( Base . getJavaHome ( ) . getAbsolutePath ( ) ) ) {
 - msg += STRING0 ;
 + msg += STRING1 +
 + STRING2 ;
 } else {
 msg += STRING3 ;
 }


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

 import static NAMESPACE ;
 <nb> public class ProxyInfoTest {
 @ test
 public void testProxyInfo_createNotRightAfterTheMethod ( ) {
 ProxyProxetta proxetta = ProxyProxetta . withAspects ( aspects ( ) ) ;
 - proxetta . setDebugFolder ( SystemUtil . userHome ( ) ) ;
 + SINGLE

 DateDao dateDateProxy = ( DateDao ) proxetta . builder ( DateDao . class ) . newInstance ( ) ;


<nb> public class HiveSessionImpl implements HiveSession {

 private volatile long lastAccessTime ;
 private volatile long lastIdleTime ;
 - private volatile int pendingCount = NUMBER0 ;
 + private volatile int activeCalls = NUMBER0 ;
 private final Semaphore operationLock ;

 <nb> public class HiveSessionImpl implements HiveSession {
 SINGLE
 sessionState . updateThreadName ( ) ;
 Hive . set ( sessionHive ) ;
 - pendingCount ++ ;
 + activeCalls ++ ;
 lastIdleTime = NUMBER0 ;
 }

 <nb> public class HiveSessionImpl implements HiveSession {
 if ( userAccess ) {
 lastAccessTime = System . currentTimeMillis ( ) ;
 }
 - pendingCount -- ;
 + activeCalls -- ;
 SINGLE
 SINGLE
 - if ( pendingCount == NUMBER0 && opHandleSet . isEmpty ( ) ) {
 + if ( activeCalls == NUMBER0 && opHandleSet . isEmpty ( ) ) {
 lastIdleTime = System . currentTimeMillis ( ) ;
 }
 }

Rename pendingCount to activeCalls in HiveSessionImpl for easier understanding


<nb> public class DependencyManager implements InstallShinyEvent . Handler
 Dependency . cranPackage ( STRING0 , STRING1 ) ,
 Dependency . cranPackage ( STRING2 , STRING3 ) ,
 Dependency . cranPackage ( STRING4 , STRING5 ) ,
 + Dependency . cranPackage ( STRING6 , STRING7 ) ,
 Dependency . embeddedPackage ( STRING8 )
 } ,
 true , SINGLE


<nb> public class DefaultWebSocketProcessor implements WebSocketProcessor , Serializab

 try {
 if ( webSocketHandler == null ) {
 - if ( ! WebSocketProtocolStream . class . isAssignableFrom ( webSocketProtocol . getClass ( ) ) ) {
 + if ( WebSocketProtocolStream . class . isAssignableFrom ( webSocketProtocol . getClass ( ) ) ) {
 List < AtmosphereRequest > list = WebSocketProtocolStream . class . cast ( webSocketProtocol ) . onTextStream ( webSocket , reader ) ;
 dispatch ( webSocket , list ) ;
 } else {


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

 - SINGLE
 + @ ignore ( STRING0 )
 public class ProxyITest extends WithJetty {

 @ test public void


<nb> public class NavigationBarInflaterView extends FrameLayout implements TunerServi

 private void inflateButtons ( String [ ] buttons , ViewGroup parent , boolean landscape ) {
 for ( int i = NUMBER0 ; i < buttons . length ; i ++ ) {
 - inflateButton ( buttons [ i ] , parent , landscape ) ;
 + inflateButton ( buttons [ i ] , parent , landscape , i ) ;
 }
 }

 <nb> public class NavigationBarInflaterView extends FrameLayout implements TunerServi
 }

 @ nullable
 - protected View inflateButton ( String buttonSpec , ViewGroup parent , boolean landscape ) {
 + protected View inflateButton ( String buttonSpec , ViewGroup parent , boolean landscape ,
 + int indexInParent ) {
 LayoutInflater inflater = landscape ? mLandscapeInflater : mLayoutInflater ;
 float size = extractSize ( buttonSpec ) ;
 String button = extractButton ( buttonSpec ) ;


<nb> public class GarbageCollectionWarningThread extends Periodical {
 @ override
 public void doRun ( ) {
 for ( final GarbageCollectorMXBean gc : garbageCollectors ) {
 + switch ( gc . getName ( ) ) {
 + case STRING0 :
 + case STRING1 :
 + LOG . debug ( STRING2 , gc . getName ( ) ) ;
 + continue ;
 + }
 + LOG . debug ( STRING3 , gc . getName ( ) , gcWarningThreshold ) ;
 +
 final NotificationEmitter emitter = ( NotificationEmitter ) gc ;
 final NotificationListener listener = new NotificationListener ( ) {
 @ override

skip gc collection notifications for collectors that run mostly in parallel to the application


<nb> public class SpoutPlayer extends LocalPlayer {
 entity . setPosition ( SpoutUtil . toPoint ( entity . getWorld ( ) , pos ) ) ;
 entity . setPitch ( pitch ) ;
 entity . setYaw ( yaw ) ;
 + player . getNetworkSynchronizer ( ) . setPositionDirty ( ) ;
 }

 @ override

Poke the Spout telporter so the correct packets are sent


<nb> public class CordovaPlugin {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class PluginManager {
 COMMENT
 COMMENT
 public boolean onOverrideUrlLoading ( String url ) {
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 for ( PluginEntry entry : this . entryMap . values ( ) ) {
 CordovaPlugin plugin = pluginMap . get ( entry . service ) ;
 if ( plugin != null && plugin . onOverrideUrlLoading ( url ) ) {

Delete no longer relevant comments about url filter


<nb> public abstract class AbstractGithubTagDownloadedProjectGenerator extends WebPro
 protected abstract String getDisplayName ( ) ;

 @ notnull
 - protected abstract String getGithubUserName ( ) ;
 + public abstract String getGithubUserName ( ) ;

 @ notnull
 - protected abstract String getGithubRepositoryName ( ) ;
 + public abstract String getGithubRepositoryName ( ) ;

 @ override
 @ nullable

add title for GitHub based projects in WebStorm


<nb> public class TestClusterNames
 }

 @ test
 - @ ignore ( STRING0 )
 + SINGLE
 public void makeSureStoreIdInStoreMatchesZKData ( ) throws Exception
 {
 HighlyAvailableGraphDatabase db0 = db ( NUMBER0 , HaConfig . CONFIG_DEFAULT_HA_CLUSTER_NAME , HaConfig . CONFIG_DEFAULT_PORT ) ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TestStoreCopy
 COMMENT
 COMMENT
 @ test
 + @ ignore ( STRING0 )
 public void sandboxIsOverwritten ( ) throws Exception
 {
 slave . shutdown ( ) ;

Try a different combination of ignored tests


<nb> public final class ActivityManagerService extends ActivityManagerNative

 @ override
 public void startLockTaskModeOnCurrent ( ) throws RemoteException {
 - checkCallingPermission ( android . Manifest . permission . MANAGE_ACTIVITY_STACKS ) ;
 + enforceCallingPermission ( android . Manifest . permission . MANAGE_ACTIVITY_STACKS ,
 + STRING0 ) ;
 ActivityRecord r = null ;
 synchronized ( this ) {
 r = mStackSupervisor . topRunningActivityLocked ( ) ;
 <nb> public final class ActivityManagerService extends ActivityManagerNative

 @ override
 public void stopLockTaskModeOnCurrent ( ) throws RemoteException {
 - checkCallingPermission ( android . Manifest . permission . MANAGE_ACTIVITY_STACKS ) ;
 + enforceCallingPermission ( android . Manifest . permission . MANAGE_ACTIVITY_STACKS ,
 + STRING1 ) ;
 long ident = Binder . clearCallingIdentity ( ) ;
 try {
 stopLockTaskMode ( ) ;

Enforce permissions on start stopLockTaskModeOnCurrent


<nb> public class OpenExternalDirectoryActivity extends Activity {
 break ;
 }
 }
 + if ( internalRoot == null ) {
 + SINGLE
 + SINGLE
 + Log . e ( TAG , STRING0 + storageVolume . dump ( ) + STRING1 + volumes ) ;
 + return false ;
 + }

 SINGLE
 final Intent intent = getIntentForExistingPermission ( activity , isRoot , internalRoot , file ) ;

Added extra validation for invalid paths


<nb> public abstract class FluidRegistry
 {
 if ( fluidBlocks == null )
 {
 - fluidBlocks = HashBiMap . create ( ) ;
 + BiMap < Block , Fluid > tmp = HashBiMap . create ( ) ;
 for ( Fluid fluid : fluids . values ( ) )
 {
 if ( fluid . canBePlacedInWorld ( ) && fluid . getBlock ( ) != null )
 {
 - fluidBlocks . put ( fluid . getBlock ( ) , fluid ) ;
 + tmp . put ( fluid . getBlock ( ) , fluid ) ;
 }
 }
 + fluidBlocks = tmp ;
 }
 return fluidBlocks . get ( block ) ;
 }

Fix potential threading issue if FluidRegistry loopupFluidForBlock is called from two threads at the same time before being setup


<nb> public class ExpressionClauseSupport < T > {
 COMMENT
 COMMENT
 COMMENT
 - public T body ( Class < ? > expectedType ) {
 + public T body ( Class expectedType ) {
 return expression ( ExpressionBuilder . bodyExpression ( expectedType ) ) ;
 }

Fixed the eclipse warning of the AssertionClause


<nb> public class UpgradeTest extends ElasticsearchBackwardsCompatIntegrationTest {
 indexRandom ( true , builder ) ;
 ensureGreen ( indexName ) ;
 }
 + logger . debug ( STRING0 ) ;
 + logClusterState ( ) ;
 + logSegmentsState ( null ) ;
 backwardsCluster ( ) . allowOnAllNodes ( indexNames ) ;
 backwardsCluster ( ) . upgradeAllNodes ( ) ;
 ensureGreen ( ) ;
 + logger . debug ( STRING1 ) ;
 + logClusterState ( ) ;
 + logSegmentsState ( null ) ;

 final HttpRequestBuilder httpClient = httpClient ( ) ;

Adding additional debug info to upgrade test


<nb> import static NAMESPACE
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class MixedBulkWriteOperation < T > implements AsyncWriteOperation < BulkWrite
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public MixedBulkWriteOperation ( final MongoNamespace namespace , final List < WriteRequest > writeRequests , final boolean ordered ,
 <nb> public class RemoveRequest extends WriteRequest {
 return filter ;
 }

 - SINGLE
 public RemoveRequest multi ( final boolean isMulti ) {
 this . isMulti = isMulti ;
 return this ;
 }
 - SINGLE

 public boolean isMulti ( ) {
 return isMulti ;

removed checkstyle suppression add javadoc


<nb> public class LookupImpl extends LightweightHint implements LookupEx , Disposable
 updateListHeight ( listModel ) ;

 myList . setSelectedIndex ( toSelect ) ;
 - return Arrays . equals ( oldModel , items . toArray ( ) ) ;
 + return ! Arrays . equals ( oldModel , items . toArray ( ) ) ;
 }

 }
 <nb> public class LookupImpl extends LightweightHint implements LookupEx , Disposable
 }
 Rectangle rectangle = calculatePosition ( ) ;
 myMaximumHeight = rectangle . height ;
 -
 +
 if ( myResizePending || itemsChanged ) {
 myResizePending = false ;
 pack ( ) ;

resize lookup if new items are added slowly


<nb> public class TextAreaPainter extends JComponent implements TabExpander {

 SINGLE
 fm = super . getFontMetrics ( plainFont ) ;
 + tabSize = fm . charWidth ( STRING0 ) * Preferences . getInteger ( STRING1 ) ;
 textArea . recalculateVisibleLines ( ) ;

 SINGLE
 <nb> public class TextAreaPainter extends JComponent implements TabExpander {
 SINGLE
 SINGLE

 - tabSize = fm . charWidth ( STRING0 ) * ( ( Integer ) textArea . getDocument ( ) . getProperty ( PlainDocument . tabSizeAttribute ) ) . intValue ( ) ;
 -
 Rectangle clipRect = gfx . getClipBounds ( ) ;

 gfx . setColor ( getBackground ( ) ) ;

Make TextAreaPainter load tab size from Preferences


<nb> public class EditPoiDialogFragment extends DialogFragment {
 Node original = editPoiData . getEntity ( ) ;
 final boolean offlineEdit = mOpenstreetmapUtil instanceof OpenstreetmapLocalUtil ;
 Node node = new Node ( original . getLatitude ( ) , original . getLongitude ( ) , original . getId ( ) ) ;
 - OsmPoint . Action action = node . getId ( ) == - NUMBER0 ? OsmPoint . Action . CREATE : OsmPoint . Action . MODIFY ;
 + OsmPoint . Action action = node . getId ( ) < NUMBER1 ? OsmPoint . Action . CREATE : OsmPoint . Action . MODIFY ;
 for ( Map . Entry < String , String > tag : editPoiData . getTagValues ( ) . entrySet ( ) ) {
 if ( tag . getKey ( ) . equals ( EditPoiData . POI_TYPE_TAG ) ) {
 final PoiType poiType = editPoiData . getAllTranslatedSubTypes ( ) . get ( tag . getValue ( ) . trim ( ) . toLowerCase ( ) ) ;


<nb> import NAMESPACE ;

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

 COMMENT
 COMMENT
 <nb> public class PluginsAdvertiserDialog extends DialogWrapper {
 PluginsAdvertiserDialog ( @ nullable Project project , PluginDownloader [ ] plugins , List < IdeaPluginDescriptor > allPlugins ) {
 super ( project ) ;
 myProject = project ;
 + Arrays . sort ( plugins , new Comparator < PluginDownloader > ( ) {
 + @ override
 + public int compare ( PluginDownloader o1 , PluginDownloader o2 ) {
 + return o1 . getPluginName ( ) . compareToIgnoreCase ( o2 . getPluginName ( ) ) ;
 + }
 + } ) ;
 myUploadedPlugins = plugins ;
 myAllPlugins = allPlugins ;
 setTitle ( STRING0 ) ;


<nb> public class ItemActivity extends BaseActivity {
 return ;
 }

 - ( ( TextView ) findViewById ( android . R . id . text2 ) ) . setText ( story . getTitle ( ) ) ;
 + final TextView titleTextView = ( TextView ) findViewById ( android . R . id . text2 ) ;
 + titleTextView . setMaxLines ( Integer . MAX_VALUE ) ;
 + titleTextView . setText ( story . getTitle ( ) ) ;
 ( ( TextView ) findViewById ( R . id . posted ) ) . setText ( story . getDisplayedTime ( this ) ) ;
 if ( story . getKidCount ( ) > NUMBER0 ) {
 Button commentButton = ( Button ) findViewById ( R . id . comment ) ;


<nb> import static NAMESPACE ;
 public abstract class AbstractCamelEndpointFactoryBean extends AbstractCamelFactoryBean < Endpoint > {
 @ xmlattribute ( required = false )
 @ deprecated
 - private Boolean singleton = Boolean . FALSE ;
 + private Boolean singleton ;
 @ xmlattribute
 private String uri ;
 @ xmltransient

avoid outputting a deprecated attribute when marshalling the XML


<nb> public class GLRM extends ModelBuilder < GLRMModel , GLRMModel . GLRMParameters , GLRMMo
 SVDModel . SVDParameters parms = new SVDModel . SVDParameters ( ) ;
 parms . _train = _parms . _train ;
 parms . _ignored_columns = _parms . _ignored_columns ;
 - parms . _dropConsCols = _parms . _dropConsCols ;
 + parms . _drop_const_cols = _parms . _drop_const_cols ;
 parms . _drop_na20_cols = _parms . _drop_na20_cols ;
 parms . _score_each_iteration = _parms . _score_each_iteration ;
 parms . _useAllFactorLevels = true ; SINGLE
 <nb> public class GLRMModel extends Model < GLRMModel , GLRMModel . GLRMParameters , GLRMMode
 double ureg = NUMBER0 ;
 for ( int i = NUMBER0 ; i < u . length ; i ++ ) {
 for ( int j = NUMBER0 ; j < u [ NUMBER0 ] . length ; j ++ )
 - ureg = regularize ( u [ i ] [ j ] , regularization ) ;
 + ureg += regularize ( u [ i ] [ j ] , regularization ) ;
 }
 return ureg ;
 }


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

 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 public class CollectingMatchResultSink implements MatchResultSink {
 - private final List < MatchResult > matches = new LinkedList < MatchResult > ( ) ;
 + private final List < MatchResult > matches = new ArrayList < MatchResult > ( ) ;

 public void newMatch ( MatchResult result ) {
 matches . add ( result ) ;


<nb> package NAMESPACE ;
 import NAMESPACE ;

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


<nb> public class Peer {
 }

 private void processPong ( Pong m ) {
 - log . info ( STRING0 , this , m . getNonce ( ) ) ;
 SINGLE
 for ( PendingPing ping : pendingPings ) {
 if ( m . getNonce ( ) == ping . nonce ) {


<nb> public class Http11NioProcessor extends AbstractHttp11Processor {
 }

 try {
 - Object sslO = sslSupport . getPeerCertificateChain ( true ) ;
 + SINGLE
 + SINGLE
 + Object sslO = sslSupport . getPeerCertificateChain ( false ) ;
 if ( sslO != null ) {
 request . setAttribute
 ( SSLSupport . CERTIFICATE_KEY , sslO ) ;


<nb> public abstract class IdeaTestCase extends TestCase implements DataProvider {
 myAssertionsInTestDetected = false ;
 }
 finally {
 - tearDown ( ) ;
 + try {
 + tearDown ( ) ;
 + } catch ( Throwable th ) { th . printStackTrace ( ) ; }
 }
 }
 catch ( Throwable throwable ) {

fixed issue with nested exception during tear down causing initial exception to be forgotten


<nb> import NAMESPACE ;
 @ state (
 name = STRING0 ,
 storages = {
 + SINGLE
 @ storage ( file = StoragePathMacros . APP_CONFIG + STRING1 ) ,
 @ storage ( file = StoragePathMacros . APP_CONFIG + STRING2 )
 } ,

add note about HttpConfigurable config storages


<nb> public class TraktTask extends AsyncTask < Void , Void , Response > {
 return r ;
 }
 case WATCHED_MOVIE : {
 - return manager . movieService ( )
 + Response r = manager . movieService ( )
 . seen ( new MovieService . Movies ( new MovieService . SeenMovie ( tmdbId ) ) ) ;
 + r . message = mContext . getString ( R . string . action_watched ) ;
 + return r ;
 }
 case UNWATCHED_MOVIE : {
 - return manager . movieService ( )
 + Response r = manager . movieService ( )
 . unseen ( new MovieService . Movies ( new MovieService . SeenMovie ( tmdbId ) ) ) ;
 + r . message = mContext . getString ( R . string . action_unwatched ) ;
 + return r ;
 }
 case WATCHLIST_MOVIE : {
 Response r = manager . movieService ( ) . watchlist ( new MovieService . Movies (

Display localized message when flagging movie seen unseen on trakt


<nb> public abstract class ProtocolProviderFactory
 COMMENT
 public boolean loadAccount ( AccountID accountID )
 {
 - String userID = accountID . getUserID ( ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + String userID = accountID
 + . getAccountPropertyString ( ProtocolProviderFactory . USER_ID ) ;

 ProtocolProviderService service = createService ( userID , accountID ) ;

 <nb> public class TestAccountInstallation
 sipAccount2Properties . get ( ProtocolProviderFactory . USER_ID )
 , sipAccount2Properties ) ;

 -
 SINGLE
 SINGLE
 try {
 <nb> public class TestAccountInstallation

 SINGLE
 SINGLE
 -
 osgiFilter =
 STRING0 + ProtocolProviderFactory . PROTOCOL + STRING1 + ProtocolNames . SIP + STRING2
 + STRING3 + ProtocolProviderFactory . USER_ID
 <nb> public class TestAccountInstallation
 fail ( osgiFilter + STRING4 ) ;
 }

 - assertTrue ( STRING5
 + assertTrue ( STRING6
 + STRING7
 , serRefs != null && serRefs . length > NUMBER0 ) ;


<nb> public class ExplainRequestBuilder extends SingleShardOperationRequestBuilder < Ex

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 public ExplainRequestBuilder setFetchSource ( boolean fetch ) {
 FetchSourceContext context = request . fetchSourceContext ( ) ;
 <nb> public class ExplainRequestBuilder extends SingleShardOperationRequestBuilder < Ex
 return this ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - public ExplainRequestBuilder operationThreaded ( boolean threadedOperation ) {
 - request ( ) . operationThreaded ( threadedOperation ) ;
 - return this ;
 - }
 -
 protected void doExecute ( ActionListener < ExplainResponse > listener ) {
 if ( sourceBuilder != null ) {
 request . source ( sourceBuilder ) ;

remove operationThreaded setter from ExplainRequestBuilder already available in base class SingleShardOperationRequestBuilder


<nb> public class DTDModelLoader implements ModelLoader {
 if ( ! visitedElements . contains ( nel ) ) {
 elements [ ptr ++ ] = nel ;
 }
 - } else if ( hasTextContents ) {
 - fd1 . clType = FieldDesc . STR ;
 - fd1 . type = STRING0 ;
 - fd1 . def = STRING1 ;
 } else {
 fd1 . clType = FieldDesc . BOOL ;
 fd1 . type = STRING2 ;


<nb> public class GLM extends ModelBuilder < GLMModel , GLMParameters , GLMOutput > {
 if ( _betaLB != null && _betaUB != null )
 for ( int i = NUMBER0 ; i < _betaLB . length ; ++ i )
 if ( ! ( _betaLB [ i ] <= _betaUB [ i ] ) )
 - throw new IllegalArgumentException ( STRING0 + _betaLB [ i ] + STRING1 + _betaUB [ i ] ) ;
 + throw new IllegalArgumentException ( STRING2 + _betaLB [ i ] + STRING1 + _betaUB [ i ] ) ;
 }

 public BetaConstraint filterExpandedColumns ( int [ ] activeCols ) {


<nb> public class Sprite extends TextureRegion {
 this . rotation = degrees ;
 dirty = true ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public float getRotation ( ) {
 + return rotation ;
 + }

 COMMENT
 COMMENT


<nb> public class ConsoleViewImpl extends JPanel implements ConsoleView , ObservableCo
 }

 private boolean isTheAmountOfTextTooBig ( final int textLength ) {
 - return textLength > myBuffer . getCyclicBufferSize ( ) / consoleTooMuchTextBufferRatio ;
 + return myBuffer . isUseCyclicBuffer ( ) && textLength > myBuffer . getCyclicBufferSize ( ) / consoleTooMuchTextBufferRatio ;
 }

 private void clearHyperlinkAndFoldings ( ) {

don t show too much output when console cyclic buffer is disabled


<nb> public interface RILConstants {
 SINGLE
 int RIL_ERRNO_INVALID_RESPONSE = - NUMBER0 ;

 - int MAX_INT = NUMBER1 ;
 -
 SINGLE
 int SUCCESS = NUMBER2 ;
 COMMENT


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public interface ConfigurationManager extends ExportedDialog {
 + public interface ConfigurationManager extends ApplicationWindow {

 COMMENT
 COMMENT
 <nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public interface PopupDialog extends ExportedDialog {
 + public interface PopupDialog extends ApplicationWindow {
 SINGLE
 SINGLE
 SINGLE

implement now ApplicationWindow interface


<nb> final class ServerControllerService implements Service < ServerController > {
 COMMENT
 public synchronized void start ( final StartContext context ) throws StartException {
 final ServiceContainer container = context . getController ( ) . getServiceContainer ( ) ;
 - final TrackingServiceTarget serviceTarget = new TrackingServiceTarget ( container ) ;
 + final TrackingServiceTarget serviceTarget = new TrackingServiceTarget ( container . subTarget ( ) ) ;
 serviceTarget . addDependency ( context . getController ( ) . getName ( ) ) ;
 final DelegatingServiceRegistry serviceRegistry = new DelegatingServiceRegistry ( container ) ;
 final Bootstrap . Configuration configuration = this . configuration ;

Use a subtarget to avoid contaminating the container


<nb> public enum OGlobalConfiguration {
 }
 } ) ,

 - PROFILER_AUTODUMP_INTERVAL ( STRING0 , STRING1 ,
 + PROFILER_AUTODUMP_INTERVAL ( STRING0 , STRING2 ,
 Integer . class , NUMBER0 , new OConfigurationChangeCallback ( ) {
 public void change ( final Object iCurrentValue , final Object iNewValue ) {
 OProfiler . getInstance ( ) . setAutoDump ( ( Integer ) iNewValue ) ;


<nb> public class Mongo {

 DefaultConnectionProviderSettings connectionProviderSettings = DefaultConnectionProviderSettings . builder ( )
 . maxSize ( options . getConnectionsPerHost ( ) )
 - . maxWaitQueueSize ( options . getConnectionsPerHost ( ) * options . getThreadsAllowedToBlockForConnectionMultiplier ( ) -
 - options . getConnectionsPerHost ( ) )
 + . maxWaitQueueSize ( options . getConnectionsPerHost ( ) * options . getThreadsAllowedToBlockForConnectionMultiplier ( ) )
 . maxWaitTime ( options . getMaxWaitTime ( ) , TimeUnit . MILLISECONDS )
 . build ( ) ;
 DefaultConnectionSettings connectionSettings = DefaultConnectionSettings . builder ( )
 <nb> public final class MongoClients {

 DefaultConnectionProviderSettings connectionProviderSettings = DefaultConnectionProviderSettings . builder ( )
 . maxSize ( options . getConnectionsPerHost ( ) )
 - . maxWaitQueueSize ( options . getConnectionsPerHost ( ) * options . getThreadsAllowedToBlockForConnectionMultiplier ( )
 - - options . getConnectionsPerHost ( ) )
 + . maxWaitQueueSize ( options . getConnectionsPerHost ( ) * options . getThreadsAllowedToBlockForConnectionMultiplier ( ) )
 . maxWaitTime ( options . getMaxWaitTime ( ) , TimeUnit . MILLISECONDS )
 . build ( ) ;
 DefaultConnectionSettings connectionSettings = DefaultConnectionSettings . builder ( )


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

 public class DanmakuFilters {

 <nb> public class DanmakuFilters {
 }

 if ( totalSizeInScreen < mMaximumSize || danmaku . isShown ( )
 - || ( mLastSkipped != null && ( danmaku . time - mLastSkipped . time > NUMBER0 ) ) ) {
 + || ( mLastSkipped != null && ( danmaku . time - mLastSkipped . time > DanmakuFactory . MAX_DANMAKU_DURATION / NUMBER1 ) ) ) {
 mLastSkipped = danmaku ;
 return false ;
 }


<nb> public class NotificationsListFragment extends Fragment
 mFilterRadioGroup . setVisibility ( View . GONE ) ;
 mSwipeRefreshLayout . setVisibility ( View . GONE ) ;
 } else {
 - mNotesAdapter . reloadNotesFromDBAsync ( ) ;
 + getNotesAdapter ( ) . reloadNotesFromDBAsync ( ) ;
 }
 }


<nb> public class Call extends Node {
 @ override
 public Type transform ( State s ) {

 - SINGLE
 - if ( func instanceof Attribute ) {
 - Attribute afun = ( Attribute ) func ;
 - if ( afun . attr . id . equals ( STRING0 ) ) {
 - func = afun . target ;
 - }
 - }
 -
 Type fun = transformExpr ( func , s ) ;
 List < Type > pos = resolveList ( args , s ) ;
 Map < String , Type > hash = new HashMap < > ( ) ;


<nb> public class Tools {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 + @ deprecated
 public static String getOOoLabel ( final String label ) {
 return label . replaceAll ( STRING0 , STRING1 ) . replaceAll ( STRING2 , STRING3 ) ;
 }


<nb> public class BottomSheetLayout extends FrameLayout {
 private OnLayoutChangeListener sheetViewOnLayoutChangeListener ;
 private View dimView ;
 private boolean interceptContentTouch = true ;
 + private int currentSheetViewHeight ;

 COMMENT
 private float downY ;
 <nb> public class BottomSheetLayout extends FrameLayout {
 } ) ;

 SINGLE
 + currentSheetViewHeight = sheetView . getMeasuredHeight ( ) ;
 sheetViewOnLayoutChangeListener = new OnLayoutChangeListener ( ) {
 @ override
 public void onLayoutChange ( View sheetView , int left , int top , int right , int bottom , int oldLeft , int oldTop , int oldRight , int oldBottom ) {
 + int newSheetViewHeight = sheetView . getMeasuredHeight ( ) ;
 if ( state != State . HIDDEN ) {
 - if ( bottom < oldBottom ) {
 + if ( newSheetViewHeight < currentSheetViewHeight ) {
 setSheetTranslation ( sheetView . getMeasuredHeight ( ) ) ;
 }
 }
 + currentSheetViewHeight = newSheetViewHeight ;
 }
 } ;
 sheetView . addOnLayoutChangeListener ( sheetViewOnLayoutChangeListener ) ;


<nb> public class GroupLocalServiceImpl implements GroupLocalService {

 Layout layout = LayoutLocalServiceUtil . addLayout (
 group . getGroupId ( ) , userId , false , Layout . DEFAULT_PARENT_LAYOUT_ID ,
 - name , Layout . TYPE_PORTLET , false , null ) ;
 + name , Layout . TYPE_PORTLET , false , StringPool . BLANK ) ;

 LayoutTypePortlet layoutTypePortlet =
 ( LayoutTypePortlet ) layout . getLayoutType ( ) ;


<nb> public final class ActivityManagerService extends ActivityManagerNative
 if ( ! cancelCurrent ) {
 if ( updateCurrent ) {
 if ( rec . key . requestIntent != null ) {
 - rec . key . requestIntent . replaceExtras ( intents != null ? intents [ NUMBER0 ] : null ) ;
 + rec . key . requestIntent . replaceExtras ( intents != null ?
 + intents [ intents . length - NUMBER1 ] : null ) ;
 }
 if ( intents != null ) {
 intents [ intents . length - NUMBER1 ] = rec . key . requestIntent ;

Fix a bug with updating extras in a PendingIntent with an intent stack


<nb> public class ConfigImportHelper {
 }

 public static boolean isInstallationHome ( String installationHome ) {
 + String mainJarName = StringUtil . toLowerCase ( ApplicationNamesInfo . getInstance ( ) . getProductName ( ) ) + STRING0 ;
 SINGLE
 - boolean quickTest = new File ( new File ( installationHome , STRING1 ) , STRING2 ) . exists ( ) &&
 + boolean quickTest = new File ( new File ( installationHome , STRING1 ) , mainJarName ) . exists ( ) &&
 new File ( installationHome , BIN_FOLDER ) . exists ( ) ;
 if ( ! quickTest ) return false ;


<nb> public interface MetaObjectProtocol {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 MetaMethod getMetaMethod ( String name , Object [ ] args ) ;

improved javadoc for MetaObjectProtocol getMetaMethod


<nb> public final class GsmDataConnectionTracker extends DataConnectionTracker {
 SINGLE
 SINGLE
 String apnStr = STRING0 ;
 - if ( apnContext . getWaitngApns ( ) != null
 - && ! apnContext . getWatingApns ( ) . isEmpty ( ) ) {
 + if ( apnContext . getWaitingApns ( ) != null
 + && ! apnContext . getWaitingApns ( ) . isEmpty ( ) ) {
 apnStr = apnContext . getWaitingApns ( ) . get ( NUMBER0 ) . apn ;
 }
 log ( STRING1 + apnStr ) ;


<nb> public class HistogramLogWriter {
 COMMENT
 public void outputStartTime ( final long startTimeMsec ) {
 log . format ( Locale . US , STRING0 ,
 - startTimeMsec / FLOAT0 ,
 + startTimeMsec / FLOAT0 ,
 ( new Date ( startTimeMsec ) ) . toString ( ) ) ;
 }

 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void outputBaseTime ( final long baseTimeMsec ) {
 + log . format ( Locale . US , STRING1 ,
 + baseTimeMsec / FLOAT0 ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT

Add optional outputBaseTime for log writers that wish to explicitly specify a base time


<nb> public class BlockChain {
 }
 }

 - private void setChainHead ( StoredBlock chainHead ) {
 + private void setChainHead ( StoredBlock chainHead ) throws BlockStoreException {
 + blockStore . setChainHead ( chainHead ) ;
 this . chainHead = chainHead ;
 - try {
 - blockStore . setChainHead ( chainHead ) ;
 - } catch ( BlockStoreException e ) {
 - throw new RuntimeException ( e ) ;
 - }
 }

 COMMENT

Propagate BlockStoreException in BlockChain setChainHead


<nb> package NAMESPACE ;

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

 import NAMESPACE ;

 <nb> public class BeanPath < T > extends SimpleExpression < T > implements Path < T > {

 private static final long serialVersionUID = - NUMBER0 ;

 - private final Map < Class < ? > , Object > casts = new HashMap < Class < ? > , Object > ( ) ;
 + private final Map < Class < ? > , Object > casts = new ConcurrentHashMap < Class < ? > , Object > ( ) ;

 @ nullable
 private final PathInits inits ;


<nb> public final class ProtoCompileAction {
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static void registerAction ( Optional < ProtoCompileAction > protoCompileActionOptional ) {
 + if ( protoCompileActionOptional . isPresent ( ) ) {
 + protoCompileActionOptional . get ( ) . registerAction ( ) ;
 + }
 + }
 +
 public ProtoCompileAction (
 RuleContext ruleContext ,
 SupportData supportData ,
 <nb> public final class ProtoCompileAction {
 this . compilerTarget = compilerTarget ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + public void registerAction ( ) {
 + SpawnAction . Builder action = createAction ( protoCompileCommandLine ( ) . build ( ) ) ;
 + ruleContext . registerAction ( action . build ( ruleContext ) ) ;
 + }
 +
 public SpawnAction . Builder createAction ( CommandLine commandLine ) {
 SpawnAction . Builder builder =
 new SpawnAction . Builder ( ) . addTransitiveInputs ( supportData . getTransitiveImports ( ) ) ;

Add convenience methods to register a proto compile action


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class BatchEndpointIT
 . withConfig ( GraphDatabaseSettings . auth_enabled , STRING0 ) ;

 @ test
 + @ ignore ( STRING1 )
 public void requestsShouldNotFailWhenHttpLoggingIsOn ( )
 {
 SINGLE

Mute this test which is wrong and aggravated by the logging change


<nb> public class CommandException extends RuntimeException {
 OP_NOT_ALLOWED_DURING_VOICE_CALL ,
 OP_NOT_ALLOWED_BEFORE_REG_NW ,
 SMS_FAIL_RETRY ,
 + ILLEGAL_SIM_OR_ME ,
 }

 public CommandException ( Error e ) {
 <nb> public class CommandException extends RuntimeException {
 return new CommandException ( Error . OP_NOT_ALLOWED_BEFORE_REG_NW ) ;
 case RILConstants . SMS_SEND_FAIL_RETRY :
 return new CommandException ( Error . SMS_FAIL_RETRY ) ;
 + case RILConstants . ILLEGAL_SIM_OR_ME :
 + return new CommandException ( Error . ILLEGAL_SIM_OR_ME ) ;
 default :
 Log . e ( STRING0 , STRING1 + ril_errno ) ;
 return new CommandException ( Error . INVALID_RESPONSE ) ;
 <nb> public interface RILConstants {
 int OP_NOT_ALLOWED_BEFORE_REG_NW = NUMBER0 ; / * request is not allowed before device registers to
 COMMENT
 COMMENT
 + int ILLEGAL_SIM_OR_ME = NUMBER1 ; / * network selection failure due
 + to wrong SIM / ME and no
 + COMMENT

 COMMENT
 COMMENT


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

 import NAMESPACE ;
 <nb> public class MatcherContext < V > implements Context < V > {
 }

 public boolean inPredicate ( ) {
 - return matcher instanceof TestMatcher || parent != null && parent . inPredicate ( ) ;
 + return matcher instanceof TestMatcher || matcher instanceof TestNotMatcher ||
 + parent != null && parent . inPredicate ( ) ;
 }

 public boolean isNodeSuppressed ( ) {

Fixed Context inPredicate not working underneath TestNotMatchers


<nb> public class MapActivity extends AccessibleActivity implements
 SINGLE
 final int newZoom = mapView . getZoom ( ) + stp ;
 if ( newZoom > NUMBER0 ) {
 - AccessibleToast . makeText ( this , STRING0 , Toast . LENGTH_SHORT ) . show ( ) ; SINGLE
 + AccessibleToast . makeText ( this , R . string . edit_tilesource_maxzoom , Toast . LENGTH_SHORT ) . show ( ) ; SINGLE
 return ;
 }
 mapView . getAnimatedDraggingThread ( ) . startZooming ( newZoom , changeLocation ) ;


<nb> import static NAMESPACE

 public class CherryPicker {

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + private static final String CHERRY_PICK_HEAD_FILE = STRING0 ;
 +
 private static final Logger LOG = Logger . getInstance ( CherryPicker . class ) ;

 @ notnull private final Project myProject ;
 <nb> public class CherryPicker {
 }

 private void removeCherryPickHead ( @ notnull GitRepository repository ) {
 - File cherryPickHeadFile = new File ( repository . getGitDir ( ) . getPath ( ) , STRING0 ) ;
 + File cherryPickHeadFile = new File ( repository . getGitDir ( ) . getPath ( ) , CHERRY_PICK_HEAD_FILE ) ;
 final VirtualFile cherryPickHead = myPlatformFacade . getLocalFileSystem ( ) . refreshAndFindFileByIoFile ( cherryPickHeadFile ) ;

 if ( cherryPickHead != null && cherryPickHead . exists ( ) ) {


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;

 import NAMESPACE ;


<nb> public class NearCacheTest extends HazelcastTestSupport {
 }

 @ test
 + COMMENT
 + COMMENT
 + COMMENT
 public void testCacheLocalEntries ( ) {
 int n = NUMBER0 ;
 String mapName = STRING0 ;

add note to NearCacheTest testCacheLocalEntries


<nb> public class CallLog {
 public static final String NUMBER = STRING0 ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String COUNTRY_ISO = STRING1 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class ContactsContract {
 COMMENT
 COMMENT
 public static final String LABEL = STRING2 ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String NORMALIZED_NUMBER = STRING3 ;
 }

 COMMENT
 <nb> public final class ContactsContract {
 public static final String NUMBER = DATA ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String NORMALIZED_NUMBER = DATA4 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT