diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public interface Manager {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public void setSessionIdGenerator ( SessionIdGenerator sessionIdGenerator ) ;
<nb> public abstract class ManagerBase extends LifecycleMBeanBase
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ overri... | Fix new Javadoc |
<nb> public class LocalFileSystem extends FileSystem {
COMMENT
@ override
public FSDataInputStream open ( final Path f , final int bufferSize ) throws IOException {
- SINGLE
- return null ;
+ return open ( f ) ;
}
COMMENT | Implemented basic version of open path bufferSize |
<nb> public class UserManagerService extends IUserManager . Stub {
mUserListFile = new File ( mUsersDir , USER_LIST_FILENAME ) ;
initDefaultGuestRestrictions ( ) ;
readUserListLocked ( ) ;
+ sInstance = this ;
+ }
+ }
+ }
+
+ void systemReady ( ) {
+ synchronized ( mInstallLock ) {
+ synchronized ... | postpone user cleanup to systemready |
<nb> public class SwingSpyPanel extends JPanel {
}
private static String htmlSafe ( String str ) {
- str = str . replace ( STRING0 , STRING1 ) ;
- str = str . replace ( STRING2 , STRING3 ) ;
+ str = str . replace ( STRING2 , STRING1 ) ;
+ str = str . replace ( STRING0 , STRING3 ) ;
str = str . replace (... | fixed html char conversion |
<nb> public class Timetable implements Serializable {
} else {
long today = updateServiceDate . getAsDate ( timeZone ) . getTime ( ) / NUMBER0 ;
- if ( i > NUMBER1 ) {
+ if ( i == NUMBER1 ) {
+ if ( update . hasArrival ( ) ) {
+ StopTimeEvent arrival = update . getArrival ( ) ;
+ if ( arrival . hasDelay... | Propagate arrival delays from first stop |
<nb> public final class DBReader {
int numNewItems = adapter . getNumberOfNewItems ( ) ;
int numDownloadedItems = adapter . getNumberOfDownloadedEpisodes ( ) ;
- NavDrawerData result = new NavDrawerData ( feeds , queueSize , numNewItems , feedCounters ) ;
+ NavDrawerData result = new NavDrawerData ( feeds , q... | And now also set it |
<nb> public class VoldemortBuildAndPushJob extends AbstractJob {
+ STRING0
+ remoteStoreDef ) ;
}
+ } else {
+ throw new RuntimeException ( STRING1
+ + newStoreDef
+ + STRING0
+ + remoteStoreDef ) ;
}
}
<nb> public class VoldemortBuildAndPushJob extends AbstractJob {
+ STRING0
+ remoteStoreD... | Adding a missing else block for throwing a store def mismatch exception |
<nb> public class CFPropDefs extends PropertyDefinitions
public static final String KW_CACHING = STRING0 ;
public static final String KW_BF_FP_CHANCE = STRING1 ;
- public static final String KW_COMPACTION = STRING2 ;
+ public static final String KW_COMPACTION = STRING3 ;
public static final String KW_COMPRE... | set KW_COMPACTION back to compaction |
<nb> public class DataSourceFactory {
private boolean checkConnectionOnReturn = false ;
- private boolean defaultReadOnly = false ;
-
private boolean autoCommentsEnabled = true ;
@ notnull
<nb> public class DataSourceFactory {
this . checkConnectionWhileIdle = checkConnectionWhileIdle ;
}
+ @ ... | Deprecate the defaultReadOnly property in favor of readOnlyByDefault |
<nb> public abstract class BaseCaptureActivity extends AppCompatActivity implements B
if ( uri != null ) {
setResult ( Activity . RESULT_OK , getIntent ( )
. putExtra ( MaterialCamera . STATUS_EXTRA , MaterialCamera . STATUS_RECORDED )
- . setDataAndType ( Uri . parse ( uri ) , useStillshot ( ) ? STRING0 : STRI... | Fixed typo in image mime |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StatefulTimeoutTestCase extends ClusterAbstractTestCase {
assertEquals ( NUMBER0 , queryCount ( client , uri2 ) ) ;
assertE... | Fix transient failures by scaling wait periods |
<nb> public class NioWorker extends AbstractNioWorker {
selector , channel . getRawInterestOps ( ) , channel ) ;
}
+ } else {
+ setInterestOps ( channel , succeededFuture ( channel ) , channel . getRawInterestOps ( ) ) ;
}
if ( future != null ) { | Correctly handle interestedOps changes |
<nb> public class OsmandApplication extends Application {
public void run ( ) {
List < String > warnings = null ;
try {
- NativeOsmandLibrary . preloadLibrary ( ) ;
+ try {
+ NativeOsmandLibrary . preloadLibrary ( ) ;
+ } catch ( ExceptionInInitializerError e ) {
+ LOG . info ( STRING0 ) ;
+ }
warni... | Consume exception if native library could not be loaded |
<nb> public class SearchQueryQueryToolChest extends QueryToolChest < Result < SearchResul
}
final ByteBuffer queryCacheKey = ByteBuffer
- . allocate ( NUMBER0 + granularityBytes . length + filterBytes . length + querySpecBytes . length + dimensionsBytesSize )
+ . allocate (
+ NUMBER0 + NUMBER1 + granularity... | allocate correct buffer size for search query caching |
<nb> public class JavaBreakpointType extends XLineBreakpointTypeBase {
@ contract ( STRING0 )
public static boolean doCanPutAt ( @ nullable PsiFile psiFile ) {
- if ( psiFile == null ) {
+ SINGLE
+ if ( psiFile == null || psiFile . getVirtualFile ( ) . getFileType ( ) == StdFileTypes . XHTML ) {
return fa... | JSPX supports jvm debugging but not in XHTML files |
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
public interface RealmChangeListener {
COMMENT
- COMMENT
+... | Updated RealmChangeListener JavaDoc |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class CsvReporterFactory extends BaseFormattedReporterFactory {
@ override
public ScheduledReporter build ( MetricRegistry registry ) {
- SING... | Create parent directories and fail fast |
<nb> public class BuildCraftCore {
@ postinit
public void postInit ( FMLPostInitializationEvent event ) {
for ( Block block : Block . blocksList ) {
- if ( block instanceof BlockFluid || block instanceof BlockTallGrass ) {
+ if ( block instanceof BlockFluid || block instanceof BlockTallGrass || block instance... | Added BlockFlower to softBlocks |
<nb> public class DependencyInjectorGenerator {
}
String copyright = STRING0 ;
- out . println ( FileUtil . loadFile ( new File ( copyright ) , true ) ) ;
+ out . println ( FileUtil . loadFile ( new File ( copyright ) ) ) ;
out . println ( ) ;
out . println ( STRING1 + injectorPackageName + STRING2 ) ; ... | Fix line endings in dependency injector generator |
<nb> public class CachedSearchResult
COMMENT
Closes the underling file handle
COMMENT
- public void close ( )
+ private void close ( )
{
try
{ | Changed the close method to be private |
<nb> public class JpsIdePluginManagerImpl extends JpsPluginManager {
loaders . add ( getClass ( ) . getClassLoader ( ) ) ;
}
+ Set < String > loadedUrls = new HashSet < String > ( ) ;
for ( ClassLoader loader : loaders ) {
try {
Enumeration < URL > resources = loader . getResources ( resourceName ) ;
wh... | skip duplicated urls |
<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 ;
impo... | Removing wildcard import |
<nb> public class StatFilter extends FilterEventAdapter implements StatFilterMBean {
return slowSqlMillis ;
}
+ public void setSlowSqlMillis ( long slowSqlMillis ) {
+ this . slowSqlMillis = slowSqlMillis ;
+ }
+
+ public boolean isLogSlowSql ( ) {
+ return logSlowSql ;
+ }
+
+ public void setLo... | StatFilter add getter setter for logSlowSql slowSqlMillis |
<nb> public class OfflineMessageStrategy extends BasicModule {
SINGLE
SINGLE
if ( message . getType ( ) == Message . Type . normal || message . getType ( ) == Message . Type . groupchat || message . getType ( ) == Message . Type . headline ) {
+ SINGLE
if ( type == Type . bounce ) {
bounce ( message ) ;
-... | Shorten if else statement in OfflineMessageStrategy |
<nb> public abstract class AbstractCacheRecord < V > implements CacheRecord < V > , DataSeri
}
@ override
+ @ edu.umd.cs.findbugs.annotations.suppresswarnings ( value = STRING0 ,
+ justification = STRING1 )
public void incrementAccessHit ( ) {
accessHit ++ ;
}
<nb> import NAMESPACE ;
COMMENT
COMME... | Fixed findbugs issues |
<nb> public class PsiSearchHelperImpl implements PsiSearchHelper {
static {
registerCustomSearchHelper ( StdFileTypes . HTML , new HtmlCustomSearchHelper ( ) ) ;
registerCustomSearchHelper ( StdFileTypes . XHTML , new XHtmlCustomSearchHelper ( ) ) ;
+ registerCustomSearchHelper ( StdFileTypes . JSPX , new XHtml... | find usages rename css in jspx |
<nb> public class Server implements CassandraDaemon . Server
this . encryptionOptions = encryptionOptions ;
try
{
- this . sslContext = SSLFactory . createSSLContext ( encryptionOptions , false ) ;
+ this . sslContext = SSLFactory . createSSLContext ( encryptionOptions , encryptionOptions . require_client_aut... | Load a truststore if client certificate authentication is enabled |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractJavaToKotlinCopyPasteConversionTest extends LightC
private static final String BASE_PATH = Plugin... | Fixed test for java to Kotlin copy paste java standard classes used to not be resolved |
<nb> public abstract class AbstractBlockChain {
}
}
+ COMMENT
+ public void removeWallet ( Wallet wallet ) {
+ removeListener ( wallet ) ;
+ }
+
COMMENT
COMMENT
COMMENT | Add AbstractBlockChain removeWallet |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultControlPanelEntryFactory {
private DefaultControlPanelEntryFactory ( ) {
Registry registry = RegistryUtil . getRegistry ( ) ;
- _serviceTracker = registry . trackServic... | portlets are tracking their own instance |
<nb> public class V3ClassAdapter implements DexClassVisitor {
}
}
}
+
Clz clz = this . clz ;
- int access = clz . access ;
+
+ SINGLE
+ final int x = ( Opcodes . ACC_INTERFACE | Opcodes . ACC_ABSTRACT ) ;
+ int access = ( clz . access & ~ x ) | ( access_flags & x ) ;
+
boolean isInnerClass = clz... | use the flag from class as the interface abstract flag in inner class |
<nb> public final class PropertiesExpander
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
public PropertiesExpander ( Properties properties ) {
if ( properties == null ) { | custom tag noinspection cause build problems during release |
<nb> public class PersonSessionBean {
}
public void createPerson ( ) {
- client . set ( person . getName ( ) , person ) ;
+ client . set ( person . getName ( ) , new Person ( person . getName ( ) , person . getAge ( ) ) ) ;
set . add ( person . getName ( ) ) ;
} | Persisting object instance instead of proxy |
<nb> public class MessageView extends Activity
public boolean onKeyDown ( int keyCode , KeyEvent event ) {
switch ( keyCode ) {
case KeyEvent . KEYCODE_DEL : { onDelete ( ) ; return true ; }
+ case KeyEvent . KEYCODE_D : { onDelete ( ) ; return true ; }
case KeyEvent . KEYCODE_F : { onForward ( ) ; return tru... | Added a d keybinding for delete |
<nb> import NAMESPACE ;
public class LinkedInApi extends DefaultApi10a
{
- private static final String AUTHORIZE_URL = STRING0 ;
+ private static final String AUTHORIZE_URL = STRING1 ;
@ override
public String getAccessTokenEndpoint ( ) | LinkedIn authorize URL changed |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
@ module
public class AppModule {
<nb> public class AppModule {
@ provides @ singleton AvengersApplication provideAvengersApplicationContext ( ) { return mAvengersApplication ... | Renamed RestRepository to RestDataSource |
<nb> public final class FileSystemMaster extends MasterBase {
throws FileAlreadyExistsException , InvalidPathException , IOException {
synchronized ( mInodeTree ) {
if ( mountInternal ( tachyonPath , ufsPath ) ) {
- boolean loadMetadataSuceeded = true ;
+ boolean loadMetadataSuceeded = false ;
try {
SINGL... | Fix loadMetadata initialization |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public class MainActivity extends AppCompatActivity {
private BottomBar mBottomBar ;
<nb> public class MainActivity extends AppCompatA... | Removed unnecessary shiet |
<nb> class ServletClientSocketChannel extends AbstractChannel
if ( closed ) {
throw e ;
}
- lock . lock ( ) ;
if ( lock . tryLock ( ) ) {
try {
connectAndSendHeaders ( true , getRemoteAddress ( ) ) ; | Fixed a bug found by Find Bugs |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | add license header to IFileDownloadServiceHandler |
<nb> public class InMemoryTitanGraph extends AbstractTitanTx implements InternalTitan
@ override
public synchronized void commit ( ) {
- SINGLE
+ super . commit ( ) ;
}
@ override
<nb> public class InMemoryTitanGraph extends AbstractTitanTx implements InternalTitan
@ override
public void shutdow... | fixed InMemoryTitanGraph change |
<nb> public class HostConfig implements LifecycleListener {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- protected synchronized void checkResources ( DeployedApplication app ) {
- checkResources ( app , false ) ;
- }
-
- COMMENT
- COMMENT
- COMMENT
COMMENT
COMME... | Remove deprecated code |
<nb> public class TaskListActivity extends ListFragment implements OnScrollListener ,
intent = item . getIntent ( ) ;
AndroidUtilities . startExternalIntent ( getActivity ( ) , intent , ACTIVITY_MENU_EXTERNAL ) ;
return true ;
- case android . R . id . home : {
- if ( ! mDualFragments ) {
- SINGLE
- showF... | Fixed Astrid up button not working in landscape with edit view |
<nb> public class Capsule implements Runnable {
private static final int WINDOWS_MAX_CMD = NUMBER0 ; SINGLE
private static final ClassLoader MY_CLASSLOADER = Capsule . class . getClassLoader ( ) ;
private static final Permission PERM_UNSAFE_OVERRIDE = new RuntimePermission ( STRING0 ) ;
- private static final i... | Increase agent connect timeout for slower loaded Windows machines |
<nb> public class RestController extends AbstractLifecycleComponent < RestController > {
Arrays . sort ( copy , new Comparator < RestFilter > ( ) {
@ override
public int compare ( RestFilter o1 , RestFilter o2 ) {
- return o2 . order ( ) - o1 . order ( ) ;
+ return Integer . compare ( o1 . order ( ) , o2 . or... | fixed filters execution order to be from lowest to highest rather than the other way around |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BottomSheetHideable extends BottomSheetUsageBase {
mToggle . setOnClickListener ( mOnClickListener ) ;
mBehavior . setBottomSheetCallback ( n... | BottomSheetBehavior passes View to callbacks |
<nb> public final class TaskEditActivity extends TabActivity {
if ( ! onPause && peopleControlSet != null && ! peopleControlSet . saveSharingSettings ( processedToast ) )
return ;
- finish ( ) ;
+ if ( ! onPause ) SINGLE
+ finish ( ) ;
}
@ override | Fixed a bug that caused task edit activity to quit on rotate |
<nb> public class ShardedDistributedMessageQueue implements MessageQueue {
hook . beforeAckMessage ( message , mb ) ;
}
}
+
+ if ( context . getNextMessage ( ) != null ) {
+ try {
+ fillMessageMutation ( mb , context . getNextMessage ( ) ) ;
+ } catch ( MessageQueueException e ) {
+ LOG . warn ( STRIN... | Hook up nextMessage to ack mutation |
<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 ;
<nb> public class ClusterClient extends LifecycleAdap... | Added info messages on incoming connections as well |
<nb> public class TestSharded extends BaseShardedTest {
@ test
public void testBasicInputSource ( ) {
new MapReduceJob ( TreasuryYieldXMLConfig . class . getName ( ) )
+ . jar ( JOBJAR_PATH )
. inputUris ( getInputUri ( ) )
. outputUris ( getOutputUri ( ) )
. execute ( isRunTestInVm ( ) ) ;
<nb> public ... | configure the job jar |
<nb> public class GoConfigWatchList implements ConfigChangedListener {
this . fileGoConfig = fileGoConfig ;
this . reposConfig = fileGoConfig . currentConfig ( ) . getConfigRepos ( ) ;
+ this . fileGoConfig . registerListener ( this ) ;
}
public ConfigReposConfig getCurrentConfigRepos ( )
<nb> public cl... | GoConfigWatchList should listen for changes in file config |
<nb>
package NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ; | Manually remove spaces AS added between import statements |
<nb> public final class CommonUtils {
String trimmedPath ;
if ( k == NUMBER0 ) {
trimmedPath = CharMatcher . is ( TachyonURI . SEPARATOR . charAt ( NUMBER0 ) ) . trimTrailingFrom ( path ) ;
- if ( path . startsWith ( STRING0 ) ) {
+ if ( path . startsWith ( TachyonURI . SEPARATOR ) ) {
isAbsPath = true ;
... | Replace hardcoded with TachyonURI SEPARATOR in concatPath |
<nb> public class Selection < T > implements Disableable , Iterable < T > {
COMMENT
public T getLastSelected ( ) {
- return lastSelected != null ? lastSelected : selected . first ( ) ;
+ if ( lastSelected != null ) {
+ return lastSelected ;
+ } else if ( selected . size > NUMBER0 ) {
+ return selected .... | Avoid IllegalStateException if called on empty selection set |
<nb> class ConfusionRuleEvaluator {
String textToken = isCorrect ? token : homophoneToken ;
String plainText = sentence . getText ( ) ;
String replacement = plainText . indexOf ( textToken ) == NUMBER0 ? StringTools . uppercaseFirstChar ( token ) : token ;
- String replacedTokenSentence = isCorrect ? plainText ... | fix displayed sentence |
<nb> public class AdminConnectionVerifier implements ConnectionVerifier {
public AdminConnectionVerifier ( Cluster cluster ) {
this . cluster = cluster ;
this . adminClient = new AdminClient ( this . cluster ,
- new AdminClientConfig ( ) . setMaxConnectionsPerNode ( NUMBER0 ) ,
- new ClientConfig ( ) . setSel... | remove mex connection constraint |
<nb> public class SQLAutoIndentStrategy extends DefaultIndentLineAutoEditStrategy {
return false ;
}
}
+ if ( quoteStart == - NUMBER0 || quoteEnd == - NUMBER0 ) {
+ return false ;
+ }
StringBuilder result = new StringBuilder ( sourceCode . length ( ) ) ;
char prevChar = ( char ) - NUMBER0 ;
boolean in... | SQL editor Paste fixed extract from source code bug |
<nb> public class MjAPI {
return NUMBER0 ;
}
+ public double getEnergyStored ( ) {
+ try {
+ return f . field . getDouble ( o ) ;
+ } catch ( IllegalAccessException e ) {
+ e . printStackTrace ( ) ;
+ return NUMBER0 ;
+ }
+ }
+
+ public double maxCapacity ( ) {
+ return f . battery . maxCapa... | Add MjAPI getEnergyStored and maxCapacity |
<nb> public class DomainModelControllerService extends AbstractControllerService impl
SINGLE
SINGLE
- NativeManagementAddHandler . installNativeManagementServices ( serviceTarget , hostControllerInfo , null , null ) ;
ServerToHostOperationHandlerFactoryService . install ( serviceTarget , ServerInventoryServ... | Install dependent service after dependency to avoid intermittent missing dependency reports |
<nb> public final class DropFunctionStatement extends SchemaAlteringStatement
return sb . toString ( ) ;
}
- private String typeKeyspace ( CQL3Type . Raw rawType )
- {
- String ks = rawType . keyspace ( ) ;
- if ( ks != null )
- return ks ;
- return functionName . keyspace ;
- }
-
private Functi... | remove dead code |
<nb> public abstract class Connection extends Conferenceable {
@ systemapi
@ deprecated
public final AudioState getAudioState ( ) {
+ if ( mCallAudioState == null ) {
+ return null ;
+ }
return new AudioState ( mCallAudioState ) ;
} | Fix crash when doing conferencing over Wi Fi |
<nb> public class LiquidTank implements ILiquidTank {
private LiquidStack liquid ;
private int capacity ;
+ public LiquidTank ( int capacity ) {
+ this ( null , capacity ) ;
+ }
+
public LiquidTank ( int liquidId , int quantity , int capacity ) {
this ( new LiquidStack ( liquidId , quantity ) , capaci... | Added additional constructor for LiquidTank |
<nb> public class MessageAdapter extends ArrayAdapter < Message > {
final SpannableString formattedBody = new SpannableString ( body ) ;
int i = body . indexOf ( STRING0 ) ;
while ( i >= NUMBER0 ) {
- formattedBody . setSpan ( new RelativeSizeSpan ( FLOAT0 ) , i , i + NUMBER1 , Spanned . SPAN_EXCLUSIVE_EXCLUSIV... | increased space between merged messages a bit |
<nb> public final class Capsule implements Runnable {
final Map < String , String > jvmArgs = new LinkedHashMap < String , String > ( ) ;
for ( String a : nullToEmpty ( getListAttribute ( ATTR_JVM_ARGS ) ) ) {
- if ( ! a . startsWith ( STRING0 ) && ! a . startsWith ( STRING1 ) )
+ a = a . trim ( ) ;
+ if ( ... | Fix command build bug |
<nb> public final class AppearanceOptionsTopHitProvider extends OptionsTopHitProvider
appearance ( STRING0 + messageIde ( STRING1 ) , STRING2 ) ,
appearance ( STRING3 , STRING4 ) ,
appearance ( STRING5 , STRING6 ) ,
- appearance ( STRING7 + messageIde ( STRING8 ) , STRING9 ) ,
- appearance ( STRING7 + message... | Use correct messages |
<nb> import static NAMESPACE
public class GrIntroduceParameterHandler implements RefactoringActionHandler {
private static final Logger LOG = Logger . getInstance ( GrIntroduceParameterHandler . class ) ;
- @ nonnls public static final String USE_SUPER_METHOD_OF = STRING0 ;
- @ nonnls public static final Stri... | scope chooser has unclear options |
<nb> public abstract class AbstractConverterTest {
SINGLE
data . add ( LineString . createEmpty ( ) ) ;
for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
- data . add ( new LineString ( createSequence ( crs , ( Point ) data . get ( i ) ) ) ) ;
+ data . add ( new LineString ( createSequence ( crs , ( Point ) data... | Fix LineString constraints |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public final class ServingLayer implements Closeable {
SINGLE
wrapper . addMapping ( STRING0 ) ;
wrapper . setLoadOnStartup ( NUMBER0 ) ;
+ wrapper . setMultipart... | need a multipart config for JavaEE containers to handle multipart at least sometimes |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMES... | avoid exception when disabling new rendering and closing existing open editor |
<nb> public class ShowsActivity extends BaseActivity implements AbsListView . OnScrollL
} ) . start ( ) ;
}
} ) . setNegativeButton ( getString ( R . string . dontdelete_show ) , null ) . create ( ) ;
- case WHATS_NEW_DIALOG :
- return new AlertDialog . Builder ( this ) . setTitle ( getString ( R . string . w... | Remove whats new dialog |
<nb> public class PShape implements PConstants {
return parent ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public int getChildCount ( ) {
return childCount ;
} | Add getChildCount to PShape reference |
<nb> public class Cube {
return ;
}
- if ( ( Gdx . input . isKeyPressed ( Keys . SPACE ) || followButton ) && state == FIXED && stateTime > FLOAT0 ) {
+ if ( ( Gdx . input . isKeyPressed ( Keys . SPACE ) || followButton ) && stateTime > FLOAT0 ) {
stateTime = NUMBER0 ;
state = FOLLOW ;
return ; | changed control scheme |
<nb> public abstract class AbsSeekBar extends ProgressBar {
final int halfH = h >= NUMBER0 ? h / NUMBER1 : NUMBER2 ;
mTickMark . setBounds ( - halfW , - halfH , halfW , halfH ) ;
- final int spacing = ( getWidth ( ) - mPaddingLeft - mPaddingRight ) / count ;
+ final float spacing = ( getWidth ( ) - mPaddingLe... | Fix rounding error in SeekBar tickmark drawing |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ supportedannotationtypes ( { STRING0 , STRING1 } )
+ @ supportedannotationtypes ( { STRING0 , STRING1 , STRING2 } )
public class RooAnnotationProcessor extends AbstractQuerydslProcessor {
@ override | Fix RooAnnotationProcessor metadata |
<nb> public class ActionUrl implements JDOMExternalizable {
}
else if ( element . getAttributeValue ( IS_GROUP ) != null ) {
final AnAction action = ActionManager . getInstance ( ) . getAction ( attributeValue ) ;
- myComponent = action != null ? ActionsTreeUtil . createGroup ( ( ActionGroup ) action , true ) :... | add check on start up |
<nb> public class PsiBuilderImpl extends UserDataHolderBase implements PsiBuilder {
IElementType [ ] lexTypes = null ;
int lexemeCount = - NUMBER0 ;
SINGLE
- boolean doLexingOptimizationCorrectionCheck = false ;
+ boolean doLexingOptimizationCorrectionCheck = true ;
if ( parentCachingNode instanceof LazyP... | enable doLexingOptimizationCorrectionCheck for a while |
<nb> public final class CFMetaData
CFMetaData ( String keyspace , String name , ColumnFamilyType type , AbstractType < ? > comp , AbstractType < ? > subcc , UUID id )
{
- assert keyspace != null ;
- assert name != null ;
- assert type != null ;
- assert id != null ;
SINGLE
SINGLE | Remove new asserts in CMFD |
<nb> public class ApkMojo extends AbstractAndroidMojo
if ( ! release )
{
getLog ( ) . info ( STRING0 ) ;
- SINGLE
- SINGLE
commands . add ( STRING1 ) ;
}
else | removed comment after retesting and finding it now works again |
<nb> import NAMESPACE ;
public class Invocation implements PrintableInvocation {
private static final int MAX_LINE_LENGTH = NUMBER0 ;
- private static final String TAB = STRING0 ;
private final int sequenceNumber ;
private final Object mock ;
private final Method method ; | removed dead code |
<nb> public class OHazelcastDistributedDatabase implements ODistributedDatabase {
STRING0 , waitForMessageId . get ( ) , req , req . getSenderNodeName ( ) ) ;
waitForMessageId . set ( - NUMBER0 ) ;
- return req ;
+ break ;
} else {
SINGLE
ODistributedServerLog . debug ( this , manager . getLocalNodeName... | Fixed clustered node startup problem |
<nb> public class DevicePolicyManager {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public static final int WIPE_RESET_PROTECTION_DATA = NUMBER0 ; | Add a tag to separate paragraphs in Javadoc |
<nb> public class JsonElementGenerator {
public JsonStringLiteral createStringLiteral ( @ notnull String unescapedContent ) {
return createValue ( STRING0 + StringUtil . escapeStringCharacters ( unescapedContent ) + STRING0 ) ;
}
+
+ @ notnull
+ public JsonProperty createProperty ( @ notnull final String na... | exclude file in config quick fix not ideal implementation though |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class IntegrationTest {
@ deployment
public static JavaArchi... | Resolve issue for IntegrationTest by adding missing packages for arquillian |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | remove unused satellite window import |
<nb> public final class Runfiles {
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ deprecated
public Builder addArtifacts ( NestedSet < Artifact > artifacts ) {
<nb> public final class Runfiles {
addArtifacts ( it ) ;
return this ;
}
+
COMMENT
COMMENT
COMMENT | Add a deprecated annotation to Runfiles addArtifacts |
<nb> public class ConversationActivity extends XmppActivity
this . mConversationFragment . reInit ( getSelectedConversation ( ) ) ;
mOpenConverstaion = null ;
} else if ( getSelectedConversation ( ) != null ) {
- this . mConversationFragment . updateMessages ( ) ;
+ this . mConversationFragment . reInit ( get... | refresh list view more often |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SeriesGuidePreferences extends SherlockPreferenceActivity implement
if ( DisplaySettings . KEY_THEME . equals ( preference . getKey ( ) ) ) {
Utils . updateTheme ( ( String ) newValue ) ;
- SING... | Fix theme change not applying to ShowsActivity immediately |
<nb> public final class DataSourceExtractorInput implements ExtractorInput {
if ( Thread . interrupted ( ) ) {
throw new InterruptedException ( ) ;
}
- int bytesRead = dataSource . read ( SCRATCH_SPACE , NUMBER0 , remaining ) ;
+ int bytesRead = dataSource . read ( SCRATCH_SPACE , NUMBER0 , Math . min ( SCRAT... | Fix issue with new extractor input |
<nb> public final class OnErrorThrowable extends RuntimeException {
COMMENT
COMMENT
private static String renderValue ( Object value ) {
- if ( value == null ) {
+ if ( value == null ) {
return STRING0 ;
}
- if ( value . getClass ( ) . isPrimitive ( ) ) {
+ if ( value . getClass ( ) . isPrimitive ( ) ... | Print full classname inner class support and fix enum output |
<nb> public class RunMojo extends AbstractExecMojo {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
protected boolean useDot ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
protected boolean logClasspath ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ C... | run plugin s configuration properties |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- < < < < < < < HEAD
COMMENT
- == == == =
- COMMENT
- > > > > > > > e3d825e . . . Introduce CommandContextFactory Interface
COMMENT
COMMENT
COMMENT | Remove invalid characters probably related to a merge that went wrong |
<nb> public class StandardWrapper extends ContainerBase
try {
SecurityUtil . doAsPrivilege ( STRING0 , s ) ;
} finally {
- SecurityUtil . remove ( instance ) ;
+ SecurityUtil . remove ( s ) ;
}
} else {
s . destroy ( ) ; | Fix wrong argument of StandardWrapper remove in case when singleThreadModel and instancePool are used |
<nb> public class Vpn extends BaseNetworkStateTracker {
private final String [ ] mDaemons ;
private final String [ ] [ ] mArguments ;
private final LocalSocket [ ] mSockets ;
+ private final String mOuterInterface ;
private long mTimer = - NUMBER0 ;
<nb> public class Vpn extends BaseNetworkStateTracker ... | Monitor the right interface re VPN |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public final class CallGraph implements CompilerPass {
new Predicate < Function > ( ) {
@ override
public boolean apply ( Function function ) {
-
- String functionName = f... | Fix another spot where we were comparing strings with |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
- public abstract class AbstractMessageTask < P >
- implements MessageTask , SecureRequest {
+ public abstract class AbstractMessageTask < P > implements MessageTask , SecureRequest {
protected final ClientMessage clien... | Added missing Override annotation in AbstractMessageTask |
<nb> public abstract class AbstractCamelController implements CamelController {
if ( row . containsKey ( STRING0 ) ) {
modelName = row . get ( STRING0 ) ;
} else if ( row . containsKey ( STRING1 ) ) {
- description = row . get ( STRING1 ) ;
+ title = row . get ( STRING1 ) ;
} else if ( row . containsKey ( S... | Camel component docs now include a human readable title for the component names |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
abstract class AbstractEpollChannel extends AbstractChannel {
private static final ChannelMetadata DATA = new ChannelMetadata ( false ) ;
<nb> abstract class AbstractEpollChannel extends AbstractCha... | Replace usage of UnknownHostException with UnresolveableAddressException |
<nb> public class XmlAspectImpl implements XmlAspect {
continue ;
}
COMMENT
- if ( ! ( treeElement instanceof XmlTagChild ) ) {
+ if ( ! ( treeElement . getPsi ( ) instanceof XmlTagChild ) ) {
visitElement ( tag ) ;
return ;
} | fixed extra document changed event |
<nb> import NAMESPACE ;
COMMENT
public class CipherUtil {
private static final Logger logger = Logger . getLogger ( CipherUtil . class . getSimpleName ( ) ) ;
- private static final String ALPHANUMERIC_CHARS = STRING0 ;
+ private static final String ALPHANUMERIC_CHARS = STRING1 ;
private static AtomicBool... | Making alphanumeric alphaNUMERIC |
<nb> public class PyClassTypeImpl extends UserDataHolderBase implements PyClassType {
for ( PyClassLikeType type : myClass . getAncestorTypes ( context ) ) {
if ( type instanceof PyClassType ) {
final PyClass pyClass = ( ( PyClassType ) type ) . getPyClass ( ) ;
- if ( pyClass != null ) {
- PsiElement superMe... | Simplified always true condition |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.