diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class MavenPluginConfigurationDomExtender extends DomExtender < Configurati
}
private void registerPluginParameter ( DomExtensionsRegistrar r , Parameter each ) {
- DomExtension e ;
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- e = r . registerFixedNumberChildExtension ( new XmlName ( e... | catching all errors on importing |
<nb> public abstract class ConstraintDefinition {
}
}
this . blenderContext = blenderContext ;
- constraintHelper = blenderContext . getHelper ( ConstraintHelper . class ) ;
+ constraintHelper = ( ConstraintHelper ) ( blenderContext == null ? null : blenderContext . getHelper ( ConstraintHelper . class ) ) ; ... | fixed an issue that caused NPE to be raised when UnsupportedConstraint was allocated |
<nb> public class HomegearClient extends BaseHomematicClient {
HmVariable var = new HmVariable ( ) ;
var . setName ( name ) ;
var . setWriteable ( true ) ;
- var . setValue ( guessType ( value ) ) ;
+ var . setValueType ( guessType ( value ) ) ;
var . setValue ( value ) ;
return var ;
} | Fixed Homegear variable bug |
<nb> public class PatternDwell extends TablePatternEdge implements OnboardEdge , Dwell
}
public String getDirection ( ) {
- return getPattern ( ) . getExemplar ( ) . getTripHeadsign ( ) ;
+ return getPattern ( ) . getDirection ( ) ;
}
public double getDistance ( ) {
<nb> public class TripPattern imple... | remove use of Exemplar |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileColorsModel implements Cloneable {
static {
globalScopes = new HashMap < String , String > ( ) ;
globalScopes . put (... | can t open any file in non java IDE |
<nb> public class CUBRIDTemplates extends SQLTemplates {
setNullsFirst ( null ) ;
setNullsLast ( null ) ;
setDefaultValues ( STRING0 ) ;
+ setArraysSupported ( false ) ;
add ( Ops . DateTimeOps . DAY_OF_YEAR , STRING1 ) ;
add ( Ops . DateTimeOps . DAY_OF_WEEK , STRING2 ) ; | Disable getArray for CUBRID |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class GoImportOptimizerTest extends GoCodeInsightFixtureTestCase {
<nb> public class GoImportOptimizerTest extends GoCodeInsightFixtureTestCase {
private void doTest ( ) {
... | Optimize imports in write action |
<nb> public class Watcher implements Runnable {
return _downloadedFilePathNames ;
}
+ public void registerFilePath ( Path filePath , boolean recursive )
+ throws IOException {
+
+ if ( Files . notExists ( filePath ) ) {
+ processMissingFilePath ( filePath ) ;
+
+ return ;
+ }
+
+ doRegister ( ... | sync engine Make public |
<nb> public class VideoView extends SurfaceView implements MediaPlayerControl {
}
return true ;
} else if ( keyCode == KeyEvent . KEYCODE_MEDIA_PLAY ) {
- if ( mMediaPlayer . isPlaying ( ) ) {
+ if ( ! mMediaPlayer . isPlaying ( ) ) {
start ( ) ;
mMediaController . hide ( ) ;
}
return true ;
} else ... | Fix a bug that the condition for play pause was reversed |
<nb> public class ShadowImageView extends ShadowView {
private Drawable imageDrawable ;
private Bitmap imageBitmap ;
private ImageView . ScaleType scaleType ;
- private Matrix matrix ;
+ private Matrix matrix = new Matrix ( ) ;
private int imageLevel ;
@ implementation
<nb> public class ImageViewTest ... | Initialize ShadowImageView matrix field to prevent NPE |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PerformanceDatabase {
public String getUrl ( ) {
String defaultUrl = STRING0 + System . getProperty ( STRING1 ) + STRING2 ;
String baseUrl = System . getProperty ( STRING3 , def... | Make database URL handling more robust |
<nb> public final class ClusterServiceImpl implements ClusterService , ConnectionListe
if ( node . getThisAddress ( ) . equals ( masterAddress ) ) {
logger . finest ( STRING0 + masterAddress + STRING1 + callerAddress
+ STRING2 ) ;
+ return ;
}
lock . lock ( ) ; | added missing return to prevent node tries to connect itself when network partition happens |
<nb> public class LocalStore extends Store implements Serializable {
text = text . substring ( NUMBER0 , NUMBER1 ) ;
}
-
+ SINGLE
text = text . replaceAll ( STRING0 , STRING1 ) ;
+ SINGLE
text = text . replaceAll ( STRING2 , STRING1 ) ;
+ SINGLE
text = text . replaceAll ( STRING3 , STRING1 ) ;
+ S... | comment some preview regexes |
<nb> public class FlexibleAdapter < T extends IFlexible >
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ nonnull
+ public List < Integer > getSectionItemPositions ( @ nonnull IHeader header ) {
+ List < Integer > sectionItemPositions = new ArrayList < Integer > ( ) ;
+ int start... | Added new method getSectionItemPositions |
<nb> public class SgSyncAdapter extends AbstractThreadedSyncAdapter {
try {
TheTVDB . updateShow ( getContext ( ) , id ) ;
- SINGLE
+ SINGLE
resolver . notifyChange ( Episodes . CONTENT_URI_WITHSHOW , null ) ;
} catch ( TvdbException e ) {
SINGLE
<nb> public class ShowTools {
return Result . ERROR ;... | Notify more loaders after deleting a show |
<nb> public class AsmClassGenerator extends ClassGenerator {
if ( setResult ) {
SINGLE
- if ( expression instanceof VariableExpression ) mv . visitInsn ( DUP ) ;
+ if ( expression instanceof VariableExpression ||
+ expression instanceof PropertyExpression )
+ {
+ mv . visitInsn ( DUP ) ;
+ }
leftHan... | fixes a bytecode but for println x y |
<nb> public class PhysicsSpace {
COMMENT
COMMENT
public void create ( ) {
- SINGLE
- physicsSpaceId = createPhysicsSpace ( worldMin . x , worldMin . y , worldMin . z , worldMax . x , worldMax . y , worldMax . z , NUMBER0 , false ) ;
+ physicsSpaceId = createPhysicsSpace ( worldMin . x , worldMin . y , world... | Native bullet will no longer ignore changes to the broadphase type |
<nb> public class PluginManager
private static List < Artifact > sortedArtifacts ( List < Artifact > artifacts )
{
List < Artifact > list = Lists . newArrayList ( artifacts ) ;
- Collections . sort ( list , Ordering . natural ( ) . onResultOf ( artifactFileGetter ( ) ) ) ;
+ Collections . sort ( list , Orderi... | Fix handling of unresolvable artifacts |
<nb> public class Q extends Z {
private List < URI > resources = new LinkedList < URI > ( ) ;
private boolean cache ;
transient static final String ARG_VAR_NAME = STRING0 ;
- transient static final String PREV_VAR_NAME = STRING1 ;
+ transient static final String PREV_VAR_NAME = STRING2 ;
transient static fi... | remove previous query table variable name from prev table |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BlurLayout extends RelativeLayout {
}
@ override
- public boolean onTouchEvent ( @ nonnull MotionEvent event ) {
+ p... | Made changes as per Daimajia |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ @ jsontypename ( STRING0 )
public class LegacyDataSource extends TableDataSource
{
@ jsoncreator
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ @ jsontypename ( ST... | Fix legacy data source serialization |
<nb> public class AccountHeaderBuilder {
mProfileSecondView . setOnClickListener ( null ) ;
mProfileThirdView . setVisibility ( View . GONE ) ;
mProfileThirdView . setOnClickListener ( null ) ;
+ mCurrentProfileName . setText ( STRING0 ) ;
+ mCurrentProfileEmail . setText ( STRING0 ) ;
handleSelectionView... | reset Text if no remaining profile exists |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class MetaImpl implements Meta , Serializable {
COMMENT
COMMENT
private static final long serialVersionUID = - NUMBER0 ;
-
- priva... | Remove unneeded field |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
<nb> public final class SingleProducerSequencer extends AbstractSequencer
long minSequence ;
while ( wrapPoint > ( minSequence = Util . getMinimumSequence ( gatingSequences , nextValue ) ) )
{
- Thread . yield ( ) ;
-... | Remove yield SingleProducerSequencer |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class XPathHeaderNameTest extends CamelBlueprintTestSupport {
-
+
@ override
protected String getBlueprintDescriptor ( ) {
return STRING0 ;
<nb> public class XPathHeaderNameTest extends CamelBlueprintTestSupport {
mock . expectedHeaderReceived ( STRI... | Fixed the CS error of XPathHeaderNameTest |
<nb> public class MissingSymbolsHandler {
}
@ subscribe
- public void onBuildFinished ( BuildEvent . Finished event ) throws InterruptedException {
+ public void onBuildFinished ( BuildEvent . Finished event ) {
SINGLE
if ( missingSymbolEvents . get ( event . getBuildId ( ) ) . isEmpty ( ) ) {
return ; ... | Don t spew exceptions when the missing symbol handler times out |
<nb> public final class ConfigFactory {
. resolve ( resolveOptions ) ;
}
+ private static class DefaultConfigHolder {
+ static final Config defaultConfig = load ( STRING0 ) ;
+ }
+
COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
public static Config load ( )... | use a cached singleton for ConfigFactory load |
<nb> public class OCFileListFragment extends ExtendedListFragment {
mf . filter ( menu ) ;
}
- } else {
- getListView ( ) . clearChoices ( ) ;
- menu . clear ( ) ;
- menu . close ( ) ;
}
} | Remove manually destruction of the multiselect menu |
<nb> class ScriptOrFnScope {
void munge ( ) {
- if ( ! markedForMunging ) {
+ if ( ! markedForMunging && parentScope != null ) {
return ;
} | Fixed problem with getHighestFnScope method |
<nb> import NAMESPACE ;
public class TestMessages extends TestCase {
- public void testRelativeDirection ( ) {
+ public void testLanguages ( ) {
String e = Message . GEOCODE_FROM_AMBIGUOUS . get ( ) ;
String f = Message . GEOCODE_FROM_AMBIGUOUS . get ( Locale . CANADA_FRENCH ) ; | rename test to something meaningful |
<nb> public class ExtractEditLayout extends LinearLayout {
mCallback . onDestroyActionMode ( this ) ;
mCallback = null ;
+ mMenu . close ( ) ;
+
mExtractActionButton . setVisibility ( VISIBLE ) ;
mEditButton . setVisibility ( INVISIBLE ) ; | Fixed memory leak in ExtractEditLayout finish |
<nb> public class PrimitiveValue
switch ( representation )
{
case LONG :
- if ( longValue == rhs . longValue )
- {
- return true ;
- }
- break ;
+ return longValue == rhs . longValue ;
case DOUBLE :
- if ( doubleToLongBits ( doubleValue ) == doubleToLongBits ( rhs . doubleValue ) )
- {
- ret... | Simplify logic in PrimitiveValue equals |
<nb> public class MavenSelectProjectPopup {
@ override
public void keyPressed ( KeyEvent e ) {
if ( e . getKeyCode ( ) == KeyEvent . VK_DOWN ) {
- e . consume ( ) ;
- showModulesButton . doClick ( ) ;
+ if ( ! e . isConsumed ( ) ) { SINGLE
+ e . consume ( ) ;
+ showModulesButton . doClick ( ) ;
+ }
... | Down key with completion list opened shows Select maven project popup |
<nb> import NAMESPACE ;
COMMENT
public class AhcComponent extends HeaderFilterStrategyComponent {
- private static final transient Logger LOG = LoggerFactory . getLogger ( AhcComponent . class ) ;
+ private static final Logger LOG = LoggerFactory . getLogger ( AhcComponent . class ) ;
private static final... | Removed obsolete transient modifier from static fields |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
class SArrayEach extends AStatement {
final int maxLoopCounter ;
final String type ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
public class SEac... | Updated package info documentation |
<nb> public final class CheckUtils {
COMMENT
private CheckUtils ( ) {
- throw new UnsupportedOperationException ( ) ;
}
COMMENT
<nb> public abstract class AbstractJavadocCheck extends Check {
errorMessage = new ParseErrorMessage ( lineNumber ,
JAVADOC_MISSED_HTML_CLOSE , charPositionInLine , token .... | Fix exception creation without any arguments specified |
<nb> public class JBTabsImpl extends JComponent
boolean clearSelection = info . equals ( mySelectedInfo ) ;
processRemove ( info , false ) ;
if ( clearSelection ) {
- mySelectedInfo = null ;
+ mySelectedInfo = info ;
}
_setSelected ( toSelect , transferFocus ) . doWhenProcessed ( new Runnable ( ) {
publ... | Calculate new selection after remove tab |
<nb> public class DBeaverApplication implements IApplication {
try {
debugWriter = new FileOutputStream ( debugLogFile ) ;
oldSystemOut = System . out ;
- oldSystemErr = System . out ;
+ oldSystemErr = System . err ;
System . setOut ( new PrintStream ( new ProxyPrintStream ( debugWriter , oldSystemOut ) ) )... | Debug logger redesign dump all stdout and stderr in log |
<nb> public class RoutedStore implements Store < ByteArray , byte [ ] > {
logger . trace ( STRING0 + formatNodeValues ( nodeValues ) ) ;
SINGLE
- if ( repairReads && retrieved . size ( ) > NUMBER0 )
+ if ( repairReads && nodeValues . size ( ) > NUMBER0 )
repairReads ( nodeValues ) ;
if ( successes >= th... | Decide the need of repairReads based on nodeValues that is actually collected to keep track of items needing repair |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SingletonComponentDescription extends SessionBeanComponentDescripti
@ override
public void configure ( final DeploymentPhaseContext context ,... | Add ConcurrencyManagementInterceptor to timer view |
<nb> public class VoiceRouter {
} else {
playMakeTurn ( currentSegment , next , null ) ;
}
- if ( nextNextInfo . distanceTo < TURN_IN_DISTANCE && isTargetPoint ( nextNextInfo ) ) {
+ if ( nextNextInfo . distanceTo < TURN_IN_DISTANCE_END && isTargetPoint ( nextNextInfo ) ) {
if ( ! next . getTurnType ( ) . g... | fix small issue in voice router where destination would have been pre announced twice |
<nb> public final class AnalyticsTracker {
}
public static void init ( Context context ) {
- loadPrefHasUserOptedOut ( context , false ) ;
+ loadPrefHasUserOptedOut ( context ) ;
}
- public static void loadPrefHasUserOptedOut ( Context context , boolean manageSession ) {
+ public static void loadPrefH... | remove unused manageSession parameter |
<nb> class ExpandableRecyclerViewWrapperAdapter
}
}
+ COMMENT
+ return mExpandableItemAdapter . getGroupCount ( ) ;
+ }
+
+ COMMENT
+ return mExpandableItemAdapter . getChildCount ( groupPosition ) ;
+ }
private static ExpandableItemAdapter getExpandableItemAdapter ( RecyclerView . Adapter adapt... | Add getGroupCount and getChildCount methods to RecyclerViewExpandableItemManager |
<nb> public class EditQuestionAction extends PortletAction {
deleteQuestion ( req ) ;
}
- sendRedirect ( req , res ) ;
+ if ( Validator . isNotNull ( cmd ) ) {
+ sendRedirect ( req , res ) ;
+ }
}
catch ( Exception e ) {
if ( e != null && | Fix refresh bug |
<nb> final class EditorTabbedContainer implements Disposable , CloseAction . CloseTarget
final ActionManager mgr = ActionManager . getInstance ( ) ;
mgr . tryToExecute ( mgr . getAction ( STRING0 ) , e , null , ActionPlaces . UNKNOWN , true ) ;
}
- else if ( UIUtil . isActionClick ( e ) && ( e . isMetaDown ( ) ... | show file path popup on mouse up not mouse down |
<nb> public class MainActivity extends AppCompatActivity implements View . OnClickListe
SINGLE
ViewPager viewpager = ( ViewPager ) findViewById ( R . id . viewpager ) ;
viewpager . setAdapter ( new MainPagerAdapter ( this , getSupportFragmentManager ( ) ) ) ;
+ viewpager . setOffscreenPageLimit ( MainPagerAdapt... | Keep all tabs loaded |
<nb> public class SignalStrength implements Parcelable {
COMMENT
COMMENT
public int getLteDbm ( ) {
- log ( STRING0 ) ;
+ log ( STRING1 ) ;
int level = - NUMBER0 ;
if ( DBG ) log ( STRING2 + level ) ;
return level ;
<nb> public class SignalStrength implements Parcelable {
COMMENT
COMMENT
public ... | Change stopship to todo |
<nb> import NAMESPACE ;
public class SignalStrengthTracker {
public static final String TAG = STRING0 ;
- private static int sleepTimeBetweenSignalRegistration = NUMBER0 ; SINGLE
- private static int sleepTimeBetweenPersistation = NUMBER1 ; SINGLE
- private static int minimumIdleTime = NUMBER2 ; SINGLE
+ ... | Re adjusted some levels for Signal Strength Tracker |
<nb> public class Es6RewriteArrowFunction extends NodeTraversal . AbstractPreOrderCallb
static final DiagnosticType THIS_REFERENCE_IN_ARROWFUNC_OF_OBJLIT = DiagnosticType . warning (
STRING0 ,
- STRING1
+ STRING2
+ STRING3 ) ;
private final AbstractCompiler compiler ; | Fix a small typo in Es6RewriteArrowFunction |
<nb> public class Config extends HashMap < String , Object > {
public static String UI_PORT = STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ public static String UI_CHILDOPTS = STRING1 ;
+
+
+ COMMENT
COMMENT
COMMENT
public static String DRPC_SERVERS = STRING2 ; | add ui childopts to Config class |
<nb> public class EmailInvoiceNotifier implements InvoiceNotifier {
throw new InvoiceApiException ( e , ErrorCode . EMAIL_SENDING_FAILED ) ;
}
- SINGLE
- final String subject = STRING0 ;
+ final String subject = config . getInvoiceEmailSubject ( ) ;
final EmailSender sender = new DefaultEmailSender ( co... | set sane default for invoice email subject |
<nb> final class Settings {
StringBuilder sb = new StringBuilder ( ) ;
for ( final PackageSetting pkg : mPackages . values ( ) ) {
+ if ( pkg . pkg == null || pkg . pkg . applicationInfo == null ) {
+ Slog . w ( TAG , STRING0 + pkg + STRING1 ) ;
+ continue ;
+ }
+
final ApplicationInfo ai = pkg . pkg ... | Skip packages with missing metadata |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class EigenvectorCentralityArnoldiTest extends EigenvectorCentralityTest
return new EigenvectorCentralityArnoldi ( relationDirection ,
costEvaluator , nodeSet , relat... | Disabled a test which just keeps failing randomly although very seldomly |
<nb> public class GradientDrawable extends Drawable {
mUseLevel = state . mUseLevel ;
mUseLevelForShape = state . mUseLevelForShape ;
mOpaqueOverBounds = state . mOpaqueOverBounds ;
+ mOpaqueOverShape = state . mOpaqueOverShape ;
mThemeAttrs = state . mThemeAttrs ;
mAttrSize = state . mAttrSize ;
mAttrGra... | Copy opaque over shape in GradientDrawable copy constructor |
<nb> public class PluginManager {
@ nonnls private static final String PROPERTY_PLUGIN_PATH = STRING0 ;
private static final Object PLUGIN_CLASSES_LOCK = new Object ( ) ;
private static String myPluginError = null ;
- @ nonnls private static final String CORE_PLUGIN_ID = STRING1 ;
+ @ nonnls public static fin... | constant made public |
<nb> public final class HdmiRecordSources {
COMMENT
@ systemapi
public static boolean checkRecordSource ( byte [ ] recordSource ) {
+ if ( recordSource == null || recordSource . length == NUMBER0 ) return false ;
+
int recordSourceType = recordSource [ NUMBER0 ] ;
int extraDataSize = recordSource . length... | Do null empty check against the parameter for checkRecordSource |
<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 ;
import NAMES... | Remove unused imports |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RefManagerImpl extends RefManager {
else if ( SmartRefElementPointer . PROJECT . equals ( type ) ) {
return getRefProject (... | expand path macros in dir fqname |
<nb> import NAMESPACE ;
COMMENT
public class PGPKeyAccessDataFormat extends ServiceSupport implements DataFormat , DataFormatName {
- private static final Logger log = LoggerFactory . getLogger ( PGPKeyAccessDataFormat . class ) ;
-
public static final String KEY_USERID = STRING0 ;
public static final Str... | removing source check error |
<nb> public class FileInstall {
if ( new File ( expectedPath ) . isFile ( ) ) {
return expectedPath ;
} else {
+ logger . warn ( STRING0 , expectedPath ) ;
return null ;
}
} | add warning if the jruby jar cannot be found |
<nb> public class ClientCacheClearTest extends CacheClearTest {
protected void onTearDown ( ) {
super . onTearDown ( ) ;
SINGLE
- SINGLE
+ SINGLE
client = null ;
}
<nb> public class ClientCachePutAllTest extends CachePutAllTest {
protected void onTearDown ( ) {
super . onTearDown ( ) ;
SINGLE
... | Fixed overriden typo |
<nb> public class PGraphicsOpenGL extends PGraphics {
protected WeakHashMap < PFont , FontTexture > fontMap ;
SINGLE
- protected PSurfaceJOGL surfaceJOGL ;
+ static protected PSurfaceJOGL surfaceJOGL ;
SINGLE | make surfaceJOGL static to take care of |
<nb> public final class Matcher {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix Javadoc warning |
<nb> final class ActivityStack {
}
if ( activityRemoved ) {
- resumeTopActivityLocked ( null ) ;
+ synchronized ( mService ) {
+ resumeTopActivityLocked ( null ) ;
+ }
}
return res ; | Added synchronization block to avoid race condition |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class AccuracyTestingFramework extends TestNGUtil {
- static HashMap < Integer , DataSet > dataSets = new HashMap < Integer , DataSet > ( ) ;
-
@ dataprovider ( name = STRING0 )
public Object [ ] [ ] testCaseProvider ( ) {
SINGLE | remove unnecessary field from AccuracyTestingFramework |
<nb> public class NotificationService extends IntentService {
} else {
SINGLE
SINGLE
- int count = NUMBER0 ;
final List < Integer > notifyPositions = Lists . newArrayList ( ) ;
final long latestTimeCleared = NotificationSettings . getLastCleared ( this ) ;
final long latestTimeToInclude = customCurrentTim... | Fix correct last cleared time getting stored |
<nb> public class SerializableEntityCache implements EntityCache {
}
if ( ids . size ( ) == NUMBER0 ) {
keyClass = ids . iterator ( ) . next ( ) . classType ( ) ;
+ if ( keyClass . isPrimitive ( ) ) {
+ if ( keyClass == int . class ) {
+ keyClass = Integer . class ;
+ } else if ( keyClass == long . class ... | Move isPrimitive check |
<nb> public class FormTagLibTests extends AbstractTagLibTests {
private void assertSelectFieldPresentWithSelectedValue ( Document document , String fieldName , String value ) {
XPath xpath = new DefaultXPath ( STRING0 + fieldName + STRING1 + value + STRING2 ) ;
- assertTrue ( xpath . booleanValueOf ( document )... | to resolve failing test will ask jason what the purpose of this test is |
<nb> public abstract class ByteToMessageCodec < INBOUND_OUT , OUTBOUND_IN >
encoder . freeOutboundBuffer ( ctx ) ;
}
- protected boolean isEncodable ( Object msg ) throws Exception {
+ public boolean isEncodable ( Object msg ) throws Exception {
return encoder . isEncodable ( msg ) ;
} | Make ByteToMessageCodec isEncodable public like other similar methods |
<nb> public class SheetController {
void requestFocus ( ) {
final JComponent focusedComponent = ( myDoNotAskOption == null ) ? myFocusedButton : doNotAskCheckBox ;
if ( focusedComponent == null ) return ; SINGLE
- focusedComponent . requestFocusInWindow ( ) ;
+ if ( SystemInfo . isAppleJvm ) {
+ focusedComp... | sometimes message doesn t get focus |
<nb> public abstract class StreamInput extends InputStream {
COMMENT
COMMENT
COMMENT
+ @ nullable
public < C extends NamedWriteable < ? > > C readNamedWriteable ( @ suppresswarnings ( STRING0 ) Class < C > categoryClass ) throws IOException {
throw new UnsupportedOperationException ( STRING1 ) ;
}
<nb> ... | Fix javadoc for new methods |
<nb> public class GELFProcessor {
fieldValue = value . asDouble ( ) ;
} else if ( value . isIntegralNumber ( ) ) {
fieldValue = value . asLong ( ) ;
- } else {
+ } else if ( value . isNull ( ) ) {
+ LOG . debug ( STRING0 , key ) ;
+ continue ;
+ } else if ( value . isTextual ( ) ) {
fieldValue = value... | improve JSON field type handling for GELF processing |
<nb> public class Config {
default_map . put ( STRING0 , STRING1 ) ;
default_map . put ( STRING2 , STRING3 ) ;
default_map . put ( STRING4 , STRING1 ) ;
+ default_map . put ( STRING5 , STRING1 ) ;
+ default_map . put ( STRING6 , STRING3 ) ;
default_map . put ( STRING7 , STRING1 ) ;
default_map . put ( STR... | Add configuration options for RTPublisher plugins |
<nb> public abstract class IntroduceVariableBase extends IntroduceHandlerBase impleme
if ( ! IntroduceVariableBase . isLoopOrIf ( container ) ) {
if ( expr . getParent ( ) instanceof PsiExpressionStatement && anchor . equals ( anchorStatement ) ) {
PsiStatement statement = ( PsiStatement ) expr . getParent ( ) ; ... | introduce variable extended for fabrique |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
public abstract class AbstractHazelcastCachingProvider
<nb> public abstract class AbstractHazelcastC... | edited exception message |
<nb> public class GraphiteReporter extends AbstractPollingReporter implements MetricP
sendFloat ( epoch , STRING0 , STRING1 , vm . heapUsage ( ) ) ;
sendFloat ( epoch , STRING0 , STRING2 , vm . nonHeapUsage ( ) ) ;
for ( Entry < String , Double > pool : vm . memoryPoolUsage ( ) . entrySet ( ) ) {
- sendFloat ( ... | Sanitize memory pool names in GraphiteReporter |
<nb> abstract class AbstractTFS extends FileSystem {
return this . create ( cPath , permission , overwrite , bufferSize , replication , blockSize , progress ) ;
}
- @ override
- @ deprecated
- public boolean delete ( Path path ) throws IOException {
- return delete ( path , true ) ;
- }
-
COMMENT
... | Remove deprecated API method delete from AbstractTFS |
<nb> public final class ScreenMagnifier implements EventStreamTransformation {
mDisplayContentChangeListener = new IDisplayContentChangeListener . Stub ( ) {
@ override
public void onWindowTransition ( int displayId , int transition , WindowInfo info ) {
- mHandler . obtainMessage ( MESSAGE_ON_WINDOW_TRANSITION... | Magnified frame not properly computed when keyguard goes away |
<nb> public class ImageMemoryCache extends PreloadDataCache < String , Drawable > {
Drawable drawable = object . getData ( ) ;
if ( drawable != null ) {
if ( onImageCallbackListener != null ) {
- onImageCallbackListener . onGetSuccess ( imageUrl , drawable , view , true ) ;
+ onImageCallbackListener . onGetSu... | fix drawable be used common leading to imageView scaleType error bug |
<nb> public class MailSenderValidatorAutoConfiguration {
this . mailSender . testConnection ( ) ;
}
catch ( MessagingException ex ) {
- throw new IllegalStateException ( STRING0 , ex ) ;
+ throw new IllegalStateException ( STRING1 , ex ) ;
}
} | Fix mail connection test exception message |
<nb> public class SSHUtil {
SINGLE
try {
File file = new File ( PUB_KEY ) ;
- FileUtils . forceDelete ( file ) ;
+ if ( file . exists ( ) ) {
+ FileUtils . forceDelete ( file ) ;
+ }
} catch ( Exception ex ) {
log . error ( ex . toString ( ) , ex ) ;
}
<nb> public class SSHUtil {
SINGLE
try { ... | Added file exists check |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NodeEngineImpl implements NodeEngine {
return node . getSerializationService ( ) ;
}
- public PortableContext getPortab... | Removed NodeEngineImpl getPortableContext since unused |
<nb> public class MinAggregationFunction < T extends Comparable < T > > extends Aggregation
@ override
public String toString ( ) {
- return STRING0 ;
+ return STRING1 ;
}
SINGLE | fixes toString return value of min aggregation |
<nb> public class TestStringTemplateInheritance extends UtilTestSuite {
InputStream entityStream ;
InputStream kombuchaStream ;
- @ beforemethod
+ @ beforemethod ( groups = STRING0 )
public void setUp ( ) throws Exception {
entityStream = this . getClass ( ) . getResourceAsStream ( STRING1 ) ;
kombuchaS... | add missing groups in TestStringTemplateInheritance |
<nb> public class Groovyc extends MatchingTask {
}
}
- private static File createTempDir ( ) {
+ protected File createTempDir ( ) {
File tempFile ;
try {
tempFile = File . createTempFile ( STRING0 , STRING1 ) ; | changed createTempDir to protected so it can be overriden by sub classes |
<nb> public final class OperatorDebounceWithTime < T > implements Operator < T , T > {
public void emit ( int index , Subscriber < T > onNextAndComplete , Subscriber < ? > onError ) {
T localValue ;
boolean localHasValue ;
- boolean localTerminate ;
synchronized ( this ) {
if ( emitting || ! hasValue || ind... | Removed localTerminate as it is never observed as true at that point |
<nb> public abstract class AbstractLocalAlluxioCluster {
COMMENT
protected void runWorker ( ) throws IOException , ConnectionFailedException {
mWorker = new DefaultAlluxioWorker ( ) ;
- Whitebox . setInternalState ( DefaultAlluxioWorker . class , STRING0 , mWorker ) ;
+ Whitebox . setInternalState ( AlluxioWo... | Fix whitebox usages |
<nb> public class PackagesPane extends WorkbenchPane implements Packages . Display
packagesTable_ . addColumn ( packratSourceColumn , new TextHeader ( STRING0 ) ) ;
SINGLE
- packagesTable_ . setColumnWidth ( nameColumn , NUMBER0 , Unit . PCT ) ;
- packagesTable_ . setColumnWidth ( descColumn , NUMBER1 , Unit ... | allocate more space for package name in Packrat mode |
<nb> public class XBreakpointTypeGroup extends XBreakpointGroup {
if ( o instanceof XBreakpointTypeGroup ) {
if ( ( ( XBreakpointTypeGroup ) o ) . myBreakpointType instanceof XLineBreakpointType ) {
if ( myBreakpointType instanceof XLineBreakpointType ) {
- return ( ( XLineBreakpointType ) ( ( XBreakpointTypeGr... | cannot select items in Field Watchpoints section |
<nb> public class CodeBrowserEditingTargetWidget extends ResizeComposite
SINGLE
SINGLE
SINGLE
- SINGLE
- SINGLE
- SINGLE
+ SINGLE
Pattern pattern = Pattern . create ( STRING0 ) ;
code = pattern . replaceAll ( code , new ReplaceOperation ( )
{ | update comment on derivation of indentation levels |
<nb> public class GrizzlyServer {
SINGLE
SINGLE
SINGLE
- final String clientPath = STRING0 ;
+ final String clientPath = STRING1 ;
httpServer . getServerConfiguration ( ) . addHttpHandler ( new StaticHttpHandler ( clientPath ) , STRING2 ) ;
COMMENT | Allow easier usage of OTP standalone |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public class GenericFileRenameExclusiveReadLockStrategy < T > implements GenericFileExclusiveReadLockStrategy < T > {
<nb> public class IrcConfiguration implements Cloneable {
private boolean onKick = true ;
private boolea... | Fixed the CS error and a typo |
<nb> public class TypeInfo {
fieldType = Field . Type . SIMPLEMAP ;
}
- } else if ( typeName . equals ( STRING0 ) ) {
+ } else if ( typeName . equals ( STRING0 ) || typeName . equals ( STRING1 ) ) {
TypeInfo valueInfo = new TypeInfo ( i . next ( ) ) ;
fullName = valueInfo . getFullName ( ) ;
if ( valueI... | added support for maps |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MockPaymentControlProviderPlugin implements PaymentControlPluginApi
@ override
public OnSuccessPaymentControlResult onSu... | Fix test regression because of incorrect mock class |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PostUploadService extends Service {
}
private int getNotificationIdForPost ( Post post ) {
- int remotePostId = NUMBER0... | use StringUtils stringToInt utility |
<nb> public final class ES6ModuleLoader {
}
private static URI createUri ( String input ) {
- String forwardSlashes = input . replace ( STRING0 , MODULE_SLASH ) ;
+ SINGLE
+ String forwardSlashes = input . replace ( STRING1 , STRING2 ) . replace ( STRING0 , MODULE_SLASH ) ;
return URI . create ( forwardSl... | with before calling URI create in ES6ModuleLoader |
<nb> public class BatteryController extends StateController {
SINGLE
BatteryService batteryService = ( BatteryService ) ServiceManager . getService ( STRING0 ) ;
if ( batteryService != null ) {
- mBatteryHealthy = ! batteryService . isBatteryLow ( ) ;
+ mBatteryHealthy = ! batteryService . getBatteryLevelLow ... | Fix build breakage in BatteryController |
<nb> public class NewsListFragment extends Fragment
}
private boolean shouldSubscribeToZhihu ( ) {
- return isToday || shouldUseAccelerateServer ( ) ;
+ return isToday || ! shouldUseAccelerateServer ( ) ;
}
private boolean shouldUseAccelerateServer ( ) { | Fix shouldSubscribeToZhihu logic |
<nb> public class LagartoDOMBuilderTagVisitor implements TagVisitor {
SINGLE
while ( thisNode != matchingParent ) {
String thisNodeName = thisNode . getNodeName ( ) . toLowerCase ( ) ;
+
if ( thisNodeName . equals ( STRING0 ) || thisNodeName . equals ( STRING1 ) || thisNodeName . equals ( STRING2 ) ) {
St... | Using int instead of Integer for ie version |
<nb> public class Message {
return getFieldAs ( String . class , FIELD_SOURCE ) ;
}
+ public void setSource ( final String source ) {
+ fields . put ( FIELD_SOURCE , source ) ;
+ }
+
public void addField ( final String key , final Object value ) {
SINGLE
if ( RESERVED_FIELDS . contains ( key ) && ! ... | Override source if config option is set |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.