diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> import NAMESPACE ;
class BackupManagerService extends IBackupManager . Stub {
private static final String TAG = STRING0 ;
private static final boolean DEBUG = true ;
- private static final boolean MORE_DEBUG = true ;
+ private static final boolean MORE_DEBUG = false ;
SINGLE
static final String BAC... | Turn off MORE_DEBUG logspam |
<nb> public final class TreeWalker
COMMENT
private Context mChildContext ;
+
+ private Map mContext = new HashMap ( ) ;
COMMENT
COMMENT
<nb> public final class TreeWalker
( ArrayList ) mTokenToChecks . get (
TokenTypes . getTokenName ( aAST . getType ( ) ) ) ;
if ( visitors != null ) {
- final... | performance improvement eliminate multiple instance creation for |
<nb> public class SingleMessageView extends LinearLayout {
SINGLE
SINGLE
if ( Utility . hasExternalImages ( text ) && ! showPictures ( ) ) {
+ Address [ ] from = message . getFrom ( ) ;
if ( ( account . getShowPictures ( ) == Account . ShowPictures . ALWAYS ) ||
( ( account . getShowPictures ( ) == Account ... | Added a check to prevent an ArrayIndexOutOfBoundsException |
<nb> public final class DBMaker {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
public Maker allocateRecidReuseEnable ( ) { | add deprecation warning to recid reuse |
<nb> public abstract class JBListTable extends JPanel {
public boolean isCellEditable ( int rowIndex , int columnIndex ) {
return isRowEditable ( rowIndex ) ;
}
+
+ @ override
+ public void addRow ( ) {
+ myLastEditorIndex . set ( null ) ;
+ super . addRow ( ) ;
+ }
} ;
mainTable = new JBTable ( m... | reset last editor index when insert new row |
<nb> public class JythonBackend implements Backend {
this . jython = jython ;
jython . set ( STRING0 , this ) ;
- for ( Resource resource : resourceLoader . resources ( STRING1 , STRING2 ) ) {
+ for ( Resource resource : resourceLoader . resources ( STRING1 , STRING3 ) ) {
runScript ( resource ) ;
}
} | Only load the dsl py when initializing the JythonBackend |
<nb> public class MapService implements ManagedService , MigrationAwareService ,
switch ( inMemoryFormat ) {
case BINARY :
return toData ( value1 ) . equals ( toData ( value2 ) ) ;
+ case CACHED :
+ return toData ( value1 ) . equals ( toData ( value2 ) ) ;
case OBJECT :
return toObject ( value1 ) . equals... | InMemoryFormat CACHED now makes use of byte comparison instead of object comparison |
<nb> public class OggStreamingSoundData implements StreamingSoundData {
public ByteBuffer readNextInto ( ByteBuffer dataBuffer ) {
try {
reader . read ( dataBuffer , NUMBER0 , dataBuffer . capacity ( ) ) ;
- dataBuffer . rewind ( ) ;
+ dataBuffer . flip ( ) ;
return dataBuffer ;
} catch ( IOException e ) ... | Fix audio end listener rewind resets limit |
<nb> public class OWServerBinding extends
}
else if ( STRING0 . equals ( configKey ) ) {
deviceConfig . password = value ;
+ } else {
+ throw new ConfigurationException ( configKey , STRING1 + configKey + STRING2 ) ;
}
} | Add config exception |
<nb> public class AppearanceUIController {
public GraphChangeObserver ( Graph graph , Column column ) {
timer = new Timer ( STRING0 , true ) ;
graphObserver = graph . getModel ( ) . createGraphObserver ( graph , false ) ;
- columnObserver = column != null ? column . createColumnObserver ( ) : null ;
+ columnO... | Fix compile issue |
<nb> public class HttpRemoteTask
currentRequest = future ;
currentRequestStartNanos = System . nanoTime ( ) ;
- Futures . addCallback ( future , new SimpleHttpResponseHandler < > ( new UpdateResponseHandler ( sources ) , request . getUri ( ) ) , executor ) ;
-
+ SINGLE
+ SINGLE
needsUpdate . set ( false... | Fix race condition in HttpRemoteTask |
<nb> public class JmxAutoConfigurationTests {
}
}
- @ test ( expected = NoSuchBeanDefinitionException . class )
+ @ test
public void testDefaultMBeanExport ( ) {
this . context = new AnnotationConfigApplicationContext ( ) ;
this . context . register ( JmxAutoConfiguration . class ) ;
this . context . ... | Fix failing test due to change in JMX export default setting |
<nb> public class JavaScriptTarget extends Target {
protected static final String [ ] javaScriptKeywords = {
STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 ,
STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 , STRING14 ,
- STRING15 , STRING16 , STRING17 , STRING18 , ST... | Added function to javascript keywords |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ComponentWithBrowseButton < Comp extends JComponent > extends JPanel i
if ( ApplicationManager . getApplication ( ) != null ) { SINGLE
new MyD... | px offset for Darcula and IntelliJ lafs |
<nb> public class BlockingCalculator {
}
- protected static class MergeEvent extends DefaultBlockingState {
-
- public MergeEvent ( final DateTime timestamp ) {
- super ( null , null , null , null , false , false , false , timestamp ) ;
- }
-
- }
-
@ inject
public BlockingCalculator ( final Bl... | remove unused MergeEvent |
<nb> public class FramesPanel extends UpdatableDebuggerView {
if ( ! paused || ! isRefresh ) {
myThreadsCombo . removeAllItems ( ) ;
synchronized ( myFramesList ) {
- myFramesList . clear ( ) ;
+ myFramesList . getModel ( ) . clear ( ) ;
}
}
<nb> public class FramesPanel extends UpdatableDebuggerView ... | ensure nextStamp currentStamp |
<nb> public class AndroidCompiledStatement implements CompiledStatement {
this . max = max ;
}
+ public void setQueryTimeout ( long millis ) {
+ SINGLE
+ }
+
COMMENT
COMMENT
COMMENT | Added support for preparedStatement setQueryTimeout millis |
<nb> public class ShinyAppsDeploy extends Composite
public void setAppList ( List < String > apps , String selected )
{
appList . clear ( ) ;
- int selectedIdx = Math . max ( NUMBER0 , apps . size ( ) - NUMBER1 ) ;
+ int selectedIdx = NUMBER0 ;
if ( apps != null )
{
+ selectedIdx = Math . max ( NUMBER0 ... | prevent null ref in setAppList |
<nb> public abstract class PyBaseDebuggerTask extends PyExecutionFixtureTestTask {
new WriteAction ( ) {
protected void run ( Result result ) throws Throwable {
mySession . stop ( ) ;
- Disposer . dispose ( mySession . getConsoleView ( ) ) ;
- mySession = null ;
- myDebugProcess = null ;
- myPausedSemapho... | Fixed memory leak in tests |
<nb> public class XMPPError extends AbstractError {
return conditionText ;
}
+ @ override
+ public String toString ( ) {
+ StringBuilder sb = new StringBuilder ( STRING0 ) ;
+ sb . append ( condition . toString ( ) ) . append ( STRING1 ) . append ( type . toString ( ) ) ;
+ if ( errorGenerator != null )... | Add XMPPError toString |
<nb> public abstract class OrientBaseGraph implements IndexableGraph ,
SINGLE
for ( OrientGraphContext ctx : contexts )
ctx . manualIndices . put ( index . getIndexName ( ) , index ) ;
+ context . manualIndices . put ( index . getIndexName ( ) , index ) ;
SINGLE
saveIndexConfiguration ( ) ; | Fixed bug on creating manual indexes |
<nb> public class CameraDeviceBinderTest extends AndroidTestCase {
private int submitCameraRequest ( CaptureRequest request , boolean streaming ) throws Exception {
int requestId = mCameraUser . submitRequest ( request , streaming ) ;
- assertTrue ( STRING0 , requestId >= NUMBER0 ) ;
+ assertTrue (
+ STRING... | Fix out of date metadata test |
<nb> public class DefaultRegistryBuilder implements RegistryBuilder {
@ override
public Registry build ( ) {
- return new CachingRegistry ( new DefaultRegistry ( builder . build ( ) ) ) ;
+ return new DefaultRegistry ( builder . build ( ) ) ;
}
@ override | Remove registry caching |
<nb> public abstract class ZLTextView extends ZLTextViewBase {
ZLTextStyle storedStyle = getTextStyle ( ) ;
- info . LeftIndent = getTextStyle ( ) . getLeftIndent ( metrics ( ) ) ;
+ info . LeftIndent = storedStyle . getLeftIndent ( metrics ( ) ) ;
if ( isFirstLine ) {
- info . LeftIndent = getTextStyle (... | fixed right indent usage |
<nb> public class MapActivity extends AccessibleActivity implements DownloadEvents ,
System . err . println ( STRING0 + ( System . currentTimeMillis ( ) - tm ) + STRING1 ) ;
}
- if ( ! permissionDone ) {
+ if ( ! permissionDone && ! app . getAppInitializer ( ) . isFirstTime ( ) ) {
if ( ! permissionAsked ) ... | Revert Revert Skip permission and storage dialog first time |
<nb> public class CardHeaderView extends FrameLayout implements CardViewInterface {
}
} ) ;
} else {
- mImageButtonOverflow . setVisibility ( GONE ) ;
+ if ( mCardHeader . getCustomOverflowAnimation ( ) == null ) {
+ mImageButtonOverflow . setVisibility ( GONE ) ;
+ }
}
} else { | Fixed Overflow animation button |
<nb> public class AstridActivity extends FragmentActivity
@ override
public void onBackPressed ( ) {
+ if ( isFinishing ( ) )
+ return ;
super . onBackPressed ( ) ;
} | Don t allow onBackPressed to be called while AstridActivity is finishing |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Main
else
mod = ( Module ) aClass . newInstance ( ) ;
- moduleList . add ( mod ) ;
+ if ( mod instanceof CoreModule )... | Added overridability to CoreModule |
<nb> public class PlatformFileTypeFactory extends FileTypeFactory {
new ExtensionFileNameMatcher ( STRING0 ) ,
new ExtensionFileNameMatcher ( STRING1 ) ,
new ExtensionFileNameMatcher ( STRING2 ) ,
- new ExactFileNameMatcher ( STRING3 , true ) ) ;
+ new ExactFileNameMatcher ( STRING3 , true ) ,
+ new ExactFi... | LICENSE should be text file |
<nb> public class DirectoryManager {
COMMENT
protected static JSONArray getRootPaths ( ) {
JSONArray retVal = new JSONArray ( ) ;
- retVal . put ( Environment . getExternalStorageDirectory ( ) . getAbsolutePath ( ) ) ;
+ String path = Environment . getExternalStorageDirectory ( ) . getAbsolutePath ( ) + STRIN... | Put trailing into getRootPaths to remain consistent with BBW |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMES... | Correct a couple comments in ClosureRewriteModule |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
i... | Add missing license header on MixinWorld |
<nb> public class DatabaseBackend extends SQLiteOpenHelper {
return ( count > NUMBER0 ) ;
} catch ( SQLiteCantOpenDatabaseException e ) {
return true ; SINGLE
+ } catch ( RuntimeException e ) {
+ return true ; SINGLE
}
} | catching out of memory run time exception in hasEnabledAccounts |
<nb> public class ContainerUtil {
return list ;
}
+ public static < T > List < T > dropTail ( List < T > items ) {
+ return items . subList ( NUMBER0 , items . size ( ) - NUMBER1 ) ;
+ }
} | introduce simpler API for symbol tree operations |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CapturingArgumentsTest extends TestBase {
verify ( mock ) . mixedVarargs ( any ( ) , argumentCaptor . capture ( ) , argumentCaptor . capture ( ) , argumentCap... | added test that revealed bug |
<nb> public class AwsEc2ServiceImpl extends AbstractLifecycleComponent < AwsEc2Service >
endpoint = STRING0 ;
} else if ( region . equals ( STRING1 ) || region . equals ( STRING2 ) ) {
endpoint = STRING3 ;
+ } else if ( region . equals ( STRING4 ) || region . equals ( STRING5 ) ) {
+ endpoint = STRING6 ;
} ... | Adding US Gov West |
<nb> public final class PlatformLifecycleListener implements ServletContextListener {
SINGLE
SINGLE
LoggerFactory . getLogger ( getClass ( ) ) . error ( STRING0 , t ) ;
- Platform . getInstance ( ) . stop ( ) ;
+ stopQuietly ( ) ;
System . exit ( NUMBER0 ) ;
}
}
+ private void stopQuietly ( ) {
+ ... | Fix handling of error during server startup |
<nb> public class ExifInterface {
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public ExifInterface ( FileDescriptor fileDescriptor ) throws IOException {
if ( fileDescriptor == null ) {
<nb> public class ExifInterface {
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
... | inform the developers to close their FD streams |
<nb> public class PDFViewerPresenter implements IsWidget ,
eventBus . addHandler ( CompilePdfCompletedEvent . TYPE , this ) ;
eventBus . addHandler ( SynctexViewPdfEvent . TYPE , this ) ;
+
+ synctex_ . enableCommands ( false ) ;
eventBus . addHandler ( SynctexStatusChangedEvent . TYPE , this ) ;
Window... | initialize previewer with synctex disabled |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
... | Improve XMPPConnection javadoc |
<nb> public class DownloadIndexesThread {
uiFragment . getDownloadActivity ( ) . getEntriesToDownload ( ) . put ( basemap , downloadEntry ) ;
AccessibleToast . makeText ( uiFragment . getDownloadActivity ( ) , R . string . basemap_was_selected_to_download ,
Toast . LENGTH_LONG ) . show ( ) ;
- uiFragment . find... | Fixed null pointer in downloadIndexThread |
<nb>
COMMENT
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 NAME... | Updated SRTM Provider URL |
<nb> public class FieldTripRequest extends GenericModel {
public List < FieldTripNote > notes ;
@ expose
+ @ lob
public String submitterNotes ;
@ expose | allow longer submitter notes |
<nb> public class JavaModuleType extends ModuleType < JavaModuleBuilder > {
final ModulesProvider modulesProvider ) {
final ProjectWizardStepFactory wizardFactory = ProjectWizardStepFactory . getInstance ( ) ;
ArrayList < ModuleWizardStep > steps = new ArrayList < ModuleWizardStep > ( ) ;
+ steps . add ( wizard... | restore src step |
<nb> import NAMESPACE ;
COMMENT
public class ResolveInfo implements Parcelable {
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public ActivityInfo activityInfo ; | Clarify the docs around the activityInfo field |
<nb> public class MBeanUtils {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
+ @ deprecated
public static String getDomain ( Service service ) {
SINGLE | Deprecate method that will be removed |
<nb> public final class InodeTree implements JournalCheckpointStreamable {
throw new InvalidPathException ( STRING0 + inodePath . getUri ( ) ) ;
}
ExtensibleInodePath extensibleInodePath = ( ExtensibleInodePath ) inodePath ;
- List < Inode < ? > > nonPersistedInodes = Lists . newArrayList ( ) ;
List < Inode <... | Populate nonpersisted inodes |
<nb> public class ClassID {
String dbPath = STRING0 + FILENAME ;
try ( InputStream is = getClass ( ) . getResourceAsStream ( dbPath ) ) {
if ( is == null ) {
- throw new IOException ( STRING1 ) ;
+ throw new IOException ( STRING2 ) ;
}
BufferedReader br = new BufferedReader ( new InputStreamReader ( is ... | Changed exception messages |
<nb> public abstract class AbstractProcessingFilter implements Filter ,
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
private boolean alwaysUseDefaultTargetUrl = false ; | Corrected Javadoc typo |
<nb> public final class PersistHdfs extends Persist {
public static void addFolder2 ( Path p , ArrayList < String > keys , ArrayList < String > failed ) throws IOException {
FileSystem fs = FileSystem . get ( p . toUri ( ) , PersistHdfs . CONF ) ;
+ if ( ! fs . exists ( p ) ) {
+ failed . add ( STRING0 + p . ... | added check for non existing path in hdfs fluid dec import |
<nb> public class Workbench implements BusyHandler ,
if ( projectDir != null )
{
consoleDispatcher_ . executeSetWd ( projectDir , false ) ;
- eventBus_ . fireEvent ( new DirectoryNavigateEvent ( projectDir ) ) ;
+ eventBus_ . fireEvent ( new DirectoryNavigateEvent ( projectDir , true ) ) ;
}
} | activate Files pane on set working dir to project dir |
<nb> public class Address {
COMMENT
COMMENT
public static Address [ ] parse ( String addressList ) {
- ArrayList < Address > addresses = new ArrayList < Address > ( ) ;
- if ( ( addressList == null ) && ! ( STRING0 . equals ( addressList ) ) ) {
+ if ( addressList == null || addressList . isEmpty ( ) ) {
... | Fix NPE in Address Parse |
<nb> abstract class RegexFilterFunction implements QueryFunction {
}
Set < T > targets = getExpressionToEval ( args ) . eval ( env , executor ) ;
- env . buildTransitiveClosure ( targets , Integer . MAX_VALUE , executor ) ;
Set < T > result = new LinkedHashSet < > ( ) ;
for ( T target : targets ) {
String... | don t resolve transitive deps in filter based functions |
<nb> public class Hadoop23Shims extends HadoopShimsSecure {
LOG . warn ( STRING0 ) ;
return null ;
} else {
- SINGLE
- URL taskTrackerHttpURL = new URL ( taskTrackerHttpAddress ) ;
- return HostUtil . getTaskLogUrl ( taskTrackerHttpURL . getHost ( ) ,
- Integer . toString ( taskTrackerHttpURL . getPort ( ... | HostUtil getTaskLogUrl signature change causes compilation to fail Jason Dere via Ashutosh Chauhan |
<nb> public abstract class BSONWriter implements Closeable {
break ;
case MAX_KEY :
writeMinKey ( ) ;
+ break ;
default :
throw new IllegalArgumentException ( STRING0 + reader . getCurrentBsonType ( ) ) ;
} | Added missing break in case |
<nb> public class APIKeys {
public static final String TWEETMARKER_API_KEY = STRING0 ;
public static final String TWITLONGER_API_KEY = STRING0 ;
public static final String TWITPIC_API_KEY = STRING0 ;
- public static final String GIFFY_API_KEY = STRING1 ; SINGLE
+ public static final String GIPHY_API_KEY = STR... | Fix Change gighy key name |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
public cl... | Add missing header |
<nb> public final class SqlStageExecution
}
else {
SINGLE
- task . cancel ( ) ;
+ task . abort ( ) ;
}
return task ; | Fix task leak in coordinator |
<nb> public class VerbalExpression {
private Pattern pattern ;
private int modifiers = Pattern . MULTILINE ;
- public Builder ( ) {
- }
-
private String sanitize ( final String pValue ) {
Matcher matcher = Pattern . compile ( STRING0 ) . matcher ( STRING0 ) . usePattern ( Pattern . compile ( STRING1 ) )... | Remove default constructor |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class DataSet extends TestUtil {
- private static String dataSetsPath = STRING0 ;
+ private static String dataSetsPath = STRING1 ;
private int id ;
private String uri ;
<nb> import NAMESPACE ;
import NAMESPACE ;
public class TestCase extends Test... | update paths to accuracy datasets test cases |
<nb> public class TextEditingTarget implements
private static final native String initializeIncrementalSearch ( ) COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT ; | add missing entry call |
<nb> public class HystrixYammerMetricsPublisherCommand implements HystrixMetricsPubli
createCumulativeCountForEvent ( STRING0 , HystrixRollingNumberEvent . FAILURE ) ;
createCumulativeCountForEvent ( STRING1 , HystrixRollingNumberEvent . FALLBACK_EMIT ) ;
createCumulativeCountForEvent ( STRING2 , HystrixRollingNu... | Added FALLBACK_MISSING to hystrix yammer metrics publisher |
<nb> package NAMESPACE ;
import NAMESPACE ;
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class SegmentTree { | Added segment tree testing code |
<nb> public class InspectionProfileImpl extends ProfileEx implements ModifiableModel ,
return myTools . get ( toolId ) ;
}
+ public void enableAllTools ( ) {
+ for ( InspectionProfileEntry entry : getInspectionTools ( null ) ) {
+ enableTool ( entry . getShortName ( ) ) ;
+ }
+ }
+
public void disab... | expected data in vcs publishing results on teamcity disabled spelling inspection |
<nb> public abstract class AbstractNativeCacheTest < T > {
assertNull ( cache . get ( key ) ) ;
cache . put ( key , value ) ;
- assertEquals ( value , cache . get ( key ) ) ;
+ assertEquals ( value , cache . get ( key ) . get ( ) ) ;
}
@ test | revise cache API |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ScanProgressTableModel extends AbstractTableModel {
SINGLE
switch ( col ) {
case NUMBER0 :
- return Constant . messages... | Added some minor improvement on Scan progress dialog writes |
<nb> import NAMESPACE ;
public class ADBParser {
public List < Device > parseGetDevicesOutput ( String adbDevicesOutput ) {
- List < Device > devices = new LinkedList < > ( ) ;
+ List < Device > devices = new LinkedList < Device > ( ) ;
String [ ] splittedOutput = adbDevicesOutput . split ( STRING0 ) ;
fo... | Remove diamond usage |
<nb> public class PluginResult {
STRING0 ,
STRING1 ,
STRING2 ,
- STRING3
+ STRING3 ,
+ STRING4
} ;
public enum Status {
<nb> public class PluginResult {
MALFORMED_URL_EXCEPTION ,
IO_EXCEPTION ,
INVALID_ACTION ,
- JSON_EXCEPTION
+ JSON_EXCEPTION ,
+ ERROR
}
} | Add general ERROR to plugin result status |
<nb> public class LogDivertAppender extends WriterAppender {
} else {
SINGLE
String [ ] inclLoggerNames = { STRING0 ,
- STRING1 , STRING2 , Task . class . getName ( ) } ;
+ STRING1 , STRING2 , Task . class . getName ( ) ,
+ STRING3 } ;
addFilter ( new NameFilter ( false , inclLoggerNames ) ) ;
}
} | Beeline doesn t show Spark job progress info Spark Branch Jimmy via Xuefu |
<nb> public class TestFilter implements Filter
String to = request . getServerName ( ) ;
String path = ( ( HttpServletRequest ) request ) . getServletPath ( ) ;
- if ( ! _remote && ! _allowed . contains ( path ) && (
+ if ( ! STRING0 . equals ( path ) && ! _remote && ! _allowed . contains ( path ) && (
! fr... | Fixed infinite redirect loop for remote html in testapp |
<nb> public class DeclarationResolver {
private void checkRedeclarationsInPackages ( ) {
for ( MutablePackageFragmentDescriptor packageFragment : Sets . newHashSet ( context . getPackageFragments ( ) . values ( ) ) ) {
- if ( KotlinBuiltIns . BUILT_INS_PACKAGE_FQ_NAME . equals ( packageFragment . getFqName ( ) ... | Remove outdated hack in DeclarationResolver |
<nb> public class OsmandSettings {
SINGLE
public final CommonPreference < Boolean > USE_COMPASS_IN_NAVIGATION = new BooleanPreference ( STRING0 , true ) . makeProfile ( ) . cache ( ) ;
{
- SINGLE
- USE_COMPASS_IN_NAVIGATION . setModeDefaultValue ( ApplicationMode . CAR , false ) ;
+ USE_COMPASS_IN_NAVIGATIO... | Revert fix of using compass |
<nb> public interface OSGIConfig extends KillbillConfig {
STRING0 +
STRING1 +
STRING2 +
+ SINGLE
+ SINGLE
+ SINGLE
+ STRING3 +
+ STRING4 +
STRING5 )
public String getSystemBundleExportPackages ( ) ; | make Felix export javax servlet and javax servlet api |
<nb> public class OPDSCustomLink extends OPDSNetworkLink implements ICustomNetworkLin
error = e ;
}
- SINGLE
if ( ! opensearchDescriptionURLs . isEmpty ( ) ) {
LinkedList < ZLNetworkRequest > requests = new LinkedList < ZLNetworkRequest > ( ) ;
for ( String url : opensearchDescriptionURLs ) { | removed obsolete comment |
<nb> public class IncomingChangesIndicator implements ProjectComponent {
private void update ( @ notnull final Icon icon , @ nullable final String toolTipText ) {
myCurrentIcon = icon ;
myToolTipText = toolTipText ;
+ myStatusBar . updateWidget ( ID ( ) ) ;
}
@ notnull | update incoming changes indicator icon when state changes |
<nb> public class HackerNewsClient implements ItemManager , UserManager {
@ nonnull
private Call < int [ ] > getStoriesCall ( @ fetchmode String filter , @ cachemode int cacheMode ) {
Call < int [ ] > call ;
+ if ( filter == null ) {
+ SINGLE
+ return cacheMode == MODE_NETWORK ?
+ mRestService . networkNe... | Fix legacy widget |
<nb> public class HTreeMap < K , V >
}
}
} ,
- CC . DEFAULT_HTREEMAP_EXECUTOR_SCHED_RATE ,
+ ( long ) ( CC . DEFAULT_HTREEMAP_EXECUTOR_SCHED_RATE * Math . random ( ) ) ,
CC . DEFAULT_HTREEMAP_EXECUTOR_SCHED_RATE ,
TimeUnit . MILLISECONDS ) ;
}
<nb> public abstract class Store implements Engine {
pub... | randomize starting delay so tasks do not run at the same time |
<nb> public class NioClientManager extends AbstractExecutionThreadService implements
} catch ( IOException e ) {
log . error ( STRING0 + serverAddress ) ;
throw new RuntimeException ( e ) ; SINGLE
+ } catch ( AssertionError e ) {
+ log . error ( STRING0 + serverAddress ) ;
+ throw new RuntimeException ( e )... | Catch AssertionError when connecting to sockets |
<nb> public class InferenceIncorporationPhase {
final PsiClass sClass = PsiUtil . resolveClassInClassTypeOnly ( sBound ) ;
if ( sClass == null ) continue ;
final LinkedHashSet < PsiClass > superClasses = InheritanceUtil . getSuperClasses ( sClass ) ;
+ superClasses . add ( sClass ) ;
for ( int j = i + NUMBER0... | allow self as parameterization |
<nb> public class ParserATNSimulator extends ATNSimulator {
SINGLE
return alt ;
}
+
+ addDFAEdge ( dfa , previousD , t , ERROR ) ;
throw noViableAlt ( input , outerContext , previousD . configs , startIndex ) ;
}
<nb> public class ParserATNSimulator extends ATNSimulator {
COMMENT
protected DFASt... | Add error edges to DFA |
<nb> public class BarChart extends BaseBarChart {
@ override
public boolean onTouchEvent ( MotionEvent event ) {
- if ( event . getAction ( ) == MotionEvent . ACTION_UP ) {
+ if ( event . getAction ( ) == MotionEvent . ACTION_DOWN ) {
performClick ( ) ;
return true ;
} else {
<nb> public class PieChar... | replaced ACTION_UP with ACTION_DOWN |
<nb> public class ItemFragment extends LazyLoadFragment implements Scrollable , Naviga
return ;
}
+ mEmptyView . setVisibility ( View . GONE ) ;
String displayOption = Preferences . getCommentDisplayOption ( getActivity ( ) ) ;
if ( Preferences . isSinglePage ( getActivity ( ) , displayOption ) ) {
boolea... | Hide empty state upon refreshed |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unnecessary imports in FileUploader |
<nb> public class LiquidData {
this ( new LiquidStack ( stillLiquidId , BuildCraftAPI . BUCKET_VOLUME ) , new LiquidStack ( movingLiquidId , BuildCraftAPI . BUCKET_VOLUME ) , filled , new ItemStack ( Item . bucketEmpty ) ) ;
}
+ public LiquidData ( LiquidStack stillLiquid , ItemStack filled , ItemStack containe... | Added additional constructor for liquids LiquidData |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove package not required |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class ColumnDecoder
{
try
{
- metadata . put ( String . format ( STRING0 , ks . getName ( ) , cf . getName ( ) ) , CFMetaData . convertToCFMetaData ( c... | improve KsDef backwards compatibility |
<nb> public class TextEditorPropertyTester extends PropertyTester
} else if ( property . equals ( PROP_CAN_LOAD ) ) {
return ! editor . isReadOnly ( ) ;
} else if ( property . equals ( PROP_CAN_COMMENT ) ) {
- if ( editor . getSelectionProvider ( ) . getSelection ( ) . isEmpty ( ) ) {
+ if ( editor . getSelec... | Text editor prop tester npe fix |
<nb> public class Typeface {
COMMENT
COMMENT
public static Typeface create ( Typeface family , int style ) {
+ if ( style < NUMBER0 || style > NUMBER1 ) {
+ style = NUMBER0 ;
+ }
long ni = NUMBER0 ;
if ( family != null ) {
SINGLE | Resolve invalid Typeface style to default |
<nb> public class OAuth2Authorization implements Authorization , java . io . Serializable ,
return STRING0 +
STRING1 + consumerKey + STRING2 +
STRING3 +
- STRING4 + token . toString ( ) +
+ STRING4 + ( ( token == null ) ? STRING5 : token . toString ( ) ) +
STRING6 ;
}
} | Made fix to prevent null pointer exception on OAuth2Authorization toString when token has not been built yet |
<nb> public class AudioRecord
COMMENT
private static final int NATIVE_EVENT_NEW_POS = NUMBER0 ;
- private final static String TAG = STRING0 ;
+ private final static String TAG = STRING1 ;
SINGLE
<nb> public class AudioRecord
}
break ;
default :
- Log . e ( TAG , STRING2 +
- STRING3 + msg . w... | Use the utility logging methods and single tag |
<nb> public class CallFragment extends BaseFragment {
if ( videoTrack != localTrack ) {
if ( localTrack != null ) {
localTrack . removeRenderer ( localRender ) ;
+ localRender . dispose ( ) ;
}
localTrack = videoTrack ;
+ localRender = new VideoRenderer ( localVideoView ) ;
localTrack . addRenderer ( ... | recreate video renderer |
<nb> public class CommandLineParameters implements Cloneable {
@ parameter ( names = { STRING0 , STRING1 } ,
description = STRING2 )
- boolean analyst ;
+ public boolean analyst ;
@ parameter ( names = { STRING3 } ,
description = STRING4 ) | Make analyst command line flag public |
<nb> public class Difference extends SetOperation < Difference > {
@ override
protected void coGroup ( final IArrayNode values1 , final IArrayNode values2 ,
final JsonCollector out ) {
- if ( ! values1 . isEmpty ( ) && values2 . isEmpty ( ) )
+ if ( values2 . isEmpty ( ) )
out . collect ( values1 . get ( NU... | Added input cardinality to global enum improved difference |
<nb> public class ImmutableInstruction20t extends ImmutableInstruction implements Ins
}
return new ImmutableInstruction20t (
instruction . getOpcode ( ) ,
- ( byte ) instruction . getCodeOffset ( ) ) ;
+ instruction . getCodeOffset ( ) ) ;
}
@ override public int getCodeOffset ( ) { return codeOffset ; ... | Fix invalid cast in ImmutableInstruction20t |
<nb> class VarCheck extends AbstractPostOrderCallback implements
if ( n . isName ( ) ) {
switch ( parent . getType ( ) ) {
case Token . VAR :
+ case Token . LET :
+ case Token . CONST :
case Token . FUNCTION :
case Token . CLASS :
case Token . PARAM_LIST :
<nb> public final class VarCheckTest extends ... | Fixed VarCheck to not give NAME_REFERENCE_IN_EXTERNS_ERROR for let const declarations |
<nb> public class JavaFxUnresolvedFxIdReferenceInspection extends XmlSuppressableInsp
@ notnull
@ override
public PsiElementVisitor buildVisitor ( final @ notnull ProblemsHolder holder ,
- boolean isOnTheFly ,
+ final boolean isOnTheFly ,
@ notnull LocalInspectionToolSession session ) {
return new XmlElem... | disable create field fix in batch mode |
<nb> public class ModTextureAnimation extends TextureFX
for ( int frame = NUMBER0 ; frame < frames ; frame ++ )
{
- int [ ] pixels = new int [ tWidth * tHeight ] ;
+ int [ ] pixels = new int [ tileSizeSquare ] ;
image . getRGB ( NUMBER0 , tHeight * frame , tWidth , tHeight , pixels , NUMBER0 , tWidth ) ;
... | Fix up some fubars in MTS and MTA |
<nb> public class HttpResponseDecoderTest {
ch . writeInbound ( Unpooled . wrappedBuffer ( data ) ) ;
SINGLE
- HttpResponse res = ch . readInbound ( ) ;
+ HttpResponse res = ( HttpResponse ) ch . readInbound ( ) ;
assertThat ( res . getProtocolVersion ( ) , sameInstance ( HttpVersion . HTTP_1_0 ) ) ;
asse... | Fix a compilation error |
<nb> public class JetPsiUtil {
}
@ nullable
+ @ contract ( STRING0 )
public static JetExpression deparenthesize ( @ nullable JetExpression expression ) {
return deparenthesize ( expression , COMMENT true ) ;
} | Minor added Contract to JetPsiUtil deparenthesize |
<nb> public class InfinispanSubsystemXMLReader_1_1 implements XMLElementReader < List < M
break ;
}
case START : {
- container . get ( ModelKeys . START ) . set ( value ) ;
+ try {
+ StartMode mode = StartMode . valueOf ( value ) ;
+ container . get ( ModelKeys . START ) . set ( mode . name ( ) ) ;
+ } ... | Make sure we validate cache container StartMode |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.