diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public abstract class StandardFieldsDialog extends AbstractDialog {
contentPanel . add ( getCancelButton ( ) , LayoutHelper . getGBC ( NUMBER0 , NUMBER1 , NUMBER1 , FLOAT0 ) ) ;
}
int x = NUMBER2 ;
- if ( extraButtons != null ) {
- for ( JButton button : extraButtons ) {
- contentPanel . add ( button ,... | Remove redundant null check |
<nb> public final class ActivityStackSupervisor {
TaskRecord sourceTask = sourceRecord . task ;
targetStack = sourceTask . stack ;
moveHomeStack ( targetStack . isHomeStack ( ) ) ;
+ mWindowManager . moveTaskToTop ( sourceTask . taskId ) ;
if ( ! addingToTask &&
( launchFlags & Intent . FLAG_ACTIVITY_CLEAR_... | Move task to top in window manager |
<nb> public class ShiftParamsLogisticClassifierITest {
@ test
public void testStrBinaryDatums ( ) throws Exception {
- testStrBinaryDatums ( FLOAT0 , FLOAT1 , FLOAT0 , FLOAT1 ) ;
+ SINGLE
SINGLE
SINGLE
SINGLE
<nb> import NAMESPACE ;
COMMENT
COMMENT
- public class GetPatternsFromDataMultiClass ... | fixed one test commented other |
<nb> public class VectorDrawable extends Drawable {
}
@ override
+ public ColorFilter getColorFilter ( ) {
+ return mColorFilter ;
+ }
+
+ @ override
public void setTintList ( ColorStateList tint ) {
final VectorDrawableState state = mVectorState ;
if ( state . mTint != tint ) { | Implement getColorFilter on VectorDrawable |
<nb> public class AsyncMethodTestCase {
Future < Boolean > future = bean . futureMethod ( ) ;
Assert . assertTrue ( STRING0 , future . get ( ) ) ;
}
-
} | enhancing basic asynchronous test |
<nb> public class HiveAlterHandler implements AlterHandler {
destPath = new Path ( newTblLoc ) ;
destFs = wh . getFs ( destPath ) ;
SINGLE
- if ( srcFs != destFs ) {
+ if ( ! equalsFileSystem ( srcFs , destFs ) ) {
throw new InvalidOperationException ( STRING0 + destPath
+ STRING1
+ srcPath + STRING2 ) ... | hive table rename fails if filesystem cache is disabled Thejas Nair reviewed by Navis |
<nb> public abstract class FieldExpression < V > implements
@ override
public LogicalCondition < ? extends Expression < V > , V > isNull ( ) {
- return new ExpressionCondition < > ( this , Operator . NULL , null ) ;
+ return new ExpressionCondition < > ( this , Operator . IS_NULL , null ) ;
}
@ override... | Rename operator to IS NULL for clarity |
<nb> public class ScreenCapture {
BufferedImage capturedImage = robot . createScreenCapture ( this . screenBounds ) ;
if ( needToScaleImage ( ) ) {
- if ( quality ) {
+ SINGLE
return useQuality ( capturedImage ) ;
- }
- return getScaledInstance ( capturedImage , scaleWidth , scaleHeight , RenderingHints... | use quality scaling always |
<nb> public class MultiSelectListPreference extends DialogPreference {
COMMENT
COMMENT
public void setValues ( Set < String > values ) {
- mValues = values ;
-
+ mValues . clear ( ) ;
+ mValues . addAll ( values ) ;
+
persistStringSet ( values ) ;
} | Fix amnesia problem in MultiSelectListPreference |
<nb> public class BitmapFont implements Disposable {
setGlyph ( STRING0 , spaceGlyph ) ;
}
if ( spaceGlyph . width == NUMBER0 ) {
- spaceGlyph . width = ( int ) ( spaceGlyph . xadvance + padRight ) ;
+ spaceGlyph . width = ( int ) ( padLeft + spaceGlyph . xadvance + padRight ) ;
spaceGlyph . xoffset = ( int... | Fixed space width when the font reports zero and has padding |
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ threadsafe
- public abstract class AlluxioException extends Exception {
+ public class AlluxioException extends Exception {
private static final long serialVersionUID = NUMBER0 ;
COMMENT
<nb> public abstract class AlluxioException extends Exception {
return ... | Making AlluxioException concrete |
<nb> public class AndroidManifest {
this . assetsDirectory = assetsDirectory ;
}
+ public FsFile getAndroidManifestFile ( ) {
+ return androidManifestFile ;
+ }
+
public String getRClassName ( ) throws Exception {
parseAndroidManifest ( ) ;
return rClassName ;
<nb> public class RobolectricTestRunn... | Do not require the presence of a manifest for library projects |
<nb> public final class MathUtils implements MathConstants {
}
COMMENT
+ COMMENT
+ COMMENT
+ public static final float length ( final float pX , final float pY ) {
+ return FloatMath . sqrt ( ( pX * pX ) + ( pY * pY ) ) ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class MathUt... | Added a few vector utility methods to MathUtils |
<nb> public class SpannableStringBuilderTest {
public void testInsert ( ) throws Exception {
SpannableStringBuilder builder = new SpannableStringBuilder ( STRING0 ) ;
assertThat ( builder . insert ( NUMBER0 , STRING1 ) . toString ( ) , equalTo ( STRING2 ) ) ;
-
+ }
@ test
public void testDelete ( ) thro... | fixed merge mistake |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class ClientCalls {
+ public final class ClientCalls {
private static final Logger log = Logger . getLogger ( ClientCalls . class . getName ( ) ) ;
SINGLE
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class MetadataUtils {
+... | make more classes final |
<nb> public class ControllerMethodInvoker {
private final Method method ;
private final ArgumentExtractor < ? > [ ] argumentExtractors ;
private final boolean useStrictArgumentExtractors ;
+
+ private static boolean nonStrictModeWarningLoggedAlready = false ;
ControllerMethodInvoker (
Method method ,
... | Add less spammy warning message about deprecated mode |
<nb> public class CleanupCommand extends Command {
CleanupOperationOptions operationOptions = new CleanupOperationOptions ( ) ;
OptionParser parser = new OptionParser ( ) ;
+ parser . allowsUnrecognizedOptions ( ) ;
+
OptionSpec < Void > optionNoDatabaseMerge = parser . acceptsAll ( asList ( STRING0 , STRIN... | Fix a CLI text |
<nb> public class TestMusicPlayer extends javax . swing . JFrame {
ar = JmeSystem . newAudioRenderer ( settings ) ;
ar . initialize ( ) ;
ar . setListener ( listener ) ;
+ AudioContext . setAudioRenderer ( ar ) ;
}
COMMENT | fixed TestMusicPlayer to corectly initialize audioContext |
<nb> public abstract class AbstractDatabase implements Database {
return getClobType ( ) ;
} else if ( dataTypeName . equalsIgnoreCase ( STRING0 ) ) {
return getBooleanType ( ) ;
+ } else if ( dataTypeName . equalsIgnoreCase ( STRING1 ) ) {
+ return getDateType ( ) ;
+ } else if ( dataTypeName . equalsIgnor... | Fixed failing tests |
<nb> class ActionBarDrawerToggleJellybeanMR2 {
context = activity ;
}
- final TypedArray a = context . obtainStyledAttributes ( THEME_ATTRS ) ;
+ final TypedArray a = context . obtainStyledAttributes ( null , THEME_ATTRS ,
+ R . attr . actionBarStyle , NUMBER0 ) ;
final Drawable result = a . getDrawable (... | Fix reading the theme s drawer indicator |
<nb> public final class BearerData {
uData . payload = new byte [ NUMBER0 ] ;
uData . numFields = NUMBER0 ;
} else {
- uData . payload = uData . payload ;
uData . numFields = uData . payload . length ;
}
} else { | Removing self assignment statement |
<nb> public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler
public void setDisconnected ( ) {
this . readyConnection . set ( null ) ;
- this . connection = null ;
+
+ TcpConnection < Message < byte [ ] > , Message < byte [ ] > > localConnection = this . connection ;
+ if ( localC... | Improve handling of missed heartbeats |
<nb> public class OClassImpl extends ODocumentWrapperNoClass implements OClass {
public OClass addClusterId ( final int clusterId ) {
getDatabase ( ) . checkSecurity ( ORule . ResourceGeneric . SCHEMA , ORole . PERMISSION_UPDATE ) ;
+ if ( isAbstract ( ) ) {
+ throw new OSchemaException ( STRING0 ) ;
+ }
... | add check for avoid cluster id add on abstract class |
<nb> public interface RuleDefinitions extends ServerExtension {
static interface NewExtendedRepository {
NewRule newRule ( String ruleKey ) ;
+ COMMENT
+ COMMENT
+ COMMENT
void loadAnnotatedClasses ( Class . . . classes ) ;
void done ( ) ; | Add minor comment in RuleDefinitions |
<nb> import NAMESPACE ;
public final class Main {
private static final Logger LOG = Logger . getLogger ( Main . class ) ;
- private static final String GRAYLOG2_VERSION = STRING0 ;
+ private static final String GRAYLOG2_VERSION = STRING1 ;
public static RulesEngine drools = null ;
private static final i... | bumped version constant |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import static NAMESPACE ; | Remove unused import breaks build on some jdks |
<nb> public class MathJax
return ;
}
- SINGLE
+ SINGLE
Token token = docDisplay_ . getTokenAt ( docDisplay_ . getCursorPosition ( ) ) ;
if ( token != null && token . hasType ( STRING0 ) )
{
Range range = MathJaxUtil . getLatexRange ( docDisplay_ ) ;
if ( range != null )
- renderLatex ( range , fal... | avoid eager background re render when no widget available |
<nb> public class GCalConfiguration implements ManagedService {
COMMENT
COMMENT
public static String executeScript =
- STRING0 ;
+ STRING1 ;
private static boolean initialized = false ; | made the executionScript more readable and more debugable |
<nb> public class CppCompletionPopupMenu extends ScrollableToolbarPopupMenu
selectItem ( firstItem ) ;
SINGLE
- if ( ! isAttached ( ) )
+ if ( ! isShowing ( ) )
showMenu ( ) ;
else if ( ! isVisible ( ) )
setVisible ( true ) ; | checking showing rather than attached |
<nb> public final class CapsuleLauncher {
COMMENT
public Capsule newCapsule ( String mode , Path wrappedJar ) {
final String oldMode = properties . getProperty ( PROP_MODE ) ;
+ final ClassLoader oldCl = Thread . currentThread ( ) . getContextClassLoader ( ) ;
+ Thread . currentThread ( ) . setContextClassLoa... | Set context classloader as capsule s during its construction |
<nb> public class OtrEngineHostImpl implements OtrEngineHost {
msg . setFrom ( connection . getLoginUser ( ) . getAddress ( ) ) ;
final Address to = chatSessionAdapter . getAdaptee ( ) . getParticipant ( ) . getAddress ( ) ;
- msg . setTo ( appendSessionResource ( sessionID , to ) ) ;
- SINGLE
+ SINGLE
+ ... | use the JID in the SessionID and don t append session resouce here |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BlockContainerIdGeneratorEntry extends JournalEntry {
public JournalEntryType getType ( ) {
return JournalEntryType . BLOCK_CONTAINER_ID_GENE... | override equals in BlockContainerIdGeneratorEntry |
<nb> import NAMESPACE ;
COMMENT
public class JspApplicationContextImpl implements JspApplicationContext {
- private final static String KEY = JspApplicationContext . class . getName ( ) ;
+ private final static String KEY = JspApplicationContextImpl . class . getName ( ) ;
private final static ExpressionF... | Reset the elContext field after use |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class PeopleListFragment extends ListFragment implements OnItemClickListener {
- private static String ARG_LOCAL_TABLE_BLOG_ID = STRING0 ;
+ private static String ARG_LOCAL_TABLE_BLOG_ID = STRING1 ;
private int mLocalTableBlogID ;
private OnPersonSelecte... | Convert constant strings to all lowercase to be consistent |
<nb> public class MockJDBCSource implements JDBCSource < MockContext > {
}
@ override
+ public JDBCSource < MockContext > shouldDetectGeo ( boolean shouldDetectGeo ) {
+ return this ;
+ }
+
+ @ override
+ public JDBCSource < MockContext > shouldDetectJson ( boolean shouldDetectJson ) {
+ return this... | update mock JDBC source |
<nb> public class BackgroundDexOptService extends JobService {
if ( DEBUG_DEXOPT ) {
Log . i ( TAG , STRING0 + pkg ) ;
}
+
SINGLE
SINGLE
+
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
pm . performDexOpt ( pkg ,
COMMENT
- COMMENT
+ COMMENT
PackageManagerService . REASON_BOOT ,
COMMENT... | Revert Enable profile merging for post OTA package verification |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public class EclipsePluginApplier {
public void apply ( GradleInternal gradle ) {
- Set < Project > allprojects = gra... | Moved the deduplication out of the loop |
<nb> public class SourceFormatter {
! trimmedLine . startsWith ( STRING0 ) ) {
if ( ! trimmedLine . contains ( StringPool . SPACE ) &&
- ! trimmedLine . endsWith ( StringPool . GREATER_THAN ) ) {
+ ! trimmedLine . contains ( StringPool . GREATER_THAN ) ) {
readAttributes = true ;
} | SourceFormatter source formatting |
<nb> import static NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
public class QMapTest { | Remove unused imports |
<nb> import NAMESPACE ;
)
public class CompilerWorkspaceConfiguration implements PersistentStateComponent < CompilerWorkspaceConfiguration > {
public static final int DEFAULT_COMPILE_PROCESS_HEAP_SIZE = NUMBER0 ;
- public static final String DEFAULT_COMPILE_PROCESS_VM_OPTIONS = STRING0 ;
+ public static final... | using CMS GC for build process by default |
<nb> public class S3Client extends DB {
metadata . setContentLength ( totalSize ) ;
try {
PutObjectResult res = this . s3Client . putObject ( bucket , key , input , metadata ) ;
+ if ( res . getETag ( ) == null ) {
+ return NUMBER0 ;
+ }
} catch ( Exception e ) {
e . printStackTrace ( ) ;
return NUMBE... | add check if the file is effectively uploaded |
<nb> public class PostfixCompletionConfigurable implements SearchableConfigurable , Ed
@ nullable
@ override
public String getHelpTopic ( ) {
- return getId ( ) ;
+ return null ;
}
@ nls | Delete help button from postfix completion configurable |
<nb> class SearchSettings {
Settings build ( ) {
ImmutableSettings . Builder builder = ImmutableSettings . settingsBuilder ( ) ;
configureFileSystem ( builder ) ;
- configureStorage ( builder ) ;
+ configureIndexDefaults ( builder ) ;
configurePlugins ( builder ) ;
configureNetwork ( builder ) ;
configu... | Avoid automatic creation of indices |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
... | fixed fuzzy like this queryparser builder |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class XaLogicalLogFiles { | Modified comment on LogicalLogFiles class |
<nb> public class RouteResultPreparation {
ut = false ;
}
}
+ String highway = result . get ( i ) . getObject ( ) . getHighway ( ) ;
+ if ( highway == null || highway . endsWith ( STRING0 ) || highway . endsWith ( STRING1 ) || highway . endsWith ( STRING2 )
+ || highway . endsWith ( STRING3 ) ) {
+ ut = f... | Don t use uturn in services |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class PhraseMatcher extends LineMatcher {
- private String [ ] phraseTerms ;
+ class PhraseMatcher extends LineMatcher {
+ private final String [ ] phraseTerms ;
private int cur ;
public PhraseMatcher ( String [ ] phraseTerms ) { | Fixed FindBugs warning in PhraseMatcher java |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GlobCache {
getGlobAsync ( pattern , excludeDirs ) ;
}
- Set < String > results = new LinkedHashSet < > ( ) ;
+ Linke... | Presize the LinkedHashSet to which we add glob results |
<nb> public class AtmosphereResponse extends HttpServletResponseWrapper {
writeStatusAndHeaders ( ) ;
if ( asyncProtocol . inspectResponse ( ) ) {
byte [ ] b = asyncProtocol . handleResponse ( AtmosphereResponse . this , bytes , start , offset ) ;
- asyncIOWriter . write ( b , NUMBER0 , b . length ) ;
+ async... | Fix trivial typo |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HttpDownloadHelper {
( ( HttpURLConnection ) connection ) . setUseCaches ( true ) ;
( ( HttpURLConnection ) connection ) . setConnectTimeout ( NUMBER0 ) ;
}
... | PLUGINS Always send current ES version when downloading plugins |
<nb> public class MailConsumer extends ScheduledPollConsumer implements BatchConsumer
}
if ( ! connected ) {
+ SINGLE
+ store = null ;
+ folder = null ;
+
if ( LOG . isDebugEnabled ( ) ) {
LOG . debug ( STRING0 + endpoint . getConfiguration ( ) . getMailStoreLogInformation ( ) ) ;
}
<nb> public cl... | Ensure folder get recreated when reconnection in camel mail |
<nb> public class RollbackProcessor implements Processor , Traceable {
public void process ( Exchange exchange ) throws Exception {
SINGLE
exchange . setProperty ( Exchange . ROLLBACK_ONLY , Boolean . TRUE ) ;
- exchange . setException ( new RollbackExchangeException ( message , exchange ) ) ;
+ if ( message ... | RollbackProcessor should handle null messages |
<nb> public class ChatWritePanel extends JScrollPane implements
redo ( ) ;
}
}
- else if ( chatPanel . getChatWindow ( ) . isTypingNotificationEnabled ( ) ) {
+ else if ( chatPanel . getChatWindow ( ) . isTypingNotificationEnabled ( )
+ && e . getKeyCode ( ) != KeyEvent . VK_ESCAPE ) {
if ( typingState !=... | Escape key excluded from typing notifications |
<nb> public class BasicComponentInstance implements ComponentInstance {
interceptorContext . setContextData ( new HashMap < String , Object > ( ) ) ;
return interceptorContext ;
}
-
- protected void finalize ( ) {
- destroy ( ) ;
- }
} | Remove finalizer for BasicComponentInstance |
<nb> public final class DefaultPassConfig extends PassConfig {
checks . add ( polymerPass ) ;
}
+ if ( ( options . checkSuspiciousCode
+ || options . enables ( DiagnosticGroups . GLOBAL_THIS )
+ || options . enables ( DiagnosticGroups . DEBUGGER_STATEMENT_PRESENT ) )
+ && ! options . skipNonTranspilationP... | Moving the checkSuspiciousCode pass to before the later transpilation step |
<nb> public class PurgeDao {
private void purge ( ResourceDto project , String [ ] scopesWithoutHistoricalData , PurgeCommands purgeCommands ) {
List < Long > projectSnapshotIds = purgeCommands . selectSnapshotIds (
- PurgeSnapshotQuery . create ( ) . setResourceId ( project . getId ( ) ) . setIslast ( false ) ... | Fix some quality flaws |
<nb> public class BootstrapCliParserTests extends CliToolTestCase {
for ( String property : propertiesToClear ) {
System . clearProperty ( property ) ;
}
+ propertiesToClear . clear ( ) ;
}
public void testThatVersionIsReturned ( ) throws Exception { | Fix bootstrap cli tests to not clear all properties previous tests set |
<nb> public class PyExtractMethodUtil {
final PsiElement expression ) {
final StringBuilder builder = new StringBuilder ( ) ;
builder . append ( generateSignature ( methodName , variableData , expression ) ) ;
- builder . append ( expression . getText ( ) ) ;
+ builder . append ( STRING0 ) . append ( expressi... | Fixed extract method in case of expression |
<nb> public class JarLauncher extends ExecutableArchiveLauncher {
}
public static void main ( String [ ] args ) {
- new JarLauncher ( ) . launch ( args ) ;
+ int count = new Integer ( System . getProperty ( STRING0 , STRING1 ) ) ;
+ for ( int i = NUMBER0 ; i < count ; i ++ ) {
+ new JarLauncher ( ) . laun... | Add launcher count as useful performance testing aid |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
+ C... | Added javaDoc for ExpirationManager |
<nb> import NAMESPACE ;
COMMENT
public class Version {
COMMENT
- public static final String VERSION = STRING0 ;
+ public static final String VERSION = STRING1 ;
COMMENT
public static final int MAJOR ; | Updated to next dev version |
<nb> public class NetworkMonitor extends StateMachine {
transitionTo ( mEvaluatingState ) ;
break ;
case CMD_NETWORK_DISCONNECTED :
- if ( DBG ) log ( STRING0 ) ;
- transitionTo ( mOfflineState ) ;
+ if ( DBG ) log ( STRING1 ) ;
+ quit ( ) ;
break ;
case CMD_FORCE_REEVALUATION :
if ( DBG ) log ( STR... | Quit NetworkMonitors at end of life |
<nb> public class StreamingRepairTask implements Runnable , StreamEventHandler
this . request = request ;
}
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public boolean isLocalTask ( )
- {
- return request . initiator . equals ( request . src ) ;
- }
-
public void run ( )
{
if ( request . src ... | Remove unused isLocalTask method |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public interface QuadTree < T extends PointQuadTree . Item > {
+ public interface QuadTree < T extends QuadTree . Item > {
void add ( T item ) ;
boolean remove ( T item ) ; | Set up LinearQuadTree stub |
<nb> public class SharedClusterSnapshotRestoreTests extends AbstractSnapshotTests {
NumShards numShards = getNumShards ( STRING0 ) ;
cluster ( ) . wipeIndices ( STRING0 ) ;
- assertAcked ( prepareCreate ( STRING0 , NUMBER0 , ImmutableSettings . builder ( )
+ assertAcked ( prepareCreate ( STRING0 ) . setSettin... | TEST don t restrict index to nodes |
<nb> public class PyDebuggerTask extends PyBaseDebuggerTask {
pyState . execute ( executor , PyDebugRunner . createCommandLinePatchers ( myFixture . getProject ( ) , pyState , profile , serverLocalPort ) ) ;
mySession = XDebuggerManager . getInstance ( getProject ( ) ) .
- startSession ( runner , env , env . ge... | Don t use deprecated method |
<nb> public class Executor implements FactoryOperations {
SINGLE
SINGLE
- private static int filterOne ( int i , String action ) {
- if ( i <= NUMBER0 ) {
- return i ;
- }
- else {
- throw new InvalidResultException ( STRING0 + action + STRING1 + i ) ;
- }
- }
-
private static < R extends Reco... | Inlined method that is no longer really used |
<nb> class StatementMover extends LineMover {
sibling = ( ( PsiNewExpression ) sibling ) . getAnonymousClass ( ) ;
}
if ( ! ( sibling instanceof PsiClass ) ) return destLine ;
- destLine = editor . getDocument ( ) . getLineNumber ( down ? toMove . getTextRange ( ) . getEndOffset ( ) : toMove . getTextRange ( ) ... | move statement down correctly past single line anonymous class |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> final class GenericTypeAwarePropertyDescriptor extends PropertyDescriptor {
Set < Method > ambiguousCandidates = new HashSet < Method > ( ) ;
for ( Method method : beanClass . getMethods ( ) ) {
if ( method . getName ( ) . equals ( writeM... | Avoid ambiguous property warning for methods with multiple parameters |
<nb> public class JBTabsImpl extends JComponent
@ notnull
private ActionCallback _setSelected ( final TabInfo info , final boolean requestFocus ) {
+ if ( ! isEnabled ( ) ) {
+ return ActionCallback . REJECTED ;
+ }
if ( mySelectionChangeHandler != null ) {
return mySelectionChangeHandler . execute ( in... | don t switch tabs when you re disabled |
<nb> public class ProfileRouter {
public Map < TripPattern , StopAtDistance > findClosestPatterns ( Multimap < StopCluster , StopAtDistance > stopClusters ) {
SimpleIsochrone . MinMap < TripPattern , StopAtDistance > closest = new SimpleIsochrone . MinMap < TripPattern , StopAtDistance > ( ) ;
SINGLE
- for ( St... | remove url pasted into source code |
<nb> public class Patches {
COMMENT
COMMENT
COMMENT
- public static final boolean JDK_BUG_ID_7162125 = SystemInfo . isMac && ! SystemInfo . isJavaVersionAtLeast ( STRING0 ) ;
+ public static final boolean JDK_BUG_ID_7162125 ;
+ static {
+ boolean value ;
+ if ( ! SystemInfo . isMac || SystemInfo . isJav... | disable a workaround for a Mac OS JDK issue when custom JDK with a fix is used |
<nb> public class QueueSchedulerTest {
final DeploymentManager deploymentManager = new TestDeploymentManager ( ) ;
final QueueScheduler toTest = spy ( new QueueScheduler ( deploymentManager , this . instanceManager ) ) ;
- final JobID jobid = mock ( JobID . class ) ;
+ final JobID jobid = new JobID ( ) ;
fi... | Fixed queue scheduler test |
<nb> final public class AndrolibResources {
private boolean mSharedLibrary = false ;
private final static String [ ] IGNORED_PACKAGES = new String [ ] {
- STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 } ;
+ STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING7 } ;
priva... | skip its com miui core now |
<nb> public class GrailsPageResponseWrapper extends HttpServletResponseWrapper {
private GrailsBuffer buffer ;
private boolean parseablePage = false ;
private GSPSitemeshPage gspSitemeshPage ;
- private String wrapperContentType = null ;
public GrailsPageResponseWrapper ( final HttpServletRequest request , ... | Revert make GrailsPageResponseWrapper getContentType return only the contentType that has been set to the wrapper instance |
<nb> public class RuntimeMetaData {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
public class Tool {
public static final String VERSION ;
static {
+ SINGLE
+ SINGLE
VERSION = RuntimeMetaData . VE... | Updated comments to clarify recent changes in code |
<nb> public class SearchDialog extends DialogWrapper implements ConfigurationCreator
@ override
protected JComponent createSouthPanel ( ) {
- final JPanel statusPanel = new JPanel ( new BorderLayout ( ) ) ;
+ final JPanel statusPanel = new JPanel ( new BorderLayout ( NUMBER0 , NUMBER1 ) ) ;
statusPanel . ad... | status message doesn t need mnemonic and add some room between label and message |
<nb> public class ZWaveNode {
}
}
- logger . warn ( STRING0 , this . getNodeId ( ) , endpointId ) ;
+ logger . warn ( STRING1 , this . getNodeId ( ) , endpointId ) ;
return null ;
}
<nb> public abstract class ZWaveCommandClass {
@ xstreamomitfield
private ZWaveController controller ;
- private... | Remove static definition for command class endpoint |
<nb> public class XmlSchemaParser
typeByNameMap . put ( STRING0 , new EncodedDataType ( STRING0 , Presence . REQUIRED , null , null , PrimitiveType . UINT16 , NUMBER0 , false ) ) ;
typeByNameMap . put ( STRING1 , new EncodedDataType ( STRING1 , Presence . REQUIRED , null , null , PrimitiveType . UINT32 , NUMBER0 , ... | Added float and double to the fixed list of primitive types for XmlSchemaParser |
<nb> import NAMESPACE ;
public final class LoggerContext {
- public static final Option OPTION_LOG_LEVEL = new Option ( STRING0 , STRING1 ) ;
+ public static final Option OPTION_LOG_LEVEL = new Option ( STRING0 , STRING2 ) ;
public static final Option OPTION_LOG_APPENDER_CONSOLE = new Option ( STRING3 , STR... | Fix default log level |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT | Fix checkstyle complaint |
<nb> public class Alarm implements Disposable {
private ScheduledFuture < ? > myFuture ;
public Request ( final Runnable task , final ModalityState modalityState ) {
- myTask = task ;
+ myTask = new Runnable ( ) {
+ public void run ( ) {
+ synchronized ( LOCK ) {
+ myRequests . remove ( Request . this )... | remove requests from queue |
<nb> public class StaggeredGridView extends ViewGroup {
final int childRight = childLeft + child . getMeasuredWidth ( ) ;
if ( position == NUMBER0 ) {
- if ( this . getChildCount ( ) > NUMBER1 ) {
+ if ( this . getChildCount ( ) > NUMBER1 && this . mColCount > NUMBER1 ) {
childTop = this . getChildAt ( NUMB... | Added fix for single column display |
<nb> public class GCDocument extends JInternalFrame {
this . refreshWatchDog = new RefreshWatchDog ( ) ;
refreshWatchDog . setGcDocument ( this ) ;
preferences = gcViewer . getPreferences ( ) ;
+ showModelPanel = preferences . isShowDataPanel ( ) ;
modelChartListFacade = new MultiModelChartFacade ( ) ;
Grid... | respect stored property showDataPanel when opening first document |
<nb> public class BulletAppState implements AppState , PhysicsTickListener {
SINGLE
if ( threadingType == ThreadingType . PARALLEL ) {
startPhysicsOnExecutor ( ) ;
- SINGLE
- SINGLE
- SINGLE
} else {
pSpace = new PhysicsSpace ( worldMin , worldMax , broadphaseType ) ;
}
<nb> public class BulletAppSt... | remove leftover code from BulletAppState |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAM... | removed uneccessary improts |
<nb> public class PyBuiltinAnnotator extends PyAnnotator {
@ override
public void visitPyReferenceExpression ( PyReferenceExpression node ) {
final String name = node . getName ( ) ;
+ if ( name == null ) return ;
if ( PyNames . UnderscoredAttributes . contains ( name ) || PyNames . BuiltinMethods . containsK... | Fix NPE when the name is empty |
<nb> public class Protocol {
public static final int BASE_WIFI_RTT_SERVICE = NUMBER0 ;
public static final int BASE_WIFI_PASSPOINT_MANAGER = NUMBER1 ;
public static final int BASE_WIFI_PASSPOINT_SERVICE = NUMBER2 ;
+ public static final int BASE_WIFI_LOGGER = NUMBER3 ;
public static final int BASE_DHCP = NUMB... | add BASE_WIFI_LOGGER to system protocol messages |
<nb> public abstract class HardwareRenderer {
@ override
void initAtlas ( ) {
IBinder binder = ServiceManager . getService ( STRING0 ) ;
+ if ( binder == null ) return ;
+
IAssetAtlas atlas = IAssetAtlas . Stub . asInterface ( binder ) ;
try {
GraphicBuffer buffer = atlas . getBuffer ( ) ; | Prevent a crash on devices that remove non core services |
<nb> public class PythonBackspaceHandler extends BackspaceHandlerDelegate {
if ( myTargetPosition != null ) {
SINGLE
final int offset = editor . getCaretModel ( ) . getOffset ( ) ;
- editor . getSelectionModel ( ) . setSelection ( offset , offset + editor . getCaretModel ( ) . getVisualPosition ( ) . column - m... | Fixed problem with broken backspace delete on MacOS |
<nb> public class TileBuffer {
tile = null ;
blockID = world . getBlockId ( this . x , this . y , this . z ) ;
- if ( Block . blocksList [ blockID ] instanceof BlockContainer )
+ Block block = Block . blocksList [ blockID ] ;
+ if ( block != null
+ && block . hasTileEntity ( world . getBlockMetadata ( thi... | Fixed Pipes not connecting to tile entities whose blocks don t extend BlockContainer |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused imports |
<nb> public class RSConnectPublishInput
public boolean isStaticDocInput ( )
{
+ if ( getContentType ( ) == RSConnect . CONTENT_TYPE_PLOT )
+ return true ;
if ( getContentType ( ) != RSConnect . CONTENT_TYPE_DOCUMENT )
return false ;
if ( getSourceRmd ( ) == null ) | treat plots as static doc input in publish wizard |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ZenModeHelper {
}
private boolean isDefaultMessagingApp ( NotificationRecord record ) {
+ final int userId = record . g... | Handle special users in default app check |
<nb> public final class Service {
if ( other instanceof Service ) {
Service that = ( Service ) other ;
return name . equals ( that . name )
+ && fqname . equals ( that . fqname )
&& documentation . equals ( that . documentation )
&& methods . equals ( that . methods ) ;
} | Include fully qualified service name in equals check |
<nb> public class LiquibaseServletListener implements ServletContextListener {
while ( initParameters . hasMoreElements ( ) ) {
String name = initParameters . nextElement ( ) . trim ( ) ;
if ( name . startsWith ( STRING0 ) ) {
- liquibase . setChangeLogParameter ( name . substring ( STRING1 . length ( ) ) , ser... | Properly parse liquibase parameter from the servlet context |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
public class ControlOverrides {
private int proxyPort = - NUMBER0 ;
private String proxyHost = null ;
+ private Hashtable < String , String > configs = new Hashtable < String , String > ( ) ;
p... | Allow arbitrary config file values to be set via the command line |
<nb> public class IpnbUtils {
}
private static String prepareLatex ( @ notnull String string ) {
- return string . replace ( STRING0 , STRING1 ) ;
+ string = string . replace ( STRING0 , STRING1 ) ;
+ string = string . replace ( STRING2 , STRING3 ) ;
+ return string ;
} | replace cr with new line |
<nb> public class TextEditingTarget implements
void onJumpToMatching ( )
{
docDisplay_ . jumpToMatching ( false , false ) ;
+ docDisplay_ . ensureCursorVisible ( ) ;
}
@ handler
void onSelectToMatching ( )
{
docDisplay_ . jumpToMatching ( true , false ) ;
+ docDisplay_ . ensureCursorVisible ( ) ; ... | ensure cursor visible after jump |
<nb> public class HttpSessionImpl implements HttpSession {
} else if ( old == null ) {
applicationListeners . httpSessionAttributeAdded ( this , name , value ) ;
} else {
- applicationListeners . httpSessionAttributeReplaced ( this , name , value ) ;
+ applicationListeners . httpSessionAttributeReplaced ( thi... | Fix payload for event |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.