diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public abstract class ViewGroup extends View implements ViewParent , ViewManager
final int left = cl + ( int ) region . left ;
final int top = ct + ( int ) region . top ;
- invalidate ( left , top , left + ( int ) region . width ( ) , top + ( int ) region . height ( ) ) ;
+ invalidate ( left , top , left... | Fix invalidation roundoff error with old animations |
<nb> public class IpnbCodeSourcePanel extends IpnbPanel < JComponent , IpnbCodeCell > imp
keyCode == KeyEvent . VK_DELETE ) {
final int height = myEditor . getLineHeight ( ) * Math . max ( myEditor . getDocument ( ) . getLineCount ( ) , NUMBER0 ) ;
component . setPreferredSize ( new Dimension ( IpnbEditorUtil . P... | repaint selection rectangle on enter in code source panel |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class ZookeeperEndpointTest extends CamelTestSupport {
+ public class ZooKeeperEndpointTest extends CamelTestSupport {
@ test
- public void testAwaitExistenceOptionOnEndpoint ( ) {
+ public void awaitExistenceOptionOnEndpoint ( ) ... | Renamed the unit test class |
<nb> public final class DriverDataSource implements DataSource
}
}
catch ( SQLException e ) {
- throw new RuntimeException ( STRING0 + jdbcUrl ) ;
+ throw new RuntimeException ( STRING0 + jdbcUrl , e ) ;
}
}
<nb> public final class DriverDataSource implements DataSource
}
}
catch ( SQLException ... | Include exception in rethrow |
<nb> public class AudioService extends IAudioService . Stub {
SINGLE
final int mFixedVolumeDevices = AudioSystem . DEVICE_OUT_HDMI |
AudioSystem . DEVICE_OUT_DGTL_DOCK_HEADSET |
- AudioSystem . DEVICE_OUT_ANLG_DOCK_HEADSET |
- AudioSystem . DEVICE_OUT_ALL_USB ;
+ AudioSystem . DEVICE_OUT_ANLG_DOCK_HEADSET ;... | Enabling USB Device and Android Device Vol inc dec functionality for USB Audio Output |
<nb> public abstract class HazelcastTestSupport {
try {
task . run ( ) ;
} catch ( Exception e ) {
+ if ( e instanceof RuntimeException ) {
+ throw ( RuntimeException ) e ;
+ }
throw new RuntimeException ( e ) ;
}
return ; | If AssertTask throws RuntimeException just re throw it rather than encapsulating it into a new one |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
COMMENT
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPA... | Absorb ImmutableSettings into Settings |
<nb> public class ValidationMetrics {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class ValidationMetrics {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Updating the javadoc comments |
<nb> public class FramePanel extends DebuggerPanel implements DataProvider {
} ) ;
}
+ boolean mySplitterInitialized = false ;
public void addNotify ( ) {
super . addNotify ( ) ;
SINGLE
- SwingUtilities . invokeLater ( new Runnable ( ) {
- public void run ( ) {
- final DebuggerSettings settings = De... | eliminate debugger splitter jumping when switching toolwindows |
<nb> public class NumberAggregationStrategy implements AggregationStrategy {
return newExchange ;
}
+ SINGLE
+ String input = newExchange . getIn ( ) . getBody ( String . class ) ;
+ if ( STRING0 . equalsIgnoreCase ( input ) ) {
+ return oldExchange ;
+ }
+
Integer num1 = oldExchange . getIn ( ) . g... | Fixed the camel aggregation example generates an error whenever the completion predicate is entered |
<nb> public class Console {
try {
runner . run ( ) ;
} catch ( Error e ) {
- System . err . println ( e . getMessage ( ) ) ;
+ SINGLE
}
}
} | removed System err println for errors when exiting console |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import static NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ ... | Add missing license headers |
<nb> public class LoaderTask extends AsyncTask < String , Void , Bitmap > {
private final ImageWrapper imageWrapper ;
private final LoaderSettings loaderSettings ;
private final WeakReference < OnImageLoadedListener > onImageLoadedListener ;
-
private String url ;
private boolean saveScaledImage ;
private... | Added test for cancellation as per normal pattern |
<nb> public class UnitOfWorkSyncProcessTest extends ContextTestSupport {
private ExecutorService executorService = Executors . newSingleThreadExecutor ( ) ;
public void testUnitOfWorkSync ( ) throws Exception {
+ SINGLE
+ if ( isPlatform ( STRING0 ) ) {
+ return ;
+ }
+
getMockEndpoint ( STRING1 ) . e... | Skip test failing on aix |
<nb> class TimeFilter implements IFilter
public ColumnFamily filter ( String cf , ColumnFamily columnFamily )
{
- String [ ] values = RowMutation . getColumnAndColumnFamily ( cf ) ;
+ if ( columnFamily == null )
+ return columnFamily ;
+
+ String [ ] values = RowMutation . getColumnAndColumnFamily ( cf ... | add null check to TimeFilter for consistency |
<nb> public class SerialConnection
CommPortIdentifier . getPortIdentifier ( m_Parameters . getPortName ( ) ) ;
} catch ( NoSuchPortException e ) {
if ( Modbus . debug ) System . out . println ( e . getMessage ( ) ) ;
- throw new Exception ( e . getMessage ( ) ) ;
+ throw new Exception ( STRING0 + e . getMessa... | added minimal debug messages |
<nb> public class BuildWorkTest {
private static final String WILL_PASS = STRING0 + JOB_PLAN_NAME + STRING1
+ STRING2
- + STRING3
+ + STRING4
+ STRING5
+ STRING6 ;
<nb> public class BuildWorkTest {
+ STRING7 + file + STRING8
+ STRING9
+ STRING2
- + STRING3
+ + STRING4
+ STRING5
+ STRING6... | Fixed failing test |
<nb> public class PGL {
window . addGLEventListener ( listener ) ;
}
+ canvas . setFocusTraversalKeysEnabled ( false ) ;
+
fboLayerCreated = false ;
fboLayerInUse = false ;
firstFrame = true ; | added call to canvas setFocusTraversalKeysEnabled in initSurface to |
<nb> public class AsyncContextImpl implements AsyncContext , AsyncContextCallback {
} else {
Thread . currentThread ( ) . setContextClassLoader
( context . getLoader ( ) . getClassLoader ( ) ) ;
- } wrapped . run ( ) ;
+ }
+ wrapped . run ( ) ;
} finally {
if ( Globals . IS_SECURITY_ENABLED ) {
Privil... | Fix line wrapping |
<nb> public class TemplateResourceReader implements ContentResourceReader {
template . process ( variables ( request . get ( ) ) , writer ) ;
return stream . toByteArray ( ) ;
} catch ( ParseException e ) {
- logger . info ( STRING0 , templateSource ) ;
+ logger . error ( STRING1 , templateSource ) ;
throw ... | corrected template parse error message |
<nb> public final class GroovyPageOutputStack {
webRequest . setOut ( writer ) ;
}
}
+
+ public void flushActiveWriter ( ) {
+ writerGroup . flushActive ( ) ;
+ }
} | add method for flushing active writer in stack |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
public class SearchWhileRelocatingTests extends AbstractSharedClusterTest {
<nb> public class SearchWhileRelocatingTests extends AbstractShar... | ElasticsearchAssertions assertHitCount also checks shard failures |
<nb> public class QuadTree < T > {
bounds = new QuadRect ( b . left , b . top , b . right , b . bottom ) ;
children = new Node [ NUMBER0 ] ;
}
- } ;
+ }
- private float ratio ;
+ private float ratio ;
private int maxDepth ;
private Node < T > root ; | Remove unecessary semicolon |
<nb> public abstract class FragmentTransaction {
public abstract FragmentTransaction detach ( Fragment fragment ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix typo in comment of FragmentTransaction |
<nb> public abstract class TableRef {
public abstract String getName ( ) ;
public boolean isRoot ( ) {
- return getName ( ) . isEmpty ( ) ;
+ return ! getParent ( ) . isPresent ( ) ;
}
@ override | Improved TableRef isRoot |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> final class WebViewCore {
return mSettings ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ return MediaFile . getF... | Add wrapper method for native JNI call |
<nb> public class Notification implements Parcelable
builder . setSound ( this . sound , this . audioStreamType ) ;
builder . setDefaults ( this . defaults ) ;
builder . setVibrate ( this . vibrate ) ;
+ builder . setDeleteIntent ( this . deleteIntent ) ;
SINGLE
if ( contentTitle != null ) { | Keep deleteIntent when copying Notification attributes |
<nb> public class PatternAlight extends PatternEdge implements OnBoardReverseEdge {
public State optimisticTraverse ( State state0 ) {
StateEditor s1 = state0 . edit ( this ) ;
- SINGLE
- s1 . incrementWeight ( state0 . getOptions ( ) . boardCost ) ;
+ SINGLE
+ SINGLE
+ SINGLE
return s1 . makeState ( ... | do not include board cost in optimistic patternAlight traversal |
<nb> public final class FormEditingUtil {
}
}
- if ( SwingConstants . HORIZONTAL == orientation ) {
- GridChangeUtil . deleteCell ( container , cell , false ) ;
- }
- else {
- GridChangeUtil . deleteCell ( container , cell , true ) ;
- }
+ container . getLayoutManager ( ) . deleteGridCells ( contain... | use correct API for deleting rows columns |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class ProjectConversionUtil {
public static boolean convertSilently ( String projectFilePath , ConversionListener listener ) {
try {
+ if ( n... | skip project conversion for directory based stores |
<nb> public class Slf4jPLoggerAdapter implements PLogger {
sb . append ( STRING0 ) ;
logMethod ( sb , target , className , methodName , parameterDescription , args ) ;
logResult ( sb , result , throwable ) ;
-
+ if ( throwable == null ) {
+ logger . debug ( sb . toString ( ) ) ;
+ } else {
+ logger . de... | fix bug of afterInterceptor Object target String className String methodName String parameterDescription Object args Object result Throwable throwable |
<nb> public final class TldConfig implements LifecycleListener {
noTldJars . add ( STRING0 ) ;
noTldJars . add ( STRING1 ) ;
noTldJars . add ( STRING2 ) ;
+ noTldJars . add ( STRING3 ) ;
noTldJars . add ( STRING4 ) ;
noTldJars . add ( STRING5 ) ;
SINGLE
<nb> public class TldLocationsCache {
noTldJars ... | Add new jar to TLD exclusion list |
<nb> public final class Javac2 extends Javac {
protected void compile ( ) {
SINGLE
super . compile ( ) ;
+ log ( STRING0 + getCompiler ( ) ) ;
SINGLE
final ArrayList formsToInstrument = myFormFiles ; | add log compiler string |
<nb> public class LineStatusTrackerManager implements ProjectComponent , LineStatusTra
public void dispose ( ) {
synchronized ( myLock ) {
for ( final LineStatusTracker tracker : myLineStatusTrackers . values ( ) ) {
- final Document document = tracker . getDocument ( ) ;
- myPartner . remove ( document ) ;
... | LST remove useless statement |
<nb> public class MethodDescriptor < RequestT , ResponseT > {
COMMENT
COMMENT
COMMENT
- public MethodDescriptor withTimeout ( long timeout , TimeUnit unit ) {
+ public MethodDescriptor < RequestT , ResponseT > withTimeout ( long timeout , TimeUnit unit ) {
return new MethodDescriptor < RequestT , ResponseT ... | Add missing generics in MethodDescriptor |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BlazeCommandEventHandler implements EventHandler {
out . write ( event . getMessageBytes ( ) ) ;
out . flush ( ) ;
} catc... | Resolve TODO in BlazeCommandEventHandler |
<nb> public abstract class HystrixObservableCollapser < K , BatchReturnType , ResponseTyp
COMMENT
public Observable < ResponseType > toObservable ( Scheduler observeOn ) {
+ final boolean isRequestCacheEnabled = getProperties ( ) . requestCacheEnabled ( ) . get ( ) ;
+
COMMENT
- if ( getProperties ( ) . r... | Only check the property value of isRequestCacheEnabled once in HystrixObservableCollapser |
<nb> final class HttpHeaderDateFormat extends SimpleDateFormat {
private final SimpleDateFormat format1 = new HttpHeaderDateFormatObsolete1 ( ) ;
private final SimpleDateFormat format2 = new HttpHeaderDateFormatObsolete2 ( ) ;
- private static ThreadLocal < HttpHeaderDateFormat > dateFormatThreadLocal = new Thr... | Add missing final modifier |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MultipleDBTest {
long start = System . currentTimeMillis ( ) ;
for ( int j = NUMBER0 ; j < operations_write ; j ++ ) {
Du... | Added new assert to know why it doesn t pass anymore |
<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 HttpRequest extends UriRequest {
{ ... | HttpURLConnection not support PATCH method |
<nb> public final class ParseDataset extends Job {
super ( STRING0 , dest ) ;
_total = dataset . length ( ) * Pass . values ( ) . length ;
_progress = Key . make ( UUID . randomUUID ( ) . toString ( ) , ( byte ) NUMBER0 , Key . JOB ) ;
+ UKV . put ( _progress , new Progress ( ) ) ;
}
SINGLE | Fixed parse progress |
<nb> public class SavingTrackHelper extends SQLiteOpenHelper {
OsmAndLocationProvider . isNotSimulatedLocation ( location ) &&
OsmandPlugin . getEnabledPlugin ( OsmandMonitoringPlugin . class ) != null ) {
if ( settings . SAVE_TRACK_TO_GPX . get ( ) &&
- locationTime - lastTimeUpdated > settings . SAVE_TRACK_IN... | Fix recording only for navigation |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
+ @ deprecated
@ serializable ( )
- public class Message implements com . jme3 . network . Message {
+ public class Message extends com . jme3 . network . AbstractMessage {
SINGLE
private transient Client connector ;
p... | Unwinding a bit of the Message vs Message conundrum |
<nb> public class MediaEntityJSONImpl extends EntityIndex implements MediaEntity {
int width ;
int height ;
int resize ;
+
+ COMMENT
+ COMMENT
+ Size ( ) {
+ }
Size ( JSONObject json ) throws JSONException {
width = json . getInt ( STRING0 ) ; | Added default constructor to MediaEntity Size |
<nb> public class FragmentAsyncFilter extends AbstractFragment {
public void onCreate ( Bundle savedInstanceState ) {
super . onCreate ( savedInstanceState ) ;
- if ( getArguments ( ) != null ) {
+ if ( savedInstanceState != null ) {
+ configure = savedInstanceState . getBoolean ( ARG_CONFIGURE ) ;
+ } el... | fixed rotation for FragmentAsyncFilter |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | fixed compilation error for Html class usage |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Added one missing space to the javadoc |
<nb> public class SugarRecord < T > {
sqLiteDatabase . delete ( getTableName ( type ) , null , null ) ;
}
+ public static < T extends SugarRecord > void deleteAll ( Class < T > type , String whereClause , String . . . whereArgs ) {
+ Database db = getSugarContext ( ) . database ;
+ SQLiteDatabase sqLiteData... | delete method added with where clause |
<nb> public class DefaultGroovyMethods {
COMMENT
COMMENT
COMMENT
- public static Object identity ( Object self , Closure closure ) {
- closure . setDelegate ( self ) ;
- return closure . call ( self ) ;
+ public static Object identity ( final Object self , final Closure closure ) {
+ final Closure clone... | Make identity thread safe by cloning the closure |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public abstract class FileLookupInfoProvider {
- public static ExtensionPointName < FileLookupInfoProvider > EP_NAME = ExtensionPointName . create ( STRING0 ) ;
+ public static final ExtensionPointName < FileLookupInfoProvider > EP_NAME = ExtensionPointName . create ( S... | add final to EP_NAME |
<nb> public class NativeBitmapFactory {
}
public static Bitmap createBitmap ( int width , int height , Bitmap . Config config , boolean hasAlpha ) {
- SINGLE
- SINGLE
- return Bitmap . createBitmap ( width , height , config ) ;
- SINGLE
- SINGLE
+ if ( nativeLibLoaded == false || nativeIntField == nul... | remove the test code |
<nb> public class TermSession {
COMMENT
public void finish ( ) {
mIsRunning = false ;
- mTranscriptScreen . finish ( ) ;
+ if ( mTranscriptScreen != null ) {
+ mTranscriptScreen . finish ( ) ;
+ }
SINGLE
- mWriterHandler . sendEmptyMessage ( FINISH ) ;
+ if ( mWriterHandler != null ) {
+ mWriter... | handle finishing a session before initialization gracefully |
<nb> public class MapRoutePreferencesControl extends MapControls {
@ override
public void hideControls ( FrameLayout layout ) {
removeButton ( layout , settingsAppModeButton ) ;
- layout . removeView ( settingsAppModeButton ) ;
- mapActivity . accessibleContent . remove ( settingsAppModeButton ) ;
}
@ o... | Remove duplicate code |
<nb> public class DerivativeReducer extends Reducer {
List newBuckets = new ArrayList < > ( ) ;
Double lastBucketValue = null ;
- SINGLE
for ( InternalHistogram . Bucket bucket : buckets ) {
Double thisBucketValue = resolveBucketValue ( histo , bucket ) ;
if ( lastBucketValue != null ) {
<nb> public cla... | DerivativeReducer now copies histogram options from old histogram instance |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultSettingsLoader implements SettingsLoader {
} else {
profiler . startInfo ( STRING0 ) ;
}
- InputStream is = wsCl... | Fix quality flaws |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ServiceAuthorizationCheckTests {
RegisteredServiceImpl unauthorizedRegisteredService = new RegisteredS... | Fixed failing tests |
<nb> public class WebSocketServerFactory extends ContainerLifeCycle implements WebSoc
ServletUpgradeResponse sockresp = new ServletUpgradeResponse ( response ) ;
Object websocketPojo = creator . createWebSocket ( sockreq , sockresp ) ;
- websocketPojo = getObjectFactory ( ) . decorate ( websocketPojo ) ;
SI... | WebSocketServerFactory should not hand null object to DecoratedObjectFactory |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
public class RequestFileFilter {
private final StoreDefinition storeDefinition ; | Removed author tag |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import static NAMESPACE ; | fix missing import |
<nb> public class AtmosphereFilter implements ResourceFilterFactory {
response . setEntity ( paddingData ) ;
response . write ( ) ;
+ response . setEntity ( null ) ;
}
if ( entity != null ) { | Set the entity to null after writing the padding |
<nb> public abstract class ClusterManagerBase extends ManagerBase
copy . setName ( STRING0 + getName ( ) ) ;
copy . setCluster ( getCluster ( ) ) ;
copy . maxActiveSessions = getMaxActiveSessions ( ) ;
+ copy . setMaxInactiveInterval ( getMaxInactiveInterval ( ) ) ;
+ copy . setSessionIdLength ( getSessionIdL... | Add more attributes to manager cloneing when |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class FlexibleDividerDecoration extends RecyclerView . ItemDecorat
}
public T colorResId ( @ colorres int colorId ) { ... | Fixed deprecated methods |
<nb> public class DefaultSubscriptionBundleTimeline implements SubscriptionBundleTime
switch ( in ) {
case CREATE :
return ImmutableList . < SubscriptionEventType > of ( SubscriptionEventType . START_ENTITLEMENT , SubscriptionEventType . START_BILLING ) ;
- case MIGRATE_ENTITLEMENT :
- return ImmutableList . ... | don t create a START_BILLING event for MIGRATE_ENTITLEMENT |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | Fix licence header |
<nb> public abstract class LookupActionHandler extends EditorActionHandler {
public static class PageDownHandler extends LookupActionHandler {
public PageDownHandler ( final EditorActionHandler originalHandler ) {
- super ( originalHandler , true ) ;
+ super ( originalHandler , false ) ;
}
protected voi... | pressing Page Up Down in just opened list closes it and works in the editor |
<nb> public abstract class TaskCompiler {
return ;
}
+ optimizeOperatorPlan ( pCtx , inputs , outputs ) ;
+
COMMENT
COMMENT
COMMENT
<nb> public abstract class TaskCompiler {
protected abstract void generateCountersTask ( Task < ? extends Serializable > rootTask ) ;
COMMENT
+ COMMENT
+ COMMEN... | Add hook to do additional optimization on the operator plan in tez Gunther Hagleitner |
<nb> import NAMESPACE ;
public class FrescoModule extends ReactContextBaseJavaModule implements
ModuleDataCleaner . Cleanable {
- @ nullable RequestListener mRequestListener ;
- @ nullable DiskCacheConfig mDiskCacheConfig ;
+ @ nullable private RequestListener mRequestListener ;
+ @ nullable private DiskC... | Fix missing private on member variable |
<nb> public class RegisterActions {
} ) ;
SINGLE
- parser . registerAction ( KeyParser . MAPPING_NORMAL | KeyParser . MAPPING_VISUAL , STRING0 , Command . CHANGE ,
+ parser . registerAction ( KeyParser . MAPPING_NORMAL | KeyParser . MAPPING_INSERT | KeyParser . MAPPING_VISUAL ,
+ STRING0 , Command . CHANGE ... | Allow comment line action in insert repeat mode |
<nb> public class BlueprintBasicTest {
mavenBundle ( ) . groupId ( STRING0 ) . artifactId ( STRING1 ) . version ( STRING2 ) ,
mavenBundle ( ) . groupId ( STRING0 ) . artifactId ( STRING3 ) . version ( STRING2 ) ,
mavenBundle ( ) . groupId ( STRING0 ) . artifactId ( STRING4 ) . version ( STRING2 ) ,
- mavenBundl... | Fix stupid OSGi test typo issue |
<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 ;
import NAMESPACE ;
import NAMESPACE ... | Groovy Ant Task is not executing Groovy Test Cases as the Command Line does |
<nb> public enum WorldType {
static {
for ( WorldType type : values ( ) ) {
- lookup . put ( type . getName ( ) , type ) ;
+ lookup . put ( type . name , type ) ;
}
} | Make getByName actually return values |
<nb> public class EddaASGJanitorCrawler implements JanitorCrawler {
if ( lc != null ) {
String lcName = lc . getTextValue ( ) ;
Long lcCreationTime = lcNameToCreationTime . get ( lcName ) ;
- resource . setAdditionalField ( ASG_FIELD_LC_NAME , lcName ) ;
+ if ( lcName != null ) {
+ resource . setAdditionalF... | Fix NPE with Edda ASG Janitor crawler |
<nb> public class Allocation extends BaseObj {
mType = t ;
mUsage = usage ;
- mSize = mType . getCount ( ) * mType . getElement ( ) . getBytesSize ( ) ;
if ( t != null ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ mSize = mType . getCount ( ) * mType . getElement ( ) . getBytesSize ( ) ;
updateCacheInfo ( t ) ... | Don t set Allocation mSize when we have no Type |
<nb> public class SessionImpl implements Session {
+ STRING0 ) ;
OtrPolicy policy = getSessionPolicy ( ) ;
- if ( policy . getErrorStartAKE ( ) ) {
+ SINGLE
+ if ( policy . getErrorStartAKE ( ) && getSessionStatus ( ) == SessionStatus . ENCRYPTED ) {
showWarning ( errorMessage . error + STRING1 ) ;
lo... | Do not auto renegotiate OTR if not currently encrypting |
<nb> public class CredentialsManagerImpl extends CredentialsManager {
}
final UnknownCredentialsHolder credentials = CredentialsType . UNKNOWN . createCredentials ( ) ;
credentials . setInterpreterPath ( interpreterPath ) ;
+ credentials . load ( element ) ;
data . setCredentials ( CredentialsType . UNKNOWN_C... | for unknown connection type also keep serialized parameters and save them back |
<nb> public class Publication implements AutoCloseable
final int newTermId = activeTermId + NUMBER0 ;
final int nextIndex = nextPartitionIndex ( activeIndex ) ;
+ final LogAppender [ ] logAppenders = this . logAppenders ;
logAppenders [ nextIndex ] . defaultHeader ( ) . putInt ( TERM_ID_FIELD_OFFSET , newTerm... | Java Improve performance of term rotation code |
<nb> public class TextEditingTargetWidget
ToolbarPopupMenu insertChunksMenu = new ToolbarPopupMenu ( ) ;
insertChunksMenu . addItem ( commands_ . insertChunkR ( ) . createMenuItem ( false ) ) ;
insertChunksMenu . addSeparator ( ) ;
- insertChunksMenu . addItem ( commands_ . insertChunkBash ( ) . createMenuItem ... | remove insert bash chunk for windows |
<nb> public abstract class ProgressManager {
boolean set = progress != null && progress != ( oldIndicator = myThreadIndicator . get ( ) ) ;
if ( set ) {
- progress . checkCanceled ( ) ;
myThreadIndicator . set ( progress ) ;
} | do not check progress before run process because the process can start it again |
<nb> public final class Es6TypedIntegrationTest extends IntegrationTestCase {
TypeValidator . TYPE_MISMATCH_WARNING ) ;
}
- public void testClassGetterSetter ( ) throws Exception {
- CompilerOptions co = createCompilerOptions ( ) ;
- co . setPropertyRenaming ( PropertyRenamingPolicy . OFF ) ;
- test ( co ... | remove the test case for ClassGetterSetter in Es6TypedIntegrationTest java |
<nb> final class MetricForm extends HorizontalPanel implements Focusable {
final String tagvalue = getTagValue ( tag ) ;
setTag ( tag - NUMBER0 , tagname , tagvalue ) ;
}
+ setTag ( ntags - NUMBER0 , STRING0 , STRING0 ) ;
}
SINGLE
SINGLE | Always clear the last line when recompacting the tag table |
<nb> public final class FileSystemMaster extends MasterBase {
synchronized ( mInodeTree ) {
long opTimeMs = System . currentTimeMillis ( ) ;
setStateInternal ( fileId , opTimeMs , options ) ;
- SetStateEntry . Builder setState = SetStateEntry . newBuilder ( ) . setId ( fileId ) . setOpTimeMs ( opTimeMs ) ;
+ ... | Fix line length |
<nb> class ImapResponseParser {
if ( isStatusResponse ( firstToken ) ) {
parseResponseText ( response ) ;
- } else if ( equalsIgnoreCase ( firstToken , Responses . LIST ) ) {
+ } else if ( equalsIgnoreCase ( firstToken , Responses . LIST ) || equalsIgnoreCase ( firstToken , Responses . LSUB ) ) {
parseListR... | Also use special LIST path in ImapResponseParser for LSUB response |
<nb> public class SyncWatchEventProcessor implements Runnable {
parentSyncFile . getRepositoryId ( ) , _syncAccountId ) ;
}
catch ( Exception e ) {
- _logger . error ( e . getMessage ( ) , e ) ;
+ if ( _logger . isTraceEnabled ( ) ) {
+ _logger . trace ( e . getMessage ( ) , e ) ;
+ }
}
} | sync engine Make debug level trace |
<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 NotificationManagerService extends SystemService {
@ override
public ... | don t allow assistant to block notifications |
<nb> public class Mockito extends Matchers {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Mockito extends Matchers {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMM... | Improved javadocs for atLeastOnce atLeast |
<nb> implements
}
}
- private void toSQLRows ( RenderContext context , Integer rows ) {
+ private final void toSQLRows ( RenderContext context , Integer rows ) {
if ( rows == Integer . MIN_VALUE ) {
context . sql ( STRING0 ) ;
}
<nb> implements
}
@ override
- public WindowFunction < T > partit... | Added missing final keywords |
<nb> public class BasicAuthModule extends TomcatAuthModule {
handler . handle ( new Callback [ ] { passwordCallback } ) ;
if ( ! passwordCallback . getResult ( ) ) {
- sendUnauthorizedError ( response , realmName ) ;
+ return sendUnauthorizedError ( response , realmName ) ;
}
handlePrincipalCallbacks ( cl... | Fix logic error |
<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 ;
<nb> public class MainActivity exten... | Removed testing code from sample |
<nb> public class Drawer {
public void onClick ( View v ) {
boolean handled = false ;
- if ( ! mActionBarDrawerToggle . isDrawerIndicatorEnabled ( ) && mOnDrawerNavigationListener != null )
- {
+ if ( ( mActionBarDrawerToggle != null && ! mActionBarDrawerToggle . isDrawerIndicatorEnabled ( ) ) || mOnDrawerN... | fix potential nullpointer exception with the new mOnDrawerNavigationListener |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Corrected javadoc text |
<nb> public class PhoneStatusBarService extends StatusBarService {
final View expanded = views [ NUMBER0 ] ;
SINGLE
StatusBarIconView iconView = new StatusBarIconView ( this ,
- notification . pkg + STRING0 + notification . id ) ;
+ notification . pkg + STRING1 + Integer . toHexString ( notification . id ) ) ... | better debugging slot for the notification icons |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix more guava imports |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<n... | ResourceHttpMessageConverter does not call contentLength on InputStreamResource |
<nb>
SINGLE
SINGLE
SINGLE
+ SINGLE
package NAMESPACE ;
<nb> class ProxyThread implements Runnable {
return ;
}
-
try {
SINGLE
SINGLE
SINGLE
if ( send ) {
- getHttpSender ( ) . sendAndReceive ( msg ) ;
+ if ( msg . getResponseHeader ( ) . isEmpty ( ) ) {
+ SINGLE
+ SINGLE
+ SI... | Allow proxy scripts to fake responses |
<nb> public class XRuntime extends XHook {
@ override
protected void before ( MethodHookParam param ) throws Throwable {
- Util . log ( this , Log . INFO , STRING0 + mMethod . name ( ) ) ;
if ( mMethod == Methods . exec ) {
SINGLE
String [ ] progs = null ; | Remove debug log |
<nb> public class WriterReaderPhaser {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public long writerCriticalSectionEnter ( ) {
return startEpochUpdater . getAndIncrement ( this ) ; | Fixed typo in writerCriticalSectionEnter javadoc |
<nb> public interface CamelCatalog {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface CamelCatalog {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface CamelCatalog {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT... | Camel catalog add javadoc |
<nb>
package NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public interface FileNameFactory < T > {
String getFileName ( String sourceUrl , T metadata ) ; | add comment about the purpose of the FileNameFactory |
<nb> public enum Currency {
BRL ,
EUR ,
AUD ,
- USD
-
+ USD ;
SINGLE
SINGLE
SINGLE
+ public Currency getDefaultCurrency ( ) {
+ return Currency . USD ;
+ }
} | update Currency to provide default currency required for compatibility fix |
<nb> public abstract class TomcatBaseTest extends LoggingBaseTest {
RequestDescriptor request = new RequestDescriptor ( ) ;
- for ( String line : body . split ( STRING0 ) ) {
+ for ( String line : body . split ( System . lineSeparator ( ) ) ) {
n = line . indexOf ( STRING1 ) ;
if ( n > NUMBER0 ) {
key =... | Fix Rewrite unit tests and any others that use SnoopResult on Windows |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.