diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class RobustJavaMethodParser implements JavaMethodParser {
while ( iter . hasNext ( ) ) {
JniSection section = iter . next ( ) ;
if ( section . getNativeCode ( ) . startsWith ( STRING0 ) ) iter . remove ( ) ;
+ if ( section . getNativeCode ( ) . startsWith ( STRING1 ) ) iter . remove ( ) ;
}
ret... | fixed NativeCodeGenerator ignores GWT inline code now |
<nb> public class Observable < T > {
public static < T > Observable < T > switchOnNext ( Observable < ? extends Observable < ? extends T > > sequenceOfSequences ) {
return create ( OperationSwitch . switchDo ( sequenceOfSequences ) ) ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT ... | Alias from switchOnNext to switchLatest to match RxJS |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public final class QRCodeEncoder {
<nb> public final class QRCodeEncoder {
AndroidHttpClient client = null ;
try {
String url = CHART_SERVER_URL + mPixelResolution + STRING0 + mPixelResolution + STRING1 +
- URLEnc... | Fixed a regression in the QR Code encoder |
<nb> public class SpeakerInfo {
private String speakerName ;
private String [ ] speakerNameStrings ; SINGLE
private String speakerDesc ;
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
private Set < Mention > mentions = Generics . newHashSet ( ) ; SINGLE
private boolean speakerIdIsNumber ; SINGLE
pri... | Add a TODO and a simple toString |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ScopesAndSeveritiesTable extends JBTable {
public static final HighlightSeverity MIXED_FAKE_SEVERITY = new HighlightSeverity ( STRING0 , - NUM... | hide icon on mixed inspections settings |
<nb> public class MsgAjp extends Msg {
public void getBytes ( MessageBytes mb ) {
int length = getInt ( ) ;
+ mb . recycle ( ) ;
if ( ( length == NUMBER0 ) || ( length == - NUMBER1 ) ) {
- mb . recycle ( ) ;
return ;
}
mb . setBytes ( buf , pos , length ) ; | Always reset the MB when doing getBytes |
<nb> public class HqlDomain {
@ entity
public static class SimpleTypes {
+ transient int test ;
@ id long id ;
BigDecimal bigDecimal ;
Byte bbyte ; | fixed generic signature issues for field types |
<nb> public class DashChunkSource implements ChunkSource , Output {
private final boolean live ;
private MediaPresentationDescription currentManifest ;
+ private MediaPresentationDescription processedManifest ;
private ExposedTrack enabledTrack ;
private int nextPeriodHolderIndex ;
private TimeRange avail... | Handle laggy manifest servers |
<nb> public class BaseBuilder
{
if ( startArgs . isDownload ( ) && ( arg . uri != null ) )
{
+ if ( ! file . startsWith ( baseHome . getBasePath ( ) ) )
+ {
+ throw new IOException ( STRING0 + file ) ;
+ }
+
URI uri = URI . create ( arg . uri ) ;
SINGLE
<nb> public class BaseHome
COMMENT
pub... | Restrict start module downloads to jetty base paths only |
<nb> class IssueTrackingResult {
}
unmatchedByRuleAndKey . get ( ruleKey ) . put ( i . getKee ( ) , i ) ;
Map < Integer , Multimap < String , IssueDto > > unmatchedForRule = unmatchedByRuleAndLineAndChecksum . get ( ruleKey ) ;
- Integer lineNotNull = i . getLine ( ) != null ? i . getLine ( ) : NUMBER0 ;
+ In... | Fix some quality flaws |
<nb> class StartupInfoLogger {
public Object call ( ) throws Exception {
return source . getPackage ( ) . getImplementationVersion ( ) ;
}
- } , STRING0 ) ;
+ } , STRING1 ) ;
}
private String getOn ( ) { | Remove v N A log output |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class JSONPointer {
private List < String > refTokens ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public JSONPointer ( String pointer... | added some javadoc to JSONPointer |
<nb> public class MetricRegistry {
public static final String KEY_METRICS_REPORTER_ARGUMENTS = STRING0 ;
public static final String KEY_METRICS_REPORTER_INTERVAL = STRING1 ;
- public static final String KEY_METRICS_SCOPE_NAMING_TM = STRING2 ;
- public static final String KEY_METRICS_SCOPE_NAMING_JOB = STRING3... | hotfix core Fix scope format keys for metrics |
<nb> public class AbstractPopup implements JBPopup {
for ( Component each : components ) {
if ( each != null && SwingUtilities . isDescendingFrom ( owner , each ) ) {
- Window eachWindow = SwingUtilities . getWindowAncestor ( each ) ;
+ Window eachWindow = each instanceof Window ? ( Window ) each : SwingUtili... | popup focus lost fix |
<nb> class QueryBatchCursor < T > implements BatchCursor < T > {
private final ConnectionSource connectionSource ;
private int batchSize ;
private ServerCursor serverCursor ;
+ private boolean killed ;
private List < T > nextBatch ;
private int count ;
private boolean closed ;
<nb> class QueryBatchCurso... | Avoid redundant killing of the cursor by setting a flag indicating that it s already been killed |
<nb> public class Map {
bob . update ( deltaTime ) ;
if ( bob . state == Bob . DEAD ) bob = new Bob ( this , activeDispenser . bounds . x , activeDispenser . bounds . y ) ;
cube . update ( deltaTime ) ;
- if ( cube . state == Cube . DEAD ) cube = new Cube ( this , activeDispenser . bounds . x , activeDispenser ... | fixed cube respawns at player position |
<nb> public class SoundTest extends GdxTest {
@ override
public void create ( ) {
- sound = Gdx . audio . newSound ( Gdx . files . getFileHandle ( STRING0 , FileType . Internal ) ) ;
+ sound = Gdx . audio . newSound ( Gdx . files . getFileHandle ( STRING1 , FileType . Internal ) ) ;
skin = new Skin ( Gdx ... | fixed SoundTest to point at correct file |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SmaliClass extends SmaliStubBasedPsiElement < SmaliClassStub > impleme
return name . substring ( lastD... | Implement SmaliClass getPresentation |
<nb> public class MappingJackson2MessageConverter implements SmartMessageConverter , B
protected JavaType getJavaTypeForMessage ( Message message ) throws JMSException {
String typeId = message . getStringProperty ( this . typeIdPropertyName ) ;
if ( typeId == null ) {
- throw new MessageConversionException ( S... | MappingJackson2MessageConverter adds message id and destination to type resolution exception |
<nb> public class ORecordSerializerSchemaAware2CSV extends ORecordSerializerCSVAbstra
} else
linkedType = OType . EMBEDDED ;
} else {
- if ( firstValue instanceof Enum < ? > )
+ SINGLE
+ if ( firstValue instanceof ODocument && ( ( ODocument ) firstValue ) . hasOwners ( ) )
+ linkedType = OType . EMBEDDED ... | Fixed bug on serializing embedded collections |
<nb> public final class RubyCamel {
private RubyCamel ( ) {
SINGLE
}
+
public static List < RouteBuilder > getRoutes ( ) {
return routes ;
}
<nb> public final class RubyCamel {
public static void setCamelContext ( CamelContext camelContext ) {
RubyCamel . camelContext = camelContext ;
}
+
+ pu... | Fixed unit test |
<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 ;
import NAM... | Kill File Directory options |
<nb> import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
COMMENT
<nb> public final class CollQueryFunctions {
}
public static int getYearWeek ( Date date ) {
- DateTime dateTime = new DateTime ( date ) ;
- return dateTime . getWeekyear ( ) * NUMBER0 + dateTime . g... | Remove direct DateTime usage |
<nb> public class DeferringMustacheFactory extends DefaultMustacheFactory {
@ override
protected Writer partialExecute ( Writer writer , final Object [ ] scopes ) {
- final Object object = get ( variable , scopes ) ;
+ final Object object = get ( scopes ) ;
final DeferredCallable deferredCallable = getDefer... | somehow missed this one |
<nb> public class Antlr4Mojo extends AbstractMojo {
@ parameter ( property = STRING0 , defaultValue = STRING1 )
protected boolean forceATN ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ parameter
+ protected Map < String , String > options ;
+
COMMENT
COMMENT
COMMENT
<nb> public c... | Support the Doption value syntax for overriding grammar options |
<nb> public final class BluetoothHeadset {
public static final String EXTRA_AUDIO_STATE =
STRING0 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String EXTRA_DISCONNECT_INITIATOR =
+ STRING1 ;
+
COMMENT
COMMENT
COMMENT
<nb> pub... | Add an extra for the Disconnect Headset State |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public interface ApplicationContextInitializer < C extends ConfigurableApplicationContext > { | Touch up ApplicationContextInitializer Javadoc |
<nb> public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
private void runGlobalTools ( @ notnull AnalysisScope scope , @ notnull InspectionManagerEx inspectionManager , @ notnull List < Tools > globalTools ) {
final List < InspectionToolWrapper > needRepeatSearchRequest = new ArrayList ... | skip external usages processing when scope already contains everything |
<nb> public class RegistryValue {
}
public boolean isChangedFromDefault ( ) {
- return ! getBundleValue ( myKey , true ) . equals ( asString ( ) ) ;
+ return ! asString ( ) . equals ( getBundleValue ( myKey , false ) ) ;
}
private String get ( String key , String defaultValue , boolean isValue ) { | don t throw exception on attempt to invoke setValue for key which doesn t exist in registry properties |
<nb> public class ProgressWindow extends BlockingProgressIndicator implements Disposa
public void cancel ( ) {
if ( myShouldShowCancel ) {
- myCancelButton . setEnabled ( false ) ;
+ SwingUtilities . invokeLater ( new Runnable ( ) {
+ public void run ( ) {
+ myCancelButton . setEnabled ( false ) ;
+ }
... | HackyRepaintManager warning fixed |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class KafkaConfig implements Serializable {
- public static interface BrokerHosts {
+ public static interface BrokerHosts extends Serializable {
} | make brokerhosts serializable |
<nb> public class JsonPathExpectationsHelper {
@ suppresswarnings ( STRING0 )
public < T > void assertValue ( String content , Matcher < T > matcher ) throws ParseException {
T value = ( T ) evaluateJsonPath ( content ) ;
- assertThat ( STRING1 + this . expression , value , matcher ) ;
+ assertThat ( STRING2 ... | Fix missing space in assertion message |
<nb> public class MavenJarFunction extends HttpArchiveFunction {
} else {
this . sha1 = null ;
}
- if ( mapper . has ( STRING0 , Type . STRING ) ) {
+ if ( mapper . has ( STRING0 , Type . STRING )
+ && ! mapper . get ( STRING0 , Type . STRING ) . isEmpty ( ) ) {
this . repositories = ImmutableList . of ( ... | Fix issue where MavenDownloader was using empty defaults for repository |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FirstUsageWizardFragment extends Fragment implements OsmAndLocation
}
public void closeWizard ( ) {
- getActivity ( ) . getSupportFragmentManager ( ) . begi... | Fix crash of welcome screen while press Skip |
<nb> public final class DataSpec {
@ override
public String toString ( ) {
- return STRING0 + uri + STRING1 + STRING1 + absoluteStreamPosition + STRING1 +
- position + STRING1 + length + STRING1 + key + STRING1 + flags + STRING2 ;
+ return STRING0 + uri + STRING1 + absoluteStreamPosition + STRING1 + positio... | Fix DataSpec toString formatting |
<nb> public class StoreMigrationTool
NeoStore . createStore ( targetStoreFile . getPath ( ) , config ) ;
NeoStore neoStore = new NeoStore ( config ) ;
+ long startTime = System . currentTimeMillis ( ) ;
+
new StoreMigrator ( legacyStore ) . migrateTo ( neoStore ) ;
+ long duration = System . currentTime... | Print out timing of the migration process |
<nb> public class PrimitiveValue
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static PrimitiveValue parse ( final String value , final PrimitiveType primitiveType )
{
<nb> public class PrimitiveValue
case CHAR :
if ( value . length ( ) > NUMB... | Tighten up semantics for parsing of value types |
<nb> public class PidFileUtil {
COMMENT
COMMENT
COMMENT
- private static int getProcessPid ( ) {
+ public static int getProcessPid ( ) {
try {
return getProcessPidImpl1 ( ) ;
} | Make method getProcessPid public |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class RemoteBlockInStream extends BufferedBlockInStream {
mBlockWorkerClient = mContext . acquireWorkerClient ( workerNetAddress ) ;
try {
... | check LockBlockResult to be not null in RemoteBlockReader constructor |
<nb> public class TwitterIndexer extends AbstractIndexerComponent implements Indexer
if ( settings . settings ( ) . containsKey ( STRING0 ) ) {
Map < String , Object > indexSettings = ( Map < String , Object > ) settings . settings ( ) . get ( STRING0 ) ;
indexName = XContentMapValues . nodeStringValue ( indexSet... | add a twitter indexer |
<nb> public class PTBTokenizerTest extends TestCase {
STRING0 ,
STRING1 ,
STRING2 ,
+ STRING3 ,
} ;
private String [ ] [ ] ptbGold = {
<nb> public class PTBTokenizerTest extends TestCase {
STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 } ,
{ STRING13 , STR... | Add test for recent tokenizer change |
<nb> public interface Publisher < T > {
COMMENT
COMMENT
COMMENT
- public void subscribe ( Subscriber < T > s ) ;
+ public void subscribe ( Subscriber < ? super T > s ) ;
} | allow contravariant use of Subscriber |
<nb> public class TransactionalSpoutBatchExecutor implements IRichBolt {
try {
_emitter . emitBatch ( attempt , input . getValue ( NUMBER0 ) , _collector ) ;
_collector . ack ( input ) ;
+ SINGLE
+ SINGLE
+ _emitter . cleanupBefore ( ( BigInteger ) input . getValue ( NUMBER1 ) ) ;
} catch ( FailedExceptio... | fix bug in TransactionalSpoutBatchExecutor where cleanup could happen before the new metadata is saved |
<nb> public final class ConnectionHolder {
this . defaultTransactionIsolation = underlyingTransactionIsolation ;
this . defaultAutoCommit = underlyingAutoCommit ;
this . defaultReadOnly = underlyingReadOnly ;
-
- statementPool = null ;
}
public int getModCount ( ) { | remove unused code |
<nb> public class PTriangle implements PConstants
NUMBER0 , NUMBER0 , NUMBER0 , NUMBER1 ) ;
SINGLE
SINGLE
- myMatrix . invert ( ) ;
SINGLE
- if ( myMatrix == null ) return false ;
+ if ( ! myMatrix . invert ( ) ) return false ;
float m00 , m01 , m02 , m10 , m11 , m12 , m20 , m21 , m22 ;
m00 = myMatr... | Remove apparent logic bug in PTriangle |
<nb> public class BasicQueryCassandra {
} } ) . stats ( ) ) ;
SINGLE
ArrayList < KeyValue > input = new ArrayList < KeyValue > ( ) ;
- input . add ( new KeyValue ( STRING0 , NUMBER0 ) ) ;
+ input . add ( KeyValue . newInstance ( STRING0 , NUMBER0 ) ) ;
JavaRDD < KeyValue > kvRDD = sc . parallelize ( input )... | change the constructor for KeyValue in ajva |
<nb> public class Condition {
COMMENT
COMMENT
COMMENT
- private In ( Condition condition , Object firstArgument , boolean isIn ) {
+ private In ( Condition condition , Object firstArgument , boolean isIn , Object . . . arguments ) {
super ( condition . columnName ( ) ) ;
mArguments . add ( firstArgument )... | added variable parameter for acception in arguments |
<nb> public class HttpRequest {
return writePartHeader ( name , filename , null ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
protected HttpRequest writePartHeader ( final String name ,
final String filename , final String type ) throws IOExc... | Add missing Javadoc tags and comments |
<nb> import NAMESPACE ;
public class DeepLearningGradientCheck extends TestUtil {
@ beforeclass public static void stall ( ) { stall_till_cloudsize ( NUMBER0 ) ; }
- static final float MAX_TOLERANCE = FLOAT0 ;
+ static final float MAX_TOLERANCE = FLOAT1 ;
static final float MAX_FAILED_COUNT = NUMBER1 ;
st... | Relax DLGradientCheck tolerances some more |
<nb> public class ClosureCodegen extends MemberCodegen < JetElement > {
@ override
protected void done ( ) {
AsmUtil . writeOuterClassAndEnclosingMethod ( classDescriptor , funDescriptor , typeMapper , v ) ;
- v . done ( ) ;
super . done ( ) ;
} | Removed redundant call v done in ClosureCodegen |
<nb> public class Solo {
}
}
- ArrayList < TextView > textViewList = getCurrentTextViews ( scrollListView ) ;
+ ArrayList < TextView > textViewList = getCurrentTextViews ( null ) ;
int size = textViewList . size ( ) ;
int constant = NUMBER0 ;
if ( size > NUMBER1 ) | Fixed a minor bug that appears when testing very small applications |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused imports from o e i e InternalEngine |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ clusterscope ( randomDynamicTemplates = false )
public class SimpleValidateQ... | TESTS Don t randomize mappings in SimpleValidateQueryTests |
<nb> abstract class StatementAnalyzer < T extends Analysis > extends DefaultTraversalVis
argumentTypes . add ( symbolDataTypeVisitor . process ( arguments . get ( NUMBER0 ) , context ) ) ;
argumentTypes . add ( symbolDataTypeVisitor . process ( arguments . get ( NUMBER1 ) , context ) ) ;
+ SINGLE
+ if ( argum... | handle dynamic refs and null in like left side |
<nb> public interface Datastore {
DB getDB ( ) ;
Mongo getMongo ( ) ;
+
+ DBCollection getCollection ( Class c ) ;
+
} | added getCollection Class to interface |
<nb> public class SearchClient extends TransportClient implements Startable {
}
return response ;
} catch ( Exception e ) {
- LOGGER . error ( STRING0 , request ) ;
+ LOGGER . error ( String . format ( STRING1 , request ) , e ) ;
throw new IllegalStateException ( STRING2 , e ) ;
}
} | Fix SearchClient to display exception detail on error |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HtmlUtil {
return language == HTMLLanguage . INSTANCE || language == XHTMLLanguage . INSTANCE ;
}
+ public static boole... | Added isHtmlFile VirtualFile method |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class ParserATNPathFinder extends ParserATNSimulator {
+ public... | Add generic type argument |
<nb> public class PanelView extends FrameLayout {
}
public void dump ( FileDescriptor fd , PrintWriter pw , String [ ] args ) {
- pw . println ( String . format ( STRING0
+ pw . println ( String . format ( STRING1
+ STRING2
+ STRING3 ,
this . getClass ( ) . getSimpleName ( ) , | Fixed crash in PanelView dump |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DropwizardClientRule extends ExternalResource {
return URI . create ( STRING0 + testSupport . getLocalPort ( ) + STRING1 ) ;
}
+ public ObjectMapper getObje... | Expose the ObjectMapper and Environment from the FakeApplication |
<nb> public class NavBarPanel extends JPanel implements DataProvider , PopupOwner , Dis
item . update ( ) ;
}
if ( UISettings . getInstance ( ) . SHOW_NAVIGATION_BAR ) {
- JComponent parent = ( JComponent ) getParent ( ) . getParent ( ) . getParent ( ) . getParent ( ) . getParent ( ) . getParent ( ) ;
+ JComp... | fix find usages selection color change while navbar is visible |
<nb> public class CamelBeanPostProcessor implements BeanPostProcessor , ApplicationCon
}
protected boolean isSingleton ( Object bean , String beanName ) {
- return applicationContext . isSingleton ( beanName ) ;
+ SINGLE
+ SINGLE
+ if ( applicationContext == null || beanName == null ) {
+ return super .... | Fixed issues when using Produce on beans not enlisted in spring application context |
<nb> public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
COMMENT
protected void markBeanAsCreated ( String beanName ) {
if ( ! this . alreadyCreated . contains ( beanName ) ) {
- SINGLE
- SINGLE
- clearMergedBeanDefinition ( beanName ) ;
- this . alreadyCreated . add ( beanNam... | AbstractBeanFactory markBeanAsCreated reliably clears merged bean definition only once |
<nb> public class JavaBuild {
SINGLE
SINGLE
found = found . substring ( NUMBER0 , found . indexOf ( STRING0 ) ) ;
- System . out . println ( found ) ;
String [ ] pieces = PApplet . split ( found , STRING1 ) ;
for ( String line : pieces ) {
SINGLE | oop remove that debug feller |
<nb> public class RandomAccessDataFile implements Forceable {
public RandomAccessDataFile ( final File file ) throws IOException {
myFile = file ;
+ if ( ! file . exists ( ) ) {
+ throw new FileNotFoundException ( file . getPath ( ) + STRING0 ) ;
+ }
- final FileChannel channel = ourCache . getChannel (... | Don t acquire a channel just to get file size |
<nb> public class JavaBeanSerializer implements ObjectSerializer {
out . writeFieldName ( key , true ) ;
}
- if ( valueGot && ! propertyValueGot ) {
- if ( fieldInfo . fieldClass == int . class ) {
- propertyValue = Integer . valueOf ( propertyValueInt ) ;
- propertyValueGot = true ;
- } else if ( field... | removed unused code |
<nb> public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
SINGLE
Iterator < MUCRole > roles = user . getRoles ( ) ;
MUCRole role ;
+ MUCRoom room ;
+ Presence kickedPresence ;
while ( roles . hasNext ( ) ) {
role = roles . next ( ) ;
+ room = role . getChatRoom ( ) ;
try { ... | Added presence notification to room occupants when a user was kicked due to being idle for a while |
<nb> public class MUCUser implements PacketExtension {
xml . optElement ( getDecline ( ) ) ;
xml . optElement ( getItem ( ) ) ;
xml . optElement ( STRING0 , getPassword ( ) ) ;
- for ( Status status : statusCodes ) {
- xml . element ( status ) ;
- }
+ xml . append ( statusCodes ) ;
xml . optElement ( ge... | Use new XmlStringBuilder append Collection |
<nb> public class JavaBuild {
SINGLE
pw . print ( STRING0 ) ;
SINGLE
- pw . print ( STRING1 ) ; SINGLE
+ pw . print ( STRING2 ) ; SINGLE
+ pw . print ( STRING3 ) ; SINGLE
SINGLE
SINGLE
if ( embedJava ) { | Add support for symlinks to exported applications |
<nb> public class ClusterRule extends ExternalResource
@ override
public Statement apply ( final Statement base , final Description description )
{
- return testDirectory . apply ( new Statement ( )
+ Statement testMethod = new Statement ( )
{
@ override
public void evaluate ( ) throws Throwable
{
-... | Fixed ClusterRule to actually run test methods |
<nb> public class ExportTest
os . close ( ) ;
sock . close ( ) ;
- Thread . sleep ( NUMBER0 ) ;
+ Thread . sleep ( NUMBER1 ) ;
}
@ beforeclass
<nb> public class ExportTest
QueryMetric metric = new QueryMetric ( NUMBER2 , Long . MAX_VALUE , NUMBER2 , METRIC_NAME ) ;
ds . delete ( metric ) ;
- T... | increasing testing timeouts |
<nb> public abstract class SensorManager {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class SensorManager {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
... | clarify rules for rate param |
<nb> public class EditSession implements Extent {
SINGLE
extent = fastModeExtent = new FastModeExtent ( world , false ) ;
+ extent = quirkExtent = new BlockQuirkExtent ( extent , world ) ;
extent = chunkLoadingExtent = new ChunkLoadingExtent ( extent , world ) ;
extent = cacheExtent = new LastAccessExtentCa... | Moved EditSession BlockQuirkExtent upward |
<nb> public final class BluetoothA2dp implements BluetoothProfile {
&& isValidDevice ( device ) ) {
if ( priority != BluetoothProfile . PRIORITY_OFF &&
priority != BluetoothProfile . PRIORITY_ON &&
+ priority != BluetoothProfile . PRIORITY_UNDEFINED &&
priority != BluetoothProfile . PRIORITY_AUTO_CONNECT ) { ... | Reset priority on unbond |
<nb> public class ServerSentEventConnection implements Channel , Attachable {
IoUtils . safeClose ( sink ) ;
}
} ) ) ;
+ sink . resumeWrites ( ) ;
}
}
} | Make sure to resume writes when closing SSE connection |
<nb> public class BuildCommand extends AbstractCommandRunner < BuildCommandOptions > {
}
exitCode = NUMBER0 ;
}
- } catch ( InterruptedException e ) {
- SINGLE
- SINGLE
- console . printBuildFailureWithStacktrace ( e ) ;
- Thread . currentThread ( ) . interrupt ( ) ;
- exitCode = NUMBER0 ;
}
ret... | Remove redundant catch block |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT
<nb> public class SimpleStringSchema implements DeserializationSchema < String > ,
private static final long serialVersionUID = NUMBER0 ;
- private Charset charset = Charset . defaultC... | hotfix Fix SimpleStringSchema serialization issue |
<nb> public class TileFiller extends TileBuildCraft implements ISpecialInventory , IPo
( ( TileMarker ) a ) . removeFromWorld ( ) ;
}
+ if ( ! APIProxy . isClient ( worldObj ) && box . isInitialized ( ) ) {
+ box . createLasers ( worldObj , LaserKind . Stripes ) ;
+ }
sendNetworkUpdate ( ) ;
}
}
<nb... | Fixed filler respawning striped tape after it gets destroyed |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class NotReadablePropertyException extends InvalidPropertyException {
super ( beanClass , propertyName , msg ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public NotReadab... | NotReadablePropertyException accepts root cause analogous to NotWritablePropertyException |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
final class PeepholeCollectPropertyAssignments extends AbstractPeepholeOptimization { | Add back removed author tag |
<nb> public class Description implements Serializable {
if ( ( uniqueId == null ) )
throw new IllegalArgumentException (
STRING0 ) ;
- fDisplayName = displayName ;
fTestClass = clazz ;
+ fDisplayName = displayName ;
fUniqueId = uniqueId ;
fAnnotations = annotations ;
} | Reorder assignments to match order of parameters |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- @ realmclass
public class Cat extends RealmObject {
private String name ; | Remove annotation from Cat class introduced by git merge |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultDependencyManagementServices implements DependencyManagement
public ArtifactPublisher createArtifactPublisher ( ) { ... | Fixed publishing to Ivy |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PyHighlighter extends SyntaxHighlighterBase {
public Lexer getHighlightingLexer ( ) {
LayeredLexer ret = new LayeredLexer ( new PythonHighligh... | correctly detect unicode strings by language level |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
}
static ITelephony getTelephonyService ( ) {
- ITelephony telephonyService = ITelephony . Stub . asInterface (
+ return ITelephony . Stub . asInterface (
ServiceManager . checkService ( Context . TELEPHONY_SERVICE ) ) ;
- if ( telephon... | stifle warning that ITelephony service does not exist |
<nb> public interface World {
public ChunkSnapshot getEmptyChunkSnapshot ( int x , int z , boolean includeBiome , boolean includeBiomeTempRain ) ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void setSpawnFlags ( boolean allowMonsters , boolean allowAnimals ) ;
+
+ COMMENT
... | Added API to allow plugins to set the world s spawn flags |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public interface StdTokenSets {
TokenSet COMMENT_BIT_SET = TokenSet . orSet (
- ElementType . JAVA_COMMENT_BIT_SET , TokenSet . create ( JspElementTy... | JspElementType no longer extends JspTokenType |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MapRecordProcessor extends RecordProcessor {
l4j . info ( STRING0 + s ) ;
}
}
- mapOp = new MapOperator ( ) ;
+ if ( ... | Change MapRecordProcessor to use VectorMapOperator when necessary on Tez Gunther Hagleitner |
<nb> public final class Installer {
return execute ( builder . toString ( ) ) ;
}
+ public int createUserConfig ( int userId ) {
+ StringBuilder builder = new StringBuilder ( STRING0 ) ;
+ builder . append ( STRING1 ) ;
+ builder . append ( userId ) ;
+ return execute ( builder . toString ( ) ) ;
+ } ... | Make misc config directory during user creation |
<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 ;
import NAMESPACE ;
import NAMESPACE ; | Replace internal import with correct one |
<nb> public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {
break ;
case ServiceState . RADIO_TECHNOLOGY_EHRPD :
ret = STRING0 ;
+ break ;
default :
if ( DBG ) {
Log . e ( LOG_TAG , STRING1
<nb> public class CdmaServiceStateTracker extends ServiceStateTracker {
case NUMBER0 : SINGLE... | Fix eHRPD Service State Mapping |
<nb> public class DetailListPreference extends ListPreference
}
@ override
+ public CharSequence getEntry ( ) {
+ int index = findIndexOfValue ( getValue ( ) ) ;
+ CharSequence [ ] entries = getEntries ( ) ;
+
+ if ( entries != null && index >= NUMBER0 && index < entries . length ) {
+ return entries ... | Adding an index boundary check to prevent OOB crashes on certain locales |
<nb> public class RecentsView extends FrameLayout {
RecentsConfiguration config = Recents . getConfiguration ( ) ;
RecentsActivityLaunchState launchState = config . getLaunchState ( ) ;
mStack = stack ;
- SINGLE
- if ( false && launchState . launchedReuseTaskStackViews ) {
+ if ( launchState . launchedReuse... | Removing workaround causing full view inflation |
<nb> public class ChangelistTable extends Composite
statusColumn . setSortable ( true ) ;
statusColumn . setHorizontalAlignment ( Column . ALIGN_CENTER ) ;
table_ . addColumn ( statusColumn , STRING0 ) ;
- table_ . setColumnWidth ( statusColumn , STRING1 ) ;
+ table_ . setColumnWidth ( statusColumn , STRING2 ... | Adjust VCS status column width |
<nb> public class LocationManagerService extends ILocationManager . Stub implements Run
private Bundle _getProviderInfoLocked ( String provider ) {
LocationProviderInterface p = mProvidersByName . get ( provider ) ;
- if ( p == null || ! p . isEnabled ( ) ) {
+ if ( p == null ) {
return null ;
} | Fix LocationManager getProvider API breakage |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class StandaloneServerImpl implements StandaloneServer {
static final Logger log = Logger . getLogger ( STRING0 ) ;
private final ServerEnvironment environment ;
- private CountDownLatch ... | Fix thread safety issue |
<nb> public class DialogView extends ListItemBackgroundView < Dialog , DialogView . Dialog
} else if ( arg . getPeer ( ) . getPeerType ( ) == PeerType . PRIVATE ) {
if ( arg . isBot ( ) ) {
res . setTitleIcon ( botIcon ) ;
- res . setTitleIconTop ( Screen . dp ( NUMBER0 ) ) ;
+ res . setTitleIconTop ( Screen ... | Fixing bot icon padding in DialgoView |
<nb> public class SSLCertificateSocketFactory extends SSLSocketFactory {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class SSLCertificateSocketFactory extends SSLSocketFactory {
if ( mInsecureFactory == null ) {
if ( mSecure ) {
Log . w ( TAG , STR... | Revert Remove the warning if the caller gets the insecure variant and add hostname verification SNI |
<nb> class MediaArtistNativeHelper {
} catch ( Throwable e ) {
SINGLE
try {
- System . gc ( ) ;
rgb888 = new int [ thumbnailSize * MAX_THUMBNAIL_PERMITTED ] ;
bitmaps = new Bitmap [ MAX_THUMBNAIL_PERMITTED ] ;
thumbnailCount = MAX_THUMBNAIL_PERMITTED ;
<nb> public class MediaImageItem extends MediaItem ... | video editor calls System gc |
<nb>
package NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class LeftNavBar extends ActionBar {
setCustomView ( LayoutInflater . from ( mContext ) . inflate ( resId , mLeftNav , false ) ) ;
}
+ @ override
+ public void setIcon ( int resId ) {
+ SINGLE
+... | Add required overriden methods to LeftNavBar |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.