diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public abstract class AudioDeviceCallback {
COMMENT | Fix a javadoc see error |
<nb> public class ShowDiffAction extends AnAction implements DumbAware {
protected static boolean canShowDiff ( Change [ ] changes ) {
if ( changes == null || changes . length == NUMBER0 ) return false ;
- return ! ChangesUtil . getFilePath ( changes [ NUMBER0 ] ) . isDirectory ( ) || changes [ NUMBER0 ] . hasO... | check all available changes in update |
<nb> class NioWorker implements Runnable {
SelectionKey key = channel . socket . keyFor ( selector ) ;
if ( key != null ) {
key . cancel ( ) ;
- int cancelledKeys = ( ++ worker . cancelledKeys ) ;
+ int cancelledKeys = ++ worker . cancelledKeys ;
if ( cancelledKeys >= NUMBER0 ) { SINGLE
worker . cancelled... | Removed unncessary parenthesis |
<nb> public class ParseException extends IOException {
this . line = line ;
}
- public String toString ( ) {
- if ( line == null ) return super . toString ( ) ;
- return super . toString ( ) + STRING0 + line ;
+ @ override
+ public String getMessage ( ) {
+ if ( line == null ) return super . getMessag... | override getMessage not toString |
<nb> class Clicker {
inst . sendPointerSync ( event ) ;
inst . sendPointerSync ( event2 ) ;
} catch ( Throwable e ) { }
- soloActivity . waitForIdle ( ) ;
}
COMMENT
<nb> class Clicker {
} catch ( IndexOutOfBoundsException e ) { }
if ( button != null ) {
clickOnScreen ( button ) ;
- soloActivity ... | Removed unneeded waitForIdle |
<nb> class AppErrors {
} else if ( app . killedByAm ) {
Slog . i ( TAG , STRING0 + app + STRING1 + annotation ) ;
return ;
+ } else if ( app . killed ) {
+ Slog . i ( TAG , STRING2 + app + STRING1 + annotation ) ;
+ return ;
}
SINGLE | AM Skip unnessary ANR when process already died |
<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 NAMESPACE ;
- ... | AbstractStaticPersistentMethod now implements FinderMethod |
<nb> public class LambdaRefactoringUtil {
}
else if ( qualifier != null &&
! ( qualifier instanceof PsiReferenceExpression && ( ( PsiReferenceExpression ) qualifier ) . getQualifier ( ) == null && PsiTreeUtil . isAncestor ( containingClass , referenceExpression , false ) ||
- qualifier instanceof PsiQualifiedEx... | do not skip super qualifier |
<nb> public class ClassesTreeStructureProvider implements TreeStructureProvider , Proj
Object o = treeNode . getValue ( ) ;
if ( o instanceof PsiJavaFile ) {
PsiJavaFile psiJavaFile = ( PsiJavaFile ) o ;
- PsiClass [ ] classes = psiJavaFile . getClasses ( ) ;
final VirtualFile virtualFile = psiJavaFile . getV... | do not request classes from jspxfile |
<nb> public class ApiController {
if ( ! succeeded ) {
return Results . notFound ( ) ;
} else {
- return Results . ok ( ) ;
+ return Results . json ( ) ;
}
}
<nb> public class ApiController {
if ( ! succeeded ) {
return Results . notFound ( ) ;
} else {
- return Results . ok ( ) ;
+ return R... | Fixed testcase for old DocTest implementation |
<nb> public abstract class HttpConnection implements Connection
headers . put ( getHttpDestination ( ) . getHostField ( ) ) ;
}
+ if ( request . getAgent ( ) == null )
+ headers . put ( getHttpClient ( ) . getUserAgentField ( ) ) ;
+
SINGLE
if ( content != null )
{
<nb> public class HttpRequest impl... | Client always adds extra user agent header |
<nb> class ActivityUtils {
e . printStackTrace ( ) ;
}
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
+ public ActivityMonitor getActivityMonitor ( ) {
+ return activityMonitor ;
+ }
COMMENT
COMMENT
<nb> public class Solo {
public Solo ( Instrumentation instrumentation ) {
... | Added the new method getActivityMonitor |
<nb> public class Hugo {
builder . append ( STRING0 ) . append ( Thread . currentThread ( ) . getName ( ) ) ;
}
- Log . d ( asTag ( cls ) , builder . toString ( ) ) ;
+ Log . v ( asTag ( cls ) , builder . toString ( ) ) ;
}
private static void popMethod ( JoinPoint joinPoint , Object result , long lengt... | Both push and pop should log verbose |
<nb> public class Watcher implements Runnable {
fireWatchEventListener ( childFilePath , watchEvent ) ;
}
else if ( kind == StandardWatchEventKind . ENTRY_MODIFY ) {
- if ( ( removeCreatedFilePathName (
+ if ( _downloadedFilePathNames . remove (
+ childFilePath . toString ( ) ) ||
+ ( removeCreatedFilePat... | sync engine Ignore downloaded updates |
<nb> public class ClusterState implements ToXContent , Diffable < ClusterState > {
SINGLE
if ( metrics . contains ( Metric . METADATA ) ) {
builder . startObject ( STRING0 ) ;
-
+ builder . field ( STRING1 , metaData ( ) . clusterUUID ( ) ) ;
builder . startObject ( STRING2 ) ;
for ( ObjectCursor < IndexT... | Add MetaData clusterUUID to ClusterState toXContent |
<nb> public final class InputMethodManager {
return true ;
}
}
+ } else {
+ if ( startInputReason
+ == InputMethodClient . START_INPUT_REASON_WINDOW_FOCUS_GAIN ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( DEBUG ) Log . w ( TAG , STRING0
+ + STRING1
+ + STRING... | Make IMM more robust to spurious window focus in |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public interface ChannelInboundInvoker {
+ interface ChannelInboundInvoker {
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public interface ChannelOutboundInvoker {
+ interface ChannelOutboundInvoker {
COMMENT
COMME... | Make Channel Invoker package private |
<nb> public class CRUDDocumentPhysicalTest {
final ODocument loadedDoc = database . load ( rid ) ;
- SINGLE
+ Assert . assertTrue ( newDoc . hasSameContentOf ( loadedDoc ) ) ;
Assert . assertTrue ( loadedDoc . containsField ( STRING0 ) ) ;
Assert . assertTrue ( loadedDoc . field ( STRING0 ) instanceof M... | Fixed issues with export import db |
<nb> public class WorldEditPlugin extends JavaPlugin {
}
boolean hasPermission ( Player player , String perm ) {
- return perms . hasPermission ( player . getName ( ) , perm ) ;
+ return player . isOp ( ) || perms . hasPermission ( player . getName ( ) , perm ) ;
}
public WorldEditAPI getAPI ( ) { | Ops now have all permissions |
<nb> public class ClientStateMachine extends StateMachine implements IMalmoMessageLis
SINGLE
if ( ClientStateMachine . this . controlInputPoller != null )
ClientStateMachine . this . controlInputPoller . clearCommands ( ) ;
+ SINGLE
+ System . gc ( ) ;
}
@ override | Garbage collected each time the client reaches the dormant state |
<nb> public class KeyguardPasswordView extends KeyguardAbsKeyInputView
}
@ override
+ public boolean needsInput ( ) {
+ return true ;
+ }
+
+ @ override
protected void onFinishInflate ( ) {
super . onFinishInflate ( ) ; | Fix new password view in keyguard |
<nb> public class TerminateRemoteProcessDialog {
@ override
public boolean isToBeShown ( ) {
- return myAlwaysUseDefault ? ! myDetachIsDefault : myDontTerminate ;
+ return myAlwaysUseDefault ? myDetachIsDefault : myDontTerminate ;
}
@ override | fix terminate default state |
<nb> public class ShadowAdapterView extends ShadowViewGroup {
private AdapterView . OnItemClickListener onItemClickListener ;
private boolean valid = false ;
private int selectedPosition ;
+ private View emptyView ;
private List < Object > previousItems = new ArrayList < Object > ( ) ;
<nb> public class... | Add setEmptyView and getEmptyView methods to ShadowAdapterView class |
<nb> public class MainActivity extends AppCompatActivity {
protected void onCreate ( Bundle savedInstanceState ) {
super . onCreate ( savedInstanceState ) ;
- Element versionElement = new Element ( ) ;
- versionElement . setTitle ( STRING0 ) ;
- versionElement . setGravity ( Gravity . CENTER ) ;
Element... | make version element linear |
<nb> public class GrailsConsole {
COMMENT
protected Terminal createTerminal ( ) {
terminal = TerminalFactory . create ( ) ;
- terminal . setEchoEnabled ( true ) ;
+ if ( isWindows ( ) ) {
+ terminal . setEchoEnabled ( true ) ;
+ }
return terminal ;
} | use echo output only on Windows |
<nb> public class MediaSessionService extends SystemService implements Monitor {
SINGLE
SINGLE
UserRecord ur = mUserRecords . get ( ActivityManager . getCurrentUser ( ) ) ;
- boolean useNotPlayingSessions = ur . mLastMediaButtonReceiver == null
- && ur . mRestoredMediaButtonReceiver == null ;
+ boolean useN... | Prevent NPE in MediaSessionService |
<nb> public class BasicLineItemProcessor implements LineItemProcessor {
public void initIndexes ( ProcessorConfig processorConfig , boolean withTags , String [ ] header ) {
boolean hasBlendedCost = false ;
+ boolean useBlendedCost = processorConfig . useBlended ;
for ( String column : header ) {
if ( column... | add missing variable |
<nb> public class Schema {
@ jsonignore
public long getSchemaVersion ( ) {
+ if ( schemaVersion == null ) {
+ return - NUMBER0 ;
+ }
return schemaVersion ;
+
}
public void setSchemaVersion ( long schemaVersion ) {
<nb> public class ZKMetadataProvider {
if ( znRecord . getSimpleFields ( ) . key... | fixing shema NPE |
<nb>
COMMENT
COMMENT
- package NAMESPACE ;
+ package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT | ru move test to sub package |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SwiftOSXBinaryIntegrationTest {
@ rule
public TemporaryPaths tmp = new TemporaryPaths ( ) ;
+ @ ignore ( STRING0 )
@ test
public void swiftHelloWorldRunsAndPrintsMessageOnO... | Disable Swift integration tests |
<nb> public class HdfsFileInputStream extends InputStream implements Seekable , Positi
throw new IOException ( STRING0 ) ;
}
if ( mAlluxioFileInputStream != null ) {
- int ret ;
try {
- ret = mAlluxioFileInputStream . read ( ) ;
+ int ret = mAlluxioFileInputStream . read ( ) ;
if ( mStatistics != null &... | SMALLFIX Incorporated PR comment |
<nb> public class SearchContainerTag < R > extends ParamAndPropertyAncestorTagImpl {
_searchContainer . setDeltaConfigurable ( _deltaConfigurable ) ;
+ if ( Validator . isNotNull ( _cssClass ) ) {
+ _searchContainer . setCssClass ( _cssClass ) ;
+ }
+
if ( Validator . isNotNull ( _emptyResultsMessage ) ... | search container does not add the specified css class to the search container |
<nb> public class BSONBinaryReader extends BSONReader {
}
context = context . popContext ( buffer . getPosition ( ) ) ;
- if ( context != null && context . contextType == BSONContextType . JAVASCRIPT_WITH_SCOPE ) {
+ if ( context . contextType == BSONContextType . JAVASCRIPT_WITH_SCOPE ) {
context = context... | Removed extraneous null check |
<nb> public class SwingBuilder extends BuilderSupport {
}
else if ( parent instanceof RootPaneContainer ) {
RootPaneContainer rpc = ( RootPaneContainer ) parent ;
- rpc . getContentPane ( ) . add ( component ) ;
+ if ( constraints != null ) {
+ rpc . getContentPane ( ) . add ( component , constraints ) ;
... | could not add components to root pane with constraints |
<nb> public final class InputMethodInfo implements Parcelable {
public void dump ( Printer pw , String prefix ) {
pw . println ( prefix + STRING0 + mId
- + STRING1 + mSettingsActivityName ) ;
+ + STRING1 + mSettingsActivityName
+ + STRING2 + mSupportsSwitchingToNextInputMethod ) ;
pw . println ( prefix + ... | Dump mSupportsSwitchingToNextInputMethod value |
<nb> public class DynamicIndex {
}
public synchronized double getMin ( ) {
- return lowMap . isEmpty ( ) ? Double . NEGATIVE_INFINITY : lowMap . firstKey ( ) ;
+ return lowMap . isEmpty ( ) ? ( highMap . isEmpty ( ) ? Double . NEGATIVE_INFINITY : highMap . firstKey ( ) ) : lowMap . firstKey ( ) ;
}
publ... | Debug DynamicIndex min and max |
<nb> public class XbmcGenericBindingProvider extends AbstractGenericBindingProvider i
@ override
public boolean isInBound ( String itemname ) {
XbmcBindingConfig bindingConfig = ( XbmcBindingConfig ) bindingConfigs . get ( itemname ) ;
- return bindingConfig . isInBound ( ) ;
+ return bindingConfig != null ? ... | prevent NullPointerException during config reload |
<nb> 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 NAMESPACE ;
import NAMESPACE ;
import NAMESPAC... | disable shared heap size setting if it s overriden by local setting |
<nb> public class PathManagerEx {
return ;
}
if ( file . isDirectory ( ) ) {
- dispatch ( file ) ;
+ if ( ! isOutputPath ( file ) ) dispatch ( file ) ;
}
else {
check ( file ) ;
<nb> public class PathManagerEx {
}
}
+ private static boolean isOutputPath ( File file ) {
+ return STRING0 . equ... | do not visit output path when searching for the root of install |
<nb> public final class ResourceIndex extends HashMap < SourceCode , Resource > {
Collection < SourceCode > files = squid . search ( new QueryByType ( SourceFile . class ) ) ;
for ( SourceCode squidFile : files ) {
JavaFile sonarFile = SquidUtils . convertJavaFileKeyFromSquidFormat ( squidFile . getKey ( ) ) ;
... | Fix Squid plugin to correctly build the relation between a Java file and its package |
<nb> public final class EnumType implements Type {
return result . toString ( ) ;
}
+ COMMENT
public static final class Value {
private final String name ;
private final int tag ;
<nb> public final class MessageType implements Type {
return label ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT... | Fix up documentation and reduce visibility of an API |
<nb> public class FileElement
else if ( eventType == XmlPullParser . END_TAG )
{
if ( elementName . equals ( STRING0 ) )
+ {
done = true ;
- else if ( elementName . equals ( STRING1 ) )
+ }
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ else if ( elementName . equals ( STRING1 ) && name != null )
{
l... | Ignore invalid file tags in file transfer responses |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class MockDefinition {
@ override
public String toString ( ) {
... | Fix MockDefinition toString |
<nb> public abstract class SctpChannel extends AbstractSelectableChannel {
public abstract < T > MessageInfo receive ( ByteBuffer dst , T attachment , NotificationHandler < T > handler ) throws IOException ;
public abstract int send ( ByteBuffer src , MessageInfo messageInfo ) throws IOException ;
+
+ public ... | Fix a compilation error with the SCTP module in Mac |
<nb> final class ActivityStack {
final int numActivities = activities . size ( ) ;
for ( int i = numActivities - NUMBER0 ; i > NUMBER1 ; -- i ) {
ActivityRecord target = activities . get ( i ) ;
+ if ( target . frontOfTask )
+ break ;
final int flags = target . info . flags ;
final boolean finishOnTaskL... | ActivityManager Do not finish root activity when reset task |
<nb> public abstract class AbsSpinner extends AdapterView < SpinnerAdapter > {
return mFirstPosition + i ;
}
}
- }
+ }
return INVALID_POSITION ;
}
-
+
+ @ override
+ protected void dispatchRestoreInstanceState ( SparseArray < Parcelable > container ) {
+ super . dispatchRestoreInstanceState ( co... | Fix ListView losing scroll position |
<nb> public enum Material {
DISPENSER ( NUMBER0 ) ,
SANDSTONE ( NUMBER1 ) ,
NOTE_BLOCK ( NUMBER2 ) ,
+ BED_BLOCK ( NUMBER3 ) ,
WOOL ( NUMBER4 , Wool . class ) ,
YELLOW_FLOWER ( NUMBER5 ) ,
RED_ROSE ( NUMBER6 ) ,
<nb> public enum Material {
PORTAL ( NUMBER7 ) ,
JACK_O_LANTERN ( NUMBER8 ) ,
CAKE_BLO... | Added new materials |
<nb> public final class ClassPathUtils {
public static Class < ? > safeClassForName ( ClassLoader classLoader , String className ) {
try {
- if ( className . startsWith ( STRING0 ) ) {
+ if ( className . startsWith ( STRING0 ) || className . startsWith ( STRING1 ) ) {
return null ;
} else {
return Class... | Exclude com apple |
<nb> public class Messaging implements Startable
this . clusterPeer = clusterPeer ;
}
+ public void setResponseTimeoutMillis ( final long responseTimeoutMillis )
+ {
+ this . responseTimeoutMillis = responseTimeoutMillis ;
+ }
+
public NodeAddress getNodeAddress ( )
{
return clusterPeer . localAdd... | Expose setter for configuring response timeout |
<nb> public class TestForTransformation extends TestMixinTransformation {
static {
artefactTypeToTestMap . put ( ControllerArtefactHandler . TYPE , ControllerUnitTestMixin . class ) ;
artefactTypeToTestMap . put ( TagLibArtefactHandler . TYPE , GroovyPageUnitTestMixin . class ) ;
- artefactTypeToTestMap . put (... | fix filters static property |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
COMMENT
public class ZooKeeperTestingServerManager implements ZooKeeperTestManager {
+ private static ... | add more logging to ZooKeeperTestingServerManager |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class GroovyMain { | Tell IDEA to shutup about static access to instances |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class MarshallingMessageConverter implements MessageConverter , Initializi
throw new M... | polishing Javadoc for marshalling message converters |
<nb> public class RefineServlet extends Butterfly {
}
}
- protected ServletConfig config ;
-
@ override
public void init ( ) throws ServletException {
super . init ( ) ;
<nb> public class RefineServlet extends Butterfly {
ProjectManager . singleton = null ;
}
- this . config = null ;
-
log... | ButterflyServlet already tracks the ServletConfig so there s no need for RefineServlet to do that too |
<nb> public class MainFrame extends JPanel implements TypeSafeDataProvider {
private class BekAction extends ToggleAction implements DumbAware {
public BekAction ( ) {
- super ( STRING0 , STRING0 , AllIcons . Actions . Lightning ) ;
+ super ( STRING1 , STRING1 , AllIcons . Actions . Lightning ) ;
}
@ ov... | vcs log rename BEK IntelliSort |
<nb> public class IQRouter extends BasicModule {
COMMENT
COMMENT
public void addIQResultListener ( String id , IQResultListener listener ) {
+ SINGLE
+ SINGLE
+ SINGLE
resultListeners . put ( id , listener ) ;
}
<nb> public class IQRouter extends BasicModule {
IQ reply = IQ . createResultIQ ( orig... | Fixed routing of IQ errors triggered by IQ packets generted by the server |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TaskAdapter extends CursorAdapter implements Filterable {
view . setText ( Html . fromHtml ( string . trim ( ) . replace ( ST... | Added linkify to task details |
<nb> public class UndertowDeploymentInfoService implements Service < DeploymentInfo > {
HashMap < String , JspPropertyGroup > propertyGroups = createJspConfig ( mergedMetaData ) ;
JspServletBuilder . setupDeployment ( d , propertyGroups , tldInfo , new UndertowJSPInstanceManager ( injectionContainer ) ) ;
- d .... | Only set the JspConfig if it was present in the metadata |
<nb> public class Flusher
if ( controller != null )
controller . write ( flusherCB , buffers ) ;
+
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+
return State . SCHEDULED ;
}
<nb> public class StandardSession implements ISession , Parser . Listener , Dumpable... | Added comments about optimizations that may be included as part of |
<nb> public class OSnowFlakeIdGen implements OWriteCacheIdGen {
@ override
public synchronized int nextId ( ) {
int id ;
- do {
- if ( sequenceCounter < NUMBER0 )
- sequenceCounter ++ ;
- else
- sequenceCounter = NUMBER1 ;
+ if ( sequenceCounter < NUMBER0 )
+ sequenceCounter ++ ;
+ else
+ sequen... | changed the positive generation in snow flake algorithm |
<nb> public final class PullToRefreshAttacher implements View . OnTouchListener {
mHeaderView . startAnimation ( mHeaderOutAnimation ) ;
SINGLE
} else {
- SINGLE
+ SINGLE
+ mHeaderView . setVisibility ( View . GONE ) ;
mHeaderTransformer . onReset ( ) ;
}
- mHeaderView . setVisibility ( View . GONE ) ... | Hide Header Out animation not displaying |
<nb> public class HgProjectSettings implements PersistentStateComponent < HgProjectSett
}
public void setIgnoreWhitespacesInAnnotations ( boolean ignoreWhitespacesInAnnotations ) {
- final boolean changed = myState . myIgnoreWhitespacesInAnnotations != ignoreWhitespacesInAnnotations ;
- myState . myIgnoreWhit... | optimize if statement and assignment |
<nb> public class ReaderPostListActivity extends AppCompatActivity {
protected void onResumeFragments ( ) {
super . onResumeFragments ( ) ;
SINGLE
- disableFilteredRecylerViewToolbar ( ) ;
+ disableFilteredRecyclerViewToolbar ( ) ;
}
COMMENT
COMMENT
COMMENT
- private void disableFilteredRecylerVie... | Corrected typo in recyler method name |
<nb> public class FavoritesWs implements WebService {
}
private void defineIndexAction ( NewController controller ) {
- controller . createAction ( STRING0 )
- . setDescription ( STRING1 )
- . setSince ( STRING2 )
- . setHandler ( RailsHandler . INSTANCE ) ;
- }
+ controller . createAction ( STRING0 )... | Fix quality flaw |
<nb> public abstract class SQLiteClosable {
}
public void releaseReference ( ) {
+ boolean refCountIsZero = false ;
synchronized ( this ) {
- mReferenceCount -- ;
- if ( mReferenceCount == NUMBER0 ) {
- onAllReferencesReleased ( ) ;
- }
+ refCountIsZero = -- mReferenceCount == NUMBER0 ;
+ }
+ if... | don t call methods doing database lock from a synchronized block |
<nb> public final class TvContract {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class TvContract {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix comments for program start end times |
<nb> public final class ContactsContract {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public interface DisplayNameSources {
public static final int UNDEFINED = NUMBER0 ; | Fix javadoc for DisplayNameSources |
<nb> public abstract class AbstractLoader
mPublicIdToResourceNameMap = new HashMap ( aPublicIdToResourceNameMap ) ;
final SAXParserFactory factory = SAXParserFactory . newInstance ( ) ;
factory . setValidating ( true ) ;
+ factory . setNamespaceAware ( true ) ;
mParser = factory . newSAXParser ( ) . getXMLRea... | Create XML parsers that process namespace URIs |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class TestDiscoveryConfigurationProducer extends JavaRunConfigur
protected boolean setupConfigurationFromContext ( TestDis... | disable configuration suggester if discovery is disabled |
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
public interface EclipseLinkedResource {
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
String getName ( ) ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COM... | For the eclipse part of ToolingApi I documented the details of the linked resources |
<nb> public class TextServicesManagerService extends ITextServicesManager . Stub {
mContext , mSpellCheckerList , mSpellCheckerMap , mSettings ) ;
SINGLE
SpellCheckerInfo sci = getCurrentSpellChecker ( null ) ;
+ SINGLE
+ SINGLE
if ( sci == null ) return ;
final String packageName = sci . getPackageName (... | Add a comment on the spell checker framework |
<nb> public class InstallCommander implements Tool {
writer . println ( STRING0 ) ;
String [ ] jarList = new String [ ] {
- STRING1 ,
- STRING2 ,
- STRING3 ,
- STRING4 ,
- STRING5 ,
+ STRING6 ,
+ STRING7 ,
+ STRING8 ,
+ STRING9 ,
+ STRING10 ,
STRING11
} ;
String classPath = PApplet . joi... | modify commander script for new lib location for jar files |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> final class NodeValue < K , V > implements Serializable , Cloneable {
public NodeValue ( int nodeId , K key , Versioned < V > value ) {
this . nodeId = nodeId ;
- this . key = key ;
- this .... | Add not null checks in constructor for key and value |
<nb>
package NAMESPACE ;
-
+ COMMENT
import NAMESPACE ;
COMMENT
<nb> enum Foo4 { }
COMMENT
COMMENT
COMMENT
- interface FooIn { }
+ interface FooIn {
+ COMMENT
+ COMMENT
+ COMMENT
+ int CONSTANT = NUMBER0 ;
+ } | Add test coverage to AtclauseOrder check |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class LibraryCacheManager {
this . fs = FileSystem . getLocalFileSystem ( ) ;
... | Modified LibraryCacheManager to work on Windows |
<nb> public class Block extends Message {
SINGLE
byte [ ] counter = new byte [ NUMBER0 ] ;
counter [ NUMBER1 ] = ( byte ) txCounter ++ ;
+ counter [ NUMBER2 ] = NUMBER2 ;
input . getOutpoint ( ) . setHash ( new Sha256Hash ( counter ) ) ;
t . addInput ( input ) ;
b . addTransaction ( t ) ;
<nb> public cl... | Fix two false positives in test cases |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
... | Improve JavaDoc on EditorAction |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> abstract class SettingsFilter extends ElementFilter . Active . Impl < SimpleNode > {
}
private static boolean isEmptyParent ( Configur... | Fix usage of the Parent hasOwnContent method |
<nb> final class StandardWrapperValve
SINGLE
request . setComet ( false ) ;
SINGLE
- request . setAsyncSupported ( filterChain . isAsyncSupported ( ) ) ;
+ if ( filterChain != null ) {
+ request . setAsyncSupported ( filterChain . isAsyncSupported ( ) ) ;
+ }
SINGLE
SINGLE | Fix NPE if no filters are configured |
<nb> public class XMLPanelEditor extends ContentPanelEditor {
}
editor . createPartControl ( editPlaceholder ) ;
StyledText control = editor . getTextViewer ( ) . getTextWidget ( ) ;
+ SINGLE
+ COMMENT
control . addDisposeListener ( new DisposeListener ( ) {
@ override
public void widgetDisposed ( Dispo... | XML editor dispose fix |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> final class FragmentManagerImpl extends FragmentManager {
}
public Fragment findFragmentById ( int id ) {
+ if ( ! HONEYCOMB && ( id == android . R . i... | Fixed FragmentManager findFragmentById android R id content |
<nb> public final class MappedEndpointConfiguration extends DefaultEndpointConfigurat
@ override
public boolean equals ( Object other ) {
+ if ( other == null || ! ( other instanceof MappedEndpointConfiguration ) ) {
+ return false ;
+ }
SINGLE
- boolean eq = params . equals ( ( ( MappedEndpointConfigur... | Fix equals to account for null and other Object types |
<nb> public class Searcher {
}
}
+ public int getDocCount ( File indexDir ) throws IOException {
+ final FSDirectory directory = FSDirectory . open ( indexDir ) ;
+ final DirectoryReader reader = DirectoryReader . open ( directory ) ;
+ try {
+ final IndexSearcher indexSearcher = new IndexSearcher ( rea... | show the number of indexed documents per language |
<nb> public final class NetUtil {
LOCALHOST = loopbackAddr ;
SINGLE
- int somaxconn = NUMBER0 ;
+ SINGLE
+ SINGLE
+ SINGLE
+ int somaxconn = PlatformDependent . isWindows ( ) ? NUMBER1 : NUMBER2 ;
File file = new File ( STRING0 ) ;
if ( file . exists ( ) ) {
BufferedReader in = null ; | Reduce the fallback SOMAXCONN value |
<nb> public class PGL {
SINGLE
protected static final int AWT = NUMBER0 ; SINGLE
protected static final int NEWT = NUMBER1 ; SINGLE
- protected static int toolkit = NEWT ;
+
+ protected static int toolkit ;
+ static {
+ if ( PApplet . platform == PConstants . WINDOWS ) {
+ SINGLE
+ SINGLE
+ SINGLE... | JOGL toolkit selection based on OS currently AWT gives the best results |
<nb> public class FontHandler extends ExtractHandler {
String name = obj . getValue ( STRING0 ) ;
UnityArray fontData = obj . getValue ( STRING1 ) ;
ByteBuffer fontBuffer = fontData . getRaw ( ) ;
- writeFile ( fontBuffer , path . pathID , name ) ;
+ if ( fontBuffer . capacity ( ) > NUMBER0 ) {
+ writeFile ... | Skipping font objects with no embedded font file |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class SchemaMetadata extends Iced {
return consType ( schema , clz . getComponentType ( ) , field_name , annotation ) + STRING0 ;
if ( Map .... | Fixed Metadata type check to point to new IcedHashMapGeneric |
<nb> class TwitterImpl extends TwitterBaseImpl implements Twitter {
TwitterImpl ( Configuration conf , Authorization auth ) {
super ( conf , auth ) ;
INCLUDE_MY_RETWEET = new HttpParameter ( STRING0 , conf . isIncludeMyRetweetEnabled ( ) ) ;
+ synchronized ( TwitterImpl . class ) {
HttpParameter [ ] implicitP... | Synchronize static members intialization in constructor |
<nb> public abstract class CCTestCase extends UsefulTestCase {
}
protected String getTestDataPath ( ) {
- return PythonHelpersLocator . getPythonCommunityPath ( ) + STRING0 ;
+ return PythonHelpersLocator . getPythonCommunityPath ( ) + STRING1 ;
}
@ override
<nb> public abstract class StudyTestCase ex... | fixed test data paths |
<nb> public class Fragment implements ComponentCallbacks , OnCreateContextMenuListener
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
public void onHiddenChanged ( boolean hidden ) {
} | Clarify Fragment onHiddenChanged documentation |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Java Remove unused import |
<nb> public class FileDetailFragment extends SherlockFragment implements
Log . e ( STRING0 , STRING1 + width + STRING2 + screenwidth ) ;
if ( width > screenwidth ) {
- scale = ( int ) Math . ceil ( ( Math . ceil ( Math . max ( height , width ) / screenwidth ) ) ) ;
+ scale = ( int ) Math . ceil ( ( float ) wi... | make preview a bit smaller than screen width |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix Javadoc samples |
<nb> public class InternalIndexShard extends AbstractIndexShardComponent implements I
}
Query query = queryParser . parse ( querySource ) ;
SINGLE
- query = new ConstantScoreQuery ( filterCache . cache ( new QueryWrapperFilter ( query ) ) ) ;
+ SINGLE
+ SINGLE
query = filterByTypesIfNeeded ( query , types... | don t cache count queries |
<nb> public class Supervisor {
reactor . signal ( ) ;
return ;
} else if ( t instanceof DockerException ) {
- log . warn ( STRING0 , t . getMessage ( ) ) ;
+ log . error ( STRING1 , t ) ;
} else {
log . error ( STRING2 , t ) ;
} | Log full error when task runner throws exception |
<nb> public class DriverEditDialog extends HelpEnabledDialog
} ) ;
gd = new GridData ( GridData . FILL_HORIZONTAL ) ;
- embeddedDriverCheck = UIUtils . createLabelCheckbox ( propsGroup , STRING0 , STRING1 , driver . isEmbedded ( ) ) ;
+ gd . horizontalSpan = NUMBER0 ;
+ embeddedDriverCheck = UIUtils . creat... | Embedded checkbox refactoring |
<nb> class ChangeInfoImpl implements ChangeInfo {
public ChangeInfoImpl ( @ modifier String newVisibility ,
PsiMethod method ,
String newName ,
- @ notnull CanonicalTypes . Type newType ,
+ CanonicalTypes . Type newType ,
@ notnull ParameterInfoImpl [ ] newParms ,
ThrownExceptionInfo [ ] newExceptions ) {... | remove incorrect NotNull |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COM... | added missing license headers |
<nb> public class ConfigFileApplicationContextInitializer implements
private String [ ] searchLocations = new String [ ] { STRING0 , STRING1 ,
STRING2 , STRING3 } ;
- private String names = STRING4 ;
+ private String names = STRING5 ;
private int order = Integer . MIN_VALUE + NUMBER0 ; | Revert change to placeholders in config file initializer |
<nb> public class GitUnstashDialog extends DialogWrapper {
catch ( VcsException e ) {
SINGLE
}
+ myStashList . setSelectedIndex ( NUMBER0 ) ;
}
COMMENT
<nb> public class GitUnstashDialog extends DialogWrapper {
return STRING0 ;
}
+ @ override
+ public JComponent getPreferredFocusedComponent ( ... | select the first stash in the list by default |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.