diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class ConnectorAction extends Action { String currentFolder = req . getParameter ( STRING0 ) ; String newFolder = ParamUtil . getString ( req , STRING1 ) ; + if ( _log . isDebugEnabled ( ) ) { + _log . debug ( STRING2 + command ) ; + _log . debug ( STRING3 + type ) ; + _log . debug ( STRING4 +...
Add more debugging statements
<nb> public final class AddressBookResultHandler extends ResultHandler { super ( activity , result ) ; AddressBookParsedResult addressResult = ( AddressBookParsedResult ) result ; String [ ] addresses = addressResult . getAddresses ( ) ; - boolean hasAddress = addresses != null && addresses . length > NUMBER0 &...
Avoid a rare NPE
<nb> public @ interface BugPattern { SUGGESTION } - MaturityLevel maturity ( ) default MaturityLevel . MATURE ; - - public enum MaturityLevel { - MATURE ( STRING0 ) , - EXPERIMENTAL ( STRING1 ) ; - - final String description ; - MaturityLevel ( String description ) { - this . description = descr...
Remove BugPattern maturity
<nb> public final class TimeFieldSpec extends FieldSpec { return getName ( ) ; } + @ jsonignore + @ deprecated + SINGLE + public String getOutGoingTimeColumnName ( ) { + return getName ( ) ; + } + public void setIncomingGranularitySpec ( TimeGranularitySpec incomingGranularitySpec ) { Preconditi...
Add getOutGoingTimeColumnName to TimeFieldSpec for third eye backward compatible
<nb> public class CommittedChangesCache { return cacheFile ; } - public static File getCacheRootPath ( ) { - return new File ( PathManager . getSystemPath ( ) , VCS_CACHE_PATH ) ; + public File getCacheBasePath ( ) { + File file = new File ( PathManager . getSystemPath ( ) , VCS_CACHE_PATH ) ; + file = ...
test deletes only its own VCS cache rather than caches of all projects
<nb> public abstract class BaseCrashReportDialog extends Activity { COMMENT @ override protected final void onCreate ( @ nullable Bundle savedInstanceState ) { + preInit ( savedInstanceState ) ; super . onCreate ( savedInstanceState ) ; <nb> public abstract class BaseCrashReportDialog extends Activity {...
Add a preInit method to BaseCrashReportDialog for e g AppCompatDelegate setup
<nb> public class EnglishGrammaticalRelations { STRING0 , SINGLE STRING1 , STRING2 , - STRING3 , SINGLE + STRING4 , SINGLE STRING5 , SINGLE SINGLE
Find more fronted advcl and less non clausal PP ones
<nb> public class PatternsForEachTokenTest extends TestCase { @ test public void testCreatingAndInserting ( ) throws SQLException , IOException , ClassNotFoundException { - + COMMENT SINGLE Properties props = new Properties ( ) ; <nb> public class PatternsForEachTokenTest extends TestCase { Concur...
commenting a test
<nb> public class IndexIO throw new ISE ( STRING0 , version ) ; } } - - public static boolean hasHandler ( ) - { - return ( IndexIO . handler != null ) ; - } - - public static void registerHandler ( IndexIOHandler handler ) - { - if ( IndexIO . handler == null ) { - IndexIO . handler = handler...
remove crazy handler code
<nb> public class K9 extends Application { int cachedVersion = sDatabaseVersionCache . getInt ( KEY_LAST_ACCOUNT_DATABASE_VERSION , NUMBER0 ) ; - if ( cachedVersion < LocalStore . DB_VERSION ) { + if ( cachedVersion > NUMBER0 && cachedVersion <= LocalStore . DB_VERSION ) { K9 . setDatabasesUpToDate ( false ...
Fix database version cache logic
<nb> package NAMESPACE ; import NAMESPACE ; + + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MapActivityActions impl...
Fix collator Issue
<nb> public class NotificationAssert extends AbstractAssert < NotificationAssert , Notif isNotNull ( ) ; int actualFlags = actual . flags ; SINGLE + assertThat ( actualFlags & flags ) SINGLE + . overridingErrorMessage ( STRING0 , flagsToString ( flags ) , + flagsToString ( actualFlags & flags ) ) SINGLE +...
Add assertion for a subset of notification flags
<nb> public class BaseEntityIdentifier implements DBCEntityIdentifier { } } } + COMMENT if ( this . attributes . size ( ) != refs . size ( ) ) { log . warn ( STRING0 + bindings . length + STRING1 ) ; } + COMMENT } public DBSEntityReferrer getReferrer ( ) <nb> public class ResultSetViewer extends...
Remember attribute on refresh scroll
<nb> class ControlFlowAnalyzer extends JavaElementVisitor { return true ; } } - else if ( STRING0 . equals ( className ) ) { + else if ( STRING0 . equals ( className ) || STRING1 . equals ( className ) ) { if ( STRING2 . equals ( methodName ) ) { pushParameters ( params , false ) ; addInstruction ( myIn...
Bot org junit Assert and junit framework Assert do have special meaning methods wrt control flow analysis
<nb> final class OcrRecognizeAsyncTask extends AsyncTask < String , String , Boolean > { SINGLE if ( textResult == null || textResult . equals ( STRING0 ) ) { ocrResultFailure = new OcrResultFailure ( end - start ) ; - SINGLE + return false ; } SINGLE
remove testing workaround
<nb> import NAMESPACE ; @ mixin ( value = BiomeGenBase . class , priority = NUMBER0 ) @ implements ( value = @ interface ( iface = IBiomeGenBase . class , prefix = STRING0 ) ) - public class MixinBiomeGenBaseForge extends MixinBiomeGenBase { + public abstract class MixinBiomeGenBaseForge implements IBiomeGenB...
Fix circular hierarchy
<nb> public class Launcher { } catch ( Exception e ) { environment . catchUncaught ( e ) ; } finally { - environment . doFinal ( ) ; + if ( StringMemory . valueOf ( config . getProperty ( STRING0 , STRING1 ) ) . toBoolean ( ) ) { + environment . doFinal ( ) ; + } } } catch ( IOException e ) {
Add env doFinal option for Launcher
<nb> public class ScalpelFrameLayout extends FrameLayout { canvas . scale ( zoom , zoom , cx , cy ) ; if ( ! layeredViewQueue . isEmpty ( ) ) { - throw new AssertionError ( STRING0 ) ; + throw new AssertionError ( STRING1 ) ; } SINGLE
Fix exception message now that we only have one queue
<nb> public class RippleDrawable extends LayerDrawable { SINGLE if ( mMaskShader != null ) { - mMaskMatrix . setTranslate ( - x , - y ) ; + final Rect bounds = getBounds ( ) ; + mMaskMatrix . setTranslate ( bounds . left - x , bounds . top - y ) ; mMaskShader . setLocalMatrix ( mMaskMatrix ) ; }
Translate ripple mask to account for drawable bounds
<nb> public abstract class AbstractNode implements Node { private Set < StateChange > desiredStateChanges = Sets . newLinkedHashSet ( ) ; private Map < ResourceUrn , BaseFBOsManager > fboUsages = Maps . newHashMap ( ) ; private NodeTask task ; - private RenderTaskListGenerator taskListGenerator ; + private Re...
Add a TODO in AbstractNode for removing RenderTaskListGenerator completely from Nodes
<nb> public class Translog extends AbstractIndexShardComponent implements IndexShardC try { final int opSize = in . readInt ( ) ; if ( opSize < NUMBER0 ) { SINGLE - throw new AssertionError ( STRING0 + opSize ) ; + throw new TranslogCorruptedException ( STRING0 + opSize ) ; } in . resetDigest ( ) ; SINGLE...
Throw translog corrupted exception on malformed op
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class EditorTextField extends NonOpaquePanel implements DocumentListener , if ( myInheritSwingFont ) { editor . getColorsScheme ( ) . setEditorFontName ( getFont ( ) ...
Make EditorTextField font size big in Presentation mode when font not inherited from swing
<nb> public class DownloadDialog extends DialogFragment { request . setDestinationUri ( Uri . fromFile ( new File ( defaultPreferences . getString ( STRING0 , STRING1 ) + STRING2 + title + suffix ) ) ) ; + request . setNotificationVisibility ( DownloadManager . Request . VISIBILITY_VISIBLE_NOTIFY_COMPLETED ) ; ...
Added visible notification after succesful downloads
<nb> public class BlockLock implements ReadWriteLock { WRITE , SINGLE } - static final AtomicLong mBlockLockId = new AtomicLong ( NUMBER0 ) ; - private final ReentrantReadWriteLock mLock ; COMMENT private final long mBlockId ; - COMMENT - private final long mLockId ; + public BlockLock ( long ...
Remove unused lockId field from BlockLock
<nb> public class ZooClient implements Watcher throw new IllegalArgumentException ( STRING0 + tx + STRING1 + committedTx ) ; } + this . committedTx = tx ; int masterId = getMaster ( ) ; String root = getRoot ( ) ; String path = root + STRING2 + machineId + STRING3 + sequenceNr ;
Updates committed tx id
<nb> public final class PluginCommand extends Command { public boolean execute ( CommandSender sender , String commandLabel , String [ ] args ) { boolean success = false ; + if ( ! owningPlugin . isEnabled ( ) ) { + return false ; + } + try { success = executor . onCommand ( sender , this , commandLab...
Don t throw commands if the plugin is disabled
<nb> public class Decal { COMMENT public void lookAt ( Vector3 position , Vector3 up ) { dir . set ( position ) . sub ( this . position ) . nor ( ) ; - setRotation ( dir , Vector3 . Y ) ; + setRotation ( dir , up ) ; } SINGLE
fixed Decal lookAt didn t use up vector
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class AutomaticActivity extends Activity { protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; ...
improve sample of the Automatic font definition
<nb> public class Where < ModelClass extends Model > implements Query { COMMENT public Cursor query ( ) { SINGLE - return mManager . getWritableDatabase ( ) . rawQuery ( getQuery ( ) , null ) ; + Cursor cursor = null ; + String query = getQuery ( ) ; + if ( mWhereBase . getQueryBuilderBase ( ) instanceof ...
fixed issue where delete does not work due to wrong method
<nb> public class PlanUnwrappingReduceGroupOperator < IN , OUT , K > extends GroupReduceOp private static final long serialVersionUID = NUMBER0 ; - private TupleUnwrappingIterator < IN , K > iter ; + private TupleUnwrappingIterator < IN , K > iter = new TupleUnwrappingIterator < IN , K > ( ) ; - private R...
Fixes a NullPointerException in PlanUnwrappingReduceGroupOperator
<nb> public class PsiLiteralExpressionImpl @ override @ notnull public PsiReference [ ] getReferences ( ) { - if ( ! ( getValue ( ) instanceof String ) ) return PsiReference . EMPTY_ARRAY ; + if ( textMatches ( PsiKeyword . NULL ) ) return PsiReference . EMPTY_ARRAY ; return PsiReferenceService . getService...
ok but null literals shouldn t have references for sure
<nb> public class TextField extends Widget { COMMENT public void setPasswordCharacter ( char passwordCharacter ) { this . passwordCharacter = passwordCharacter ; - updateDisplayText ( ) ; + if ( passwordMode ) updateDisplayText ( ) ; } COMMENT
Only update displayed text for password characters if password mode is
<nb> public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr } protected boolean optimizeExecution ( ) { - if ( ( compiledFilter == null || ( compiledFilter != null && compiledFilter . getRootCondition ( ) == null ) ) && projections != null - && projections . size ( ) == NUMBER0 ) { ...
fixed bug on select count where group by
<nb> public class JaxrsSubsystemTestCase extends AbstractSubsystemBaseTest { return STRING0 ; } + @ override + protected String getSubsystemXsdPath ( ) throws Exception { + return STRING1 ; + } + + @ override + protected String [ ] getSubsystemTemplatePaths ( ) throws IOException { + return new St...
add XML validation for jaxrs subsystem
<nb> public final class BuiltinMarshalingRoutines { public static TimeMeasure unmarshal ( JsonParser parser , @ nullable TimeMeasure instantNull , - Class < TimeInstant > expectedClass ) throws IOException { + Class < TimeMeasure > expectedClass ) throws IOException { return TimeMeasure . fromString ( parse...
fixed signature of TimeMeasure marshaling routine
<nb> public class ManagedModelCreationRuleDefinitionHandler extends AbstractModelCrea BiAction < MutableModelNode , Inputs > initializer ; ModelProjection projection ; - if ( managedType . getConcreteClass ( ) . equals ( ManagedSet . class ) ) { + if ( managedType . getRawClass ( ) . equals ( ManagedSet . cla...
Use correct type class conversion method
<nb> public class ChangeTypeSignatureAction extends BaseRefactoringAction { if ( referenceParameterList != null ) { return referenceParameterList . getTypeArguments ( ) . length > NUMBER0 ; } - return true ; + return PsiTreeUtil . getParentOfType ( psiElement , PsiTypeElement . class ) != null ; } publi...
disable refactoring on inappropriate contexts
<nb> public class FileHelper { return new FileInputStream ( getRealPath ( uriString , cordova ) ) ; } } else { - return null ; + return new FileInputStream ( getRealPath ( uriString , cordova ) ) ; } } <nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; im...
Revert DataResource bugfix WebviewClient logs error for http urls
<nb> public abstract class AbstractAndroidMojo extends AbstractMojo COMMENT @ parameter ( defaultValue = STRING0 , readonly = true ) protected File targetDirectory ; + + COMMENT + COMMENT + COMMENT + @ parameter ( defaultValue = STRING1 , readonly = true ) + protected String finalName ; COMMENT ...
move AbstractAndroidMojo finalName to other similar fields
<nb> import NAMESPACE ; import NAMESPACE ; @ runwith ( Parameterized . class ) + @ ignore public class CleansOperatorTest { private File scriptPath ;
Ignored cleanse tests for the time being
<nb> public class Factorization { } public int numFeatures ( ) { - return userFeatures [ NUMBER0 ] . length ; + return userFeatures . length > NUMBER0 ? userFeatures [ NUMBER0 ] . length : NUMBER0 ; } public int numUsers ( ) {
fixing a small issue in Factorization to allow empty factorizations
<nb> public class DeepWaterV3 extends ModelBuilderSchema < DeepWater , DeepWaterV3 , DeepWa STRING0 , STRING1 , STRING2 , - STRING3 , + STRING4 , STRING5 , STRING6 , STRING7 ,
Fix the previous commit
<nb> public class FlipLoadingLayout extends LoadingLayout { public FlipLoadingLayout ( Context context , Mode mode , TypedArray attrs ) { super ( context , mode , attrs ) ; + + final int rotateAngle = mode == Mode . PULL_DOWN_TO_REFRESH ? NUMBER0 : - NUMBER0 ; - mRotateAnimation = new RotateAnimation ( NU...
Fix Rotation Directions on Flip
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; i...
remove unused import statements
<nb> public final class Bucket { if ( metricMeasures . get ( index ) == measure ) { add = false ; } else { - throw new SonarException ( STRING0 + measure ) ; + throw new SonarException ( STRING1 + resource + STRING2 + measure ) ; } } }
improve exception when saving a measure twice on the same resource
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT <nb> abstract public class SSLImplementation { abstract public String getImplementationName ( ) ; abstract public ServerSocketFactory getServerSocketFactory ( ) ; abstract public SSLSupport getSSLSupport ( Socket sock ) ; -...
Remove JSSE dependency from SSL abstraction
<nb> class XDebuggerTreeRenderer extends ColoredTreeCellRenderer { private int myLinkWidth ; public XDebuggerTreeRenderer ( ) { - Insets ipad = myLink . getIpad ( ) ; - myLink . setIpad ( new JBInsets ( ipad . top , NUMBER0 , ipad . bottom , ipad . right ) ) ; + Insets myLinkIpad = myLink . getIpad ( ) ; ...
reduce gap between text and link in debugger tree
<nb> public class SettingsProcessor { } private boolean isSettingsFileApplicableToCurrentDir ( SettingsInternal settings ) { - return settings . descriptor ( settings . getStartParameter ( ) . getCurrentDir ( ) ) != null ; + return settings . findDescriptor ( settings . getStartParameter ( ) . getCurrentDir (...
Provide descriptor and findDescriptor with the same semantics as with project and task
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class InputsList { @ jsonproperty public abstract int total ( ) ; - public static InputsList create ( Set < InputStateSummary > inputs ) { + @ jsoncreator + public stat...
Adding JsonCreator to DTO
<nb> public class Components { if ( cachedPolygons == null || dateTime != cachedDateTime || ! options . equals ( cachedOptions ) ) { cachedOptions = options ; cachedDateTime = dateTime ; + SINGLE Graph graph = graphService . getGraph ( ) ; - if ( graphService . getCalendarService ( ) != null ) { - options...
eliminate compile time error in api webapp
<nb> public class NewUserFragment extends AbstractFragment implements TextWatcher { intent . putExtra ( STRING0 , mUsername ) ; intent . putExtra ( STRING1 , mPassword ) ; getTargetFragment ( ) . onActivityResult ( getTargetRequestCode ( ) , Activity . RESULT_OK , intent ) ; - getFragmentManager ( ) . popBackSt...
catch the ISE
<nb> public class MeshRenderer extends BaseComponentSystem implements RenderSystem { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT private boolean isRelevant ( EntityRef entity , Vector3f position ) { - return ...
Fixed some typos
<nb> public class PreprocessingService { this . editor = editor ; isEnabled = ! editor . hasJavaTabs ( ) ; + SINGLE + whenDone ( this : : fireListeners ) ; + preprocessingThread = new Thread ( this : : mainLoop , STRING0 ) ; preprocessingThread . start ( ) ; }
Fix listeners not firing on first preprocessing run
<nb> public class JmeDesktopSystem extends JmeSystemDelegate { Class < ? extends JmeContext > ctxClazz = null ; switch ( type ) { case Display : - ctxClazz = ( Class < ? extends JmeContext > ) Class . forName ( STRING0 ) ; + ctxClazz = ( Class < ? extends JmeContext > ) Class . forName ( STRING1 ) ; break ;...
Uses NEWT instead of AWT by default
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractSecurityWebApplicationInitializer implements WebAp COMMENT COMMENT protected Set < SessionTrackingMode > getSessionTrackingModes ( ) { - Se...
AbstractSecurityWebApplicationInitializer getSessionTrackingModes uses EnumSet
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public class AccountJson extends AccountJsonSimple { <nb> public class AccountJson extends AccountJsonSimple { @ override public Boolean isMigrated ( ) { - return isMigrated ; + return Objects . firstNonNull ( i...
set sane default values in AccountJson
<nb> public class PhoneStatusBar extends BaseStatusBar { if ( MULTIUSER_DEBUG ) Slog . d ( TAG , String . format ( STRING0 + STRING1 , selfChange , userSetup , mUserSetup ) ) ; - if ( mSettingsButton != null ) { + if ( mSettingsButton != null && ! mHasSettingsPanel ) { mSettingsButton . setVisibility ( user...
Hide settings button from tablet notification panel
<nb> public class Stage public Stage ( String name , Configuration config ) { - this ( name , config , false ) ; + this ( name , config , true ) ; } public Stage ( String name , Configuration config , boolean orderedTickets )
Temporarily disables unordered staging in importer
<nb> public class TupleAnalyzer SINGLE SINGLE Expression canonicalized = CanonicalizeExpressions . canonicalizeExpression ( expression ) ; + analyzer . analyze ( canonicalized , output , context ) ; Object optimizedExpression = expressionOptimizer ( canonicalized , metadata , session , analyzer . getExpress...
Analyze the canonicalized expression
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> import static NAMESPACE ; COMMENT COMMENT @ retention ( CLASS ) - @ target ( { METHOD , PARAMETER , FIELD , LOCAL_VARIABLE...
Allow integers to both have IntDef and IntRange constraints
<nb> public class CallPanel settingsPanel . add ( recordButton ) ; if ( showHideVideoButton != null ) settingsPanel . add ( showHideVideoButton ) ; - if ( mergeButton != null ) + if ( transferCallButton != null ) settingsPanel . add ( transferCallButton ) ; if ( videoButton != null ) settingsPanel . add...
Fix reference to transferCallButton
<nb> public class DBCollectionTest extends TestCase { } - COMMENT public void mongodIsVersion20Plus ( ) { String version = ( String ) _db . command ( STRING0 ) . get ( STRING1 ) ; System . err . println ( STRING2 + version + STRING3 ) ; assert ( Double . parseDouble ( version . substring ( NUMBER0 , NUM...
I need to wake up clearly I was calling that method
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ConfigNavigator extends CommonNavigator { protected Object getInitialInput ( ) { try { return ConfigurationFolderProvider . getRootConfigurationFolder ( ) . getProject (...
fixed possible NPE at startup
<nb> final class ClosureRewriteModule implements NodeTraversal . Callback , HotSwapCompi SINGLE return ; } + Node nameNode = call . getParent ( ) ; String namespace = call . getLastChild ( ) . getString ( ) ; if ( current . requireInsertNode == null ) { <nb> final class ClosureRewriteModule implements N...
Add a unit test showing how an alias with the same name as the import works
<nb> public class MountHandler extends AbstractHttpContentResponseHandler { private File targetFile ( HttpRequest request ) { Optional < String > relativePath = extractor . extract ( request ) ; - return new File ( dir , relativePath . or ( STRING0 ) ) ; + if ( ! relativePath . isPresent ( ) ) { + throw new...
threw exception for mount handler if relative path is missing
<nb> public class MessagingController implements Runnable { LocalFolder localFolder = ( LocalFolder ) localStore . getFolder ( folder ) ; localFolder . open ( OpenMode . READ_WRITE ) ; - Message message = localFolder . getMessage ( uid ) ; + LocalMessage message = ( LocalMessage ) localFolder . getMessage ( u...
Fixed error handling code when trying to view a message that does not exists
<nb> public class GithubUserDetailed extends GithubUser { private long myPrivateRepos ; @ notnull - public static UserPlan create ( @ nullable GithubUserRaw . GithubUserPlanRaw raw ) throws JsonException { + public static UserPlan create ( @ nullable GithubUserRaw . UserPlanRaw raw ) throws JsonException { ...
rename inner class
<nb> public class PhoneWindowManager implements WindowManagerPolicy { boolean mScreenOnEarly = false ; boolean mScreenOnFully = false ; boolean mOrientationSensorEnabled = false ; - int mLastSensorRotation = - NUMBER0 ; int mCurrentAppOrientation = ActivityInfo . SCREEN_ORIENTATION_UNSPECIFIED ; boolean mHa...
Revert Do not use last app rotation as default
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SSTableDeletingTask implements Runnable SINGLE SINGLE SINGLE - private static final Set <...
Switch SSTableDeletingTask failingTasks to a ConcurrentLinkedQueue
<nb> public class Alarm implements Disposable { public boolean cancelRequest ( Runnable request ) { synchronized ( LOCK ) { - for ( Request r : myRequests ) { + for ( int i = myRequests . size ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) { + Request r = myRequests . get ( i ) ; if ( r . getTask ( ) == request ) ...
remove requests on clear
<nb> public class RotationLockTile extends QSTile < QSTile . BooleanState > { : mController . isRotationLocked ( ) ; final boolean userInitiated = arg != null ? ( ( UserBoolean ) arg ) . userInitiated : false ; state . visible = mController . isRotationLockAffordanceVisible ( ) ; + if ( state . value == rotatio...
Fix rotation tile animation
<nb> public class Transaction extends ChildMessage { break ; } } - if ( ! seqNumSet || inputs . isEmpty ( ) ) { + if ( lockTime != NUMBER0 && ( ! seqNumSet || inputs . isEmpty ( ) ) ) { SINGLE SINGLE log . warn ( STRING0 ) ;
Fix incorrect condition for log message in setLockTime
<nb> public class RuntimePageImpl implements RuntimePage { PortletResponse portletResponse = ( PortletResponse ) request . getAttribute ( JavaConstants . JAVAX_PORTLET_RESPONSE ) ; - if ( ! ( portletResponse instanceof RenderResponse ) ) { + if ( ( portletResponse != null ) && ! ( portletResponse instanceof R...
modifying terms of use page causes processxml to throw error portletResponse is null
<nb> public final class ServerHelper { DefaultServer server = ( DefaultServer ) cluster . selectServer ( new ServerAddressSelector ( address ) ) ; DefaultConnectionPool connectionProvider = ( DefaultConnectionPool ) server . getConnectionPool ( ) ; ConcurrentPool < UsageTrackingInternalConnection > pool = connect...
Add timeout to ServerHelper waitForLastRelease so that a broken test will fail quickly
<nb> public class ResourceCache { public CacheEntry lookup ( String name ) { CacheEntry cacheEntry = null ; + CacheEntry [ ] currentCache = cache ; accessCount ++ ; - int pos = find ( cache , name ) ; - if ( ( pos != - NUMBER0 ) && ( name . equals ( cache [ pos ] . name ) ) ) { - cacheEntry = cache [ po...
Use a single reference to the cache during lookup the cache array could be concurrently replaced
<nb> public class Octicons implements ITypeface { return typeface ; } - public static enum Icon implements IIcon { + public enum Icon implements IIcon { SINGLE oct_alert ( STRING0 ) , oct_arrow_down ( STRING1 ) ,
remove obsolete static on the Icon enum of the Octicons
<nb> public class GraphInternals { } else if ( o instanceof String ) { annotation . message = ( String ) o ; } else if ( o instanceof IdentityBean ) { - @ suppresswarnings ( STRING0 ) - IdentityBean < AgencyAndId > bean = ( IdentityBean < AgencyAndId > ) o ; - AgencyAndId id = bean . getId ( ) ; + Identit...
handle non AgencyAndId IdentityBeans
<nb> public class InputMethodManagerService extends IInputMethodManager . Stub if ( lastImi == null ) return null ; try { final int lastSubtypeHash = Integer . valueOf ( lastIme . second ) ; - return lastImi . getSubtypeAt ( getSubtypeIdFromHashCode ( - lastImi , lastSubtypeHash ) ) ; + final int lastSubtyp...
Fix NPE in getLastInputMethodSubtype
<nb> public class AdminPropertyRepresentation implements Representation value . get ( baseUri ) . put ( name , url ) ; } - @ override public Map < String , Map < String , String > > serialize ( ) { return value ;
removed an unnecessary Override annotation to let this compile
<nb> class FileSystemDeploymentService implements DeploymentScanner { COMMENT COMMENT - COMMENT - COMMENT COMMENT void scan ( ) {
removed extraneous param in javadoc
<nb> import NAMESPACE ; public class LocalizedMessageTest extends TestCase { + private final String CHECKSTYLE_CHECKS_BUNDLE = + STRING0 ; + protected void setUp ( ) throws Exception { LocalizedMessage . setLocale ( Locale . ENGLISH ) ; <nb> public class LocalizedMessageTest assertNotNull ( lm ) ;...
fixed bundle of ws notFollowed
<nb> public class JetRunConfiguration extends ModuleBasedConfiguration < RunConfigurati String jreHome = myConfiguration . ALTERNATIVE_JRE_PATH_ENABLED ? myConfiguration . ALTERNATIVE_JRE_PATH : null ; JavaParametersUtil . configureModule ( module , params , classPathType , jreHome ) ; - JavaParametersUtil . co...
correctly apply extensions to run command line
<nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT ...
Fix foo bar baz in Query documentation
<nb> public abstract class Model extends Lockable < Model > { double probsum = NUMBER0 ; for ( int c = NUMBER1 ; c < scored . length ; c ++ ) { final double original_fraction = _priorClassDist [ c - NUMBER1 ] ; - assert ( original_fraction > NUMBER0 ) : STRING0 + original_fraction ; + assert ( original_fracti...
Improve error message
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class BoundVariables { return Objects . hash ( typeVariables , longVariables ) ; } + + @ override + public Strin...
Add BoundVariables toString
<nb> public class SQLParserTest extends TestBase implements TestBase . GenerateAndCheck @ override public void checkResult ( String result ) throws IOException { - System . out . println ( STRING0 + caseName ) ; assertEqualsWithoutHashes ( caseName , expected , result ) ; }
removed debug output in sql parser tests
<nb> class EmulatorController { SINGLE new StreamPump ( p . getInputStream ( ) ) . addTarget ( System . out ) . start ( ) ; new StreamPump ( p . getErrorStream ( ) ) . addTarget ( System . err ) . start ( ) ; + new Thread ( new Runnable ( ) { + public void run ( ) { + try { + System . err . println ( STRI...
Added debugging for bf emulator trouble
<nb> public final class SearchViewQueryTextEvent extends ViewEvent < SearchView > { } @ override public String toString ( ) { - return STRING0 + return STRING1 + view ( ) + STRING2 + queryText <nb> public final class SearchViewQueryTextEvent extends ViewEvent < SearchView > { } @ override public...
Fix wrong Event name in toString
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public interface HandlerMapping {
Fix default HandlerMappings class names in javadoc
<nb> import NAMESPACE ; COMMENT @ runwith ( Arquillian . class ) @ serversetup ( { MDB20TopicTestCase . JmsQueueSetup . class } ) - @ ignore public class MDB20TopicTestCase extends AbstractMDB2xTestCase { private Topic topic ; <nb> public class MDB20TopicTestCase extends AbstractMDB2xTestCase { @ de...
update test suite fixture
<nb> public class NamespaceGenTest extends LightCodeInsightFixtureTestCase { Byte . valueOf ( ( byte ) NUMBER0 ) , Byte . valueOf ( ( byte ) NUMBER0 ) , NUMBER1 ) ; } + public void testByteLess ( ) throws Exception { + binOpTest ( STRING0 , + Byte . valueOf ( ( byte ) NUMBER2 ) , Byte . valueOf ( ( byte ) N...
failing test for on Byte
<nb> package NAMESPACE ; class ExceptionRepresentation extends MappingRepresentation { private final Throwable exception ; - private String message ; - COMMENT - COMMENT - COMMENT - COMMENT ExceptionRepresentation ( Throwable exception ) { super ( RepresentationType . EXCEPTION ) ; this . exce...
Removed the now superfluous separate message from the representation
<nb> public final class RingBuffer < E > implements Cursored , DataProvider < E > COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public SequenceBarrier newBarrier ( Sequence . . . sequencesToTrack ) <nb> public final class RingBuffer < E > implements Cursored , DataProvider < E > } } ...
remove more idea warnings
<nb> public class TestUtil { if ( o instanceof Vec . VectorGroup ) leaked_keys -- ; else { - System . err . println ( STRING0 + k + STRING1 + o ) ; + try { + System . err . println ( STRING0 + k + STRING1 + o ) ; + } catch ( NullPointerException t ) { + System . err . println ( STRING0 + k + STRING1 + o...
Fix TestUtil to have try catch for missing data in display of leaked objects
<nb> public class PydevConsoleRunner extends AbstractConsoleRunnerWithHistory < PythonC myWorkingDir = workingDir ; mySdk = sdk ; myEnvironmentVariables = envs ; + myEnvironmentVariables . putAll ( consoleSettings . getEnvs ( ) ) ; } @ override
Pass environment from settings to console process
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ component ( STRING0 ) public class SpringSecurityDelegatingPasswordEncoder implements PasswordEncoder { @ notnull <nb> public class SpringSecurityDelegatingPassw...
Remove Component for optional encoder
<nb> import NAMESPACE import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TextEditingTargetNotebook if ( unit . mode == MODE_BATCH ) updateProgress ( ) ; - + SINGLE if ( outputs_ . contains...
unfold chunks to reveal execution status in notebook
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
fixed missing import for subpixel text
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DaemonClient implements GradleLauncherActionExecuter < BuildActionPar SINGLE co...
Added some trace to hunt down CI issues
<nb> import NAMESPACE ; COMMENT COMMENT public class AndroidInput extends GLSurfaceView implements TouchInput , - GestureDetector . OnGestureListener , ScaleGestureDetector . OnScaleGestureListener { + GestureDetector . OnGestureListener , GestureDetector . OnDoubleTapListener , ScaleGestureDetector . OnScale...
AndroidInput now correctly dispatches DOUBLETAP event