diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> class MountService extends IMountService . Stub
Configuration config = new Configuration ( ) ;
config . setLocale ( locale ) ;
try {
- ActivityManagerNative . getDefault ( ) . updateConfiguration ( config ) ;
+ ActivityManagerNative . getDefault ( ) . updatePersistentConfiguration ( config ) ;
} catch ... | Fix incorrect boot time locale |
<nb> public final class BlockMaster extends AbstractMaster implements ContainerIdGene
SINGLE
COMMENT
private final ConcurrentHashMap < Long , MasterBlockInfo >
- mBlocks = new ConcurrentHashMap < > ( NUMBER0 , FLOAT0 , NUMBER1 ) ;
+ mBlocks = new ConcurrentHashMap < > ( NUMBER0 , FLOAT1 , NUMBER1 ) ;
COMMEN... | Set desired size parameters |
<nb> public class Viterbi implements Serializable {
private INDArray possibleLabels ;
private int states ;
- private double logPCorrect = FastMath . log ( pCorrect ) ;
- private double logPIncorrect = FastMath . log ( NUMBER0 - pCorrect / states - NUMBER0 ) ;
+ private double logPCorrect ;
+ private doubl... | Fix bug in Viterbi |
<nb> public class JspC extends Task implements Options {
protected static final String SWITCH_DUMP_SMAP = STRING0 ;
protected static final String SWITCH_VALIDATE_TLD = STRING1 ;
protected static final String SWITCH_VALIDATE_XML = STRING2 ;
- protected static final String SWITCH_BLOCK_EXTERNAL = STRING3 ;
prot... | Remove now unused constants |
<nb> public class Files
if ( hasNavigatedToDirectory_ )
return ;
- FileSystemItem start = value != null
- ? FileSystemItem . createDir ( value )
+ SINGLE
+ String path = value ;
+ if ( session_ . getSessionInfo ( ) . getActiveProjectFile ( ) == null )
+ path = null ;
+
+ FileSystemItem start = pat... | only respect saved files pane path for projects |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
+ @ deprecated
public class LazyWriteableDBCallback extends LazyDBCallback {
public LazyWriteableDBCallback ( DBCollection coll ) {
<nb> package NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
+ @ deprecat... | Deprecated LazyWriteableDBObject and related classes |
<nb> public class ConversationAdapter extends ArrayAdapter < Conversation > {
if ( message . getImageParams ( ) . width > NUMBER0
&& ( message . getDownloadable ( ) == null
- || message . getDownloadable ( ) . getStatus ( ) == Downloadable . STATUS_DELETED ) ) {
+ || message . getDownloadable ( ) . getStatus ... | fixed missing image preview |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ReaderCommentAdapter extends BaseAdapter {
}
}
- return super . onTouchEvent ( textView , buffer , event ) ;
+ try {
+ return super . onTouchEvent ( textView , buffer , even... | Added exception handler to catch malformed urls |
<nb> public class AssignmentWithIfExpressionToStatementIntention extends BaseIntentio
while ( element != null ) {
if ( CodeTransformationUtils . checkAssignmentWithIfExpression ( element ) ) return ( JetBinaryExpression ) element ;
- element = PsiTreeUtil . getParentOfType ( element , JetBinaryExpression . clas... | Fix bug in intention which caused hanging out |
<nb> public class HighlightUsagesHandler extends HighlightHandlerBase {
return ( ( PsiPointcutDef ) element ) . getNameIdentifier ( ) ;
}
- if ( element instanceof PsiNamedElement ) {
+ if ( element . isPhysical ( ) && element instanceof PsiNamedElement && element . getContainingFile ( ) != null ) {
SINGLE ... | Extract include file refactoring |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
} ) . setAsSecondary ( true ) ;
}
- if ( ! Platform... | improve Show Members opption suppression |
<nb>
package 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 NAMESPACE ;
+ import NAMESPACE ;
... | Create a copy of the fields because gelfj modifies them |
<nb> public class AttributeEqualBuilder implements CategoryBuilder {
}
public boolean init ( Graph graph ) {
+ values = new ArrayList < Object > ( ) ;
return true ;
} | Fix bug in AttributeEqualBuilder init |
<nb> public abstract class BackupAgent extends ContextWrapper {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
... | clarify onQuotaExceeded documentation |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class SaripaarFieldsComparator implements Comparator < Field > {
+ class SaripaarFieldsComparator implements Comparator < Field > {
private boolean mOrderedFields = true ;
@ override
- public int compare ( Field lhsField , Field rhsField ) {
+... | SaripaarFieldsComparator Reduce visibility to package |
<nb> public class ThreadRenamingRunnable implements Runnable {
boolean renamed = false ;
if ( ! oldThreadName . equals ( newThreadName ) ) {
try {
- System . out . println ( newThreadName ) ;
+ SINGLE
thread . setName ( newThreadName ) ;
renamed = true ;
} catch ( SecurityException e ) { | Commented out System out println |
<nb> public class VisitorState {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public Type getTypeFromString ( String typeStr ) {
validateTypeStr ( typeStr ) ; | Improve getTypeFromString javadoc |
<nb> public final class XGeoUtils {
public static final short BITS = NUMBER0 ;
private static final double LON_SCALE = ( NUMBER1 < < BITS ) / FLOAT0 ;
private static final double LAT_SCALE = ( NUMBER1 < < BITS ) / FLOAT1 ;
- public static final double TOLERANCE = FLOAT2 ;
+ public static final double TOLERANC... | Relax geopoint comparison tolerance |
<nb> public class JsAst implements SourceAst {
ImmutableList . Builder < JSError > builder = ImmutableList . < JSError > builder ( ) ;
for ( int i = startErrorCount ; i < errors . length ; i ++ ) {
JSError error = errors [ i ] ;
- Preconditions . checkState ( error . node == null ) ;
+ Preconditions . checkSt... | Improve the precondition check message to assist in debugging future issues |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ExtractXPathWithNamespaceTest extends ContextTestSupport {
public void testXPathWithNamespaceDifferentNamespace ( ) throws Exception {
MockEndpoint mock = getMockEndpo... | fixed a broken unit test in org apache camel builder xml ExtractXPathWithNamespaceTest |
<nb> public class PatchedWeakReference < T > extends WeakReference < T > {
if ( ourRefsList . size ( ) % NUMBER0 == NUMBER1 ) {
int i = NUMBER1 ;
}
- COMMENT
synchronized ( ourQueue ) {
ourRefsList . add ( this ) ;
}
- COMMENT
}
COMMENT | oops enable PatchedWeakReference back |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Correct annotation referenced in SourceURI javadoc |
<nb> public class DependencyInjectorGenerator {
private String var ( @ notnull DiType type ) {
StringBuilder sb = new StringBuilder ( ) ;
- sb . append ( StringUtil . decapitalize ( type . getClazz ( ) . getSimpleName ( ) . replaceFirst ( STRING0 , STRING1 ) ) ) ;
+ sb . append ( StringUtil . decapitalize ( t... | properly generate bean name for class Impl |
<nb> public class MetadataStoreTest extends TestCase {
( int ) Math . random ( ) * NUMBER0 ,
partition ,
Arrays . asList ( STRING0 ) ,
- ( int ) Math . random ( ) * NUMBER1 ) . toString ( ) ,
+ ( int ) Math . random ( ) * NUMBER1 ) . toJsonString ( ) ,
STRING1 ) ;
} | Fixed failing metadataStoreTest |
<nb> public class SpaceReserver implements HeartbeatExecutor {
long bytesReserved = mBytesToReserveOnTiers . get ( tierAlias ) ;
try {
mBlockWorker . freeSpace ( Sessions . MIGRATE_DATA_SESSION_ID , bytesReserved , tierAlias ) ;
- } catch ( WorkerOutOfSpaceException e ) {
- LOG . warn ( e . getMessage ( ) ) ;... | Simplify exception handling in SpaceReserver |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JavaFxInjectPageLanguageIntention extends PsiElementBaseIntentionAc
@ override
public boolean isAvailable ( @ notnull Project project , Edit... | disable intention to inject languages when no languages are available |
<nb> public class AndroidTreeView {
} ) ;
}
-
SINGLE
SINGLE
<nb> public class AndroidTreeView {
TreeNode . BaseNodeViewHolder viewHolder = node . getViewHolder ( ) ;
if ( viewHolder == null ) {
try {
- final Object object = defaultViewHolderClass . getConstructor ( Context . class ) . newInstanc... | removed redundant array creation |
<nb> public class ScriptRunner {
this . removeCRs = removeCRs ;
}
+ COMMENT
+ COMMENT
+ COMMENT
public void setEscapeProcessing ( boolean escapeProcessing ) {
this . escapeProcessing = escapeProcessing ;
} | added missing since tag in recently added API |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ColumnFamilyInputFormat extends InputFormat < String , SortedMap < byte [
SINGLE
String [ ] endpoints = range . endpoints . toArray ( new String [ range . end... | Provide correct locations so that Hadoop can schedule map tasks close to the data |
<nb> class ApplyPatchViewer implements DataProvider , Disposable {
if ( myDisposed ) return ;
myDisposed = true ;
+ Disposer . dispose ( myModel ) ;
+
Disposer . dispose ( myResultHolder ) ;
Disposer . dispose ( myPatchHolder ) ;
} | dispose MergeModelBase in apply somehow dialog |
<nb> public class InstrumentationTestCase extends TestCase {
getInstrumentation ( ) . runOnMainSync ( new Runnable ( ) {
public void run ( ) {
try {
- m . invoke ( this ) ;
+ m . invoke ( InstrumentationTestCase . this ) ;
} catch ( Throwable throwable ) {
exceptions [ NUMBER0 ] = throwable ;
} | Fix crash with UiThreadTest in InstrumentationTestCase |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class ImageManagerInstrumentationTest extends Instrume... | Suppressed test with no assertions test wasnt covering anything anyway as it threw a NPE |
<nb> public class ConsoleVisitorFilter implements PythonVisitorFilter {
if ( element instanceof PydevConsoleElement || containingFile . getCopyableUserData ( PydevConsoleRunner . CONSOLE_KEY ) != null ) {
SINGLE
if ( visitorClass == PyUnusedLocalInspectionVisitor . class || visitorClass == PyUnboundLocalVariableI... | Using ConsoleFilterVisitor to prevent PyStatementEffectInspection running in console |
<nb> public class ImapStore extends Store {
message . parse ( literal ) ;
SINGLE
- return new Integer ( NUMBER0 ) ;
+ return Integer . valueOf ( NUMBER0 ) ;
}
return null ;
} | Prefer Integer valueOf over explicit boxing |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class BitmapImageViewTarget extends ImageViewTarget < Bitmap > {
- private final ImageView view ;
-
public BitmapImageViewTarget ( ImageView view ) {
super ( view ) ;
- this . view = view ;
}
COMMENT
<nb> import NAMESPACE ;
COMMENT
public class ... | Remove redundant fields exiting in super as well with same type |
<nb> public class MaxHistory implements Serializable {
}
return new MaxHistory ( storedResults ) ;
}
-
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
private static MaxHistory readHistory ( File storedResults ) throws CouldNotReadCore... | Removed commented out code |
<nb> public class TextEditingTargetCompilePdfHelper
private static final Pattern concordancePattern_ = Pattern . create (
STRING0 ) ;
- private HashMap < String , RnwChunkOptions > chunkOptionsCache_ =
+ private static HashMap < String , RnwChunkOptions > chunkOptionsCache_ =
new HashMap < String , RnwChunk... | make chunk options cache static |
<nb> public abstract class AbstractAjpProcessor < S > extends AbstractProcessor < S > {
swallowResponse = true ;
}
- SINGLE
+ SINGLE
SINGLE
MessageBytes methodMB = request . method ( ) ;
if ( methodMB . equals ( STRING0 ) ) {
<nb> public abstract class AbstractAjpProcessor < S > extends AbstractProces... | Fix comment typo |
<nb> public class MainService extends Service {
@ override
public void onCreate ( ) {
+ super . onCreate ( ) ;
Crashlytics . start ( this ) ; | Call super onCreate |
<nb> public class FileSystemMasterClientIntegrationTest {
}
@ test ( timeout = NUMBER0 , expected = TachyonException . class )
- public void user_getClientBlockInfoReturnsOnError ( ) throws IOException , TachyonException {
+ public void getFileInfoReturnsOnErrorTest ( ) throws IOException , TachyonException {... | Removing an obsolete test from FileSystemMasterClientIntegrationTest |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BulkIndexer implements Startable {
public BulkIndexer ( EsClient client , String indexName ) {
this . client = client ;
this . indexName = i... | Fix bad merge |
<nb> public abstract class BTreeKeySerializer < KEY , KEYS > {
} ;
protected static int commonPrefixLen ( byte [ ] [ ] bytes ) {
+ SINGLE
for ( int ret = NUMBER0 ; ; ret ++ ) {
if ( bytes [ NUMBER0 ] . length == ret ) {
return ret ; | add performance TODO |
<nb> import NAMESPACE ;
public class DelegateLexer extends LexerBase {
protected final Lexer myDelegate ;
- public DelegateLexer ( Lexer delegate ) {
+ public DelegateLexer ( @ notnull Lexer delegate ) {
myDelegate = delegate ;
}
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;... | introduce getRootLexer DelegateLexer method |
<nb> public class StubIndexImpl extends StubIndex implements ApplicationComponent , Pe
@ override
public void initComponent ( ) {
- try {
- final boolean forceClean = Boolean . TRUE == ourForcedClean . getAndSet ( Boolean . FALSE ) ;
-
- final StubIndexExtension < ? , ? > [ ] extensions = Extensions . get... | removed extra code from initComponent which was erroneously left |
<nb> public class MyRouteBuilder extends RouteBuilder {
transform . setPrefix ( STRING0 ) ;
from ( STRING1 )
- . bean ( transform , STRING2 )
- . to ( STRING3 ) ;
+ . bean ( transform , STRING2 )
+ . to ( STRING3 ) ;
} | Fixed the CS error of camel example osgi |
<nb> public class LineBreakpoint extends BreakpointWithHighlighter {
LOG . debug ( msg . toString ( ) ) ;
}
- if ( psiFile != null ) {
- final VirtualFile vFile = psiFile . getVirtualFile ( ) ;
- if ( vFile != null && fileIndex . isInSourceContent ( vFile ) ) {
- list . add ( vFile ) ;
- }
+ if ( psiF... | only apply breakpoint isInScope check to those classes that resolve to source content files |
<nb> public class ItemStack implements ConfigurationSerializable {
public static ItemStack deserialize ( Map < String , Object > args ) {
Material type = Material . getMaterial ( ( String ) args . get ( STRING0 ) ) ;
- int damage = NUMBER0 ;
+ short damage = NUMBER0 ;
int amount = NUMBER1 ;
if ( args . ... | Fixed casting in ItemStack deserialize |
<nb> public class BaseLexicon implements Lexicon {
protected void initRulesWithWord ( ) {
if ( testOptions . verbose || DEBUG_LEXICON ) {
- log . info ( STRING0 ) ;
+ log . info ( STRING1 ) ;
}
SINGLE
int unkWord = wordIndex . addToIndex ( UNKNOWN_WORD ) ; | Improve logging message |
<nb> class Subgraph {
os . println ( STRING0 ) ;
os . println ( STRING1 + level + STRING2 ) ;
os . println ( STRING3 ) ;
- os . println ( STRING4 ) ;
rootNode . printDotLevel ( os , level ) ;
os . println ( STRING5 ) ;
} | Remove rank same |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Removed unnecessary dots in the example |
<nb> class BackupManagerService extends IBackupManager . Stub {
synchronized ( mQueueLock ) {
mBackupRunning = false ;
if ( mStatus == BackupConstants . TRANSPORT_NOT_INITIALIZED ) {
+ SINGLE
+ clearMetadata ( ) ;
+ if ( DEBUG ) Slog . d ( TAG , STRING0 ) ;
backupNow ( ) ;
}
}
<nb> class BackupManag... | Gracefully handle needs init transport errors at finish |
<nb> class RelationshipTypeHolder
RelationshipType getRelationshipType ( int id )
{
- return new RelationshipTypeImpl ( relTranslation . get ( id ) ) ;
+ String name = relTranslation . get ( id ) ;
+ if ( name != null )
+ {
+ return new RelationshipTypeImpl ( name ) ;
+ }
+ return null ;
}
pub... | Fixed bug that tried to create non registered relationship when |
<nb> import NAMESPACE ;
public class ExamplePaymentChannelServer implements PaymentChannelServerListener . HandlerFactory {
private static final org . slf4j . Logger log = LoggerFactory . getLogger ( ExamplePaymentChannelServer . class ) ;
- private StoredPaymentChannelServerStates storedStates ;
private Wall... | Fixing NPE in ExamplePaymentChannelServer due to using unintialized state |
<nb> public class CollectionAddedToSelfInspection extends ExpressionInspection {
return ;
}
final PsiExpressionList argumentList = call . getArgumentList ( ) ;
- if ( argumentList == null ) {
- return ;
- }
boolean hasMatchingArg = false ;
final PsiExpression [ ] args = argumentList . getExpressions ( )... | remove unneeded null checks |
<nb> public class DateTimeBrowser extends JFrame {
COMMENT
private static void usage ( ) {
System . err . println ( STRING0 ) ;
- System . err . println ( STRING1 ) ;
+ System . err . print ( STRING2 ) ;
+ System . err . print ( DateTimeBrowser . class . getName ( ) ) ;
+ System . err . println ( STRING3 ... | Fixed usage message |
<nb> public class DataSourceBuilder {
}
private void maybeGetDriverClassName ( ) {
- if ( ! this . properties . containsKey ( STRING0 ) ) {
+ if ( ! this . properties . containsKey ( STRING0 )
+ && this . properties . containsKey ( STRING1 ) ) {
String cls = this . driverClassNameProvider . getDriverClass... | Fix bug in DataSourceBuilder |
<nb> public class InjectableObjectFactory implements AtmosphereObjectFactory < Injectab
for ( Object o : postponedMethodExecution ) {
try {
- applyMethods ( o , ( Class < Object > ) instance . getClass ( ) ) ;
+ applyMethods ( o , ( Class < Object > ) o . getClass ( ) ) ;
} catch ( IllegalAccessException e ... | Fix regression respin the release process |
<nb> public class Animation3D {
long timeInPause ;
boolean wasPaused = false ;
- public void run ( ) {
+ public void run ( ) {
if ( mIsPaused ) {
if ( ! wasPaused ) timeInPause = SystemClock . uptimeMillis ( ) ;
wasPaused = true ; | Removed white spaces |
<nb> public final class ExtensionValidator {
continue ;
}
Resource resource = ( Resource ) obj ;
- Manifest jmanifest = getManifest ( resource . streamContent ( ) ) ;
+ inputStream = resource . streamContent ( ) ;
+ Manifest jmanifest = getManifest ( inputStream ) ;
if ( jmanifest != null ) {
ManifestRe... | Explicitly close the stream |
<nb> public class XBinder extends XHook {
STRING0 ,
STRING1 ,
STRING2 ,
- STRING3 ,
+ STRING4 ,
STRING5 ,
STRING6 ,
STRING7 ,
<nb> public class XBinder extends XHook {
new String [ ] { SINGLE
} ,
new String [ ] { SINGLE
- STRING4 ,
} ,
new String [ ] { SINGLE
STRING8 , | Fix binder exception |
<nb> public class BackspaceHandler extends EditorWriteActionHandler {
editor . getDocument ( ) . deleteString ( offset , offset + NUMBER0 ) ;
}
- else if ( c == STRING0 || c == STRING1 ) {
+ else if ( c == STRING0 || c == STRING1 || c == STRING2 ) {
char c1 = chars . charAt ( offset ) ;
if ( c1 != c ) ret... | erasing the first backtick could erase the pair |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
public class Html5Webview extends WebView {
private Context mContext ;
<nb> public class Html5Webview extends WebView {
@ override
public void onHideCustomView ( ) {
- System . out . println ( STRING0... | update doc of Html5Webview |
<nb> public class LoaderTask extends AsyncTask < String , Void , Bitmap > {
this . imageWrapper = imageWrapper ;
this . loaderSettings = loaderSettings ;
this . onImageLoadedListener = onImageLoadedListener ;
- if ( imageWrapper != null ) {
+ if ( imageWrapper != null ) {
setTagInformation ( imageWrapper ) ... | Fixed checkstyle reports of WhitespaceAroundCheck |
<nb> public class ContentTypeMissingScanner extends PluginPassiveScanner {
if ( contentType != null ) {
for ( String contentTypeDirective : contentType ) {
if ( contentTypeDirective . isEmpty ( ) ) {
- this . raiseAlert ( msg , id , contentTypeDirective , true ) ;
+ this . raiseAlert ( msg , id , contentTypeD... | Corrected the alert raised for content type empty |
<nb> public class PresenceTemplate extends AbstractEntity {
@ override
public ContentValues getContentValues ( ) {
+ final String show = status . toShowString ( ) ;
ContentValues values = new ContentValues ( ) ;
values . put ( LAST_USED , lastUsed ) ;
values . put ( MESSAGE , statusMessage ) ;
- values ... | fixed presence template dedup for online status |
<nb> public class SerializablePrincipal implements java . io . Serializable {
if ( roles != null ) {
this . roles = new String [ roles . size ( ) ] ;
this . roles = roles . toArray ( this . roles ) ;
- if ( this . roles . length > NUMBER0 )
+ if ( this . roles . length > NUMBER1 )
Arrays . sort ( this . rol... | Do not sort lists that have only one element |
<nb> public abstract class OperationControlCallback extends OperationCallbackBase < Pay
paymentStateControlContext . isApiPayment ( ) ,
paymentStateContext . getCallContext ( ) ) ;
- final PriorPaymentControlResult pluginResult ;
try {
- pluginResult = executePluginPriorCalls ( paymentStateControlContext . ... | Removes unused variable |
<nb> public interface InputService extends PersistedService {
MessageInput getMessageInput ( Input io ) throws NoSuchInputTypeException ;
List < Map . Entry < String , String > > getStaticFields ( Input input ) ;
-
- Input disable ( Input input ) ;
- Input enable ( Input input ) ;
}
<nb> public class In... | Remove nonexistent methods for now from interface and implementation |
<nb> public final class ParcelableConference implements Parcelable {
List < String > connectionIds = new ArrayList < > ( NUMBER0 ) ;
source . readList ( connectionIds , classLoader ) ;
long connectTimeMillis = source . readLong ( ) ;
- StatusHints statusHints = source . readParcelable ( classLoader ) ;
-
IV... | Fixing issue where conference calls enable speaker phone |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ToroQueryCommandProcessor implements QueryCommandProcessor {
STRING0 ,
new BsonArray (
Lists . newArrayList (
- new BsonInt32 ( buildProperties . getMajorVersion ( ) ) ,
- n... | Returning mongo version instead of toro version from buildInfo |
<nb> final class OperationContextImpl extends AbstractOperationContext {
final Map < ServiceName , ServiceController < ? > > map = realRemovingControllers ;
synchronized ( map ) {
while ( ! map . isEmpty ( ) && ! cancelled ) {
- MGMT_OP_LOGGER . info ( map ) ;
map . wait ( ) ;
}
} | Remove leftover debug log infok |
<nb> public class WorldBuilder {
private final Set < Class < ? extends WorldFacet > > facetCalculationInProgress = Sets . newHashSet ( ) ;
private final List < WorldRasterizer > rasterizers = Lists . newArrayList ( ) ;
private int seaLevel = NUMBER0 ;
+ private Long seed ;
public WorldBuilder addProvider ( ... | Cached seed in WorldBuilder to remove order dependence between setSeed and addProvider |
<nb> import NAMESPACE ;
@ deprecated
@ legacyconsumerinterface ( STRING0 )
public class DefaultIdeaModuleDependency extends org . gradle . plugins . ide . internal . tooling . idea . DefaultIdeaModuleDependency {
- SINGLE
- private static final long serialVersionUID = NUMBER0 ;
}
<nb> import NAMESPACE ;
... | Removed unused fields |
<nb> public class ItemUpdater extends AbstractEventSubscriber {
break ;
}
} catch ( InstantiationException e ) {
- logger . warn ( STRING0 , e . getMessage ( ) ) ; SINGLE
+ logger . warn ( STRING1 , e . getMessage ( ) ) ; SINGLE
} catch ( IllegalAccessException e ) {
- logger . warn ( STRING2 , e . getMes... | fixed logging statement |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class AppEngineFacetEditor extends FacetEditorTab {
private void doAdd ( ) {
final FileChooserDescriptor descriptor = new FileChooserDescriptor ( true , true... | FileChooserDescriptor roots API to use paths instead of virtual files |
<nb> public class ActivityUtils {
boolean newActivity = false ;
try {
- List < User > followers = twitter . getFollowersList ( AppSettings . getInstance ( context ) . myId , - NUMBER0 , NUMBER1 ) ;
+ List < User > followers = twitter . getFollowersList ( useSecondAccount ? AppSettings . getInstance ( context ... | Fix Find new followers according to screen name |
<nb> public class CountersTest extends TestCase {
c1 = Counters . transformWithValuesAdd ( c1 , new Function < String , String > ( ) {
@ override
public String apply ( String in ) {
- return ( ( String ) in ) . toLowerCase ( ) ;
+ return in . toLowerCase ( ) ;
}
} ) ;
System . out . println ( c1 ) ; | Remove an unnecessary cast |
<nb> public class ShowInfoActivity extends BaseActivity {
. setChooserTitle ( R . string . share )
. setText (
getString ( R . string . share_checkout ) + STRING0 + show . getSeriesName ( ) + STRING0
- + ShowInfoActivity . IMDB_TITLE_URL + imdbid ) ;
+ + ShowInfoActivity . IMDB_TITLE_URL + imdbid ) . setType ... | Declare Share intents MIME type so it actually works |
<nb> public class DeltaSession extends StandardSession implements Externalizable , Clus
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ override
protected boolean exclude ( String name ) { | Fix Javadoc typo |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import ... | Removed unused imports organized the remnants |
<nb> public abstract class MenuDrawer extends ViewGroup {
COMMENT
COMMENT
COMMENT
- static final boolean USE_TRANSLATIONS = Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB_MR1 ;
+ static final boolean USE_TRANSLATIONS = Build . VERSION . SDK_INT >= Build . VERSION_CODES . ICE_CREAM_SANDWICH ;
... | Don t use hardware layers before ICS |
<nb> public abstract class StreamTask < OUT , Operator extends StreamOperator < OUT > >
delay ,
TimeUnit . MILLISECONDS ) ;
}
-
- public void checkTimerException ( ) throws TimerException {
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void chec... | Add JavaDoc to StreamTask checkTimerException to clarify what it does |
<nb> public class JLanguageTool {
COMMENT
COMMENT
+ COMMENT
COMMENT
public int getSentenceCount ( ) {
return sentenceCount ; | deprecate the getSentenceCount method |
<nb> public class DeviceUtils {
if ( device == null ) {
try {
- wait ( timeout ) ;
+ wfdl . wait ( timeout ) ;
} catch ( InterruptedException e ) {
SINGLE
}
<nb> public class DeviceUtils {
if ( ! device . hasClients ( ) ) {
try {
- wait ( timeout ) ;
+ wfcl . wait ( timeout ) ;
} catch ( I... | Fix object to sync on |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+
import static NAMESPACE ;
+ @ ignore ( STRING0 )
public ... | Ignore test that is expected to be rewritten |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
public class ExtractorFilter implements MessageFilter {
-
private static final Logger LOG = LoggerFactory . getLogger ( ExtractorFilter . class ) ;
-
private static final String NAME = STRING0 ;
private... | Add information about failing extractor to log message |
<nb> public class LogActivity extends Activity {
@ override
public void onCreate ( Bundle bundle ) {
+ super . onCreate ( bundle ) ;
+
Log . i ( STRING0 , STRING1 + Value . VALUE ) ;
ExopackageSoLoader . loadLibrary ( STRING2 ) ;
<nb> public class LogActivity extends Activity {
@ override
public... | Call super on Create Destroy in exopackage test |
<nb> public class RepositoryHelper {
is = urlConnection . getInputStream ( ) ;
}
catch ( IOException e ) {
- throw new RuntimeException ( e ) ;
+ is = null ;
}
}
} | invoke later to show error message |
<nb> public class DLFileEntryLocalServiceImpl
size = fileVersion . getSize ( ) ;
}
- if ( serviceContext . getWorkflowAction ( ) ==
- WorkflowConstants . ACTION_SAVE_DRAFT ) {
-
+ if ( fileVersion . getStatus ( ) != WorkflowConstants . STATUS_APPROVED ) {
updateFileVersion (
user , fileVersion , servi... | create a draft when previous version was approved |
<nb> import NAMESPACE ;
public class ChatClient {
ChatFrame chatFrame ;
Client client ;
+ String name ;
public ChatClient ( ) {
client = new Client ( ) ;
<nb> public class ChatClient {
client . addListener ( new Listener ( ) {
public void connected ( Connection connection ) {
RegisterName register... | Fixed chat example |
<nb> public class IosCertificateFactory extends CertificateFactorySpi {
@ throw AUTORELEASE ( [ [ JavaSecurityCertCertificateException alloc ]
initWithNSString: @ STRING0 ] ) ;
}
- return [ [ ComGoogleJ2objcSecurityCertIosX509Certificate alloc ]
- initWithLong: ( long long ) newCertificate ] ;
+ return AUTO... | Fix memory leaks found by clang static analysis |
<nb> public class DocumentsActivity extends BaseActivity {
mSearchManager . showMenu ( ! picking ) ;
SINGLE
- grid . setVisible ( ! ( picking && recents ) ) ;
- list . setVisible ( ! ( picking && recents ) ) ;
+ if ( picking && recents ) {
+ grid . setVisible ( false ) ;
+ list . setVisible ( false ) ; ... | Fix bug where both list and grid buttons are visible |
<nb> public class BaseLoadBalancer extends AbstractLoadBalancer implements
}
Lock writeLock = upServerLock . writeLock ( ) ;
-
+ writeLock . lock ( ) ;
try {
final List < Server > changedServers = new ArrayList < Server > ( ) ; | Fix lock bug |
<nb> public abstract class AbstractNioChannel extends AbstractChannel {
}
public interface NioUnsafe extends Unsafe {
- java . nio . channels . Channel ch ( ) ;
+ SelectableChannel ch ( ) ;
void finishConnect ( ) ;
void read ( ) ;
}
<nb> public abstract class AbstractNioChannel extends AbstractChannel... | NioUnsafe ch should return SelectableChannel |
<nb> public class CompilerProjectExtensionImpl extends CompilerProjectExtension {
final Element outputPathChild = element . getChild ( OUTPUT_TAG ) ;
if ( outputPathChild != null ) {
String outputPath = outputPathChild . getAttributeValue ( URL ) ;
- assert myCompilerOutput == null ;
myCompilerOutput = Virtua... | don t interrupt state reloading due to assert |
<nb> public class ColumnFamilyMetrics
Metrics . defaultRegistry ( ) . removeMetric ( factory . createMetricName ( STRING0 ) ) ;
Metrics . defaultRegistry ( ) . removeMetric ( factory . createMetricName ( STRING1 ) ) ;
Metrics . defaultRegistry ( ) . removeMetric ( factory . createMetricName ( STRING2 ) ) ;
+ Me... | make sure to release recently added CF metric |
<nb> public class Http11AprProtocol extends AbstractHttp11Protocol {
SocketState state = processor . process ( socket ) ;
if ( state == SocketState . LONG ) {
- SINGLE
- state = processor . asyncPostProcess ( ) ;
+ if ( processor . isAsync ( ) ) {
+ SINGLE
+ state = processor . asyncPostProcess ( ) ;
... | Only call asyncPostProcess for async requests |
<nb> public abstract class ThriftCLIService extends AbstractService implements TCLISe
if ( opException != null ) {
resp . setSqlState ( opException . getSQLState ( ) ) ;
resp . setErrorCode ( opException . getErrorCode ( ) ) ;
- resp . setErrorMessage ( opException . getMessage ( ) ) ;
+ resp . setErrorMessag... | ThriftCLIService GetOperationStatus should include exception s stack trace to the error message Zhihai Xu via Jimmy Xiang |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StorageTierTest {
Assert . assertEquals ( mTestDirPath1 , dirs . get ( NUMBER0 ) . getDirPath ( ) ) ;
Assert . assertEquals ( mTestDirPath2 , dirs . get ( NUMBER1 ) . getDirPa... | Add test for storage tier quota precondition |
<nb> public class JavaBuilder extends ModuleLevelBuilder {
private static final String DOT_JAVA_EXTENSION = STRING0 + JAVA_EXTENSION ;
public static final boolean USE_EMBEDDED_JAVAC = System . getProperty ( GlobalOptions . USE_EXTERNAL_JAVAC_OPTION ) == null ;
private static final Key < Integer > JAVA_COMPILER_VE... | make the IS_ENABLED key public to let other builders disable the Java builder |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.