diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class UnicastReceiverTest processThreads ( NUMBER0 ) ; assertReceiverNotRegistered ( ) ; - exception . expect ( IllegalArgumentException . class ) ; - bufferManagementStrategy . removeConsumerChannel ( udpDestination ( ) , SESSION_ID , CHANNEL_ID ) ; + assertBuffersNotRegistered ( ) ; } @ ...
tidy up test
<nb> public class PJOGL extends PGL { @ override protected void registerListeners ( ) { if ( WINDOW_TOOLKIT == AWT ) { - pg . parent . removeListeners ( pg . parent ) ; pg . parent . addListeners ( canvasAWT ) ; listener = new PGLListener ( ) ; <nb> public class PJOGL extends PGL { NEWTWindowListener ...
removed a couple of unneeded removeListeners calls in PJOGL
<nb> public class ParserTest extends TestUtil { } SINGLE - @ test public void testBinaryWithNA ( ) { + @ test @ ignore public void testBinaryWithNA ( ) { String [ ] data = new String [ ] { STRING0 , STRING0 , STRING0 , STRING0 , STRING0 , STRING0 , STRING0 , STRING0 , STRING0 , STRING0 , STRING0 , STRING0...
Ignore tests that are currently in NOPASS stage
<nb> public class MessageListFragment extends QKContentFragment implements ActivityLa private long mLastMessageId ; private BackgroundQueryHandler mBackgroundQueryHandler ; + private LoadConversationTask mLoadConversationTask ; public static final String ARG_THREAD_ID = STRING0 ; public static final Strin...
Opening conversation after app is garbage collected works now
<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub { || pm . getReceiverInfo ( aa . info . getComponent ( ) , NUMBER0 , userHandle ) == null ) { removed = true ; policy . mAdminList . remove ( i ) ; + policy . mAdminMap . remove ( aa . info . getComponent ( ) ) ; } } catch ( Re...
Fix inconsistency in reporting device admin active state
<nb> import NAMESPACE ; import static NAMESPACE ; - public class WireMockClassRule implements MethodRule , TestRule , Stubbing , Verifying { + public class WireMockClassRule implements MethodRule , TestRule , Stubbing , Verifying , Delaying { private final Options options ; private final WireMockServer ...
handle delaying in WireMockClassRule
<nb> public class FileSystemMaster extends MasterBase { SINGLE synchronized ( mInodeTree ) { List < Inode > created = mInodeTree . createPath ( path , blockSizeBytes , recursive , false ) ; + SINGLE InodeFile inode = ( InodeFile ) created . get ( created . size ( ) - NUMBER0 ) ; if ( mWhitelist . inList ( p...
Fix createFile journaling
<nb> public class DexFile { @ nonnull final MapItem mapItem = new MapItem ( this ) ; @ nonnull final HeaderItem headerItem = new HeaderItem ( this ) ; - @ nonnull private final Set < ? extends ClassDef > classes ; - private DexFile ( Set < ? extends ClassDef > classes ) { - this . classes = classes ; - ...
Remove the unused classes field from writer DexFile
<nb> public abstract class AbstractIDMigrator implements IDMigrator { } @ override - public long toLongID ( String stringID ) throws TasteException { + public long toLongID ( String stringID ) { return hash ( stringID ) ; }
Fix compile error
<nb> class PowerManagerService extends IPowerManager . Stub Slog . d ( TAG , STRING0 + value ) ; } + SINGLE + if ( ( mPowerState & SCREEN_ON_BIT ) == NUMBER0 ) { + if ( mDebugLightSensor ) { + Slog . d ( TAG , STRING1 ) ; + } + return ; + } + SINGLE if ( mHighestLightSensorValue < value ) { ...
Don t turn the button backlights on if the screen is off
<nb> public class ProjectGenerator { SINGLE ImmutableList . Builder < TargetNode < ? > > preScriptPhases = ImmutableList . builder ( ) ; ImmutableList . Builder < TargetNode < ? > > postScriptPhases = ImmutableList . builder ( ) ; - if ( bundle . isPresent ( ) ) { + if ( bundle . isPresent ( ) && targetNode !...
Fix Xcode project generation creating two shell script phases on bundle targets
<nb> public final class SQLiteConnection COMMENT COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT ; private static native void nativeClose ( Object connectionPtr ) COMMENT COMMENT COMMENT ; private static native void nativeRegisterCustomFunction ( Object connectionPtr ...
Fixed several typos in SQLiteConnection native methods
<nb> public class AACRecorder { private static final int NOTIFICATION_PERIOD = NUMBER0 ; private static final int MIN_BUFFER_SIZE = AudioRecord . getMinBufferSize ( SAMPLE_RATE , AudioFormat . CHANNEL_CONFIGURATION_MONO , AudioFormat . ENCODING_PCM_16BIT ) * NUMBER1 ; - - private byte [ ] buffer = new byte [ ...
Removed unused field
<nb> public class WebInterfaceBrowseServlet extends HttpServlet { COMMENT COMMENT COMMENT - public static class UiBlockInfo implements Comparable < UiBlockInfo > { + public static final class UiBlockInfo { private final long mId ; private final long mBlockLength ; private final boolean mInMemory ; <nb...
removed compareTo from UiBlockInfo since its bad practice to define it without equals and hash
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig final Project project = getProject ( ) ; PsiDocumentMan...
hold hard reference to the current file AST in tests so it won t be gced
<nb> public class SPTEdge implements Edge { public Vertex getToVertex ( ) { return tov ; } + + public String toString ( ) { + return STRING0 + payload . toString ( ) + STRING1 ; + } }
add a toString to make debugging easier
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT public abstract class BaseJsonFilterBuilder implements JsonFilterBuilder { <nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT public abstract class BaseJsonQueryBuilder implements J...
have bool json filter extend the base one
<nb> public abstract class BaseStringCipherExecutor extends AbstractCipherExecutor < St COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> public final class SamlIdPUtils { COMMENT COMMENT COMMENT - COMMENT COMMENT public static MetadataResolver getMetadataResolverForAllSamlServices ( fi...
fixed cs issues
<nb> public abstract class AbstractSimpleReplaceRule extends Rule { String [ ] replacements = parts [ NUMBER0 ] . split ( STRING0 ) ; - map . put ( parts [ NUMBER1 ] , Arrays . asList ( replacements ) ) ; + SINGLE + final String [ ] wrongForms = parts [ NUMBER1 ] . split ( STRING0 ) ; + for ( String wrong...
Allow multiple incorrect forms in simple replace rule
<nb> public class RxLifecycle { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class RxLifecycle { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class RxLifecycle { COMMENT COMMENT COMMEN...
Added warnings to documentation
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed unused invalid import
<nb> public class WebImage implements SmartImage { conn . setReadTimeout ( READ_TIMEOUT ) ; BitmapFactory . Options options = new BitmapFactory . Options ( ) ; options . inSampleSize = NUMBER0 ; - options . inPurgeable = true ; + options . inPurgeable = true ; Rect rect = new Rect ( - NUMBER1 , - NUMBER1 , ...
Fix whitespace issue from pull request
<nb> public class ContactPresenceActivity extends ThemeableActivity { private final static String TAG = STRING0 ; public ContactPresenceActivity ( ) { - mApp = ( ImApp ) getApplication ( ) ; - } @ override public void onCreate ( Bundle icicle ) { super . onCreate ( icicle ) ; + mApp = ( ImApp ) ...
ImApp created in wrong place causing NPE
<nb> public class Vector2 implements Serializable , Vector < Vector2 > { } @ override - public Vector2 interpolate ( Vector2 target , float alpha , Interpolation interpolator ) { - return lerp ( target , interpolator . apply ( FLOAT0 , FLOAT1 , alpha ) ) ; + public Vector2 interpolate ( Vector2 target , flo...
Call simpler Interpolation method
<nb> public class Note extends Syncable { COMMENT COMMENT COMMENT - void preloadContent ( ) { + void preloadContent ( ) { + if ( mNoteJSON == null || mNoteJSON . length ( ) == NUMBER0 ) { + return ; + } + if ( isCommentType ( ) ) { SINGLE mComment = HtmlUtils . fromHtml ( getCommentText ( ) ) ;
Don t load note content unless we have valid JSON data
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public interface DataHandler { COMMENT COMMENT COMMENT - void offerData ( String offerId , Address us , String localUri , Map < String , String > headers ) ; + void offerData ( String of...
offerData should throw an exception if there is a problem reading file
<nb> public class GradleDaemon { LOGGER . lifecycle ( STRING0 ) ; List < String > daemonArgs = new ArrayList < String > ( ) ; daemonArgs . add ( Jvm . current ( ) . getJavaExecutable ( ) . getAbsolutePath ( ) ) ; + daemonArgs . add ( STRING1 ) ; + daemonArgs . add ( STRING2 ) ; daemonArgs . add ( STRING3 ) ...
Run the daemon with some more heap and perm gen space
<nb> public class PeerGroup extends AbstractIdleService { @ override protected void shutDown ( ) throws Exception { SINGLE - synchronized ( this ) { - pingTimer . cancel ( ) ; - } SINGLE SINGLE channels . close ( ) . await ( ) ; <nb> public class PeerGroup extends AbstractIdleService { for ( PeerD...
Move ping timer cancellation to after channel close during PeerGroup shutdown
<nb> public class ShadowApplication extends ShadowContextWrapper { } } - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public void defineSystemService ( String name , String className ) { - SYSTEM_SERVICE_MAP . put ( name , ...
Discard defineSystemService on shadowApplication due to its fragile manipulation of static data
<nb> public class Roster { String jid = StringUtils . parseBareAddress ( connection . getUser ( ) ) ; if ( rosterPacket . getFrom ( ) != null && ! rosterPacket . getFrom ( ) . equals ( jid ) ) { + LOGGER . warning ( STRING0 + jid + + STRING1 + rosterPacket . getFrom ( ) ) ; return ; } SINGLE Collect...
Add log statements to Roster
<nb> public class DefaultSuccessPromise < T > implements SuccessPromise < T > { @ override public void error ( final Throwable throwable ) { if ( ! fulfilled . compareAndSet ( false , true ) ) { - LOGGER . error ( STRING0 , new OverlappingExecutionException ( STRING1 ) ) ; + LOGGER . error ( STRING0 , new Ove...
Include exception in overlapping execution exception if the overlap is a promise failure
<nb> public class GridFSInputFile extends GridFSFile { COMMENT COMMENT - COMMENT + COMMENT COMMENT - public void setChunkSize ( long _chunkSize ) { + public void setChunkSize ( long chunkSize ) { if ( _outputStream != null || _savedChunks ) return ; - this . _chunkSize = _chunkSize ; - this . _b...
changed parameter name and added comment
<nb> public class StaxSerializer extends StdMediaSerializer writeElement ( writer , FIELD_NAME_TITLE , image . getTitle ( ) ) ; writeElement ( writer , FIELD_NAME_WIDTH , String . valueOf ( image . getWidth ( ) ) ) ; writeElement ( writer , FIELD_NAME_HEIGHT , String . valueOf ( image . getHeight ( ) ) ) ; - wr...
Fixed a minor issue with stax serializer
<nb> public class ImageView extends View { } COMMENT - view ' s drawable when it is drawn . If there is not matrix , + view ' s drawable when it is drawn . If there is no matrix , this method will return an identity matrix . Do not change this matrix in place but make a copy . If you want a different ma...
Fix typo in ImageView java
<nb> public abstract class Controller { } view = onCreateView ( LayoutInflater . from ( parent . getContext ( ) ) , parent ) ; + if ( view == parent ) { + throw new IllegalStateException ( STRING0 ) ; + } listeners = new ArrayList < > ( lifecycleListeners ) ; for ( LifecycleListener lifecycleListener ...
Controllers now throw an exception when the user forgets to pass false for LayoutInflater inflate s attachToRoot parameter
<nb> public class EditSessionEvent extends Event { COMMENT COMMENT COMMENT - public EditSessionEvent ( World world , Actor actor , int maxBlocks , Stage stage ) { - checkNotNull ( world ) ; + public EditSessionEvent ( @ nullable World world , Actor actor , int maxBlocks , Stage stage ) { this . world = wo...
Handle null World cases for EditSession when actor is console
<nb> public abstract class MessageAggregator < I , S , C extends ByteBufHolder , O extends protected abstract boolean isAggregated ( I msg ) throws Exception ; COMMENT - COMMENT + COMMENT COMMENT public final int maxContentLength ( ) { return maxContentLength ;
Add unit to maxContentLength message javadoc
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; int candEnd = EditableInputConnection . getComposingSpanEnd ( sp ) ; imm ...
Removed updateCursorControllerPositions hidden method
<nb> import NAMESPACE ; try { addClusterIdToIndexes ( clusterId ) ; } catch ( RuntimeException e ) { - OLogManager . instance ( ) . warn ( this , STRING0 , e , clusterId , getName ( ) ) ; + OLogManager . instance ( ) . warn ( this , STRING1 , e , clusterId , getName ( ) ) ; clusters . remove ( clusterId ) ;...
Fixed issue on warning
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; import NAMESPACE ;
add missing copyright header
<nb> public class RoundedBitmapDrawable extends BitmapDrawable @ override public void draw ( Canvas canvas ) { + updateTransform ( ) ; updateNonzero ( ) ; if ( ! mIsNonzero ) { super . draw ( canvas ) ; return ; } - updateTransform ( ) ; updatePath ( ) ; updatePaint ( ) ; int saveCount = canva...
Attempted fix for circle as square bug
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT
refactored querydsl apt packages
<nb> public class WebInterfaceConfigurationServlet extends HttpServlet { @ override public void doGet ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { - request . setAttribute ( STRING0 , mMasterInfo . getPinList ( ) ) ; request . setAttribute ( STRING1 , m...
Fix the conflict
<nb> public final class JsFileParser extends JsFileLineParser { private static Logger logger = Logger . getLogger ( JsFileParser . class . getName ( ) ) ; COMMENT - private static final Pattern GOOG_PROVIDE_REQUIRE_PATTERN = Pattern . compile ( - STRING0 ) ; + private static final Pattern GOOG_PROVIDE_REQUI...
Fix JsFileParser to be more strict in parsing goog require statements
<nb> public class DeepWater extends ModelBuilder < DeepWaterModel , DeepWaterParameters , D if ( ! ( t instanceof Job . JobCancelledException ) ) t . printStackTrace ( ) ; } finally { + model . model_info ( ) . _imageTrain . delete ( ) ; SINGLE if ( ! _parms . _quiet_mode ) { Log . info ( STRING0 ) ;
Call destructor explicitly
<nb> class Saxon9StyleFrame < N extends StyleElement > extends AbstractSaxon9Frame < Debug final ValueRepresentation [ ] values = frame . getStackFrameValues ( ) ; SINGLE + outer: for ( int i = NUMBER0 , valuesLength = values . length ; i < valuesLength ; i ++ ) { final ValueRepresentation value = values [ ...
duplicate variables eliminated
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT CO...
Fix up documentation
<nb> public class Pipeline extends Queable { return getResponse ( BuilderFactory . LONG ) ; } - public Response < List < String > > sort ( String key ) { + public Response < Long > sort ( String key ) { client . sort ( key ) ; - return getResponse ( BuilderFactory . STRING_LIST ) ; + return getResponse ...
Pipeline sort with dstkey uses right Response type
<nb> public class AlertDialogWrapper { return this ; } - public Builder setItems ( @ nonnull CharSequence [ ] items , DialogInterface . OnClickListener listener ) { + public Builder setItems ( CharSequence [ ] items , DialogInterface . OnClickListener listener ) { builder . items ( items ) ; onClickListen...
Removed NonNull annotation from the multi choice callback method in the Builder AlertDialogWrapper
<nb> public class SyslogRedirectingContainerDecorator implements ContainerDecorator { ContainerConfig imageConfig = imageInfo . config ( ) ; SINGLE - final String syslogRedirectorPath = Optional . of ( job . getEnv ( ) . get ( STRING0 ) ) + final String syslogRedirectorPath = Optional . fromNullable ( job . g...
Fix NPE thrown by Optional
<nb> public class DefaultTaskOutputs implements TaskOutputsInternal { public DefaultTaskOutputs ( FileResolver resolver , TaskInternal task , TaskMutator taskMutator ) { this . taskMutator = taskMutator ; - outputFiles = new DefaultConfigurableFileCollection ( String . format ( STRING0 , task ) , resolver , nul...
Get rid of String format call in DefaultTaskOutputs constructor
<nb> import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; COMMENT <nb> public interface EjbLogger extends BasicLogger { COMMENT COMMENT COMMENT - @ logmessage ( level = WARN ) + @ logmessage ( level = TRACE ) @ message (...
Set log level to trace
<nb> public class AdminServlet extends HttpServlet { pingServlet . init ( config ) ; threadDumpServlet . init ( config ) ; - final ServletContext context = config . getServletContext ( ) ; + SINGLE this . metricsUri = getParam ( config . getInitParameter ( STRING0 ) , this . metricsUri ) ; this . pingUri ...
Fix FindBugs warning dead local store
<nb> limitations under the License . COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CDefaultNodeExitAction < NodeType extends ZyGraphNode < ? > , EdgeType ex try { listener . nodeLeft ( node ) ; } catch ( final Exception ...
Implement TODO in the execute method
<nb> public class ExpectedException implements TestRule { } COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT public ExpectedException reportMissingExceptionWithMessage ( String message ) {
Fixed reportMissingExceptionWithMessage Javadoc
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class XBinder extends XHook { try { SINGLE SINGLE - Method methodObtain = Parcel . class . getDeclaredMethod ( STRING0 , int . class ) ; + Met...
Fixed IPC restrictions for Lollipop
<nb> public abstract class AbstractIvyDependencyManager { if ( ! pluginDependencyNames . contains ( name ) ) { String scope = STRING0 ; + metadataRegisteredPluginNames . add ( name ) ; ModuleRevisionId mrid = ModuleRevisionId . newInstance ( STRING1 , name , version ) ; EnhancedDefaultDependencyDescriptor e...
fixed issue where installing a different version of an installed plugin wasn t updating the metadata
<nb> public class GitHandlerUtil { COMMENT COMMENT @ nonnls private static final String [ ] ERROR_INDICATORS = - { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 } ; + { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 } ; COMMENT COMMENT
added additional error indicator for pull
<nb> public class JsPreferencesStorage implements PreferencesStorage { @ override public void putBytes ( String key , byte [ ] v ) { - storage . setItem ( convertKey ( key ) , toBase64 ( v ) ) ; + key = convertKey ( key ) ; + if ( v == null ) { + storage . removeItem ( key ) ; + } else { + storage . s...
Fixing nullable in js properties storage
<nb> public class DownloadIndexActivity extends OsmandExpandableListActivity { } protected void downloadFilesPreCheckSRTM ( final List < DownloadEntry > list ) { - if ( type == DownloadActivityType . SRTM_FILE ) { + if ( type == DownloadActivityType . SRTM_FILE && + OsmandPlugin . getEnabledPlugin ( SRTMPlu...
remove srtm msg
<nb> import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + @ ignore ( STRING0 ) public class OSGiDocIT {
Ignore test prior to possible deletion
<nb> public abstract class AbstractAwsTest extends ElasticsearchIntegrationTest { protected Settings nodeSettings ( int nodeOrdinal ) { ImmutableSettings . Builder settings = ImmutableSettings . builder ( ) . put ( super . nodeSettings ( nodeOrdinal ) ) + . put ( STRING0 , createTempDir ( ) ) . put ( STRING1 ...
set path home in AbstractAwsTest
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ProtocolProviderFactoryJabberImpl if ( userIDStr == null ) throw new NullPointerException ( STRING0 ) ; - accountProperties . put ( USER_ID , userIDStr ) ; - if ( accountP...
When installing account check for SERVER_ADDRESS and SERVER_PORT if missing extract from userID and set default value
<nb> public class PostAndroid3Utils { } catch ( NoSuchMethodException e ) { SINGLE } - } else { - if ( mGetEastAsianWidthMethod != null ) { - try { - Integer objectResult = ( Integer ) mGetEastAsianWidthMethod . invoke ( - null , new Object [ ] { new Character ( c ) } ) ; - result = objectResult . int...
Actually invoke method after initializing when first called
<nb> public class MediaConductor extends Agent public void close ( ) { stop ( ) ; - wakeup ( ) ; srcDestinationMap . forEach ( ( hash , frameHandler ) - > frameHandler . close ( ) ) ; conductorShmBuffers . close ( ) ; } - public void wakeup ( ) - { - SINGLE - } - private boolean processL...
remove stray wakeup
<nb> public interface Project extends Comparable < Project > { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface Project extends Comparable < Project > { COMMENT COMMENT < T > NamedDomainObjectContainer < T > container ( Class < T > type , Clos...
documented the description option in creation options map
<nb> public class TestNGTestClassProcessor implements TestClassProcessor { } public void processTestClass ( TestClassRunInfo testClass ) { + SINGLE try { testClasses . add ( applicationClassLoader . loadClass ( testClass . getTestClassName ( ) ) ) ; } catch ( Throwable e ) {
Added a TODO
<nb> extends BaseTest < A , AP , B , S , B2S , BS , L , X , DATE , BOOL , D , T , U , I , IPK , T658 , @ test public void testH2Merge ( ) throws Exception { switch ( getDialect ( ) ) { - SINGLE - case H2 : - - SINGLE - case DB2 : - case HSQLDB : - case ORACLE : - case SQLSERVER : - case SYBASE :...
Don t skip tests by default
<nb> public class BaseStepDefinitionConverterTest { @ test public void testCovertFormPropertiesWithListValues ( ) { - TestStepDefinitionConverter converter = new TestStepDefinitionConverter ( ) ; SINGLE <nb> public class BaseStepDefinitionConverterTest { private class TestStepDefinitionConverter exten...
Removed warning in test
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
add javadoc to abstract entry processor about handling null values
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
deactivate running of javadoc example which is just a partial example
<nb> public class XmlNSDescriptorImpl implements XmlNSDescriptor , Validator { if ( checkElementNameEquivalence ( localName , namespace , name , tag ) ) { final CachedValue < XmlElementDescriptor > cachedValue = tag . getManager ( ) . getCachedValuesManager ( ) . createCachedValue ( new CachedValueProvider < XmlEle...
changed return type to be more generic
<nb> public final class Ac3Util { channelCount ++ ; } return MediaFormat . createAudioFormat ( MimeTypes . AUDIO_AC3 , MediaFormat . NO_VALUE , - MediaFormat . NO_VALUE , channelCount , sampleRate , Collections . < byte [ ] > emptyList ( ) ) ; + channelCount , sampleRate , Collections . < byte [ ] > emptyList...
Use the right overload of createAudioFormat in Ac3Util
<nb> public final class ManagedChannelImpl extends ManagedChannel implements WithLogI class NameResolverStartTask implements Runnable { @ override public void run ( ) { + NameResolverListenerImpl listener = new NameResolverListenerImpl ( balancer ) ; SINGLE SINGLE - resolver . start ( new NameResolverList...
propagate name resolution errors
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LinkLabel < T > extends JLabel { } + private final JBRectangle iconR = new JBRectangle ( ) ; + private final JBRectangle textR = new JBR...
reuse Rectangles when layouting label
<nb> public class ManyConnectors cf . setKeyStore ( jetty_home + STRING0 ) ; cf . setKeyStorePassword ( STRING1 ) ; cf . setKeyManagerPassword ( STRING2 ) ; - server . addConnector ( ssl_connector ) ; server . setConnectors ( new Connector [ ] { connector0 , connector1 , ssl_connector } ) ;
Removed unneeded line from MultipleConnectors example
<nb> class Scroller { } COMMENT - COMMENT + COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT <nb> public class Solo { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Clarified javadoc for scrollUp in Solo and Scroller
<nb> public class SmbMmapFsDirectoryService extends FsDirectoryService { @ override protected Directory newFSDirectory ( Path location , LockFactory lockFactory ) throws IOException { logger . debug ( STRING0 ) ; - return new SmbDirectoryWrapper ( new MMapDirectory ( location , buildLockFactory ( ) ) ) ; + re...
Fix compilation for latest ES versions
<nb> public class HystrixMetricsPoller { } private class MetricsPollerThreadFactory implements ThreadFactory { - private static final String MetricsThreadName = STRING0 ; + private static final String MetricsThreadName = STRING1 ; private final ThreadFactory defaultFactory = Executors . defaultThreadFacto...
Changing thread name to match module name
<nb> public class DBPort implements Connection { return STRING0 + host ( ) + STRING1 ; } - @ override - protected void finalize ( ) throws Throwable { - super . finalize ( ) ; - close ( ) ; - } - ActiveState getActiveState ( ) { isTrue ( STRING2 , ! closed ) ; return _activeState ;
Remove DBPort finalize method as there is already code in place to ensure that it is closed
<nb> public class ListRowPresenter extends RowPresenter { super . onRowViewExpanded ( holder , expanded ) ; ViewHolder vh = ( ViewHolder ) holder ; vh . mGridView . setClipToPadding ( ! expanded ) ; + vh . mGridView . invalidate ( ) ; updateFooterViewSwitcher ( vh ) ; }
Fix bug that setClipToPadding does not update the ViewGroup
<nb> public class Main extends SimpleApplication { Geometry geom = new Geometry ( STRING0 , b ) ; geom . updateModelBound ( ) ; - Material mat = new Material ( assetManager , STRING1 ) ; - mat . setColor ( STRING2 , ColorRGBA . Blue ) ; + Material mat = new Material ( assetManager , STRING3 ) ; + mat . se...
remove deprecated material data from BasicGame template Main java
<nb> public class FairBlockingQueue < E > implements BlockingQueue < E > { c = waiters . poll ( ) ; SINGLE c . setItem ( e ) ; - if ( isLinux && c != null ) c . countDown ( ) ; + if ( isLinux ) c . countDown ( ) ; } else { SINGLE items . addFirst ( e ) ;
Remove a non occuring condition
<nb> public class TridentBoltExecutor implements IRichBolt { @ override public boolean equals ( Object o ) { - return singleCount == ( ( CoordType ) o ) . singleCount ; - } - + if ( this == o ) return true ; + if ( ! ( o instanceof CoordType ) ) return false ; + + CoordType coordType = ( CoordType )...
fixed equals hashCode contract in CoordType
<nb> public class FileDisplayActivity extends HookActivity implements } else { cleanSecondFragment ( ) ; + if ( file . isDown ( ) && PreviewTextFragment . canBePreviewed ( file ) ) + startTextPreview ( file ) ; } } else { <nb> public class FileDisplayActivity extends HookActivity implements boolean ...
Fixed a bug that would cause the details view to be shown upon turning off and on the screen
<nb> public abstract class SqlScalarFunction public abstract ScalarFunctionImplementation specialize ( Map < String , Type > types , int arity , TypeManager typeManager , FunctionRegistry functionRegistry ) ; - public static class SimpleSqlScalarFunction + private static class SimpleSqlScalarFunction extend...
Make SimpleSqlScalarFunction private
<nb> public class HighAvailabilityModeSwitcher implements HighAvailabilityMemberListe } catch ( StoreUnableToParticipateInClusterException upe ) { - msgLog . warn ( STRING0 , upe ) ; + msgLog . warn ( STRING1 , upe ) ; try { SINGLE
Improved error message
<nb> public class BackgroundOperationService extends IntentService implements Constan } } ) ; + task . setResultHandler ( this ) ; task . setParams ( Pair . create ( actionType , item ) ) ; mHandler . post ( new Runnable ( ) { @ override
fixed tweet send toast
<nb> public final class AnimatorProxy extends Animation { return mView . getScrollY ( ) ; } public void setScrollY ( int value ) { - mView . scrollTo ( mView . getScrollY ( ) , value ) ; + mView . scrollTo ( mView . getScrollX ( ) , value ) ; } public float getTranslationX ( ) { return mTranslationX ;
AnimatorProxy setScrollY was updating scrollX with Y value
<nb> public abstract class DisplayList { COMMENT COMMENT COMMENT - public static final int STATUS_DRAW = NUMBER0 ; + public static final int STATUS_DRAW = NUMBER1 ; COMMENT COMMENT
Fix constants to be unique
<nb> public class ParentToChildrenAggregator extends SingleBucketAggregator { private final LongObjectPagedHashMap < long [ ] > parentOrdToOtherBuckets ; private boolean multipleBucketsPerParentOrd = false ; + SINGLE private Set < LeafReaderContext > replay = new LinkedHashSet < > ( ) ; public ParentToChi...
Added lost comment
<nb> public class ShareCompat { STRING0 ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public static final int REQUEST_CODE = ( STRING1 < < NUMBER0 ) | ( STRING2 < < NUMBER1 ) | STRING3 ; - - COMMENT COMMENT COMMENT interface ShareCompatImpl { <nb> public class ShareCompat {...
Don t have ShareCompat IntentBuilder start for result by default
<nb> final class TokenFilter extends ForwardingPrimaryKeyRestrictions Token start = deserializeToken ( slice . bounds ( START , options ) . get ( NUMBER0 ) ) ; BoundType startBoundType = toBoundType ( slice . isInclusive ( START ) ) ; - BoundType endBoundType = toBoundType ( slice . isInclusive ( END ) ) ; ...
only fetch the bound end type if the slice has an end bound
<nb> public class CacheManagingDrawTask extends DrawTask { while ( itr . hasNext ( ) && ! mPause ) { item = itr . next ( ) ; count ++ ; - if ( item . isTimeOut ( ) || ! item . isOutside ( ) ) { + if ( init == false && ( item . isTimeOut ( ) || ! item . isOutside ( ) ) ) { continue ; }
Build caches when inititalize
<nb> public final class ProviderMap { boolean collectPackageProvidersLocked ( String packageName , Set < String > filterByClasses , boolean doit , boolean evenPersistent , int userId , ArrayList < ContentProviderRecord > result ) { - boolean didSomething = collectPackageProvidersLocked ( packageName , filterByC...
Fix lost singleton provider after force stopping user or package
<nb> public class EditorGroup { } private void updateLineNumbers ( @ notnull Editor editor ) { + if ( ! EditorData . isFileEditor ( editor ) ) { + return ; + } + final Options options = Options . getInstance ( ) ; final boolean relativeLineNumber = options . isSet ( Options . RELATIVE_NUMBER ) ; fin...
Don t show line numbers in non file editors
<nb> public class JUnitTreeByDescriptionHierarchyTest { @ test public void testEmptySuite ( ) throws Exception { doTest ( Description . createSuiteDescription ( STRING0 ) , STRING1 + + STRING2 + STRING3 ) ; } <nb> public class JUnit4TestListener extends RunListener { if ( methodName != null && ( paren...
accept null method names in list nodes
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ...
Remove unused import
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ActionLink extends LinkLabel implements DataProvider { setListener ( new LinkListener ( ) { @ override public void linkSelected ( LinkLabel aSource , Object aLinkData ) { - final Presentation presentation = ( Presentation )...
remove unnecessary cast
<nb> public final class ActivityThread { return mInitialApplication ; } + public String getProcessName ( ) { + return mBoundApplication . processName ; + } + public ApplicationContext getSystemContext ( ) { synchronized ( this ) { if ( mSystemContext == null ) { <nb> public class Instrumentation {...
running instrumentation in shared processes