diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class InstrumentedHandler extends HandlerWrapper {
COMMENT
COMMENT
public InstrumentedHandler ( MetricRegistry registry , Handler underlying ) {
- this ( registry , underlying , underlying . getClass ( ) ) ;
+ this ( registry , underlying , underlying . getClass ( ) . getName ( ) ) ;
}
COMME... | Fix getClass getClass |
<nb> public class ImagePresenter < T > {
}
private static final String PENDING_LOAD_TOKEN = STRING0 ;
- private static final int PENDING_LOAD_DELAY = NUMBER0 ; SINGLE
+ private static final int PENDING_LOAD_DELAY = NUMBER1 ; SINGLE
private Object pathToken ;
private Object imageToken ;
<nb> public cla... | Increase the odds of letting an animation finish |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class NamedAnalyzer extends CustomAnalyzerWrapper {
public NamedAnalyzer ( String name , AnalyzerScope scope , Analyzer analyzer , int positionOffsetGap ) {
SINGLE
super ( new GlobalReuseStrateg... | remove the assert on AnalyzerWrapper |
<nb> public class BroadcastDispatch < T > implements Dispatch < MethodInvocation > {
return type ;
}
+ public boolean isEmpty ( ) {
+ return handlers . isEmpty ( ) ;
+ }
+
public void add ( Dispatch < MethodInvocation > dispatch ) {
handlers . put ( dispatch , dispatch ) ;
}
<nb> public class List... | Offer API isEmpty to check if listeners have been added |
<nb> public class WifiConfiguration implements Parcelable {
public String BSSID ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final int AP_BAND_2GHZ = NUMBER0 ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final int AP_BAND_5GHZ = NUMBER1 ;
+
+ COMMENT
COMMENT
CO... | add constants for radio band |
<nb> public class HttpDigestAuthFilter implements ClientRequestFilter , ClientResponse
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class HttpDigestAuthFilter implements ClientRequestFilter , ClientResponse
COMMENT
COMMENT
COMMENT
- COMMENT
... | Added note on the maximum default digest cache size |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TestPullUpdates
return commonNodeId ;
}
- @ test ( timeout = COMMENT NUMBER0 )
+ @ test
+ @ ignore ( STRING0 )
public void shouldPullUpdatesOnStartupNo... | Ignore unreliable test |
<nb> public class NibeHeatPumpDataParser {
put ( NUMBER0 , new VariableInformation ( NUMBER1 , STRING0 , NibeDataType . S32 , Type . Sensor ) ) ; SINGLE
put ( NUMBER2 , new VariableInformation ( NUMBER1 , STRING1 , NibeDataType . U8 , Type . Sensor ) ) ; SINGLE
put ( NUMBER3 , new VariableInformation ( NUMBER1 , ... | Fixed wrong compressor total operation time divider |
<nb> public class ArgumentSubstitutionParser < T > extends ApiMethodParser < T > {
if ( matcher . find ( ) ) {
final List < NameReplacement > adapters = argEntry . getValue ( ) ;
for ( NameReplacement adapter : adapters ) {
- if ( adapter . type == null || adapter . type . isAssignableFrom ( argument . getType ... | Fixed argument substituion check to use exact type match |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SeriesGuideApplication extends Application {
SINGLE
PreferenceManager . setDefaultValues ( this , R . xml . settings_basic , false ) ;
Prefe... | Do not set default last update time in application class |
<nb> public class WindowLayersController {
if ( mDockDivider != null && mDockDivider . isVisibleLw ( )
&& mService . mInputMethodWindow != null ) {
layer = assignAndIncreaseLayerIfNeeded ( mService . mInputMethodWindow , layer ) ;
+ for ( int i = mService . mInputMethodDialogs . size ( ) - NUMBER0 ; i >= NUMBER... | Promote input method dialogs layers with input method |
<nb> public class StaticTypesTransformation implements ASTTransformation {
if ( vexp . getName ( ) . equals ( STRING0 ) ) storeType ( vexp , classNode ) ;
if ( vexp . getName ( ) . equals ( STRING1 ) ) storeType ( vexp , classNode . getSuperClass ( ) ) ;
}
+ if ( vexp . getAccessedVariable ( ) instanceof Dynami... | Make static type checker fail on local variables not rferencing a dynamic variable |
<nb> public abstract class PersistableEntityLong extends AbstractPersistableEntity {
SINGLE
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public void setId ( Long id ) {
- this . id = id ;
- }
-
- COMMENT
COMMENT
- COMMENT
- C... | Remove setId Long |
<nb> public class MessageList
if ( ! message . read )
{
message . read = true ;
- mHandler . sortMessages ( ) ;
}
} | When marking a message as read as we re opening it from the message |
<nb> public class CleanupOperation extends AbstractTransferOperation {
List < DatabaseVersion > dummyDatabaseVersionList = new ArrayList < DatabaseVersion > ( ) ;
dummyDatabaseVersionList . add ( dummyDatabaseVersion ) ;
databaseDAO . save ( dummyDatabaseVersionList , dummyLocalDatabaseFile ) ;
+ localDatabase ... | Persisting dummy database version on cleaning client |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class IpPrefix implements Parcelable {
+ public final class IpPrefix implements Parcelable {
private final byte [ ] address ; SINGLE
private final int prefixLength ;
<nb> public class IpPrefix implements Parcelable {
COMMENT
COMMENT
- CO... | Make IpPrefix final |
<nb> public class MultiTouchSupport {
case MotionEvent . ACTION_MOVE : {
if ( inZoomMode ) {
+ SINGLE
+ SINGLE
if ( angleDefined ) {
float a = MapUtils . unifyRotationTo360 ( angle - initialAngle ) ;
if ( ! isRotating && Math . abs ( a ) > ROTATION_THRESHOLD_DEG ) { | add comment for now |
<nb> public interface ChunkSource {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
void getMaxVideoDimensions ( MediaFormat out ) ; | Add missing param documentation |
<nb> class PicassoExecutorService extends ThreadPoolExecutor {
}
private void setThreadCount ( int threadCount ) {
- setCorePoolSize ( threadCount ) ;
setMaximumPoolSize ( threadCount ) ;
+ setCorePoolSize ( threadCount ) ;
}
@ override | Set max pool size before core to avoid IAE by OpenJDK implementation |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultAdminProvider implements AdminProvider {
}
}
+ if ( adminList . isEmpty ( ) ) {
+ SINGLE
+ adminList . a... | Include default admin account when none was specified |
<nb> public class RosterItemProvider {
pstmt . executeUpdate ( ) ;
}
catch ( SQLException e ) {
- Log . error ( e . getMessage ( ) , e ) ;
+ Log . error ( STRING0 + groupName
+ + STRING1 + i + STRING2
+ + rosterID + STRING3 , e ) ;
}
}
} | Improve exception logging |
<nb> class NioWorker implements Runnable {
boolean firstChannel = started . compareAndSet ( false , true ) ;
Selector selector ;
if ( firstChannel ) {
+ boolean success = false ;
selectorGuard . writeLock ( ) . lock ( ) ;
try {
this . selector = selector = Selector . open ( ) ;
+ success = true ;
} ca... | Fixed a bug where NioWorker register hangs up with high CPU consumption when it failed to open a selector |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class Env implements Serializable {
+ public class Env {
COMMENT
COMMENT
COMMENT
<nb> imp... | rolling back a few unnecessary changes |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class JavaCodeInsightFixtureTestCase extends UsefulTestCase {
protected JavaCodeInsightTestFixture myFixture ;
protected... | Initialize platform prefix from code insight test cases |
<nb> package NAMESPACE ;
import NAMESPACE ;
public interface BlurController {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
boolean isInternalCanvas ( Canvas canvas ) ;
void drawBlurredContent ( Canvas canvas ) ;
+ COMMENT
+ COMMENT
+ COMMENT
void onDrawEnd ( Canvas canvas ) ;
+ ... | Moved doc to interface |
<nb> import NAMESPACE ;
COMMENT
public class GradleLibraryManager extends AbstractGroovyLibraryManager {
public static final Icon GRADLE_ICON = IconLoader . getIcon ( STRING0 ) ;
- @ nonnls private static final Pattern GRADLE_JAR_FILE_PATTERN = Pattern . compile ( STRING1 ) ;
+ @ nonnls private static final P... | new gradle versions have gradle core jar |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public abstract class GaugeMetric < T > implements Metric {
+ public interface GaugeMetric < T > extends Metric {
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class JmxGauge extends GaugeMetric < Object > { ... | Make GaugeMetric an interface |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public final class HazelcastAggregationRepository extends ServiceSupport
+ public class HazelcastAggregationRepository extends ServiceSupport
implements RecoverableAggregationRepository ,
OptimisticLockingAggregationRepository {
private static final Logg... | Allow end users to extend the repo |
<nb> public class MainService extends Service {
@ override
public void onDestroy ( ) {
+ unregisterReceiver ( mPackageBroadcastReceiver ) ;
unregisterReceiver ( mDialogReceiver ) ;
unregisterReceiver ( mBroadcastReceiver ) ;
MainController . destroy ( ) ; | Fix leaked broadcast receiver |
<nb> final class WellKnownMutability {
. add ( java . math . BigDecimal . class )
. add ( java . net . InetAddress . class )
. add ( java . util . Locale . class )
+ . add ( java . util . regex . Pattern . class )
. add ( STRING0 , STRING1 )
. add ( STRING2 )
. add ( STRING3 ) | Add java util regex Pattern to the list of well known immutable types |
<nb> public class PositionManagerImpl implements PositionManager , MultiRequestPositio
PsiFile file = original . getFile ( ) ;
int line = original . getLine ( ) ;
if ( LambdaMethodFilter . isLambdaName ( myExpectedMethodName ) && myLambdaOrdinal > - NUMBER0 ) {
- List < PsiLambdaExpression > lambdas = DebuggerU... | fixed incorrect breakpoint inside inner lambdas |
<nb> public class GradleProjectBuilder implements ToolingModelBuilder {
. setChildren ( children ) ;
gradleProject . getBuildScript ( ) . setSourceFile ( project . getBuildFile ( ) ) ;
- gradleProject . setTasks ( tasks ( gradleProject , taskLister . listProjectTasks ( project ) ) ) ;
+ gradleProject . setTas... | Reverted usage of ProjectTaskLister to build GradleProject model for now |
<nb> public class MainController implements Choreographer . FrameCallback {
if ( mBubbleFlowDraggable . isExpanded ( ) ) {
mBubbleFlowDraggable . setVisibility ( View . VISIBLE ) ;
}
- } else {
- mBubbleFlowDraggable . setVisibility ( View . GONE ) ;
+ } else {
+ TabView view = mBubbleFlowDraggable . getC... | Fixed top bar that blocks part of the screen sometimes |
<nb> public interface AmazonS3 extends S3DirectSpi {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface AmazonS3 extends S3DirectSpi {
public void deleteBucketReplicationConfiguration ( String bucketName )
throws AmazonServiceException , AmazonClientException ;
- }
... | Fixed typo in the comment for putObject |
<nb> public class FriendsList extends Activity implements OnItemClickListener {
COMMENT
COMMENT
@ override
+ @ suppresswarnings ( STRING0 )
public void onItemClick ( AdapterView < ? > arg0 , View v , int position , long arg3 ) {
try {
final long friendId ;
<nb> import NAMESPACE ;
public class Utility ... | android sdk Fix warnings in Hackbook sample |
<nb> import NAMESPACE ;
import NAMESPACE ;
public final class ZLAndroidApplicationWindow extends ZLApplicationWindow {
- private final TreeMap < Menu . Item , ZLApplication . Menubar . PlainItem > myMenuItemMap =
- new TreeMap < Menu . Item , ZLApplication . Menubar . PlainItem > ( ) ;
+ private final HashM... | fixed class cast exception |
<nb> public class RenderManager {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public boolean removePreView ( String viewName ) {
+ for ( int i = NUMBER0 ; i < preViewPorts . size ( ) ; i ++ ) {
+ if ( preViewPorts . get ( i ) . getName ( ) . equals ( viewN... | add a RenderManager method to remove a pre view by name in trunk |
<nb> public abstract class CompilerTestCase extends TestCase {
} else {
assertNull ( STRING0 , expected ) ;
assertEquals (
- STRING1 + errorMsg + STRING2
+ STRING3 + error . key + STRING2
+ Arrays . toString ( compiler . getErrors ( ) ) ,
NUMBER0 , compiler . getErrorCount ( ) ) ;
JSError actualError = ... | Fix error message to be clearer |
<nb> public abstract class AbstractTrafficShapingHandler extends ChannelDuplexHandler
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- private static long getTimeToWait ( long limit , long bytes , long lastTime ,
- long curtime ) {
+ COMMENT
+ COMMENT
+ private static long getTimeToWait ( lon... | Fix a bug in AbstractTrafficShapingHandler getTimeToWait where it doesn t work OK when system time goes back |
<nb> public class ResultSetViewer extends Viewer implements IDataSourceProvider , ISpr
COMMENT
public boolean setMetaData ( DBDAttributeBinding [ ] columns )
{
+ if ( ! CommonUtils . isEmpty ( model . getVisibleColumns ( ) ) &&
+ model . getDataFilter ( ) != null && model . getDataFilter ( ) . hasConditions (... | RS filtering fix keep original RS metadata after adding filter |
<nb> public class CallerInfo {
return countryIso ;
}
+ protected static String getCurrentCountryIso ( Context context ) {
+ return getCurrentCountryIso ( context , Locale . getDefault ( ) ) ;
+ }
+
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import N... | Fix CountryDetector NPE |
<nb> public final class CellIdentityLte implements Parcelable {
return mMcc == o . mMcc &&
mMnc == o . mMnc &&
mCi == o . mCi &&
- mPci == o . mCi &&
+ mPci == o . mPci &&
mTac == o . mTac ;
} catch ( ClassCastException e ) {
return false ; | Fix CellIdentityLte equals |
<nb> public class CachedAuthenticatedSessionMechanism implements AuthenticationMechan
} else {
sessionManager . clearSession ( exchange ) ;
SINGLE
- SINGLE
- return AuthenticationMechanismOutcome . NOT_AUTHENTICATED ;
+ SINGLE
+ return AuthenticationMechanismOutcome . NOT_ATTEMPTED ;
}
} else {
SING... | Change CachedAuthenticatedSessionMechanism to return NOT_ATTEMPTED rather than NOT_AUTHENTICATED if the identity manager returns null |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CreateClassFixTest {
final IdeaTestFixtureFactory fixtureFactory = IdeaTestFixtureFactory . getFixtureFactory ( ) ;
final T... | updating test data path from svnPlugins to community plugins |
<nb> public class Verifier implements GroovyClassVisitor , Opcodes {
ConstructorNode dummy = new ConstructorNode ( NUMBER0 , null ) ;
addInitialization ( node , dummy ) ;
node . visitContents ( this ) ;
- classNode . setNodeMetaData ( ClassNodeSkip . class , true ) ;
+ if ( classNode . getNodeMetaData ( Class... | check skip value before setting it |
<nb> public class JarsBuilder {
}
private void buildJar ( final JarInfo jar ) throws IOException {
- myContext . getProgressIndicator ( ) . setText ( CompilerBundle . message ( STRING0 ,
- jar . getPresentableDestination ( ) ) ) ;
+ if ( jar . getPackedFiles ( ) . isEmpty ( ) && jar . getPackedJars ( ) . is... | zip file must have at least one entty error fixed |
<nb> public class FileDirContext extends BaseDirContext {
for ( int i = NUMBER0 ; i < names . length ; i ++ ) {
- File currentFile = file ( file . getName ( ) + STRING0 + names [ i ] ) ;
- if ( currentFile == null ) continue ;
-
+ File currentFile = new File ( file , names [ i ] ) ;
Object object = null... | Revert this patch whilst I figure out why it breaks class loading |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | Adding missing license |
<nb> public class PastSnapshotFinder implements BatchExtension {
return pastSnapshot ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ public PastSnapshot find ( Snapshot projectSnapshot , Settings settings , int index ) {
+ return find ( projectSnapshot , null , settings , index ) ;
+ }
+
static String getProp... | Add a find method without root qualifier for retro compatibility for dev cockpit |
<nb> public class LockSettingsService extends ILockSettings . Stub {
final KeyStore ks = KeyStore . getInstance ( ) ;
ks . onUserRemoved ( userId ) ;
+
+ try {
+ final IGateKeeperService gk = getGateKeeperService ( ) ;
+ if ( gk != null ) {
+ gk . clearSecureUserId ( userId ) ;
+ }
+ } catch ( Remot... | LockSettings clear secure user id when user is removed |
<nb> public class JavaMoveFilesOrDirectoriesHandler extends MoveFilesOrDirectoriesHan
@ override
public void doMove ( final Project project , PsiElement [ ] elements , PsiElement targetContainer , MoveCallback callback ) {
- elements = adjustForMove ( project , elements , targetContainer ) ;
+ elements = supe... | do not convert classes to files before move |
<nb> public class PullToRefreshGridActivity extends Activity {
setContentView ( R . layout . pull_to_refresh_grid ) ;
mPullRefreshGridView = ( PullToRefreshGridView ) findViewById ( R . id . pull_refresh_grid ) ;
- mGridView = mPullRefreshGridView . getAdapterView ( ) ;
+ mGridView = mPullRefreshGridView . ge... | Change Sample to not use deprecated method |
<nb> public final class ActivityNetworkContext extends AndroidNetworkContext {
request . addPostParameter ( STRING0 , authToken ) ;
request . addPostParameter ( STRING1 , code ) ;
performQuietly ( request ) ;
+ System . err . println ( STRING2 + response ) ;
return response ;
}
<nb> public final class A... | changed debug print call location |
<nb> public final class Pair < T1 , T2 >
{
return other ;
}
+
+ @ override
+ public String toString ( )
+ {
+ return STRING0 + first + STRING1 + other + STRING2 ;
+ }
} | Added a toString method to Pair |
<nb> public class SimpleNestedTests extends AbstractSharedClusterTest {
assertThat ( termsStatsFacet . getEntries ( ) . get ( NUMBER0 ) . getCount ( ) , equalTo ( NUMBER1 ) ) ;
assertThat ( termsStatsFacet . getEntries ( ) . get ( NUMBER0 ) . getTotal ( ) , equalTo ( FLOAT0 ) ) ;
- SINGLE
- refresh ( ) ;
- ... | Removed useless TODO |
<nb> public class CoreState implements MessageHandler < RaftMessages . ClusterIdAwareMess
}
catch ( Throwable e )
{
+ log . error ( STRING0 , e ) ;
raftMachine . stopTimers ( ) ;
localDatabase . panic ( e ) ;
} | add log for error when handling message |
<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
COMMENT
COMMENT
COMMENT
+ @ viewdebug.exportedproperty ( category = STRING0 , mapping = {
+ @ viewdebug.inttostring ( from = TEXT_DIRECTION_INHERIT , to = STRING1 ) ,
+ @ viewdebug.inttostring ( from = TEXT_DIRECTION_FIRST_STRONG ... | Add missing ViewDebug infos for View getTextDirection |
<nb> public class FakeHttpLayer {
}
}
- System . err . println ( STRING0 + httpRequest . getRequestLine ( ) ) ;
-
return defaultHttpResponse ;
} | remove call to System err println in tests |
<nb> abstract class ActivityTransitionCoordinator extends ResultReceiver {
if ( mListener != null ) {
mListener . onMapSharedElements ( mAllSharedElementNames , sharedElements ) ;
}
- mSharedElementNames . addAll ( sharedElements . keySet ( ) ) ;
- mSharedElements . addAll ( sharedElements . values ( ) ) ;
... | Fix NPE when detached View is added as a shared element |
<nb> public class PlayVideoActivity extends AppCompatActivity {
| View . SYSTEM_UI_FLAG_FULLSCREEN
| View . SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View . SYSTEM_UI_FLAG_LAYOUT_STABLE ) ;
+ } else {
+ getWindow ( ) . setFlags ( WindowManager . LayoutParams . FLAG_FULLSCREEN ,
+ WindowManager . LayoutParams . FLAG_... | fixed notification hiding issue |
<nb> public final class BlockWorker extends AbstractWorker {
SINGLE
mPinListSync = new PinListSync ( this , mFileSystemMasterClient ) ;
+ SINGLE
+ setupSessionCleaner ( ) ;
+
SINGLE
SpaceReserver spaceReserver = null ;
if ( Configuration . getBoolean ( Constants . WORKER_TIERED_STORE_RESERVER_ENABLED ... | Avoid changing thread creation order |
<nb> public class MultiPaxosServerFactory
. getOutgoing ( ) ) ) ;
context . getHeartbeatContext ( ) . addHeartbeatListener ( new HeartbeatReelectionListener (
- server . newClient ( Election . class ) , logging . getMessagesLog ( ClusterLeaveReelectionListener . class ) ) ) ;
+ server . newClient ( Election .... | Fix some logging that was misattributed to ClusterLeaveReelectionListener when it should have been HeartbeatRelectionListener |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BugPatternIndexWriter {
TreeMultimap . create (
Comparator . comparing ( IndexEntry : : onByDefault )
. reversed ( )
- ... | Tweak sort order of bugpatterns |
<nb> public class UnaryTransition implements Transition {
SINGLE
return false ;
}
+ if ( top . label ( ) . value ( ) . startsWith ( STRING0 ) && ! label . equals ( top . label ( ) . value ( ) . substring ( NUMBER0 ) ) ) {
+ return false ;
+ }
if ( top . children ( ) . length == NUMBER0 ) {
Tree child = ... | Add a constraint which at least prevents certain forms of broken parse |
<nb> public class Drawer {
return mDrawerItems . get ( position - mHeaderOffset ) ;
}
} else {
- if ( mDrawerItems != null && mDrawerItems . size ( ) > mCurrentSelection && mCurrentSelection > - NUMBER0 ) {
+ if ( mDrawerItems != null && mDrawerItems . size ( ) > position && position > - NUMBER0 ) {
return ... | fix small bug within the drawer |
<nb> public class AndroidModuleBuilder extends JavaModuleBuilder {
rootModel . setSdk ( mySdk ) ;
- if ( myProjectType == null ) {
- return ;
- }
-
VirtualFile [ ] files = rootModel . getContentRoots ( ) ;
if ( files . length > NUMBER0 ) {
final VirtualFile contentRoot = files [ NUMBER0 ] ;
final ... | add facet when creating empty project |
<nb> public class ShowEndpoint {
try {
SINGLE
Show existingShow = mgr . find ( Show . class , show . getKey ( ) ) ;
- if ( existingShow != null ) {
- SINGLE
- existingShow . copyPropertyValues ( show ) ;
- existingShow . setUpdatedAt ( new Date ( ) ) ;
- SINGLE
- mgr . merge ( existingShow ) ;
+ i... | Only change updatedAt of show if there were changes |
<nb> public final class ActiveServices {
if ( DEBUG_DELAYED_STATS ) Slog . v ( TAG , STRING0 + r ) ;
rescheduleDelayedStarts ( ) ;
}
- if ( mPendingServices . remove ( r ) ) {
- if ( DEBUG_DELAYED_STATS ) Slog . v ( TAG , STRING1 + r ) ;
+ if ( mDelayedStartList . remove ( r ) ) {
+ if ( DEBUG_DELAYED_STA... | adb install hangs |
<nb> class ResponseWrapper extends Response {
}
@ override
+ public void cookie ( String path , String name , String value , int maxAge , boolean secured ) {
+ delegate . cookie ( path , name , value , maxAge , secured ) ;
+ }
+
+ @ override
public void removeCookie ( String name ) {
delegate . remo... | Add the ability to specify a path in a cookie |
<nb> public final class Files {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add more warnings to the javadoc of Files copy File File |
<nb> public class SpringConfig {
Bean grailsViewResolver = SpringConfigUtils . createSingletonBean ( GrailsViewResolver . class ) ;
grailsViewResolver . setProperty ( STRING0 , SpringConfigUtils . createLiteralValue ( STRING1 ) ) ;
- grailsViewResolver . setProperty ( STRING2 , SpringConfigUtils . createLiteral... | corrected to errors view not resolving properly |
<nb> public class MapInfoLayer extends OsmandMapLayer {
}
if ( topText . getShadowColor ( ) != shadowColor ) {
topText . setShadowColor ( shadowColor ) ;
+ leftStack . setShadowColor ( shadowColor ) ;
+ rightStack . setShadowColor ( shadowColor ) ;
}
}
<nb> public class MapStackControl extends ViewGro... | Finalize shadow color concept |
<nb> public class PhoneStatusBar extends BaseStatusBar implements DemoMode ,
}
if ( metaDataChanged ) {
if ( mBackdropBack . getDrawable ( ) != null ) {
- Drawable drawable = mBackdropBack . getDrawable ( ) ;
+ Drawable drawable =
+ mBackdropBack . getDrawable ( ) . getConstantState ( ) . newDrawable ( ) . ... | Prevent lockscreen album art from flickering on metadata change |
<nb> public class HTTPServerMultiLangLoadTest extends HTTPServerLoadTest {
}
private Language getRandomLanguage ( ) {
- Random rnd = new Random ( ) ;
- int randomNumber = rnd . nextInt ( langCodeToText . size ( ) ) ;
+ int randomNumber = random . nextInt ( langCodeToText . size ( ) ) ;
int i = NUMBER0 ;
... | use a static seed for better reproducability |
<nb> public enum MediaDirection
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public static MediaDirection parseString ( String mediaDirectionName )
- throws IllegalArgumentException
- {... | Removes MediaDirection parseString String because it seems to be the same as valueOf String which MediaDirection inherits from Enum |
<nb> public class InitialAccountRegistrationFrame
JLabel . RIGHT ) ;
signupLabel . setFont ( signupLabel . getFont ( ) . deriveFont ( NUMBER0 f ) ) ;
+ signupLabel . setCursor ( new Cursor ( Cursor . HAND_CURSOR ) ) ;
+ signupLabel . setToolTipText (
+ Resources . getString (
+ STRING0 ) ) ;
signupLabel... | Add hand cursor and tooltip to Not Registered Yet |
<nb> public class InplaceIntroduceParameterPopup extends AbstractJavaInplaceIntroduce
if ( myParameterIndex < NUMBER0 ) return ;
restartInplaceIntroduceTemplate ( ) ;
}
+
+ protected TIntArrayList getParametersToRemove ( ) {
+ TIntArrayList parameters = new TIntArrayList ( ) ;
+ for ( int i = NUMBER0 ; i ... | delete unused params by default |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class TesterContext implements Context {
public Map < String , String > findPreDestroyMethods ( ) {
return null ;
}
+
+ @ override
+ public InstanceMan... | Add new methods |
<nb> public class ResReferenceValue extends ResIntValue {
if ( isNull ( ) ) {
return STRING0 ;
}
- SINGLE
+
return
( mTheme ? STRING1 : STRING2 ) +
getReferent ( ) . getFullName ( mPackage , mTheme ) ;
- SINGLE
- SINGLE
- SINGLE
}
public ResResSpec getReferent ( ) throws AndrolibException { | removed some old code |
<nb> public class FolderObserver extends Thread implements ManagedService {
}
SINGLE
- if ( lastFileNames . get ( foldername ) != null ) { ;
- for ( String fileName : lastFileNames . get ( foldername ) ) {
- if ( ! currentFileNames . contains ( fileName ) ) {
+ if ( lastFileNames . get ( foldername ) != n... | Fix FolderObserver to detect previously removed files again |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAM... | Fix wrong import order |
<nb> public class LearnAggregation
private final int labelChannel ;
private final int featuresChannel ;
private final boolean labelIsLong ;
- SINGLE
private final List < Double > labels = new ArrayList < > ( ) ;
private final List < FeatureVector > rows = new ArrayList < > ( ) ; | Remove obsolete TODO |
<nb> public class QueryResource
@ get
public List < QueryInfo > getAllQueryInfo ( )
- throws InterruptedException
{
return queryManager . getAllQueryInfo ( ) ;
}
<nb> public class QueryResource
@ get
@ path ( STRING0 )
public Response getQueryInfo ( @ pathparam ( STRING1 ) String queryId , @ heade... | Remove unnecessary throws InterruptedException |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ jsontypeinfo ( use = JsonTypeInfo . Id . NAME , property = STRING0 )
+ @ jsontypeinfo ( use = JsonTypeInfo . Id . NAME , property = STRING0 , defaultImpl = FillCapacityWorkerSelectStrategy . class )
@ jsonsubtypes ( value = {
@ jsonsubtypes.type ( name =... | add default impl |
<nb> import NAMESPACE ;
public abstract class RenamePsiElementProcessor {
private static final ExtensionPointName < RenamePsiElementProcessor > EP_NAME = ExtensionPointName . create ( STRING0 ) ;
- public abstract boolean canProcessElement ( PsiElement element ) ;
+ public abstract boolean canProcessElement (... | Fix NPE in VtlRenameTest testDontRenameVelocityCount |
<nb> public final class WorkProcessor < T >
private final ExceptionHandler exceptionHandler ;
private final Sequence workSequence ;
- private long nextSequence ;
-
private final EventReleaser eventReleaser = new EventReleaser ( )
{
@ override
<nb> public final class WorkProcessor < T >
boolean pro... | Make nextSequence a local variable again |
<nb> public class PostUploadService extends Service {
}
}
- SINGLE
+ SINGLE
if ( featuredImageID != - NUMBER0 ) {
+ SINGLE
contentStruct . put ( STRING0 , featuredImageID ) ;
+ } else {
+ if ( mPost . getFeaturedImageId ( ) == NUMBER1 && ! mPost . isLocalDraft ( ) ) {
+ contentStruct . put ( STRIN... | Check Post object for featured image id when uploading posts |
<nb> public class IndicesModuleTests extends ESTestCase {
private static class FakeMapperParser implements Mapper . TypeParser {
@ override
- public Mapper . Builder < ? , ? > parse ( String name , Map < String , Object > node , ParserContext parserContext ) throws MapperParsingException {
+ public Mapper . B... | Fix line length in new indices module tests |
<nb> package NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
<nb> public class PemEncodedTest {
private static void testPemEncoded ( SslProvider provider ) throws Exception {
assumeTrue ( OpenSsl . isAvailable... | Only run PemEncodedTest if OpenSsl useKeyManagerFactory returns false |
<nb> public abstract class HighlighterList {
private final SortedList < RangeHighlighterImpl > mySegmentHighlighters = new SortedList < RangeHighlighterImpl > ( MY_RANGE_COMPARATOR ) {
@ override
protected void sort ( List < RangeHighlighterImpl > delegate ) {
- assertDispatchThread ( ) ;
Iterator < RangeHigh... | remove assertion for now |
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class ExampleConfiguration
{ | add missing comment |
<nb> public class EntropyMixer extends Binder {
out . println ( SystemProperties . get ( STRING0 ) ) ;
out . println ( SystemProperties . get ( STRING1 ) ) ;
out . println ( SystemProperties . get ( STRING2 ) ) ;
+ out . println ( SystemProperties . get ( STRING3 ) ) ;
out . println ( new Object ( ) . hashCod... | add ro build fingerprint to the mix |
<nb> public class MacIntelliJLabelUI extends BasicLabelUI {
@ suppresswarnings ( { STRING0 , STRING1 } )
public static ComponentUI createUI ( JComponent c ) {
- c . setBorder ( JBUI . Borders . emptyTop ( NUMBER0 ) . asUIResource ( ) ) ;
+ c . setBorder ( JBUI . Borders . empty ( NUMBER0 , NUMBER1 , NUMBER2 ,... | make yosemite labels aligned with combox checkboxes and other standard controls |
<nb> import NAMESPACE ;
public class VarDataEncodingDecoder
{
public static final int ENCODED_LENGTH = - NUMBER0 ;
- private DirectBuffer buffer ;
private int offset ;
+ private DirectBuffer buffer ;
public VarDataEncodingDecoder wrap ( final DirectBuffer buffer , final int offset )
{
<nb> import NA... | Java Regenerate IR codecs |
<nb> public class EditPostContentFragment extends Fragment implements TextWatcher ,
}
SINGLE
- if ( localMediaIds . size ( ) > NUMBER0 && blogMediaIds . size ( ) > NUMBER1 ) {
+ if ( localMediaIds . size ( ) > NUMBER0 || blogMediaIds . size ( ) > NUMBER0 ) {
Editable editableText = mContentEditText . getTex... | Fixing gallery creation logic |
<nb> public class ProjectJdkImpl implements JDOMExternalizable , Sdk , SdkModificator {
final String name = getName ( ) ;
dest . setName ( name ) ;
dest . setHomePath ( getHomePath ( ) ) ;
- dest . setVersionString ( getVersionString ( ) ) ;
+ if ( myVersionDefined ) {
+ dest . setVersionString ( getVersion... | avoid unnecessary getVersionString calls which start native executables during project opening |
<nb> class WallpaperManagerService extends IWallpaperManager . Stub {
COMMENT
COMMENT
private final FileObserver mWallpaperObserver = new FileObserver (
- WALLPAPER_DIR . getAbsolutePath ( ) , CREATE | CLOSE_WRITE | DELETE | DELETE_SELF ) {
+ WALLPAPER_DIR . getAbsolutePath ( ) , CLOSE_WRITE | DELETE | DELETE... | Setting wallpaper from gallery set default |
<nb> public class WebView extends AbsoluteLayout
protected void onSizeChanged ( int w , int h , int ow , int oh ) {
super . onSizeChanged ( w , h , ow , oh ) ;
SINGLE
- mZoomCenterX = getViewWidth ( ) * FLOAT0 ;
- mZoomCenterY = getViewHeight ( ) * FLOAT0 ;
+ if ( mZoomScale == NUMBER0 ) { SINGLE
+ mZoomC... | don t center zoom on size change if zoom is in progress |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ metadata ( label = STRING0 )
@ xmlrootelement ( name = STRING1 ) | fied java doc for respMsg |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix wrong javadoc in BluetoothAdapter |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.