diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class ActionInstallPlugin extends AnAction implements DumbAware { } final List < PluginId > depends = node . getDepends ( ) ; if ( depends != null ) { + final Set < PluginId > optionalDeps = new HashSet < PluginId > ( Arrays . asList ( node . getOptionalDependentPluginIds ( ) ) ) ; for ( PluginId ...
do not warn about disabled optional dependencies
<nb> public class HBaseStoreManager extends DistributedStoreManager implements KeyCol public static final String HBASE_CONFIGURATION_NAMESPACE = STRING0 ; - public static final String SKIP_SCHEMA_CHECK = STRING1 ; + public static final String SKIP_SCHEMA_CHECK = STRING2 ; public static final boolean SKIP_SC...
Rename option HBase skip table creation
<nb> package NAMESPACE ; import static NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Murmur3Hash128Test extends TestCase { STRING0 ) ; assertHash ( NUMBER0 , NUMBER1 , NUMBER2 , STRING1 ) ; + + SINGLE + HashCode foxHash = + murmur3_128 ( NUMBER0 )...
Add a single parity test with known output from SMHasher python
<nb> package NAMESPACE ; import NAMESPACE ; public class JedisURIHelper { + + private static final int DEFAULT_DB = NUMBER0 ; + public static String getPassword ( URI uri ) { String userInfo = uri . getUserInfo ( ) ; if ( userInfo != null ) { <nb> public class JedisURIHelper { if ( pathSplit . len...
extracting default db to a constant
<nb> public class SuspiciousNameCombinationInspection extends BaseLocalInspectionTool for ( int i = NUMBER0 ; i < parameters . length ; i ++ ) { if ( i >= args . length ) break ; if ( args [ i ] instanceof PsiReferenceExpression ) { - checkCombination ( args [ i ] , parameters [ i ] . getName ( ) , ( ( PsiRefer...
optimize suspicious name combination inspection
<nb> public class NameUtil { } } - SINGLE if ( exactPrefixLen == NUMBER0 ) { buffer . append ( STRING0 ) ; SINGLE } <nb> public class NameUtil { buffer . append ( STRING1 ) ; if ( ! firstIdentifierLetter ) { - SINGLE + buffer . append ( STRING2 ) ; } buffer . append ( c ) ; <nb> public...
the regex optimization has broken too many things rolling back
<nb> public class MessageRunnable implements Runnable { } private String buildChangelogFrom ( String changelog ) { - return STRING0 + changelog ; + return STRING1 + changelog ; } @ override
Makes a clearer update message
<nb> public class DefaultResolvedModuleVersionResult implements ResolvedModuleVersion ResolvedModuleVersionResult that = ( ResolvedModuleVersionResult ) o ; return id . equals ( that . getId ( ) ) ; - } + } + + SINGLE @ override public int hashCode ( ) {
Added a TODO
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CalendarAlarmListCreator extends Activity { private ArrayList < String > emails ; private HashMap < String , User > emailsT...
Remove unused code log an error
<nb> public abstract class SmackTestCase extends TestCase { } } SINGLE - getConnection ( i ) . login ( STRING0 + i , STRING0 + i , STRING1 , sendInitialPresence ( ) ) ; + getConnection ( i ) . login ( STRING0 + i , STRING0 + i , STRING2 , sendInitialPresence ( ) ) ; } SINGLE Thread . sleep ( NUMBER0 ) ;
Fixed case of resource
<nb> public class StickyListHeadersListView extends ListView implements OnScrollListe @ override public void onRestoreInstanceState ( Parcelable state ) { headerHeight = ( ( Bundle ) state ) . getInt ( HEADER_HEIGHT ) ; + headerHasChanged = true ; super . onRestoreInstanceState ( ( ( Bundle ) state ) . getPar...
fixed header sizing issues
<nb> public class SoftWrapModelImpl implements SoftWrapModelEx , PrioritizedInternalDo if ( ! isSoftWrappingEnabled ( ) ) { return ; } - executeSafely ( myFoldProcessingEndTask ) ; + if ( myEditor . myUseNewRendering ) { + myFoldProcessingEndTask . run ( true ) ; + } + else { + executeSafely ( myFoldP...
don t use legacy code with editor new rendering
<nb> public class Swagger { public void addScheme ( Scheme scheme ) { if ( this . schemes == null ) this . schemes = new ArrayList < Scheme > ( ) ; - this . schemes . add ( scheme ) ; + boolean found = false ; + for ( Scheme existing : this . schemes ) { + if ( existing . equals ( scheme ) ) + found = t...
added dedup check
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; public class ClassDefItem extends Item < ClassDefItem > { private TypeIdItem classType ; <nb> public class ClassDefItem extends I...
Don t modify the staticFieldInitializers list passed in to ClassDefItem intern
<nb> public class DefaultGradleLauncherFactory implements GradleLauncherFactory { listenerManager . addListener ( new BuildCleanupListener ( serviceRegistry ) ) ; if ( startParameter . isProfile ( ) ) { - listenerManager . addListener ( new ProfileListener ( buildClock . getTimeInMs ( ) ) ) ; + listenerManage...
Fixed broken profile start time
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT
Added property check example in javadoc
<nb> public class StaggeredGridLayoutManagerTest extends BaseStaggeredGridLayoutManag @ override public void onBindViewHolder ( TestViewHolder holder , int position ) { Item item = mItems . get ( position ) ; + holder . mBoundItem = item ; ( ( EditText ) ( ( FrameLayout ) holder . itemView ) . getChildAt ( NU...
Fix test to update bound item in onBind
<nb> public class TimerEndpoint extends DefaultEndpoint implements MultipleConsumersS public String getEndpointUri ( ) { return super . getEndpointUri ( ) ; } + + @ managedattribute ( description = STRING0 ) + public String getState ( ) { + return getStatus ( ) . name ( ) ; + } }
Added getState to timer endpoint mbean
<nb> public class TabsTag extends BodyTagSupport { } private String i18n ( String in ) { + if ( in == null ) { + return null ; + } SINGLE if ( in . indexOf ( STRING0 ) == NUMBER0 && in . indexOf ( STRING1 ) == in . length ( ) - NUMBER1 ) { return LocaleUtils . getLocalizedString ( in . substring ( NUM...
Handle null values better
<nb> public class ChgrpCommandTest extends AbstractAlluxioShellTest { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT @ test public void chgrpRecursiveTest ( ) throws IOException , AlluxioException {
SMALLFIX Incorporated PR comment
<nb> public class TestWsWebSocketContainer extends TomcatBaseTest { long timeout = System . currentTimeMillis ( ) - lastSend ; + + String msg = STRING0 + timeout + STRING1 ; + SINGLE - Assert . assertTrue ( timeout >= TIMEOUT_MS ) ; + Assert . assertTrue ( msg , timeout >= TIMEOUT_MS ) ; SINGLE ...
Debug CI failure before deciding how to address it
<nb> public class SSTableSliceIterator implements OnDiskAtomIterator { private final OnDiskAtomIterator reader ; private final DecoratedKey key ; - private final SSTableReader sstable ; public SSTableSliceIterator ( SSTableReader sstable , DecoratedKey key , ColumnSlice [ ] slices , boolean reversed ) { ...
remove unused sstable field
<nb> public class IterationState { } if ( selection != null ) myCachedAttributesList . add ( selection ) ; - if ( caret != null ) myCachedAttributesList . add ( caret ) ; if ( fold != null ) myCachedAttributesList . add ( fold ) ; if ( guard != null ) myCachedAttributesList . add ( guard ) ; if ( syntax !...
fixed caret in xml tag
<nb> public class InputScopeAnonInner button . COMMENT private JButton mButton = new JButton ( ) ; - + COMMENT anon inner in member variable initialization . COMMENT <nb> public class InputScopeAnonInner System . out . println ( STRING0 ) ; } } ; - + COMMENT anon inner in constructor . ...
Removed unused whitespace
<nb> public class IndexDatabase { interrupted = false ; try { writer = new IndexWriter ( indexDirectory , AnalyzerGuru . getAnalyzer ( ) ) ; + writer . setMaxFieldLength ( RuntimeEnvironment . getInstance ( ) . getIndexWordLimit ( ) ) ; String root ; File sourceRoot ;
Indexer don t use the value specified with m
<nb> public class RadioVersion { public static final Version v0_20_0 = new Version ( NUMBER0 , NUMBER1 , NUMBER0 ) ; - public static final Version VERSION = v0_20_0 ; + public static final Version v0_20_2_SNAPSHOT = new Version ( NUMBER0 , NUMBER1 , NUMBER2 , STRING0 ) ; + + public static final Version VE...
set radio version to snapshot
<nb> public class OObjectDatabaseTx extends ODatabasePojoAbstract < Object > implements OObjectEntitySerializer . attach ( iPojo , this ) ; } + public void attachAndSave ( final Object iPojo ) { + attach ( iPojo ) ; + save ( iPojo ) ; + } + @ override public < RET > RET detach ( final Object iPojo )...
Added attachAndSave method in OObjectDatabaseTx
<nb> import NAMESPACE ; public class Xor implements Function { + COMMENT @ override public Object call ( Properties bindings , Object [ ] args ) { if ( args . length == NUMBER0 &&
added comment on implementation
<nb> public class AjpProcessor extends AbstractProcessor { } case END_REQUEST : { SINGLE + break ; } } } <nb> public class Http11Processor extends AbstractProcessor { } case END_REQUEST : { endRequest ( ) ; + break ; } } }
Avoid accidental fall through in a later change
<nb> public class GraphJSONReader { GraphJSONReader . inputGraph ( graph , jsonInputStream , NUMBER0 ) ; } - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed broken comment
<nb> public class ApacheConnector implements Connector { final Header [ ] respHeaders = response . getAllHeaders ( ) ; for ( Header header : respHeaders ) { - List < String > list = responseContext . getHeaders ( ) . get ( header . getName ( ) ) ; + final String headerName = header . getName ( ) ; + final M...
preventing ConcurrentModificationException when using Apache Client Connector
<nb> final class SctpSendBufferPool { final MessageInfo messageInfo = MessageInfo . createOutgoing ( ch . association ( ) , null , streamNo ) ; messageInfo . payloadProtocolID ( protocolId ) ; messageInfo . streamNumber ( streamNo ) ; - ch . send ( buffer , messageInfo ) ; - return writtenBytes ( ) ; + retu...
fixed written bytes count in sctp send buffer pool
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class EIPManager { for ( Iterator < String > it = availableEIPList . iterator ( ) ; it . hasNext ( ) ; ) { String eip = it . next...
Reuse the EIP if the lease has expired
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class ClientPartitionServiceImpl implements ClientPartitionService } public void refreshPartitions ( ) { - client . get...
Suppress rejection exception when client is shutting down
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class MessageToMessageEncoder < I , O > extends ChannelOutboundMessa Channe...
Rename MessageToMessageEncoder freeInboundMessage to freeOutboundMessage
<nb> public class ActiveScanAPI extends ApiImplementor implements ScannerListener { private static final String ACTION_CLEAR_EXCLUDED_FROM_SCAN = STRING0 ; private static final String ACTION_ENABLE_ALL_SCANNERS = STRING1 ; private static final String ACTION_DISABLE_ALL_SCANNERS = STRING2 ; + private static fina...
Moved some action name constants to the same place as the others in the active scan API cosmetic change
<nb> public class TestTraversal extends AbstractNeo4jTestCase { SINGLE Relationship rel = position . lastRelationshipTraversed ( ) ; - return rel != null - && rel . getType ( ) == MyRelTypes . TEST_TRAVERSAL ; + return rel != null && rel . isType ( MyRelTypes . TEST_TRAVERSAL ) ; } } ;
Fixed an error comparing relationship types
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - @ runwith ( Parallelized . class ) public class ZooKeeperUpdatingPersistentDirectoryTest { private static final String PARENT_PATH = STRING0 ;
do not run zk updater tests in parallel
<nb> public class IpnbFileEditor extends UserDataHolderBase implements FileEditor , Te private static FileEditorProvider getProvider ( Project project , VirtualFile vFile ) { FileEditorProvider [ ] providers = FileEditorProviderManagerImpl . getInstance ( ) . getProviders ( project , vFile ) ; for ( FileEditorPro...
Fix editor provider creation
<nb> abstract public class ModelBuilder < M extends Model < M , P , O > , P extends Model . Param _response = null ; _vresponse = null ; _nclass = NUMBER0 ; - return ; } SINGLE
Allow validation for unsupervised models
<nb> public class EmulatorView extends View implements GestureDetector . OnGestureListe private int mSelX2 = - NUMBER0 ; private int mSelY2 = - NUMBER0 ; - private boolean mIsActive = false ; - COMMENT COMMENT COMMENT <nb> public class EmulatorView extends View implements GestureDetector . OnGestureLi...
Remove mIsActive as it is not used
<nb> public class Serializer { try { if ( object instanceof DataSerializable ) { dos . writeByte ( SERIALIZER_TYPE_DATA ) ; - dos . writeUTF ( object . getClass ( ) . getName ( ) ) ; + dos . writeUTF ( object . getClass ( ) . getName ( ) . replaceFirst ( STRING0 , STRING1 ) ) ; ( ( DataSerializable ) object...
fixed the class name compatibilities between client and server
<nb> public class StaticLayout extends Layout { } if ( mLineCount >= mMaximumVisibleLineCount ) { - break ; + return ; } } }
Fix extra text appearing after ellipsis
<nb> import NAMESPACE ; import NAMESPACE ; public class Tool { - public static final String VERSION ; - static { - String version = Tool . class . getPackage ( ) . getImplementationVersion ( ) ; - VERSION = version != null ? version : STRING0 ; - } + public static final String VERSION = STRING0 ; ...
Leave just one version spec in tool
<nb> public class AndroidDexBuilder extends TargetBuilder < BuildRootDescriptor , Android @ notnull AndroidFileSetStorage dexStateStorage , @ notnull AndroidFileSetStorage proguardStateStorage ) throws IOException { final JpsAndroidModuleExtension extension = AndroidJpsUtil . getExtension ( module ) ; - assert ...
create build targets for lib android modules too
<nb> public class BatteryStatsImpl extends BatteryStats { mWifiControllerActivity . reset ( false ) ; } - if ( mBsi . mBluetoothActivity != null ) { - mBsi . mBluetoothActivity . reset ( false ) ; + if ( mBluetoothControllerActivity != null ) { + mBluetoothControllerActivity . reset ( false ) ; } - ...
Reset per User Bluetooth and Modem controller activity
<nb> public class PdePreprocessor { int writeImports ( PrintStream out ) { out . println ( STRING0 ) ; + out . println ( STRING1 ) ; out . println ( ) ; - int count = NUMBER0 ; + int count = NUMBER1 ; if ( programImports . size ( ) != NUMBER2 ) { for ( String item : programImports ) {
make xml a default import
<nb> public class JsonWriter extends Writer { } COMMENT - public JsonWriter json ( String value ) throws IOException { + public JsonWriter json ( String json ) throws IOException { requireCommaOrName ( ) ; - writer . write ( value ) ; + writer . write ( json ) ; return this ; } <nb> public class...
Added json name json method
<nb> public class DBObjectCodec implements CollectibleCodec < DBObject > { private final CodecRegistry codecRegistry ; private final BsonTypeClassMap bsonTypeClassMap ; - private final DB db ; private final DBObjectFactory objectFactory ; private final IdGenerator idGenerator = new ObjectIdGenerator ( ) ;
Removed unused DB reference in DBObjectCodec
<nb> public interface Configuration @ override public int movingAverageSize ( ) { - return NUMBER0 ; + return NUMBER1 ; } @ override
Bigger moving average range in importer
<nb> public class TestUtils { public static Config getConfig ( String brokerConnectionString ) { Config config = new Config ( ) ; Properties props = new Properties ( ) ; - props . put ( STRING0 , brokerConnectionString ) ; - props . put ( STRING1 , STRING2 ) ; - props . put ( STRING3 , STRING4 ) ; + props...
update TestUtils kafka configs
<nb> public abstract class ConnectionConfiguration { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public B setProxyInfo ( ProxyInfo proxyInfo ) { + this . proxy = proxyInfo ; + return getThis ( ) ; + } + + COMMENT COMMENT COMMENT COMMENT
Add ConnectionConfiguration setProxyInfo ProxyInfo
<nb> public class Peer extends PeerSocketHandler { throw new ProtocolException ( STRING0 ) ; vPeerVersionMessage = m ; SINGLE - int peerVersion = vPeerVersionMessage . clientVersion ; - PeerAddress peerAddress = getAddress ( ) ; long peerTime = vPeerVersionMessage . time * NUMBER0 ; - log . info ( STRING1...
Again reword a happy connect log message
<nb> import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
fixed litte typo
<nb> public class AntBuilder extends BuilderSupport { Map . Entry entry = ( Map . Entry ) iter . next ( ) ; String name = ( String ) entry . getKey ( ) ; Object value = entry . getValue ( ) ; - setBeanProperty ( object , name , value ) ; + setBeanProperty ( object , name , ( ( value == null ) ? null : value ....
applied Rod s patch for Ant
<nb> public class GestureImageView extends ImageView implements GesturesController . On COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT public void fixViewPagerScroll ( ViewPager pager ) { mController . fixViewPagerScroll ( pager ) ; } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
viewpager smoother scrolling
<nb> public class PresenceManagerImpl extends BasicModule implements PresenceManager loadOfflinePresence ( probee . getNode ( ) ) ; } presenceXML = offlinePresenceCache . get ( probee . getNode ( ) ) ; - if ( presenceXML != null ) { + if ( presenceXML != null && ! NULL_STRING . equals ( presenceXML ) ) { tr...
Fixed parsing problem when NULL string was cached
<nb> public class DroidGap extends Activity { private static final String LOG_TAG = STRING0 ; protected WebView appView ; protected ImageView splashScreen ; + protected Boolean backdoor ; private LinearLayout root ; private Device gap ; <nb> public class DroidGap extends Activity { } SINGLE - if...
added a backdoor O
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
fixed cs issue
<nb> public class TransferManager { } final long origStartingByte = startingByte ; - final boolean isDownloadParallel = - TransferManagerUtils . isDownloadParallelizable ( s3 , getObjectRequest , ServiceUtils . getPartCount ( getObjectRequest , s3 ) ) - && ! configuration . isDisableParallelDownloads ( ) ; ...
Avoid extra getObjectMetadata request
<nb> public class ZMQ { return ret ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public final boolean disconnect ( String addr ) { + boolean ret = base . term_endpoint ( addr ) ; + mayRaise ( ) ; + return ret ; + } + public final boolean send ( String data ) { retur...
Add disconnect method
<nb> public class NantTaskTest { nantTask . setTarget ( STRING0 ) ; nantTask . setWorkingDirectory ( STRING1 ) ; nantTask . setNantPath ( STRING2 ) ; - assertThat ( nantTask . getPropertiesForDisplay ( ) , hasItems ( new TaskProperty ( NantTask . NANT_PATH , new File ( STRING2 ) . getPath ( ) , STRING3 ) , + ...
Fix another Windows test issue
<nb> public interface UndertowLogger extends BasicLogger { @ message ( id = NUMBER0 , value = STRING0 ) void ioException ( @ cause IOException e ) ; - @ logmessage ( level = Logger . Level . ERROR ) + @ logmessage ( level = Logger . Level . DEBUG ) @ message ( id = NUMBER1 , value = STRING1 ) void failedT...
Drop log level of parsing errors
<nb> public class ThunderbirdActivator < ThunderbirdContactSourceService , ServiceRegistration > ( ) ; for ( String cfg : configs ) { - if ( cfg . endsWith ( config . getString ( cfg ) ) ) + String value = config . getString ( cfg ) ; + if ( value != null && cfg . endsWith ( value ) ) { add ( cfg ) ; ...
Don t fail loading of services on empty config values
<nb> public class WindowManagerService extends IWindowManager . Stub h = mRequestedHeight ; } + SINGLE + SINGLE + if ( w <= NUMBER0 ) w = NUMBER1 ; + if ( h <= NUMBER0 ) h = NUMBER1 ; + try { mSurface = new Surface ( mSession . mSurfaceSession , mSession . mPid ,
Prevents the WindowManager from requesting empty or negative surfaces
<nb> public class GraphHopper implements GraphHopperAPI { } public GraphHopper forAndroid ( ) { - simplify ( false ) ; + simplify ( false ) ; SINGLE searchRegion = false ; - + SINGLE SINGLE locationIndexHighResolution ( true ) ; <nb> public class GraphHopper implements GraphHopperAPI { int f...
throw exception if point is not resolvable
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MorphiaLoggerFactory { } private static void chooseLoggerFactory ( ) { - Collections . reverse ( MorphiaLoggerFactory . factories ) ; for ( String f : Mor...
prevent double reversal of list when using reset
<nb> public class Cpp99Generator implements CodeGenerator public Cpp99Generator ( final IntermediateRepresentation ir , final OutputManager outputManager ) throws IOException { - Verify . notNull ( ir , STRING0 ) ; + Verify . notNull ( ir , STRING1 ) ; Verify . notNull ( outputManager , STRING2 ) ; this...
Removed typo of having an that should not be in a error message
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RestTemplate extends HttpAccessor implements RestOperations { private final ResponseExtractor < HttpHeaders > headersExtracto...
Added Form converter as a default
<nb> public class ActivityItemBase implements TraktEntity { } public Date timestamp ; + public Date watched ; public When when ; public Elapsed elapsed ; public ActivityType type ;
Add watched field to AcvitiyItemBase as used by user friends in the
<nb> public class EmulatorView extends View implements GestureDetector . OnGestureListe COMMENT + COMMENT COMMENT - COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT public String getURLat ( float x , float y ) {
update documentation for getURLat
<nb> import NAMESPACE ; @ interfacestability.unstable public class WorkerConfig extends AbstractConfig { - public static final String CLUSTER_CONFIG = STRING0 ; - private static final String CLUSTER_CONFIG_DOC = - STRING1 - + STRING2 ; - public static final String CLUSTER_DEFAULT = STRING3 ; - publi...
Remove vestigial WorkerConfig CLUSTER_CONFIG
<nb> public final class ClassicOperationScheduler implements OperationScheduler { return threads ; } + @ edu.umd.cs.findbugs.annotations.suppresswarnings ( { STRING0 } ) @ override public OperationHandler [ ] getPartitionOperationHandlers ( ) { return partitionOperationHandlers ; } + @ edu.umd.cs.fi...
Resolved findbugs issues
<nb> public class ChatView extends LinearLayout { boolean otrPolicyAuto = mNewChatActivity . getOtrPolicy ( ) == OtrPolicy . OTRL_POLICY_ALWAYS || this . mNewChatActivity . getOtrPolicy ( ) == OtrPolicy . OPPORTUNISTIC ; + if ( mCurrentChatSession == null ) + mCurrentChatSession = getChatSession ( ) ; + if ...
prevent NPE after ending a chat session
<nb> public class PhysicsRigidBody extends PhysicsCollisionObject { COMMENT COMMENT public void setRestitution ( float restitution ) { - setRestitution ( objectId , mass ) ; + setRestitution ( objectId , restitution ) ; } private native void setRestitution ( long objectId , float factor ) ;
commit fix to native bullet RigidBody setRestitution thanks to chototsu
<nb> public class RequestServer extends NanoHTTPD { SINGLE + SINGLE + SINGLE + register ( STRING0 , STRING1 , LogsHandler . class , STRING2 , new String [ ] { STRING3 } , STRING4 ) ; + register ( STRING5 , STRING1 , LogsHandler . class , STRING2 , new String [ ] { STRING3 , STRING6 } , STRING7 ) ; + ...
Add routes to get individual log files from the REST API
<nb> public abstract class AbstractSQLChange extends AbstractChange { COMMENT COMMENT COMMENT - public void setSplitStatements ( boolean splitStatements ) { + public void setSplitStatements ( Boolean splitStatements ) { this . splitStatements = splitStatements ; }
Reflection only understands Boolean setters
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class FileDescriptionCachedValueProvider < T extends DomElement > implements SemEle sb . append ( STRING0 ) ; } + if ( ! ( myXmlFile . getFileType ( ) instanceof DomSupportEnabled ...
don t build dom on dtd files
<nb> public interface MoviesState extends BaseState { @ override public PhilmMovie map ( com . jakewharton . trakt . entities . Movie entity ) { PhilmMovie movie = getMovie ( entity . imdb_id ) ; + + if ( movie == null && entity . tmdbId != null ) { + movie = getMovie ( entity . tmdbId ) ; + } + if ( ...
Fix entity mappers so that they check both types of ID
<nb> public class HBaseStoreManager extends DistributedStoreManager implements KeyCol this . cnx = HConnectionManager . createConnection ( hconf ) ; } catch ( ZooKeeperConnectionException e ) { throw new PermanentStorageException ( e ) ; - } catch ( IOException e ) { SINGLE + } catch ( @ suppresswarnings ( ST...
Suppress HConnectionManager exception warning
<nb> public class AbstractAggregationTest public static void startup ( ) { Hazelcast . newHazelcastInstance ( ) ; Hazelcast . newHazelcastInstance ( ) ; - Hazelcast . newHazelcastInstance ( ) ; HAZELCAST_INSTANCE = HazelcastClient . newHazelcastClient ( ) ; }
Removed one node from client aggregation tests for faster startup
<nb> public class MainActivity extends AppCompatActivity implements ActionMode . Callba . inflate ( R . layout . custom_bottom_progressbar , null ) ) ; ultimateRecyclerView . setParallaxHeader ( getLayoutInflater ( ) . inflate ( R . layout . parallax_recyclerview_header , ultimateRecyclerView . mRecyclerView , fa...
update demo for usage
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility COMMENT COMMENT public void setEnabled ( boolean enabled ) { + if ( enabled == isEnabled ( ) ) return ; + setFlags ( enabled ? ENABLED : DISABLED , ENABLED_MASK ) ; COMMENT
Don t invalidate view if setEnabled doesn t change the state
<nb> public class ServerBootstrap extends Bootstrap { ChannelHandler binder = new Binder ( localAddress , futureQueue ) ; ChannelHandler parentHandler = getParentHandler ( ) ; if ( parentHandler != null ) { - bossPipeline = new StaticChannelPipeline ( binder , parentHandler ) ; + bossPipeline = pipeline ( ) ;...
If parentHandler is specified ServerBootstrap should not use StaticChannelPipeline because the parentHandler might want to manipulate the pipeline
<nb> public class DebuggingSlicePool implements Pool < ByteBuffer > { @ override public void free ( ) { if ( free ) { - throw new RuntimeException ( STRING0 , freePoint ) ; + return ; } freePoint = new RuntimeException ( STRING1 ) ; free = true ;
Fix free tracking issue
<nb> public class SubscriptionManager { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public static final int DEFAULT_PHONE_INDEX = Integer . MAX_VALUE ;
Rename PhoneBase to Phone
<nb> public abstract class AbstractUserListFragment extends AbstractAppFragment { getListView ( ) ) ; pullToRefreshListView . setAdapter ( userListAdapter ) ; pullToRefreshListView . setOnPullEventListener ( getPullEventListener ( ) ) ; + pullToRefreshListView . getRefreshableView ( ) . setFooterDividersEnabled...
remove footer divider
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Utils { } } - SINGLE + SINGLE + SINGLE + mContext . getContentResolver ( ) . notifyChange ( ListItems . CONTENT_WITH_DETAILS_URI , n...
Update lists content provider upon updating next episode
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class EntityMentionsAnnotatorITest extends TestCase { annotator . annotate ( doc ) ; List < CoreMap > mentions = doc . get ( CoreAnnotations . MentionsAnnotation . class ) ; - SINGLE + ...
Align tests with reality
<nb> public class DataServerMessage { private RPCResponse . Status mStatus ; - SINGLE + SINGLE private long mLockId = - NUMBER0 ; private ByteBuffer mData = null ; <nb> public class DataServerMessage { mBlockId = mHeader . getLong ( ) ; mOffset = mHeader . getLong ( ) ; mLength = mHeader . getLo...
Tagging TODOs in tachyon worker
<nb> public interface Tree < T > extends TraversableOnce < T > , FilterMonadic < IterableKind < } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface Tree < T > extends TraversableOnce < T > , FilterMonadic < IterableKind < } COMMENT - COMMENT + COMMENT COMMENT COMM...
Renamed RoseTreeTest to TreeTest
<nb> public class StreamBitmapDecoder implements ResourceDecoder < InputStream , Bitmap > private final Downsampler downsampler ; private BitmapPool bitmapPool ; private DecodeFormat decodeFormat ; + private String id ; public StreamBitmapDecoder ( BitmapPool bitmapPool ) { this ( Downsampler . AT_LEAST ,...
Avoid string allocation in StreamBitmapDecoder
<nb> extends BaseTest < A , AP , B , S , B2S , BS , L , X , DATE , BOOL , D , T , U , UU , I , IPK , T7 @ test public void testRenderFormattedAndInlinedWithNewlines ( ) throws Exception { + jOOQAbstractTest . reset = false ; + SINGLE SINGLE DSLContext create = create ( new Settings ( )
Fixed test that doesn t enforce resetting of data
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; public class Period { <nb> public class Period { private Date targetDate ; private Date date ; - public Period ( int index , Date targetDate , Date date ) { + public Period ( int index , Date targetDate...
Fix quality flaw
<nb> public class MercurialRepository extends Repository { argv . add ( ensureCommand ( CMD_PROPERTY_KEY , CMD_FALLBACK ) ) ; argv . add ( STRING0 ) ; argv . add ( STRING1 ) ; - argv . add ( STRING2 ) ; - argv . add ( STRING3 + rev_to_find + STRING4 ) ; + COMMENT + COMMENT + COMMENT + COMMENT + COMM...
remove filtering of changesets when finding original name of renamed file in given revision
<nb> import NAMESPACE ; COMMENT @ bugpattern ( name = STRING0 , + altNames = STRING1 , category = JDK , summary = STRING2 , severity = WARNING
Add Immutable as an alternate name of ImmutableEnumChecker
<nb> public class ComponentWithBrowseButton < Comp extends JComponent > extends JPanel i } @ override + public void update ( AnActionEvent e ) { + e . getPresentation ( ) . setEnabled ( myBrowseButton . isVisible ( ) && myBrowseButton . isEnabled ( ) ) ; + } + + @ override public void actionPerformed ...
do not enable DoClickAction when browse button is disabled or invisible
<nb> import static NAMESPACE COMMENT public class DiscoveryNode implements Streamable , ToXContent { - COMMENT - COMMENT - COMMENT - COMMENT - public static final Version MINIMUM_DISCOVERY_NODE_VERSION = Version . CURRENT . minimumCompatibilityVersion ( ) ; - public static boolean localNode ( Settin...
Remove unused constant from o e c n DiscoveryNode
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; class AsyncQueryBatchCursor < T > implements AsyncBatchCursor < T > { <nb> class AsyncQueryBatchCursor < T > implements AsyncBatchCursor ...
Replaced call to Arrays list with call to Collections singletonList
<nb> public final class CaptureRequest extends CameraMetadata < CaptureRequest . Key < ? > > COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class CaptureResult extends CameraMetadata < CaptureResult . Key < ? > > { COMMENT COMMENT COMMENT - COMMENT + COMMENT ...
get ride of sceneModeOverrides in API doc