diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class WalletTest extends TestWithWallet {
assertTrue ( STRING0 , firstSigIsMissing ^ secondSigIsMissing ) ;
int localSigIndex = firstSigIsMissing ? NUMBER0 : NUMBER1 ;
int length = input . getScriptSig ( ) . getChunks ( ) . get ( localSigIndex ) . data . length ;
- assertTrue ( STRING1 + length , le... | Fix flake in WalletTest |
<nb> public abstract class OCommandExecutorSQLAbstract extends OCommandExecutorAbstra
public static final String CLUSTER_PREFIX = STRING0 ;
public static final String CLASS_PREFIX = STRING1 ;
- @ override
- public OCommandExecutorSQLAbstract init ( final ODatabaseRecord < ? > iDatabase , final String iText ) ... | Fixed bug of not trimmed sql string Thanks lmolino |
<nb> public abstract class Log {
POST ( n , els [ i ] . toString ( ) ) ;
}
}
+ public static void POST ( int n ) {
+ POST ( n , STRING0 ) ;
+ }
public static void main ( String [ ] args ) {
Log . info ( STRING1 ) ; | Added POST with just a number |
<nb> public class JGroupsClusterPeer implements ClusterPeer
true ,
ProtocolStack . ABOVE ,
FRAG2 . class ) ;
- channel . connect ( clusterName + STRING0 + UUID . randomUUID ( ) ) ;
+ channel . connect ( clusterName ) ;
channel . setReceiver ( new ReceiverAdapter ( )
{
<nb> public class JGroupsClusterP... | adding call to TransportConfigurationBuilder clusterName |
<nb> public class ContextHandler extends ScopedHandler implements Attributes , Gracefu
_contextAttributeListeners . clear ( ) ;
_requestListeners . clear ( ) ;
_requestAttributeListeners . clear ( ) ;
-
+ _eventListeners . clear ( ) ;
+
if ( eventListeners != null )
for ( EventListener listener : eventL... | Jetty Maven plugin reload ignores web xml listeners |
<nb> public class HttpRequest {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public HttpRequest followRedirects ( final boolean followRedirects ) {
getConnection ( ) . setFollowRedirects ( followRedirects ) ; | Add missing return |
<nb> public class BlockFileLoader implements Iterable < Block > , Iterator < Block > {
COMMENT
public static List < File > getReferenceClientBlockFileList ( ) {
String defaultDataDir ;
- if ( System . getProperty ( STRING0 ) . toLowerCase ( ) . indexOf ( STRING1 ) >= NUMBER0 ) {
+ String OS = System . getProp... | added path to files on the Mac |
<nb> public class Indices implements IndexManagement {
}
request . setConsistencyLevel ( WriteConsistencyLevel . ONE ) ;
- request . setReplicationType ( ReplicationType . ASYNC ) ;
if ( request . numberOfActions ( ) > NUMBER0 ) {
BulkResponse response = c . bulk ( request . request ( ) ) . actionGet ( ) ... | Use synchronous replication default for bulk indexing |
<nb> public class UpdateTask extends AsyncTask < Void , Integer , Integer > {
updateCount . incrementAndGet ( ) ;
}
- publishProgress ( mShows . length , mShows . length + NUMBER0 ) ;
-
SINGLE
if ( mShows . length != NUMBER1 ) {
+ publishProgress ( mShows . length , mShows . length + NUMBER0 ) ;
TheTV... | Don t show any text when there is nothing to update |
<nb> public class Scene extends BaseEntity {
public boolean hasBackground ( ) {
return this . mBackground != null ;
}
+
+ public int getLayerCount ( ) {
+ return this . mLayers . length ;
+ }
SINGLE
SINGLE | Added getLayerCount to Scene |
<nb> import NAMESPACE ;
byte [ ] naMethods = AGG . naMethods ( _agg ) ;
for ( int i = NUMBER0 ; i < c [ NUMBER0 ] . _len ; ++ i ) {
G g = new G ( i , c , _gbCols , _agg . length , naMethods ) ;
- if ( ! _g . add ( g ) ) g = _g . get ( g ) ;
+ if ( ! _g . add ( g ) ) {
+ G g2 = g ;
+ g = _g . get ( g ) ;
... | can get a null mapping even when the mapping exists |
<nb> public class QueryProcessor
}
}
- private static void validateColumnNames ( String keyspace , String columnFamily , ByteBuffer start , ByteBuffer end )
- throws InvalidRequestException
- {
- validateColumnNames ( keyspace , columnFamily , Arrays . asList ( start , end ) ) ;
- }
-
private static... | remove unused validation method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
public class TestStandardContextResources extends TomcatBaseTest {
<nb> public class TestStandardContextResources extends TomcatBaseTest {
assertEquals ( NUMBER0 , listener . length... | Fix some Eclipse warnings |
<nb> public enum CreatureType {
SKELETON ( STRING0 ) ,
SPIDER ( STRING1 ) ,
ZOMBIE ( STRING2 ) ,
- SQUID ( STRING3 ) ;
+ SQUID ( STRING3 ) ,
+ SLIME ( STRING4 ) ;
private String name ;
<nb> public enum MobType {
SKELETON ( STRING0 ) ,
SPIDER ( STRING1 ) ,
ZOMBIE ( STRING2 ) ,
- SQUID ( STRIN... | Added slime as a possible creature type |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public class AppTest {
String [ ] args = { } ;
App . main ( args ) ;
}
+
+ @ before
+ @ after
+ public void cleanup ( ) {
+ File file1 = new File ( STR... | Added test cleanup |
<nb> import NAMESPACE ;
public class CalendarConverter implements JdtConverter < Calendar > {
public void loadFrom ( JDateTime jdt , Calendar source ) {
- jdt . setTimeZone ( source . getTimeZone ( ) ) ;
jdt . setTimeInMillis ( source . getTimeInMillis ( ) ) ;
+ jdt . setTimeZone ( source . getTimeZone ( ) ... | fixed bug when creating from calendar using constructor |
<nb> public class ConfigurationFactoryTest {
fail ( STRING0 ) ;
} catch ( Exception e ) {
assertThat ( e . getMessage ( ) ) . isEqualTo ( resourceFileName + STRING1 + NEWLINE +
- STRING2 + NEWLINE +
- STRING3 + NEWLINE +
- STRING4 + NEWLINE +
- STRING5 + NEWLINE +
- STRING6 + NEWLINE +
- STRING7 + NEW... | Fix configuration factory test on windows |
<nb> public class PyQuickFixTest extends PyTestCase {
public void testAddCallSuperRepeatedOptionalTupleParamsPassedToSuperConstructor ( ) {
doInspectionTest ( PyMissingConstructorInspection . class , PyBundle . message ( STRING0 ) , true , true ) ;
}
-
- SINGLE
+
+ SINGLE
public void testAddCallSuperCom... | Change request ID for the test case |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class GestureLauncherService extends SystemService {
intent . setComponent ( new ComponentName ( componentInfo . activityInfo . packageNam... | Launched camera in the correct user |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public abstract class MongoClientTestBase {
- protected static final String DEFAULT_DB_NAME = STRING0 ;
+ public static final String DEFAULT_DB_NAME = STRING0 ;
private static MongoClient mongoClient ;
private static MongoDatabase database ; | Made default database constant public |
<nb> public final class AudioAttributes implements Parcelable {
default :
Log . e ( TAG , STRING0 + streamType + STRING1 ) ;
}
+ mUsage = usageForLegacyStreamType ( streamType ) ;
return this ;
} | Restore missing usage assignment in AudioAttributes |
<nb> public class MulticastProcessor extends ServiceSupport implements AsyncProcessor
}
allTasksSubmitted . set ( true ) ;
+ SINGLE
+ SINGLE
SINGLE
if ( LOG . isDebugEnabled ( ) ) {
LOG . debug ( STRING0 + total . get ( ) + STRING1 ) ;
<nb> public class MulticastProcessor extends ServiceSupport implem... | Fixed splitter using too much memory when using parallel mode |
<nb> import NAMESPACE ;
COMMENT
public class InternalNioInputBuffer extends AbstractInputBuffer {
+ COMMENT
+ COMMENT
+ COMMENT
+ private static org . apache . juli . logging . Log log
+ = org . apache . juli . logging . LogFactory . getLog ( InternalNioInputBuffer . class ) ;
SINGLE
<nb> public... | Implement debug logging in InternalNioInputBuffer |
<nb> strictfp final class InputModifier SINGLE
}
COMMENT
- final class FinalClass
+ final class RedundantFinalClass
{
COMMENT
public final void finalMethod ( ) | rename FinalClass to avoid configuration error with FinalClassCheck when running Main in Eclipse |
<nb> public final class ProcessStats implements Parcelable {
public boolean evaluateSystemProperties ( boolean update ) {
boolean changed = false ;
- String runtime = SystemProperties . get ( STRING0 ,
+ String runtime = SystemProperties . get ( STRING1 ,
VMRuntime . getRuntime ( ) . vmLibrary ( ) ) ;
if ... | Rename persist sys dalvik vm lib to allow new default |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Clock extends TextView {
private Calendar mCalendar ;
private String mClockFormatString ;
private SimpleDateFormat mClockFormat ;
+ private Locale mLocale ; ... | Flush the clock format when the locale changes |
<nb> public class IdeaApplication {
private static IdeaApplication ourInstance ;
private ApplicationStarter myStarter ;
@ nonnls public static final String IDEA_IS_INTERNAL_PROPERTY = STRING0 ;
+ @ nonnls public static final String COMMANDLINE_IDEA_TEST_MODE = STRING1 ;
@ nonnls public static final String IPR... | set up awt headless property explisitly |
<nb> public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput
return exec ( new String [ ] { STRING0 , STRING1 , cmd } ) ;
}
- protected long getElapsedSecs ( final long start ) {
- return ( System . currentTimeMillis ( ) - start ) / NUMBER0 ;
+ protected float getElapsedSecs ( final... | supported float as time regression from last commit |
<nb> public class BlockHeartbeatReporter implements BlockMetaEventListener {
@ override
public void postRemoveBlock ( long userId , long blockId ) {
- synchronized ( mLock ) {
- SINGLE
- removeBlockFromAddedBlocks ( blockId ) ;
- SINGLE
- if ( ! mRemovedBlocks . contains ( blockId ) ) {
- mRemovedBloc... | Fix the bug due to changed Listener that BlockHeartbeatReporter fails to report to master on remove blocks |
<nb> public class PCAProgressPage extends Progress2 {
}
public static Response redirect ( Request req , Key jobkey , Key dest ) {
- return Response . redirect ( req , STRING0 , JOB_KEY , jobkey , DEST_KEY , dest ) ;
+ return Response . redirect ( req , STRING1 , JOB_KEY , jobkey , DEST_KEY , dest ) ;
}
... | Missing redirect version in PCA |
<nb> public class VfsUtil {
return components ;
}
+ @ nullable
+ public static VirtualFile findRelativeFile ( @ notnull VirtualFile base , String . . . path ) {
+ VirtualFile file = base ;
+
+ for ( String pathElement : path ) {
+ file = file . findChild ( pathElement ) ;
+ if ( file == null ) retur... | Refactor Rename an action could lead to renaming of matching |
<nb> class WriterImpl implements Writer , MemoryManager . Callback {
if ( availRatio < paddingTolerance && addBlockPadding ) {
long padding = blockSize - ( start % blockSize ) ;
byte [ ] pad = new byte [ ( int ) Math . min ( HDFS_BUFFER_SIZE , padding ) ] ;
- LOG . info ( String . format ( STRING0 ,
+ LOG . i... | Fix logging of ORC padding percentages during inserts Gopal V reviewed by Gunther Hagleitner |
<nb> public class CompositeOperationAwareTransformer implements DomainOperationTransf
public ModelNode transform ( final OperationContext context , final ModelNode operation ) {
if ( operation . get ( OP ) . asString ( ) . equals ( COMPOSITE ) ) {
ModelNode ret = operation . clone ( ) ;
- final List < ModelNode... | Fix domain problem with deployment overlays |
<nb> public final class IntentIntegrator {
return showDownloadDialog ( ) ;
}
intentScan . setPackage ( targetAppPackage ) ;
+ intentScan . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ;
+ intentScan . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET ) ;
activity . startActivityForResult ( intentScan... | Set better intent flags in integration so user s activity stays on top |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public abstract class MultiTargetControlCommand implements CliCommand {
MultiTargetControlCommand ( final Subparser parser ) {
parser . setDefault ( STRING0 , this ) . defaultHelp ( true... | Add explanatory comment |
<nb> final class ProcessExecutor {
private ProcessBuilder createProcessBuilder ( ) {
ProcessBuilder pbuilder = new ProcessBuilder ( command ) . directory ( workingDirectory ) ;
final Map < String , String > environment = pbuilder . environment ( ) ;
- final String pathVarName = STRING0 ;
- final String pathVa... | Fixed PATH variable name case on Windows when not capital |
<nb> package NAMESPACE ;
public class ErrorUrlTest extends BaseCordovaIntegrationTest {
private static final String START_URL = STRING0 ;
private static final String ERROR_URL = STRING1 ;
- private static final String INVALID_URL = STRING2 ;
+ private static final String INVALID_URL = STRING3 ;
protected ... | Make ErrorUrlTest INVALID_URL point to an existing file to make it test the right thing |
<nb> public class MessageCompose extends K9Activity implements OnClickListener {
uri . appendQueryParameter ( IdentityField . MESSAGE_FORMAT . value ( ) , mMessageFormat . name ( ) ) ;
SINGLE
- if ( mSignatureChanged ) {
+ if ( mIdentity . getSignatureUse ( ) && mSignatureChanged ) {
uri . appendQueryParame... | Don t save signature to identity header if identity doesn t use a signature |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DownloadedEpisodesListAdapter extends BaseAdapter {
. dontAnimate ( )
. into ( holder . imageView ) ;
+ if ( item . isPlayed ( ) ) {
+ ViewHelper . setAlph... | Add transparency to played episodes |
<nb> public abstract class AbstractTarget implements Target {
if ( entry . getName ( ) . toLowerCase ( ) . endsWith ( STRING0 ) ) {
continue ;
}
+ if ( entry . getName ( ) . startsWith ( STRING1 ) ) {
+ SINGLE
+ continue ;
+ }
ZipEntry newEntry = new ZipEntry ( entry . getName ( ) ) ;
newEntry . setTi... | Don t include any resources under META INF robovm when stripping archives before install |
<nb>
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
COMMENT
COMMENT
public final class ServletRoutes {
- private static final org . slf4j . Logger LOG = org . slf4j . LoggerFactory . getLogger ( ServletRoutes . class ) ;
private static Routes r... | Remove unused field |
<nb> public class NotificationsActivity extends WPActionBarActivity
if ( savedInstanceState != null ) {
mHasPerformedInitialUpdate = savedInstanceState . getBoolean ( KEY_INITIAL_UPDATE ) ;
- if ( getIntent ( ) . hasExtra ( NOTE_ID_EXTRA ) ) {
- launchWithNoteId ( ) ;
- } else if ( savedInstanceState . getS... | Removed unneeded launchWithNoteId |
<nb> public class Indexer {
builtins = new Builtins ( ) ;
builtins . init ( ) ;
addPythonPath ( ) ;
- createCacheDir ( ) ;
cacheDir = Util . makePathString ( Util . getSystemTempDir ( ) , STRING0 , STRING1 ) ;
+ createCacheDir ( ) ;
} | fix a stupid mistake |
<nb> import NAMESPACE ;
public class DiskLruCacheWrapper implements DiskCache {
private static DiskLruCache CACHE = null ;
+ private static DiskLruCacheWrapper WRAPPER = null ;
private synchronized static DiskLruCache getDiskLruCache ( File directory , int maxSize ) throws IOException {
if ( CACHE == null... | Make DiskLruCacheWrapper a singleton |
<nb> public abstract class ParserUtils {
marker . error ( msg ) ;
}
- public static void waitNextRCurly ( PsiBuilder builder ) {
- int i = NUMBER0 ;
- PsiBuilder . Marker em = builder . mark ( ) ;
- while ( ! builder . eof ( ) && ! GroovyElementTypes . mRCURLY . equals ( builder . getTokenType ( ) ) ) {
... | IDEA should support groovy expressions without in GSP attribute values |
<nb> public class NetworkLinker {
boolean wheelchairAccessible = ts . hasWheelchairEntrance ( ) ;
if ( ! networkLinkerLibrary . connectVertexToStreets ( ts , wheelchairAccessible ) . getResult ( ) ) {
_log . warn ( graph . addBuilderAnnotation ( new StopUnlinked ( ts ) ) ) ;
- networkLinkerLibrary . connectVert... | remove debugging code |
<nb> public final class NotificationUtil {
if ( intent . hasExtra ( EXTRA_ACTIVATE_MODULE ) ) {
String packageName = intent . getStringExtra ( EXTRA_ACTIVATE_MODULE ) ;
- ModuleUtil . getInstance ( ) . setModuleEnabled ( packageName , true ) ;
+ ModuleUtil moduleUtil = ModuleUtil . getInstance ( ) ;
+ modul... | Fix module activation from notification |
<nb> public class MyStatefulBean {
}
@ prepassivate
- private void prePassivate ( InvocationContext context ) {
+ private void prePassivate ( ) {
System . out . println ( STRING0 ) ;
}
@ postactivate
- private void postActivate ( InvocationContext context ) {
+ private void postActivate ( ) {
Sy... | Remove extra lifecycle callback param |
<nb> public class JavaNullMethodArgumentUtil {
}
if ( argumentList != null ) {
final PsiExpression [ ] arguments = argumentList . getExpressions ( ) ;
- final PsiExpression argument = arguments [ argumentIdx ] ;
- if ( argument instanceof PsiLiteralExpression && PsiKeyword . NULL . equals ( argument . getText... | check that argument index arguments length in case of red code |
<nb> public class VerifierConfig
private boolean checkCorrectness = true ;
private String skipCpuCheckRegex = STRING0 ;
private boolean checkCpu = true ;
- private boolean explainOnly = false ;
+ private boolean explainOnly ;
private boolean verboseResultsComparison ;
private String testCatalogOverride ; ... | Remove unnecessary initialization |
<nb> public class Main {
}
}
}
+ } else if ( STRING0 . equalsIgnoreCase ( command ) ) {
+ if ( diffTypes . toLowerCase ( ) . contains ( STRING1 ) ) {
+ messages . add ( STRING2 ) ;
+ }
}
}
} | Add a message indicating that diffTypes data has no effect for diffChangeLog |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NettyConfiguration implements Cloneable {
private int maximumPoolSize = NUMBER0 ;
private boolean orderedThreadPoolEx... | Fixed the CS errors |
<nb> public class JDBCDateTimeValueHandler extends JDBCAbstractValueHandler {
private DBDDataFormatterProfile formatterProfile ;
private DBDDataFormatter formatter ;
+ private Calendar calendar ;
public JDBCDateTimeValueHandler ( DBDDataFormatterProfile formatterProfile )
{
this . formatterProfile = for... | Use single locale specific calendar to read date time values |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Hugo {
}
Log . v ( asTag ( cls ) , builder . toString ( ) ) ;
+
+ if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . JELLY_BEAN_MR2 ) {
+ fin... | Add tracer when available |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ @ ignore
public class ExternalSiteTest
{
@ rule | Ignoring tests that connect to external sites |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public class NetworkStatsServiceTest extends AndroidTestCase {
expectLastCall ( ) ... | Fix broken unit test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT | Fixing import order |
<nb> class GlobalActions implements DialogInterface . OnDismissListener , DialogInterfac
filter . addAction ( TelephonyIntents . ACTION_EMERGENCY_CALLBACK_MODE_CHANGED ) ;
context . registerReceiver ( mBroadcastReceiver , filter ) ;
+ ConnectivityManager cm = ( ConnectivityManager )
+ context . getSystemServi... | Fix Airplane Mode on off issue |
<nb> public final class BatteryStatsImpl extends BatteryStats {
private static final int MAGIC = NUMBER0 ; SINGLE
SINGLE
- private static final int VERSION = NUMBER1 ;
+ private static final int VERSION = NUMBER2 ;
private static int sNumSpeedSteps ; | Battery use doesn t show CPU usage on non wiped devices |
<nb> public class StartupUtil {
if ( System . getProperty ( STRING0 ) == null ) {
System . setProperty ( STRING0 , ideTempDir . getPath ( ) ) ;
}
+ if ( System . getProperty ( STRING1 ) == null && System . getProperty ( STRING2 ) == null ) {
+ SINGLE
+ System . setProperty ( STRING1 , STRING3 ) ;
+ System... | Can t obtain updateLastError method for class com sun jna Native |
<nb> public class TpStats extends NodeToolCmd
@ override
public void execute ( NodeProbe probe )
{
- System . out . printf ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 ) ;
+ System . out . printf ( STRING7 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 ) ;
for ( Stage... | Fixed TpStats formatting for materialized views |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Added more javadoc |
<nb> public class MemoryUsedSampleable implements Sampleable
{
long used = ( Long ) ( ( CompositeDataSupport ) mbeanServer . getAttribute ( memoryName , STRING0 ) ) . get ( STRING1 ) ;
long max = ( Long ) ( ( CompositeDataSupport ) mbeanServer . getAttribute ( memoryName , STRING0 ) ) . get ( STRING2 ) ;
- retu... | Replaced Math round with Math ceil reenabled the test |
<nb> public class Fiber < V > extends Strand implements Joinable < V > , Serializable , Futur
return park ( blocker , postParkActions , NUMBER0 , null ) ;
}
- public static boolean park ( PostParkActions postParkActions ) throws SuspendExecution {
- return park ( null , postParkActions , NUMBER0 , null ) ;
... | Remove confusing park method |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class DistanceFieldBitmapFont extends BitmapFont {
private static final String SMOOTHING_UNIFORM = STRING0 ; | Fixed wrong method name in JavaDoc |
<nb> import NAMESPACE ;
COMMENT
public class ZeroTransformer implements Transformer {
- static class Phi {
+ public static class Phi {
public Boolean isZero = null ;
SINGLE
public Set < Phi > children = new HashSet < Phi > ( ) ;
<nb> public class ZeroTransformer implements Transformer {
break ;
ca... | Fix a bug in ZeroTransformer |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | helios services Remove unused import |
<nb> import NAMESPACE ;
import NAMESPACE ;
@ retention ( RetentionPolicy . RUNTIME )
- @ target ( { ElementType . FIELD , ElementType . PARAMETER , ElementType . METHOD } )
+ @ target ( { ElementType . FIELD , ElementType . PARAMETER } )
public @ interface Auth {
} | remove method element type |
<nb> public class CommandLineRunner extends
}
if ( flags . exportLocalPropertyDefinitions ) {
- options . setExportLocalPropertyDefinitions ( flags . exportLocalPropertyDefinitions ) ;
+ options . setExportLocalPropertyDefinitions ( true ) ;
}
WarningLevel wLevel = flags . warningLevel ;
<nb> public c... | Fixed merge conflicts |
<nb> public class TermsQueryParser implements QueryParser {
minimumShouldMatch = parser . textOrNull ( ) ;
} else if ( STRING0 . equals ( currentFieldName ) ) {
boost = parser . floatValue ( ) ;
+ } else {
+ throw new QueryParsingException ( parseContext . index ( ) , STRING1 + currentFieldName + STRING2 ) ; ... | Add additional query validation to the terms query parser |
<nb> public class AtmosphereResponse extends HttpServletResponseWrapper {
COMMENT
COMMENT
COMMENT
+ public final static AtmosphereResponse newInstance ( AtmosphereRequest request ) {
+ return new AtmosphereResponse ( null , request , request . isDestroyable ( ) ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMEN... | Add a useful method |
<nb> public class PyCharmNewProjectStep extends DefaultActionGroup implements DumbAwa
if ( base == null ) return ;
final DirectoryProjectGenerator generator = base . getProjectGenerator ( ) ;
final NullableConsumer < ProjectSettingsStepBase > callback = new GenerateProjectCallback ( ) ;
- if ( generator instanc... | Pass project sdk to PythonProjectGenerator beforeProjectGenerated |
<nb> public class JavaLambdaNodeProvider implements FileStructureNodeProvider < JavaLam
final PsiElement el = ( ( PsiTreeElementBase ) node ) . getElement ( ) ;
if ( el != null ) {
final List < JavaLambdaTreeElement > result = new ArrayList < > ( ) ;
- el . accept ( new JavaRecursiveElementWalkingVisitor ( ) { ... | walking visitor recursive for cls |
<nb> public class ClientStanzaHandler extends StanzaHandler {
}
void startTLS ( ) throws Exception {
-
Connection . ClientAuth policy ;
try {
- policy =
- Connection . ClientAuth . valueOf ( JiveGlobals . getProperty ( STRING0 ,
- STRING1 ) ) ;
+ policy = Connection . ClientAuth . valueOf ( JiveGlob... | Fixed incorrect default value of client cert authentication policy |
<nb> public class UnknownType extends LiquibaseDataType {
if ( dataTypeMaxParameters < parameters . length ) {
parameters = Arrays . copyOfRange ( parameters , NUMBER0 , dataTypeMaxParameters ) ;
}
- DatabaseDataType type = new DatabaseDataType ( getName ( ) . toUpperCase ( ) , parameters ) ;
+ DatabaseDataTy... | Fixing failing tests |
<nb> public final class QueryCommand implements BlazeCommand {
env . getReporter ( ) . handle ( Event . error ( STRING0 + e . getMessage ( ) ) ) ;
return ExitCode . LOCAL_ENVIRONMENTAL_ERROR ;
} finally {
- output . flush ( ) ;
+ SINGLE
+ SINGLE
+ if ( output . checkError ( ) ) {
+ SINGLE
+ SINGLE
+... | Properly use PrintStream in QueryCommand |
<nb> public class OsmAndFormatter {
return MessageFormat . format ( STRING0 + ctx . getString ( mainUnitStr ) , ( ( float ) meters ) / mainUnitInMeters ) . replace ( STRING1 , STRING2 ) ; SINGLE
} else if ( mc == MetricsConstants . MILES_AND_YARDS && meters > FLOAT0 * mainUnitInMeters ) {
return MessageFormat . f... | Fix nautical mile fraction display to meters |
<nb> public class CordovaChromeClient extends WebChromeClient {
return true ;
}
} ) ;
- dlg . create ( ) ;
dlg . show ( ) ;
return true ;
}
<nb> public class CordovaChromeClient extends WebChromeClient {
return true ;
}
} ) ;
- dlg . create ( ) ;
dlg . show ( ) ;
return true ;
}
<nb> pub... | Remove incorrect usage of AlertDialog Builder create |
<nb> import NAMESPACE ;
public class NettyHandlerAdapter extends ChannelInboundHandlerAdapter {
private static final AttributeKey < Action < Object > > CHANNEL_SUBSCRIBER_ATTRIBUTE_KEY = AttributeKey . valueOf ( STRING0 ) ;
-
- static final AttributeKey < RequestBodyAccumulator > BODY_ACCUMULATOR_KEY = Attrib... | Remove the body accumulator at the end of the request |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- class WebSecurityExpressionRoot extends SecurityExpressionRoot {
+ public class WebSecurityExpressionRoot extends SecurityExpressionRoot {
private FilterInvocation filterInvocation ;
- WebSecurityExpressionRoot ( Authentication a , FilterInvocation fi ) ... | Make WebSecurityExpressionRoot public to allow reuse |
<nb> public class MapPanel extends JPanel implements IMapDownloaderCallback {
}
SINGLE
- if ( willBePopupShown && e . isPopupTrigger ( ) ) {
+ if ( willBePopupShown && ( e . isPopupTrigger ( ) || e . getButton ( ) == MouseEvent . BUTTON3 ) ) {
popupMenuPoint = new Point ( e . getX ( ) , e . getY ( ) ) ;
p... | Fix context menu for osmand map creator |
<nb> public class ProcessingContext {
}
@ suppresswarnings ( { STRING0 } )
- public Object get ( @ notnull @ nonnls final String key ) {
+ public Object get ( @ notnull @ nonnls final Object key ) {
return myMap == null ? null : myMap . get ( key ) ;
}
- public void put ( @ notnull @ nonnls final Stri... | allow arbitrary keys |
<nb> public class NotificationsSettingsFragment extends PreferenceFragment {
loadNotifications ( ) ;
}
- @ override
- public void onResume ( ) {
- super . onResume ( ) ;
- getActivity ( ) . setTitle ( R . string . manage_notifications ) ;
- }
-
private void loadNotifications ( ) {
AppLog . d ( T .... | Removed setting activity title from the fragment |
<nb> class JDOMXIncluder {
if ( xpointer != null ) {
Matcher matcher = XPOINTER_PATTERN . matcher ( xpointer ) ;
- assert matcher . matches ( ) : STRING0 + xpointer ;
+ boolean b = matcher . matches ( ) ;
+ assert b : STRING0 + xpointer ;
String pointer = matcher . group ( NUMBER0 ) ;
matcher = CHIL... | moved method call out of assertion |
<nb> public class SpongeEntityConstants {
SINGLE
public static final SpongeHorseVariant HORSE = new SpongeHorseVariant ( NUMBER0 , STRING0 ) ;
public static final SpongeHorseVariant DONKEY = new SpongeHorseVariant ( NUMBER1 , STRING1 ) ;
- public static final SpongeHorseVariant MULE = new SpongeHorseVariant ( N... | Fixed wrong name in HorseVariant constant |
<nb> public class ShadowCompoundButton extends ShadowTextView implements Checkable {
public void setOnCheckedChangeListener ( CompoundButton . OnCheckedChangeListener listener ) {
onCheckedChangeListener = listener ;
}
+
+ public CompoundButton . OnCheckedChangeListener getOnCheckedChangeListener ( ) {
+ re... | Improve ShadowCompundButton and ShadowRadioGroup |
<nb> public class AppWidgetManager {
public static final String ACTION_APPWIDGET_ENABLED = STRING0 ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class AppWidgetManager {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT ... | Widget restore documentation tweaks |
<nb> class PackageManagerService extends IPackageManager . Stub {
copyFrom ( orig ) ;
}
+ public void copyFrom ( PackageSetting base ) {
+ super . copyFrom ( ( PackageSettingBase ) base ) ;
+
+ userId = base . userId ;
+ sharedUser = base . sharedUser ;
+ pkg = base . pkg ;
+ }
+
@ override
pu... | Copy user info from PackageSetting as well |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class XActivityManagerService extends XHook {
@ override
public boolean isVisible ( ) {
+ if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP )
+ ... | Fix ActivityManagerService goingToSleep wakingUp |
<nb> public class KeyguardWidgetPager extends PagedView implements PagedView . PageSwit
mBgPersistenceWorkerHandler = new Handler ( mBgPersistenceWorkerThread . getLooper ( ) ) ;
}
+ @ override
+ protected void onDetachedFromWindow ( ) {
+ super . onDetachedFromWindow ( ) ;
+
+ SINGLE
+ if ( mBgPersis... | Cleaning up keyguard persistence threads when the pager is detached |
<nb> public class NioEndpoint extends AbstractJsseEndpoint < NioChannel > {
}
return ka ;
}
+
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ override
public void run ( ) { | Correct the description |
<nb> public class XmlSchemaParser
if ( attrNode == null || STRING0 . equals ( attrNode . getNodeValue ( ) ) )
{
- throw new IllegalStateException ( STRING1 + attrName ) ;
+ throw new IllegalStateException ( STRING2 + elementNode . getNodeName ( ) +
+ STRING3 + attrName ) ;
}
return attrNode . getNodeV... | Add element context for missing or empty attribute error |
<nb> public class WebmExtractorTest extends InstrumentationTestCase {
}
- COMMENT
+ COMMENT
private static final class ContentEncodingSettings {
private final int order ; | Fix javadoc warning |
<nb> public interface Registry {
return builder ( ) . add ( publicType , implementation ) . build ( ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ static MutableRegistry mutable ( ) {
+ return new SimpleMutableRegistry ( ) ;
+ }
+
} | Add factory method for a mutable registry |
<nb> public class OutputToGeneralTestEventsConverter implements ProcessOutputConsumer
}
public void process ( final String text , final Key outputType ) {
+ final int textLength = text . length ( ) ;
+ SINGLE
+ if ( textLength > NUMBER0 && text . substring ( NUMBER1 , text . length ( ) - NUMBER0 ) . contain... | output listener should split multiline text in lines for CIDR fake process handler |
<nb> public final class Rule {
COMMENT
COMMENT
@ deprecated
- public void setEnabled ( boolean enabled ) {
+ public void setEnabled ( Boolean enabled ) {
throw new UnsupportedOperationException ( STRING0 ) ;
} | Fix quality flaw |
<nb> public class UserAvatarView extends View {
public void setBitmap ( Bitmap bitmap ) {
setDrawable ( null ) ;
mBitmap = bitmap ;
- mBitmapPaint . setShader ( new BitmapShader (
- bitmap , Shader . TileMode . CLAMP , Shader . TileMode . CLAMP ) ) ;
+ if ( mBitmap != null ) {
+ mBitmapPaint . setShader (... | Add a null check to UserAvatarView setBitmap |
<nb> extends BaseTest < A , AP , B , S , B2S , BS , L , X , DATE , BOOL , D , T , U , UU , I , IPK , T7
@ override
public void executeStart ( ExecuteContext ctx ) {
- assertThings ( ctx , STRING0 , STRING1 ) ;
+ if ( SettingsTools . executePreparedStatements ( ctx . configuration ( ) . settings ( ) ) ) {
+ ... | Fixed broken test |
<nb> public class MapLockTest extends HazelcastTestSupport {
assertOpenEventually ( latch ) ;
}
- @ test ( timeout = NUMBER0 * NUMBER1 , expected = IllegalMonitorStateException . class )
+ @ test ( timeout = NUMBER0 * NUMBER2 , expected = IllegalMonitorStateException . class )
public void testLockOwnership ... | increased timeout of testLockOwnership |
<nb> public class Redwood {
public static void forceTrack ( String title ) { Redwood . startTrack ( FORCE , title ) ; }
public static void endTrack ( String check ) { Redwood . endTrack ( check ) ; }
public static void endTrack ( ) { Redwood . endTrack ( ) ; }
- public static void endTrackIfOpen ( String check ... | Made changes to base conf to use the inferential slot filler by default |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.