diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class VtorJsonResult extends ActionResult { char [ ] chars = result . toCharArray ( ) ; byte [ ] data = CharUtil . toByteArray ( chars , madvocConfi...
added mime type for json
<nb> public class FinalLocalVariableCheck extends Check { DetailAST astTraverse = ast ; while ( ! ( astTraverse . getType ( ) == TokenTypes . METHOD_DEF || astTraverse . getType ( ) == TokenTypes . CLASS_DEF + || astTraverse . getType ( ) == TokenTypes . ENUM_DEF || astTraverse . getType ( ) == TokenTypes . C...
Fixed NPE in FinalLocalVariableCheck
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; ...
added license and javadoc
<nb> public final class KotlinDescriptorIconProvider { return PlatformIcons . CLASS_ICON ; } + if ( descriptor instanceof TypeAliasDescriptor ) { + return PlatformIcons . CLASS_ICON ; + } + LOG . warn ( STRING0 + descriptor ) ; return null ; }
Provide base icon for type alias descriptor
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class EndpointValidationFilter implements Filter { private String authorizationEndpointUrl = DEFAULT_AUTHORIZATION_ENDPOINT_URL ; private String tokenEndpointUrl = DEFAULT_TOKE...
add pattern matcher in endpoint validator
<nb> public class CountriesFragment extends Fragment { public void smoothScrollToRandomPosition ( ) { int position = mRng . nextInt ( mAdapter . getItemCount ( ) ) ; - position = NUMBER0 ; String s = STRING0 + position + ( mAdapter . isItemHeader ( position ) ? STRING1 : STRING2 ) + mAdapter . itemToStrin...
Remove fixed point on example scroll
<nb> abstract class Platform { COMMENT private static class Base extends Platform { @ override Provider < HttpClient > defaultHttpClient ( ) { + final HttpClient client = new DefaultHttpClient ( ) ; return new Provider < HttpClient > ( ) { @ override public HttpClient get ( ) { - return new DefaultHttpCli...
Do not instantiate a new HttpClient on every call when using platform defaults
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public class QueryStringDecoderTest {
Replaced email with homepage url
<nb> public class Style { final int durationInMilliseconds ; COMMENT - COMMENT - COMMENT - final int colorResourceId ; - - COMMENT COMMENT COMMENT COMMENT <nb> public class Style { private Style ( final Builder builder ) { this . durationInMilliseconds = builder . durationInMilliseconds ; ...
removes unused colorResourceId from Style
<nb> public class PluginMetadata { metadata . setDependencyPaths ( manifest . getDependencies ( ) ) ; metadata . setCore ( corePlugin ) ; metadata . setUseChildFirstClassLoader ( manifest . isUseChildFirstClassLoader ( ) ) ; - metadata . setBasePlugin ( manifest . getExtendPlugin ( ) ) ; + metadata . setBaseP...
Rename manifest entry Extend Plugin to Plugin Base
<nb> public interface ExecController extends AutoCloseable { if ( ! inEventLoop ) { long start = System . currentTimeMillis ( ) ; getEventLoopGroup ( ) . awaitTermination ( toWaitMillis , TimeUnit . MILLISECONDS ) ; - toWaitMillis -= ( System . currentTimeMillis ( ) - start ) ; + toWaitMillis -= System . curr...
Remove unnecessary params
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - abstract class ModifierIntention extends Intention { + abstract class ModifierIntention extends Intention implements LowPriorityActio...
make visibility intentions low priority
<nb> public class NotificationsTest extends AndroidTestCase { Realm . deleteRealm ( realmConfiguration ) ; final CountDownLatch handlerNotified = new CountDownLatch ( NUMBER0 ) ; + final CountDownLatch backgroundThreadClosed = new CountDownLatch ( NUMBER0 ) ; SINGLE new Thread ( STRING0 ) { <nb> public ...
Fix race condition in test
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; @ runwith ( HazelcastSerialClassRunner . class ) @ category ( SlowTest . class ) + @ ignore public class...
ignored the test
<nb> public interface ComponentMetadataHandler { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT void eachComponent ( Closure < ? > rule ) ;
added some javadoc for preliminary improved component metadata rules api
<nb> public abstract class AbstractItem < Item extends AbstractItem < ? , ? > , VH extends R } } catch ( Exception e ) { SINGLE - throw new RuntimeException ( STRING0 ) ; + throw new RuntimeException ( STRING1 ) ; } } }
improve error message if a ViewHolder without a correct CTOR is used
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; @ runwith ( HazelcastSerialClassRunner . class ) @ category ( SlowTest . class ) + @ ignore SINGLE publi...
Disabled the HazelcastXaTest because it stops the whole nightly from being run
<nb> import static NAMESPACE ; public class EditSession implements Extent { COMMENT - COMMENT + COMMENT COMMENT COMMENT public enum Level { <nb> public class EditSession implements Extent { COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> public class EditSession implemen...
Fixed EditSession s Javadocs regarding notifyAdjacent
<nb> public class GoSmtpMailSenderTest { @ test public void shouldNotSendTestEmailToSmtpServerIfTlsConfiguredIncorrect ( ) { - GoSmtpMailSender sender = new GoSmtpMailSender ( STRING0 , NUMBER0 , STRING1 , STRING2 , true , STRING3 , STRING4 ) ; + GoSmtpMailSender sender = new GoSmtpMailSender ( STRING5 , NUMB...
Fix a sporadically slow test
<nb> public class AddAutoIncrementChange extends AbstractChange { if ( database instanceof OracleDatabase ) { throw new UnsupportedChangeException ( STRING0 ) ; } else if ( database instanceof MSSQLDatabase ) { - throw new UnsupportedChangeException ( STRING1 ) ; + throw new UnsupportedChangeException ( STRIN...
Fixed wrong exception messages in AddAutoIncrementChange
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; imp...
files search view import from support lib
<nb> public class StandardContext extends ContainerBase Pipeline pipeline = getPipeline ( ) ; if ( pipeline != null ) { Valve basic = pipeline . getBasic ( ) ; - if ( ( basic != null ) && ( basic instanceof Authenticator ) ) + if ( basic instanceof Authenticator ) return ( Authenticator ) basic ; Valve va...
instanceof includes a null check
<nb> public class GradleIcons { return IconLoader . getIcon ( path , GradleIcons . class ) ; } - public static final Icon Gradle = load ( STRING0 ) ; SINGLE - public static final Icon GradleImport = load ( STRING1 ) ; SINGLE - public static final Icon GradleNavigate = load ( STRING2 ) ; SINGLE - public st...
don t modify autogenerated files
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Changing the import order
<nb> public class MainActivity extends AppCompatActivity { setVolumeControlStream ( AudioManager . STREAM_MUSIC ) ; mainFragment = getSupportFragmentManager ( ) . findFragmentById ( R . id . search_fragment ) ; - - ( ( String ) null ) . length ( ) ; } public boolean onCreateOptionsMenu ( Menu menu ) {
removed crash test line
<nb> public class MuzeiWatchFace extends CanvasWatchFaceService { mClockAmbientShadowPaint = new Paint ( mClockPaint ) ; mClockAmbientShadowPaint . setColor ( Color . TRANSPARENT ) ; mClockAmbientShadowPaint . setShadowLayer ( - FLOAT0 * densityMultiplier , NUMBER0 , FLOAT1 * densityMultiplier , + FLOAT2 * de...
Reduce clock date shadow to take into account changed density
<nb> public class MongoDBRiver extends AbstractRiverComponent implements River { this . collection = collection ; } - public boolean isOplogEntry ( ) { - return oplogTimestamp != null ; - } - public boolean isAttachment ( ) { return ( data instanceof GridFSDBFile ) ; }
Remove unused method
<nb> public class SubInfoRecord implements Parcelable { dest . writeCharSequence ( mDisplayName ) ; dest . writeInt ( mNameSource ) ; dest . writeInt ( mColor ) ; - dest . writeString ( mNumber . toString ( ) ) ; + dest . writeString ( mNumber ) ; dest . writeInt ( mDataRoaming ) ; dest . writeIntArray ( ...
Fix NPE when parceling SubInfoRecord
<nb> public interface Server COMMENT COMMENT COMMENT - public HostedConnection getConnection ( long id ) ; + public HostedConnection getConnection ( int id ) ; COMMENT COMMENT <nb> public class DefaultServer implements Server } } - public HostedConnection getConnection ( long id ) + public H...
Fixed a getConnection bug caused by a silent autoboxing
<nb> public interface EmbeddedApplication extends ApplicationUnderTest , AutoCloseable COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
escaping html entity for javadoc
<nb> public class PatternCompilerImpl < T > implements PatternCompiler < T > { if ( myCompiledPattern == null ) { Object result ; try { - result = execute ( myNode ) ; + result = myNode . target == ERROR_NODE ? ALWAYS_FALSE : execute ( myNode ) ; } catch ( Throwable throwable ) { LOG . error ( toString ...
do not log error message twice
<nb> COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix copyright header
<nb> public class HibernateCriteriaBuilder extends GroovyObjectSupport { } else { - System . out . println ( STRING0 + name + STRING1 + ArrayUtils . toString ( args ) ) ; MetaMethod metaMethod = getMetaClass ( ) . getMetaMethod ( name , args ) ; if ( metaMethod != null ) {
removed some system outs
<nb> public class Solo { } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT <nb> class ViewFetcher { } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT
Clarified javadoc for getCurrentGridViews in Solo and ViewFetcher
<nb> public abstract class CompilerTestCase extends TestCase { COMMENT COMMENT SINGLE - void enableClosurePass ( ) { + protected void enableClosurePass ( ) { closurePassEnabled = true ; } - void enableClosurePassForExpected ( ) { + protected void enableClosurePassForExpected ( ) { closurePassEnabl...
Make enableClosurePass protected in CompilerTestCase
<nb> public class QueryTorture logger . info ( STRING0 + readQueries + STRING1 + noDuplicate . size ( ) + STRING2 + successfullQueries . get ( ) - + STRING3 + skippedTooShort + + STRING4 + skippedTooShort + STRING5 + queryQueue . size ( ) + STRING6 + routingErrorCounter . get ( ) + STRING7 + httpErrorCo...
dataaccess in config should overwrite forServer
<nb> public interface DomainManagementMessages { COMMENT COMMENT COMMENT - @ message ( id = Message . NONE , value = STRING0 ) + @ message ( id = Message . NONE , value = STRING1 ) String aboutToUpdateEnabledUser ( String user ) ; COMMENT <nb> public interface DomainManagementMessages { COMMENT CO...
Fix typo when user already exists
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class ActorEditTextActivity extends BaseActivity { protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; - SI...
remove blink on keyboard open
<nb> public final class MediaController { COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT public void playFromSearch ( String query , Bundle extras ) { - if ( TextUtils . isEmpty ( query ) ) { - throw new IllegalArgumentException ( - STRING0 ) ; ...
Allow empty strings in playFromSearch
<nb> public class IsoChrone2 extends RoutingResource { private String algorithm ; @ queryparam ( STRING0 ) + @ defaultvalue ( STRING1 ) private Integer precisionMeters ; @ queryparam ( STRING2 ) <nb> public class IsoChrone2 extends RoutingResource { if ( debug == null ) debug = false ; - if ( pr...
properly handle default values
<nb> public abstract class AbstractDatabase implements Database { releaseStatement . addNewColumnValue ( STRING0 , null , Types . VARCHAR ) ; releaseStatement . setWhereClause ( STRING1 ) ; - int updatedRows = new JdbcTemplate ( this ) . update ( ( PreparedSqlStatement ) releaseStatement ) ; + int updatedRows...
Handle tostring better when there is no connection set
<nb> public final class StoredResponseStreamSinkConduit extends AbstractStreamSinkCon super ( next ) ; this . exchange = exchange ; long length = exchange . getResponseContentLength ( ) ; - if ( length > NUMBER0 ) { + if ( length > NUMBER0 L ) { outputStream = new ByteArrayOutputStream ( ) ; } else { if...
Make findbugs happy
<nb> public class MongoDBRiver extends AbstractRiverComponent implements River { private boolean isMongos ( ) { DB adminDb = getAdminDb ( ) ; + if ( adminDb == null ) { + return false ; + } CommandResult cr = adminDb . command ( new BasicDBObject ( STRING0 , NUMBER0 ) ) ; logger . info ( STRING1 , cr ...
Throw exception if config database does not exist
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , if ( sUseBrokenMakeMeasureSpec ) { return size + mode ; } else { - if ( size < NUMBER0 ) { - throw new IllegalArgumentException ( STRING0 ) ; - } return ( size & ~ MODE_MASK ) | ( mode & MODE_MASK ) ; } }
Revert Throw IAE on invalid measure spec size
<nb> public class ConnectionsPane extends WorkbenchPane implements ConnectionsPresent toolbar_ . addLeftSeparator ( ) ; toolbar_ . addLeftWidget ( connectionName_ ) ; toolbar_ . addLeftSeparator ( ) ; - toolbar_ . addLeftWidget ( commands_ . removeConnection ( ) . createToolbarButton ( ) ) ; - toolbar_ . addL...
relocate remove to right side of connections toolbar
<nb> import NAMESPACE ; @ runasprincipal ( STRING0 ) @ securitydomain ( STRING1 ) public class CallerWithIdentity implements WhoAmI { - @ ejb ( beanName = STRING2 ) - private WhoAmI beanB ; + @ ejb ( beanName = STRING3 ) + private WhoAmI beanA ; public String getCallerPrincipal ( ) { - return beanB ...
CallerWithIdentity invokes method of StatelessABean invokes method of StatelessBBean second call
<nb> public class SASLAuthentication { private static void initMechanisms ( ) { - final String configuration = JiveGlobals . getProperty ( STRING0 , STRING1 ) ; + final String configuration = JiveGlobals . getProperty ( STRING0 , STRING2 ) ; final StringTokenizer st = new StringTokenizer ( configuration , S...
Add EXTERNAL to the list of default SASL mechanisms
<nb> public class AnnotationConstantExpression extends ConstantExpression { } super . visit ( visitor ) ; } + + public String toString ( ) { + return STRING0 + getValue ( ) + STRING1 ; + } }
added missing AnnotationConstantExpression toString
<nb> public class SignalClusterView return ; } SINGLE + for ( PhoneState state : mPhoneStates ) { + if ( state . mMobile != null ) { + state . maybeStopAnimatableDrawable ( state . mMobile ) ; + } + if ( state . mMobileDark != null ) { + state . maybeStopAnimatableDrawable ( state . mMobileDark ) ; ...
Fix signal cluster animation leak
<nb> public class BackupManagerService { COMMENT int preflightFullBackup ( PackageInfo pkg , IBackupAgent agent ) ; - long expectedSize ( ) ; + long getExpectedSizeOrErrorCode ( ) ; } ; class FullBackupEngine { <nb> public class BackupManagerService { SINGLE mLatch . await ( ) ; int totalSize = ...
Don t call BackupTransport checkFullBackupSize when preflight timeouted
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class RootIndex { if ( info != null ) { return info ; } - if ( isAnyExcludeRoot ( root ) ) { + if ( isAnyExcludeRoot ( root ) || FileTypeManager . g...
honor ignored files
<nb> public class FileDataStorageManager { } } - private static boolean copyFile ( File src , File target ) { + private boolean copyFile ( File src , File target ) { boolean ret = true ; InputStream in = null ;
Removes a static modifier that sneaked in
<nb> public class ValidationManager { List < Interval > missingIntervals = computeMissingIntervals ( segmentIntervals , segmentMetadataList . get ( NUMBER0 ) . getTimeGranularity ( ) ) ; missingSegmentCount = missingIntervals . size ( ) ; + + for ( Interval missingInterval : missingIntervals ) { + LOGGER . ...
Log missing intervals when running segment validation
<nb> public class BitmapFont implements Disposable { tokens . nextToken ( ) ; tokens . nextToken ( ) ; int ch = Integer . parseInt ( tokens . nextToken ( ) ) ; - if ( ch == - NUMBER0 ) + if ( ch <= NUMBER1 ) missingGlyph = glyph ; else if ( ch <= Character . MAX_VALUE ) setGlyph ( ch , glyph ) ;
Fixed missing glyph
<nb> public final class UIMenuConfigControls extends UIWindow { new ButtonDefinition ( STRING0 , STRING1 , NUMBER0 ) , new ButtonDefinition ( STRING2 , STRING3 , NUMBER0 ) , new ButtonDefinition ( STRING4 , STRING5 , NUMBER1 ) , + new ButtonDefinition ( STRING6 , STRING7 , NUMBER1 ) , new ButtonDefinition ( S...
Added menu entry for Drop Item and Hide HUD
<nb> public class PyQualifiedReferenceImpl extends PyReferenceImpl { PyExpression qualifier = myElement . getQualifier ( ) ; assert qualifier != null ; - PyType qualifierType = qualifier . getType ( TypeEvalContext . fast ( ) ) ; + PyType qualifierType = qualifier . getType ( TypeEvalContext . slow ( ) ) ; ...
use slow type calculation for building completion variants
<nb> final class RoutingControlAction extends HdmiCecFeatureAction { private void handleReportPowerStatus ( int devicePowerStatus ) { if ( isPowerOnOrTransient ( getTvPowerStatus ( ) ) ) { + tv ( ) . updateActiveInput ( mCurrentRoutingPath , mNotifyInputChange ) ; if ( isPowerOnOrTransient ( devicePowerStatus...
Switch active input after routing control
<nb> import NAMESPACE ; COMMENT public abstract class AbstractHazelcastClassRunner extends AbstractParameterizedHazelcastClassRunner { - protected static final boolean DISABLE_THREAD_DUMP_ON_FAILURE = true ; + protected static final boolean DISABLE_THREAD_DUMP_ON_FAILURE = + Boolean . getBoolean ( STRING0 )...
Enabled thread dump on test failure by default
<nb> public class NominalType { } NominalType instantiateGenerics ( Map < String , JSType > newTypeMap ) { + if ( ! this . rawType . isGeneric ( ) ) { + return this . rawType . wrappedAsNominal ; + } ImmutableMap . Builder < String , JSType > builder = ImmutableMap . builder ( ) ; if ( ! typeMap . isEmp...
NEW TYPE INFERENCE Don t create unneeded NominalType instances for non generic types
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT + COMMENT COMMENT public class MUCInitialPresence implements PacketExtension {
Fix javadoc in MUCInitialPresence History
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAM...
Oracle schema initialize fix
<nb> public class Flyway { SINGLE if ( schema . allTables ( ) . length != NUMBER0 || ! schema . getTable ( table ) . exists ( ) ) { throw new FlywayException ( STRING0 + schema - + STRING1 ) ; + + STRING2 + + STRING3 ) ; } } else { throw new FlywayException ( STRING4 + StringUtils . collectionToComm...
Suggest initOnMigrate for non empty schemas
<nb> public class SettingsGenerator extends ControlFrameGenerator case SPDY . V2 : { SINGLE - int idAndFlags = ( id < < NUMBER0 ) + flags ; + int idAndFlags = ( id < < NUMBER0 ) + ( flags & NUMBER1 ) ; SINGLE SINGLE int result = idAndFlags & NUMBER2 ;
Making sure bytes are masked when doing int operations
<nb> public class GithubApiUtil { } if ( ! response . getJsonElement ( ) . isJsonArray ( ) ) { - throw new GithubJsonException ( STRING0 ) ; + throw new GithubJsonException ( STRING0 , new Exception ( response . getJsonElement ( ) . toString ( ) ) ) ; } myNextPage = response . getNextPage ( ) ;
add cause to exception
<nb> public class RestResponseFactory { public static final String BYTE_ARRAY_VARIABLE_TYPE = STRING0 ; public static final String SERIALIZABLE_VARIABLE_TYPE = STRING1 ; - private List < RestVariableConverter > variableConverters = new ArrayList < RestVariableConverter > ( ) ; + protected List < RestVariableC...
Opening up the variableConverters list for subclasses was private
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public abstract class AbstractConsoleRunnerWithHistory { COMMENT COMMENT COMMENT - protected void initAndRun ( ) throws ExecutionException { + public void initAndRun ( ) t...
Restored Reload Rails console action
<nb> public abstract class BaseSliderView { if ( targetImageView == null ) return ; - mLoadListener . onStart ( me ) ; + if ( mLoadListener != null ) { + mLoadListener . onStart ( me ) ; + } Picasso p = Picasso . with ( mContext ) ; RequestCreator rq = null ;
add null check for ImageLoadListener
<nb> public class InspectionTree extends Tree { } else { setIcon ( node . getIcon ( expanded ) ) ; } - SINGLE - final String tail = StringUtil . repeat ( STRING0 , Math . max ( NUMBER0 , NUMBER1 - String . valueOf ( problemCount ) . length ( ) ) ) ; + SINGLE + SINGLE + final String tail = StringUtil . r...
increased whitespace margin
<nb> public class ParseTreesDescriptors { COMMENT @ commenthasstringvalue public String grammar ; + + @ override + public boolean ignore ( String targetName ) { + return ! targetName . equals ( STRING0 ) ; + } } public static class NoViableAlt extends BaseParserTestDescriptor {
make non Java targets ignore new test
<nb> public class WPMainActivity extends Activity } COMMENT - COMMENT - COMMENT - private NotificationsListFragment getNotificationListFragment ( ) { - return getFragmentByPosition ( WPMainTabAdapter . TAB_NOTIFS , NotificationsListFragment . class ) ; - } - - COMMENT COMMENT COMMENT public My...
Removed now unused method
<nb> public abstract class InboundMessageContext { COMMENT COMMENT public boolean hasEntity ( ) { - entityContent . ensureNotClosed ( ) ; - try { return ! entityContent . isEmpty ( ) ; } catch ( IllegalStateException ex ) {
Make hasEntity work with a closed stream
<nb> public class PyCompatibilityInspectionTest extends PyLightFixtureTestCase { } public void testExceptBlock ( ) { + setLanguageLevel ( LanguageLevel . PYTHON27 ) ; doTest ( ) ; } <nb> public class PyCompatibilityInspectionTest extends PyLightFixtureTestCase { } public void testWithStatement ( )...
fixed failed compatibility tests
<nb> public final class JSTypeCreatorFromJSDoc { String errorMsg = implementedIntfs ? STRING0 : STRING1 ; - warn ( errorMsg , jsdoc . getAssociatedNode ( ) ) ; + warn ( errorMsg , expRoot ) ; } } }
Remove reference to getAssociatedNode in newtypes
<nb> public interface BlockStore { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT Optional < Long > lockBlock ( long userId , long blockId ) ; <nb> public interface BlockStore { Optional < BlockMeta > getBlockMeta ( long userId , long blockId , long lockId ) ; COMMENT - COMMENT - COMMEN...
Fix javadoc in BlockStore interface
<nb> public class ThreadedBidirectionalHeuristic implements RemainingWeightHeuristic LOG . debug ( STRING0 , stopStates ) ; return stopStates ; } + + public static class Factory implements RemainingWeightHeuristicFactory { + @ override + public RemainingWeightHeuristic getInstanceForSearch ( RoutingReques...
add threaded bidi heuristic factory static inner class
<nb> import NAMESPACE ; import NAMESPACE ; public class TextContainer { - public static final String TEMPLATE_NAME = STRING0 ; + private static final String TEMPLATE_NAME = STRING0 ; private String text ; private String operation ; private ImmutableMap < String , TextContainer > props ;
corrected constant modifier in text container
<nb> package NAMESPACE ; import NAMESPACE ; - public interface KafkaTopicSelector { + import NAMESPACE ; + + public interface KafkaTopicSelector extends Serializable { String getTopic ( Tuple tuple ) ; } <nb> package NAMESPACE ; import NAMESPACE ; - public interface KafkaTopicSelector { + ...
Add kafka trident state so messages can be sent to kafka topics
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CachingBuildEngine implements BuildEngine { SINGLE File zipFile ; try { - zipFile = File . createTempFile ( rule . get...
Sanitize the filename we use to fetch an artifact from the cache
<nb> public class OutgoingServerSession extends Session { session . addHostname ( hostname ) ; SINGLE session . addAuthenticatedDomain ( domain ) ; + SINGLE + sessionManager . outgoingServerSessionCreated ( session ) ; return true ; } else {
Added creation notification to the SessionManager
<nb> COMMENT COMMENT - COMMENT + COMMENT COMMENT package NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PlainAnalyzer extends TextAnalyzer { i...
Simplified buffer expansion in PlainAnalyzer
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public final class ContentRecommendation CONTENT_TYPE_MAGAZINE , CONTENT_TYPE_WEBSITE , } ) + @ retention ( RetentionPolicy . SOURCE ) public @ interface Co...
Add Retention annotations in ContentRecommendation
<nb> public abstract class ServletInputStream extends InputStream { COMMENT COMMENT COMMENT + public abstract int dataAvailable ( ) ; + + + COMMENT + COMMENT + COMMENT + COMMENT public abstract boolean isFinished ( ) ; COMMENT COMMENT <nb> public class CoyoteInputStream return false ; } ...
Add another method found in spec
<nb> import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CapsuleLauncherTest { Capsule capsule = newCapsuleLauncher ( jar ) . newCapsule ( ) ; ProcessBuilder pb = capsule ...
add CapsuleLauncher tests
<nb> public class MavenProcess { } @ override - public void processRestoredToForeground ( ) { - task . setStartInForeground ( ) ; - } - - @ override public void processSentToBackground ( ) { task . setStartInBackground ( ) ; }
removed old unused method
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT
Fix checkstyle rule
<nb> public class KnownFingerprintsPanel COMMENT private void openContact ( Contact contact ) { - if ( contact == null ) + if ( contact == null + || OtrActivator . scOtrKeyManager . getRemoteFingerprint ( contact ) == null ) { btnForgetFingerprint . setEnabled ( false ) ; btnVerifyFingerprint . setEna...
disable buttons for contacts without fingerprint
<nb> import static NAMESPACE ; public class DeepLearningProstateTest extends TestUtil { @ beforeclass ( ) public static void setup ( ) { stall_till_cloudsize ( NUMBER0 ) ; } - @ test public void run ( ) throws Exception { runFraction ( FLOAT0 ) ; } + @ test public void run ( ) throws Exception { runFraction (...
Speed up DLProstateTest
<nb> public class MetaClass { return method ; } } + log . warning ( STRING0 + aMethod ) ; return new ReflectionMetaMethod ( aMethod ) ; } <nb> public class MetaClass { try { Method method = type . getMethod ( name , EMPTY_TYPE_ARRAY ) ; if ( ( method . getModifiers ( ) & Modifier . STATIC ) != NUM...
added some warnings
<nb> public abstract class AppIntro extends AppCompatActivity { LinearLayout bottomBar = ( LinearLayout ) findViewById ( R . id . bottom ) ; bottomBar . setBackgroundColor ( color ) ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void setNextArrowColor ( @ colorint final...
allow users to set color of the arrow button
<nb> public final class HeaderMap implements Iterable < HeaderValues > { private Collection < HttpString > headerNames ; public HeaderMap ( ) { - table = new Object [ NUMBER0 ] ; + table = new Object [ NUMBER1 ] ; } private HeaderValues getEntry ( final HttpString headerName ) {
Reduce default header table size
<nb> public abstract class XDebuggerEvaluator { COMMENT COMMENT COMMENT - public void evaluate ( @ notnull String expression , @ notnull XEvaluationCallback callback , @ nullable XSourcePosition expressionPosition ) { - evaluate ( expression , callback ) ; - } + public abstract void evaluate ( @ notnull S...
remove deprecated method
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - public class HashedSequence < S extends Sequence > implements Sequence { + public final class HashedSequence < S extends Sequence > implements Sequence { final S base ; final int [ ] hashes ;
Fix some quality flaws
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SpringLiquibase implements InitializingBean , BeanNameAware , Resourc public InputStream getResourceAsStream ( String file ) throws IOException { - Resource resource = getResour...
Added catch FileNotFoundException to return null instead of throwing exception
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FluidSlot extends AdvancedSlot { @ override public ResourceLocation getTexture ( ) { - return FluidRenderer . getFluidSheet ( fluid ) ; + return TextureMap . locationBlocksT...
Fix some errors
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TaskExecutor } } catch ( Throwable t ) { - log . error ( t , STRING0 , split . getInfo ( ) ) ; + if ( t instanceof PrestoException ) { + PrestoException e = ( Pres...
Don t log stack trace for expected task failures
<nb> public class InitCommand extends OptionParsingCommand { examples . add ( new HelpExample ( STRING0 , STRING1 ) ) ; examples . add ( new HelpExample ( STRING2 , - STRING3 ) ) ; + STRING4 ) ) ; return examples ; } <nb> public class InitCommand extends OptionParsingCommand { private void otherOp...
Fix wrong help page for archive detection logic
<nb> public abstract class AbstractServerBuilder < BuilderT extends AbstractServerBuild COMMENT COMMENT COMMENT + @ internal protected abstract ServerEssentials buildEssentials ( ) ; COMMENT COMMENT COMMENT + @ internal protected static class ServerEssentials { final io . grpc . internal . Serve...
Annotate ServerEssentials buildEssentials and ServerImpl s constructor with Internal
<nb> public class OperationSetFileTransferJabberImpl provider . addRegistrationStateChangeListener ( new RegistrationStateListener ( ) ) ; + + SINGLE + FileTransferNegotiator . IBB_ONLY = true ; } COMMENT <nb> public class ProtocolProviderServiceJabberImpl discoveryManager = new ScServiceDiscove...
Removes advertising bytestream used for jabber file transfers leaving ibb
<nb> public class HashMapWrapper < K , V > implements Serializable { } public boolean isAbort ( long numRows , LogHelper console ) { - System . gc ( ) ; - System . gc ( ) ; int size = mHash . size ( ) ; long usedMemory = memoryMXBean . getHeapMemoryUsage ( ) . getUsed ( ) ; double rate = ( double ) used...
Remove System gc call from the map join local task loop Gopal V via Ashutosh Chauhan
<nb> final class Deflate { private void lm_init ( ) { window_size = NUMBER0 * w_size ; - SINGLE - head [ hash_size - NUMBER1 ] = NUMBER2 ; - for ( int i = NUMBER2 ; i < hash_size - NUMBER1 ; i ++ ) { - head [ i ] = NUMBER2 ; - } - SINGLE max_lazy_match = Deflate . config_table [ level ] . max_lazy...
Removed unnecessary memory bandwidth consumption