diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class ConnectivityService extends IConnectivityManager . Stub Collection < InetAddress > dnses = newLp . getDnsServers ( ) ; if ( DBG ) log ( STRING0 + netId + STRING1 + dnses ) ; try { - mNetd . setDnsServersForNetwork ( + mNetd . setDnsConfigurationForNetwork ( netId , NetworkUtils . makeStrin...
Use Netd s binder interface to set resolver configuration
<nb> public class InitStaticCode { public static void initStaticCode ( Context ctx ) { SINGLE SINGLE - ClassLoader appClassLoader = ctx . getClass ( ) . getClassLoader ( ) ; + ClassLoader appClassLoader = ctx . getClassLoader ( ) ; try { Class . forName ( org . jivesoftware . smackx . ServiceDiscoveryMa...
Don t use getClass in InitStaticCode
<nb> public class Routers { if ( ! osmFiles . isEmpty ( ) ) { graphBuilder . addGraphBuilder ( new TransitToTaggedStopsGraphBuilderImpl ( ) ) ; graphBuilder . addGraphBuilder ( new TransitToStreetNetworkGraphBuilderImpl ( ) ) ; - SINGLE - graphBuilder . addGraphBuilder ( new StreetfulStopLinker ( ) ) ; } ...
don t assume long distance mode
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RawTableMaster implements Master { @ override public TProcessor getProcessor ( ) { - return null ; + return new RawTa...
Implement RawTableMaster getProcessor
<nb> public class Photo { return partialUrl ; } + @ override + public String toString ( ) { + return getPartialUrl ( ) ; + } }
add a toString method for flickr photo objects
<nb> public class NoViableAltException extends RecognitionException { Token startToken , Token offendingToken , ATNConfigSet deadEndConfigs , - ParserRuleContext ctx ) + ParserRuleContext < ? > ctx ) { super ( recognizer , input , ctx ) ; this . deadEndConfigs = deadEndConfigs ;
Specify generic type parameter
<nb> public class Fragment implements ComponentCallbacks2 , OnCreateContextMenuListene if ( clazz == null ) { SINGLE clazz = context . getClassLoader ( ) . loadClass ( fname ) ; + if ( ! Fragment . class . isAssignableFrom ( clazz ) ) { + throw new InstantiationException ( STRING0 + fname + + STRING1 , new ...
Don t instantiate non Fragments in Fragment instantiate
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BasicsTest extends IntegrationTestCase { assertEquals ( STRING0 , l . get ( NUMBER0 ) . getName ( ) ) ; assertNull ( l ...
update on file types changes
<nb> public final class Calendar { public static final String _SYNC_VERSION = STRING0 ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT - public static final String _SYNC_LOCAL_ID = STRING1 ; + public static final String _SYNC_DATA = STRING1 ; COMMENT COMMENT <n...
Rename _SYNC_LOCAL_ID to _SYNC_DATA
<nb> public class InputManagerService extends IInputManager . Stub synchronized ( mDataStore ) { for ( int i = NUMBER0 ; i < numFullKeyboards ; i ++ ) { final InputDevice inputDevice = mTempFullKeyboards . get ( i ) ; - if ( mDataStore . getCurrentKeyboardLayout ( inputDevice . getDescriptor ( ) ) == null ) { ...
Use new device identifier to check if a layout has been set
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BukkitWorld extends LocalWorld { double radiusSq = Math . pow ( radius , NUMBER0 ) ; for ( LivingEntity ent : world . get...
Removed wolves from butcher
<nb> public final class ShutdownThread extends Thread { public static void shutdown ( final Context context , boolean confirm ) { SINGLE SINGLE - synchronized ( sIsStartedGuard ) { + synchronized ( sIsStartedGuard ) { if ( sIsStarted ) { Log . d ( TAG , STRING0 ) ; return ; <nb> public final class Shu...
Avoid starting multiple threads in ShutdownThread
<nb> public class JavaCommon { } } + COMMENT + COMMENT + COMMENT + COMMENT + public static void createInstrumentedJarAction ( RuleContext ruleContext , JavaSemantics semantics , + List < Artifact > metadataArtifacts , Artifact instrumentedJar , String mainClass ) { + SINGLE + new DeployArchiveBuil...
Add a function to JavaCommon to create instrumented jars
<nb> public class Cube extends Object3D { - halfSize , - halfSize , - halfSize , halfSize , - halfSize , - halfSize , SINGLE } ; - float t = NUMBER0 ; - float [ ] textureCoords = null ; float [ ] skyboxTextureCoords = null ;
Removed an unused variable
<nb> public abstract class ChangeSignatureDialogBase < P extends ParameterInfo , M exten createVisibilityPanel ( ) ; + final JLabel nameLabel = new JLabel ( RefactoringBundle . message ( STRING0 ) ) ; + myNameField = new EditorTextField ( myMethod . getName ( ) ) ; + nameLabel . setLabelFor ( myNameField ) ...
never hide name control
<nb> public class StorageTierViewTest { @ test public void getDirViewTest ( ) throws Exception { SINGLE - for ( int dirIndex = NUMBER0 ; dirIndex < EvictorTestUtils . TIER_PATH [ TEST_TIER_LEVEL ] . length ; dirIndex ++ ) { + for ( int dirIndex = NUMBER0 ; dirIndex < EvictorTestUtils . TIER_PATH [ TEST_TIER_L...
Fix too long line
<nb> public class LdapVCardProvider implements VCardProvider , PropertyEventListener { private Map < String , String > getLdapAttributes ( String username ) { SINGLE username = JID . unescapeNode ( username ) ; - HashMap < String , String > map = new HashMap < String , String > ( ) ; + Map < String , String >...
Fixed NPE when trying to load a vCard of a non existent user
<nb> public class WindowManagerService extends IWindowManager . Stub != PackageManager . PERMISSION_GRANTED ) { throw new SecurityException ( STRING0 ) ; } - mKeyguardDisabled . acquire ( token , tag ) ; + synchronized ( mKeyguardDisabled ) { + mKeyguardDisabled . acquire ( token , tag ) ; + } } pub...
Fix race condition in WindowManagerService disableKeyguard
<nb> public class QueryServlet extends HttpServlet ImmutableMap . < String , Object > builder ( ) . put ( STRING0 , e . toString ( ) ) . put ( STRING1 , queryString ) + . put ( STRING2 , req . getRemoteAddr ( ) ) . build ( ) ) ) ;
Add host remote address to alerts
<nb> public class QueryBuilder < T > { String tablename = dao . getTablename ( ) ; String baseSql = SqlUtils . createSqlDelete ( tablename , null ) ; StringBuilder builder = new StringBuilder ( baseSql ) ; - appendWhereClause ( builder , tablename ) ; + + SINGLE + SINGLE + appendWhereClause ( builder , ...
Don t use tableName here because it causes trouble when table name ends with tablePrefix
<nb> public class ProgressManagerImpl extends ProgressManager { } } } ; - thread . setPriority ( Thread . MIN_PRIORITY + NUMBER0 ) ; + thread . setPriority ( Thread . MAX_PRIORITY - NUMBER0 ) ; thread . start ( ) ; } }
Cancelling thread shall have higher priority
<nb> import NAMESPACE ; EReceiver . class , SINGLE EProvider . class , SINGLE Trace . class , SINGLE - SaveOnActivityDestroy . class SINGLE - EApplication . class , SINGLE + SaveOnActivityDestroy . class , SINGLE + EApplication . class SINGLE } ) @ supportedsourceversion ( SourceVersion . RELEASE_6 ) ...
missed comma on supported annotations list
<nb> public class SpriteBatch implements Disposable { lastTexture . bind ( ) ; mesh . setVertices ( vertices , NUMBER0 , idx ) ; + mesh . getIndicesBuffer ( ) . position ( NUMBER0 ) ; + mesh . getIndicesBuffer ( ) . limit ( spritesInBatch * NUMBER1 ) ; if ( blendingDisabled ) { Gdx . gl . glDisable ( GL...
fixed optimization in spritebatch
<nb> public class Mesh implements Savable , Cloneable { SINGLE SafeArrayList < VertexBuffer > oldVertexData = other . getBufferList ( ) ; for ( VertexBuffer oldVb : oldVertexData ) { - if ( oldVb . getBufferType ( ) == VertexBuffer . Type . Index ) { + if ( oldVb . getBufferType ( ) == VertexBuffer . Type . I...
Fixed an issue where HW skinnings buffer were causing an exception when loading a mesh
<nb> public class DisplayUtils { return ( int ) ( ( px / displayMetrics . density ) + FLOAT0 ) ; } + COMMENT + COMMENT + COMMENT + @ deprecated public static boolean isTablet ( Context context ) { SINGLE if ( context == null )
remove isTablet check
<nb> public final class NewCustomControlWizardAction extends AbstractNewControlWizard } } catch ( InstantiationException ex ) { Exceptions . printStackTrace ( ex ) ; + DialogDisplayer . getDefault ( ) . notifyLater ( new NotifyDescriptor . Message ( STRING0 ) ) ; } catch ( IllegalAccessException ex ) { Exce...
add some user feedback when Custom Control classes cannot be instantiated
<nb> public class ThrowableLogEvent extends LogEvent { private final Throwable throwable ; protected ThrowableLogEvent ( Throwable throwable , String message ) { - super ( Level . SEVERE , message ) ; + super ( Level . SEVERE , combineThrowableAndMessage ( throwable , message ) ) ; this . throwable = throwa...
ThrowableLogEvent now logs throwable s message too
<nb> public class XmlRpcEndpoint extends DefaultEndpoint { } Map < String , Object > params = new HashMap < String , Object > ( ) ; - IntrospectionSupport . getProperties ( configuration , params , null ) ; + SINGLE + IntrospectionSupport . getProperties ( configuration , params , null , false ) ; setProp...
Fixed xmprpc to not set null in timezone based on user forum issue
<nb> public class DruidSetup out . println ( ) ; } } - out . println ( STRING0 + zkConnect + STRING1 ) ; + SINGLE SINGLE SINGLE - zkClient . showFolders ( out ) ; + SINGLE } COMMENT <nb> public class DruidSetup + STRING2 + STRING3 + STRING4 - + STRING5 + + STRING6 + STRING7 + STR...
removed recursive zpath listing from DruidSetup dump command
<nb> public class XStream public static void register ( TestGroups groups ) { SINGLE - groups . media . add ( JavaBuiltIn . MediaTransformer , new ConverterSerializer < MediaContent > ( STRING0 , + SINGLE + COMMENT new com . thoughtworks . xstream . XStream ( new XppDriver ( ) { public HierarchicalStrea...
include only the c variant of xstream
<nb> public abstract class ImageViewTouchBase extends ImageView implements IDisposabl } } + COMMENT + COMMENT + COMMENT + COMMENT + public void resetDisplay ( ) { + mBitmapChanged = true ; + requestLayout ( ) ; + } + protected float getDefaultScale ( DisplayType type ) { if ( type == Display...
added a reset method
<nb> public class Cache { protected WebResource getResource ( String path ) { - SINGLE + if ( noCache ( path ) ) { + return root . getResourceInternal ( path ) ; + } CachedResource cacheEntry = resourceCache . get ( path ) ; <nb> public class Cache { } } + private boolean noCache ( String ...
Fix a TODO
<nb> public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb public ArrayReference newInstance ( final ArrayType arrayType , final int dimension ) throws EvaluateException { - return arrayType . newInstance ( dimension ) ; + try { + return arrayType . newInstance ( dimension ) ; +...
handle possible problems like com sun jdi VMOutOfMemoryException as standard EvaluateException
<nb> public class LexerTest { int expectedTokenType = tokenTypesByName . get ( expectedToken . tokenName ) ; if ( token . getType ( ) != expectedTokenType ) { - Assert . fail ( String . format ( STRING0 , - expectedTokenIndex - NUMBER0 , expectedToken . tokenName , getTokenName ( token . getType ( ) ) ) ) ; ...
Improve the error reporting for the lexer tests
<nb> public abstract class DBCollection { List < DBObject > pipelineOps = new ArrayList < DBObject > ( ) ; pipelineOps . add ( firstOp ) ; - pipelineOps . addAll ( Arrays . asList ( additionalOps ) ) ; + Collections . addAll ( pipelineOps , additionalOps ) ; command . put ( STRING0 , pipelineOps ) ; Com...
fixed test to work with older server versions
<nb> public class Timing { return elapsed ; } + COMMENT + COMMENT + COMMENT + COMMENT + SINGLE + public void end ( String msg ) { + long elapsed = System . currentTimeMillis ( ) - start ; + System . err . println ( msg + STRING0 + nf . format ( ( ( double ) elapsed ) / NUMBER0 ) + STRING1 ) ; + ...
add end method to Timing java update OnlineTuner with timing info
<nb> package NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT public interface CachePartitionLostListener extends EventListener { COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT void partitionLost ( CachePartitionLostEvent event ) ;
Reviewed CachePartitionLostListener JavaDoc
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ dto ( domainType = Cat . class ) + @ dto public class Family { public Family ( Cat mother , Cat mate , Cat offspr ) { <nb> import NAMESPACE ; COMMENT COMMENT @ entity - @ dto ( domainType = Foo . class ) + @ dto public class Foo { java ...
improved type derivation
<nb> public class IssuesModeTest extends PerfTestCase { long duration = System . currentTimeMillis ( ) - start ; System . out . println ( STRING0 + duration + STRING1 ) ; - perfRule . assertDurationAround ( duration , NUMBER0 ) ; + perfRule . assertDurationAround ( duration , NUMBER1 ) ; } }
Fix perf test
<nb> public class SamplingProfilerIntegration { } ThreadGroup group = Thread . currentThread ( ) . getThreadGroup ( ) ; SamplingProfiler . ThreadSet threadSet = SamplingProfiler . newThreadGroupTheadSet ( group ) ; - INSTANCE = new SamplingProfiler ( NUMBER0 , threadSet ) ; - INSTANCE . start ( samplingProfil...
Change SamplingProfiler to use a sampling interval instead of Hz
<nb> public class ReaderCommentListActivity extends ActionBarActivity { txtCommentsClosed . setVisibility ( View . VISIBLE ) ; } + if ( mCommentId > NUMBER0 ) { + txtTitle . setBackgroundResource ( R . drawable . selectable_background_wordpress ) ; + txtTitle . setOnClickListener ( new View . OnClickListene...
Allow the post title to be tapped to load the post detail if a comment id was passed
<nb> public class Mina2Producer extends DefaultProducer implements ServicePoolAware { @ override public void exceptionCaught ( IoSession ioSession , Throwable cause ) { - LOG . error ( STRING0 + address - + STRING1 + connector , cause ) ; this . message = null ; this . messageReceived = false ; this . c...
don t log error when an exception is caught in the ResponseHandler
<nb> package NAMESPACE ; COMMENT + COMMENT + COMMENT COMMENT COMMENT public enum RemoteConnectionType { - DEFAULT_SDK , DEPLOYMENT_SERVER , REMOTE_SDK , CURRENT_VAGRANT , NONE ; + COMMENT + COMMENT + COMMENT + DEFAULT_SDK , + COMMENT + COMMENT + COMMENT + DEPLOYMENT_SERVER , + COMMEN...
Add javadoc for RemoteConnectionType
<nb> class FriendshipJSONImpl implements Friendship { @ override public String toString ( ) { - return STRING0 + + return STRING1 + STRING2 + id + STRING3 + name + STRING4 + STRING5 + screenName + STRING4 +
fixed typo in FriendShipJSONImpl toString
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; COMMENT
Removed a superfluous import
<nb> public abstract class BaseTest { String inputPath = new File ( new File ( tmpdir ) , STRING0 ) . getAbsolutePath ( ) ; try { ProcessBuilder builder = new ProcessBuilder ( nodejsPath , modulePath , inputPath ) ; - builder . environment ( ) . put ( STRING1 , runtimePath + STRING2 + tmpdir ) ; + builder . e...
to support testing on Windows
<nb> public class RealtimePlumberSchool implements PlumberSchool COMMENT private int persistHydrant ( FireHydrant indexToPersist , Schema schema , Interval interval ) { + if ( indexToPersist . hasSwapped ( ) ) { + log . info ( + STRING0 , + schema . getDataSource ( ) , interval , indexToPersist + ) ; ...
Add check whether a Hydrant has already been persisted before persisting
<nb> public class PageInspector { private static final String JS_THEME_COLOR_CHECK = STRING0 + - JS_VARIABLE + STRING1 + + STRING2 + + STRING3 + + JS_VARIABLE + STRING4 + + STRING5 + STRING6 ; SINGLE
Fix JS error when no theme color meta tag exists
<nb> public class TestLexerExec extends BaseTest { assertEquals ( expecting , found ) ; } + @ test public void testLexerInputPositionSensitivePredicates ( ) throws Exception { + SINGLE + SINGLE + SINGLE + String grammar = + STRING0 + + STRING1 + + STRING2 + + STRING3 + + STRING4 + + STRING5 ...
Add unit test for behavior of lexer with input position sensitive predicates
<nb> public class ClassDefItem extends IndexedItem < ClassDefItem > { return superclassTypeReferenceField . getReference ( ) ; } - public TypeIdItem getClassTypeReferenceField ( ) { + public TypeIdItem getClassType ( ) { return classTypeReferenceField . getReference ( ) ; } <nb> public class ClassDefI...
remove duplicate method
<nb> public class GraphCommitCellRender extends ColoredTableCellRenderer { int paddingX = ( myGraphImage != null ? myGraphImage . getWidth ( ) : NUMBER0 ) + PrintParameters . LABEL_PADDING ; Map < String , Color > labelsForReferences = collectLabelsForRefs ( myRefs ) ; for ( Map . Entry < String , Color > entry :...
vcs log provide correct font for measuring label size
<nb> public abstract class AbstractCache < K , V > implements Cache < K , V > { private final AtomicLong totalLoadTime = new AtomicLong ( ) ; private final AtomicLong evictionCount = new AtomicLong ( ) ; + COMMENT + COMMENT + COMMENT @ override public void recordHits ( int count ) { hitCount . addAndG...
add more missing since tags
<nb> public class Installer extends ModuleInstall { SINGLE SINGLE + SINGLE + System . setProperty ( STRING0 , STRING1 ) ; + SINGLE String projectDir = NbPreferences . forModule ( Installer . class ) . get ( STRING2 , null ) ; if ( projectDir == null ) {
fix broken online assetpacks and online help by adding a proper browser agent tag Mozilla for System setProperty http agent
<nb> public class FreebaseUtils { static final public String FREEBASE_HOST = STRING0 ; - static final private String FREEQ_URL = STRING1 ; - SINGLE + static final private String FREEQ_URL = STRING2 ; static final private String AGENT_ID = STRING3 ;
use the new FreeQ refine queue instead of the old gridworks one
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public interface Player extends HumanEntity , CommandSender , OfflinePlayer { COMMENT COMMENT COMMENT - public String getListName ( ) ; + public Str...
Renamed player setListName to something a little more sensical
<nb> final class RequestWrapper extends Request { this . delegate = delegate ; } - public Request getDelegate ( ) { + Request getDelegate ( ) { return delegate ; - } + } @ override public String requestMethod ( ) { <nb> class ResponseWrapper extends Response { this . delegate = delegate ; } ...
Changed visibility of getDelegate to package local no modifier
<nb> public class FindInProjectUtil { } public VirtualFile [ ] getFiles ( ) { - throw new UnsupportedOperationException ( ) ; + return null ; } public String getName ( ) {
fixed issue with implementation of getFiles in UsageTarget
<nb> public class LambdaUtil { } } - final PsiClassType . ClassResolveResult r = PsiUtil . resolveGenericsClassInType ( GenericsUtil . eliminateWildcards ( returnType ) ) ; + final PsiClassType . ClassResolveResult r = PsiUtil . resolveGenericsClassInType ( returnType ) ; final PsiClass rClass = r . getElem...
more specific check of return types should compare wildcards
<nb> public class MySqlValidConnectionChecker extends ValidConnectionCheckerAdapter i public MySqlValidConnectionChecker ( ) { try { - clazz = Utils . loadClass ( STRING0 ) ; - ping = clazz . getMethod ( STRING1 ) ; + clazz = Utils . loadClass ( STRING2 ) ; + ping = clazz . getMethod ( STRING3 , boolean ....
MySqlValidConnectionChecker use pingInternal replace ping
<nb> public class QuickTour { SINGLE MongoClient mongoClient = new MongoClient ( ) ; + COMMENT + SINGLE + MongoCredential credential = MongoCredential . createMongoCRCredential ( userName , database , password ) ; + MongoClient mongoClient = new MongoClient ( new ServerAddress ( ) , Arrays . asList ( cred...
Updated examples to not use the deprecated db authenticate
<nb> public class RemoteImService extends Service implements OtrEngineListener { private SettingsMonitor mSettingsMonitor ; private OtrChatManager mOtrChatManager ; - private boolean autoStartOtr = false ; private ImPluginHelper mPluginHelper ; Vector < ImConnectionAdapter > mConnections ; <nb> public c...
removed unused autoStartOtr variable
<nb> public class MobileDataStateTracker extends NetworkStateTracker { } SINGLE case Phone . APN_TYPE_NOT_AVAILABLE : - mEnabled = false ; + SINGLE + SINGLE + if ( mApnType != Phone . APN_TYPE_DEFAULT ) { + mEnabled = false ; + } break ; default : Log . e ( TAG , STRING0 ) ;
Fix bug in airplane mode
<nb> class MaybeForceVersions implements IvyResolutionListener { } for ( ModuleIdentifier forced : forcedModules ) { if ( ModuleId . newInstance ( forced . getGroup ( ) , forced . getName ( ) ) . equals ( dd . getDependencyId ( ) ) ) { + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE updateFiel...
Added a verbose dev comment to the reflection magic we do with ivy objects in the EntryPointResolver
<nb> public class DiskThresholdDecider extends AllocationDecider { public static final String NAME = STRING0 ; - private DiskThresholdSettings diskThresholdSettings ; + private final DiskThresholdSettings diskThresholdSettings ; @ inject public DiskThresholdDecider ( Settings settings , ClusterSettings ...
Make disk threshold settings final
<nb> public final class FaceTrackerActivity extends Activity { . setFacing ( CameraSource . CAMERA_FACING_BACK ) . setRequestedFps ( FLOAT0 ) . build ( ) ; - startCameraSource ( ) ; } COMMENT <nb> public final class MultiTrackerActivity extends Activity { . setFacing ( CameraSource . CAMERA_FACING_BAC...
removed camera start from onCreate
<nb> public class ListViewUtils { private ListViewUtils ( ) { } + COMMENT + COMMENT + COMMENT public static void clearSelections ( ListView listView ) { SparseBooleanArray array = listView . getCheckedItemPositions ( ) ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import ...
Fixed a bug in ListViewUtilsTest and added commons collections to pom
<nb> public class IndexRelationManager implements Serializable { assert unnamedDbIndex != null ; if ( memory . toroToDb . containsEntry ( unnamedToroIndex , unnamedDbIndex ) ) { - throw new IllegalArgumentException ( - STRING0 - + STRING1 ) ; + assert memory . dbToToro . containsEntry ( unnamedDbIndex , u...
Fixed a bug that stops torodb start when several structures declares the same index on the same subdocument table
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + @ ignore ( STRING0 ) public class DaemonIntegrationTest { private static final int SUCCESS_EXIT_CODE = NU...
Revert Re enable integration tests that were disabled because of the inotify limit issue
<nb> public class WorldEditPlugin extends CommonPlugin { LocalSession session = controller . getSession ( wePlayer ) ; BlockBag blockBag = session . getBlockBag ( wePlayer ) ; - EditSession editSession = - new EditSession ( wePlayer . getWorld ( ) , session . getBlockChangeLimit ( ) , blockBag ) ; + EditSes...
Add missing spout WorldEditPlugin edit session factory call
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; COMMENT <nb> public class BaseBlock { } public boolean inIterable ( Iterable < BaseBlock > iter ) { + if ( iter instanceof Collection ) { + return ( ( Collection < ? > ) iter ) . contains ( this ) ; + } + for ( BaseBloc...
Optimized BaseBlock inIterable a bit
<nb> public class DataSourceProxy implements PoolConfiguration { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public Logger getParentLogger ( ) throws SQLFeatureNotSupportedException { <nb> public class DataSourceProxy implements PoolConfiguration { COMMENT COMMENT COMMENT - @ s...
Fix a couple of IDE warnings triggered by adding the missing Javadoc
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ListenerTestCase extends ContainerResourceMgmtTestBase { } @ test + @ ignore ( STRING0 ) public void testHttpsConnector ( ) throws Excep...
Ignore https connector test
<nb> public class InvocationBuilder { request , status , responseHeaders , - responseBody , + Unpooled . unmodifiableBuffer ( responseBody . copy ( ) ) , registry , timeout , handler
Copy the response buffer for the invocation object
<nb> final class CompactionQueue extends ConcurrentSkipListMap < byte [ ] , Boolean > { } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> final class CompactionQueue extends ConcurrentSkipListMap < byte [ ] , Boolean > { public Deferred < ArrayList < Object > > flush ( ) { final int size ...
Don t flush the entire compaction queue on shutdown
<nb> class HTML5VideoViewProxy extends Handler SINGLE SINGLE if ( mHTML5VideoView != null ) { - mHTML5VideoView . pauseAndDispatch ( mCurrentProxy ) ; + if ( ! backFromFullScreenMode ) { + mHTML5VideoView . pauseAndDispatch ( mCurrentProxy ) ; + } SINGLE mHTML5VideoView . release ( ) ; }
Don t send pause again when coming back from full screen
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RestMainAction extends BaseRestHandler { if ( settings . get ( STRING0 ) != null ) { builder . field ( STRING0 , settings . get ( STRING0 ) ) ; } - builder . startObject ( STR...
Expose Lucene Main Version via Main Action
<nb> public class UnderStorageSystemInterfaceTest { String testDirSrcChild = CommonUtils . concatPath ( testDirSrc , STRING0 ) ; String testDirDst = CommonUtils . concatPath ( mUnderfsAddress , STRING1 ) ; String testDirDstChild = CommonUtils . concatPath ( testDirDst , STRING0 ) ; - String testDirFinalDst = Co...
Fix bug in UnderStorageSystemInterfaceTest
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CheckForUpdatesDialog extends ModalDialog < ArrayList < PackageUpdate > > globalDisplay_ . showMessage...
tweak message box language for all packages up to date
<nb> public final class GenericMultipleBarcodeReader implements MultipleBarcodeReader float maxX = FLOAT0 ; float maxY = FLOAT0 ; for ( ResultPoint point : resultPoints ) { + if ( point == null ) { + continue ; + } float x = point . getX ( ) ; float y = point . getY ( ) ; if ( x < minX ) {
Avoid another NPE on null ResultPoint
<nb> class OptimizeParameters return false ; } else { Var v = s . getVar ( n . getString ( ) ) ; - if ( v != null && v . isLocal ( ) ) { + SINGLE + SINGLE + SINGLE + if ( v != null && + ( v . isLocal ( ) || + v . nameNode . getParent ( ) . getType ( ) == Token . CATCH ) ) { return false ; } } ...
Don t inline a caught exception into a function
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT public class MediaRouteDiscoveryFragment extends Fragment { <nb> import static NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Add documentation about the lifecycle of MediaRouteProviderService
<nb> public final class CommandLineTools { COMMENT COMMENT COMMENT + COMMENT COMMENT public static int checkBitext ( final String src , final String trg , final JLanguageTool srcLt , final JLanguageTool trgLt ,
deprecate method which isn t used anywhere in LT and for which we have an alternative version
<nb> import NAMESPACE ; import NAMESPACE ; public class ExecutionVertexDeploymentTest { - @ test public void testDeployCall ( ) { <nb> public class ExecutionVertexDeploymentTest { SINGLE for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { - if ( vertex . getExecutionState ( ) != ExecutionState . FAIL...
Improved robustness of ExecutionGraphDeploymentTest
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ApplicationImpl extends ComponentManagerImpl implements Application public void a...
integrate perf degradation fix
<nb> public class ComplexNDArray extends ComplexDoubleMatrix { int [ ] ret = new int [ copy . length ] ; for ( int i = NUMBER0 ; i < copy . length ; i ++ ) { SINGLE - if ( copy [ i ] == STRING0 ) + if ( copy [ i ] . equals ( Character . valueOf ( STRING0 ) ) ) ret [ i ] = shape [ i ] ; SINGLE else if ( ...
change query to be object oriented comparision
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; public class ExecutionSerializerTest { <nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; @ supp...
Fix tests using incorrect assertEquals implementation
<nb> import static NAMESPACE ; public abstract class DbBaseTest { public static final String DB_NAME = STRING0 ; + public static final String DB_IP = STRING1 ; protected CoreConnectionPool connectionPool ; protected DbOomManager dboom ;
Added docker IP
<nb> public final class Globals { STRING0 ; + COMMENT + COMMENT + COMMENT + COMMENT + public static final boolean STRICT_SERVLET_COMPLIANCE = + Boolean . valueOf ( System . getProperty ( STRING1 , STRING2 ) ) . booleanValue ( ) ; + + } <nb> final class StandardHostValve SINGLE context . ge...
Add a master flag for compliance issues for ease of use
<nb> public class Digester extends DefaultHandler { COMMENT COMMENT protected Log log = - LogFactory . getLog ( STRING0 ) ; + LogFactory . getLog ( STRING1 ) ; COMMENT COMMENT COMMENT protected Log saxLog = - LogFactory . getLog ( STRING2 ) ; + LogFactory . getLog ( STRING3 ) ; COMMENT ...
Align logger name with class name
<nb> class LongConverter extends AbstractConverter implements InstantConverter , Durat COMMENT COMMENT public DurationType getDurationType ( Object object ) { - return DurationType . getAverageYearMonthType ( ) ; + return DurationType . getMillisType ( ) ; } SINGLE
Uses millis duration type
<nb> final class VCardResultParser extends ResultParser { } private static boolean isLikeVCardDate ( String value ) { + if ( value == null ) { + return true ; + } SINGLE SINGLE if ( isStringOfDigits ( value , NUMBER0 ) ) { <nb> public final class ParsedReaderResultTestCase extends TestCase { Parse...
Fixed unit test fail from vCard change
<nb> public class NetworkAddressManagerServiceImpl else SINGLE { - SINGLE - localHost = InetAddress . getLocalHost ( ) ; - SINGLE - if ( ! ( localHost instanceof Inet4Address ) ) + if ( intendedDestination instanceof Inet4Address ) { SINGLE boolean done = false ;
Removes unnecessary call to getLocalHost and fixes a problem where wrong local address can be dispatched
<nb> class ASTBuilder { type = HiveParser . BigintLiteral ; break ; case DOUBLE : - if ( useTypeQualInLiteral ) { - val = literal . getValue3 ( ) + STRING0 ; - } else { - val = literal . getValue3 ( ) ; - } + val = literal . getValue3 ( ) + STRING0 ; type = HiveParser . Number ; break ; case DEC...
CBO causes some more type problems Laljo John Pullokkaran via Gunther Hagleitner
<nb> class EditorGutterComponentImpl extends EditorGutterComponentEx implements Mouse } } } ) + . setTargetChecker ( new DnDTargetChecker ( ) { + @ override + public boolean update ( DnDEvent e ) { + final Object attachedObject = e . getAttachedObject ( ) ; + if ( attachedObject instanceof GutterIconRen...
check drop target and change caret
<nb> public class GraphiteWriter extends BaseOutputWriter { if ( JmxUtils . isNumeric ( values . getValue ( ) ) ) { StringBuilder sb = new StringBuilder ( ) ; - sb . append ( JmxUtils . getKeyString ( query , result , values , typeNames , rootPrefix ) ) ; + sb . append ( JmxUtils . getKeyString ( query , resu...
Replace parentheses in key names with underscores
<nb> public final class ClosureMetaClass extends MetaClassImpl { invokeOnOwner = owner != closure && ( owner instanceof GroovyObject ) ; } } - if ( method == null ) { + if ( method == null && ( invokeOnOwner || invokeOnDelegate ) ) { try { if ( ownerFirst ) { return invokeOnDelegationObjects ( invokeOnO...
avoid NPE if no delegate is available in the closure
<nb> class CheckAccessControls implements ScopedCallback , HotSwapCompilerPass { return ; } - String propertyName = getprop . getLastChild ( ) . getString ( ) ; JSType ownerType = normalizeClassType ( objectType ) ; switch ( visibility ) { <nb> public class FormalParameterListTree extends ParseTree { ...
Remove some unused code
<nb> public final class IdeKeyEventDispatcher implements Disposable { language . equals ( STRING0 ) || language . equals ( STRING1 ) || language . equals ( STRING2 ) || - language . equals ( STRING3 ) ) { + language . equals ( STRING3 ) || + language . equals ( STRING4 ) ) { SINGLE return false ; }
enable AltGr detection for Hungarian
<nb> public interface AgentBuilder { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT boolean consider ( TypeDescription typeDescription , Class < ? > type , Class < ? > classBeingRedefined , RawMatcher ignoredTypeMatcher...
Added missing javadoc
<nb> public class JSModuleGraph { COMMENT COMMENT COMMENT - List < CompilerInput > manageDependencies ( + public List < CompilerInput > manageDependencies ( List < String > entryPoints , List < CompilerInput > inputs ) throws CircularDependencyException , MissingProvideException {
Make manageDependencies public