diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class BuildManager implements ApplicationComponent {
}
private void runAutoMake ( ) {
- final List < RequestFuture > futures = new ArrayList < RequestFuture > ( ) ;
+ final List < RequestFuture > futures = new SmartList < RequestFuture > ( ) ;
for ( final Project project : getActiveProjects ( ) ... | using SmartList for small lists |
<nb> public class CallSessionImpl
if ( offer != null )
offeredMediaDescriptions = offer . getMediaDescriptions ( false ) ;
+ logger . debug ( STRING0
+ + audioPublicAddress
+ + STRING1
+ + videoPublicAddress ) ;
+
Vector mediaDescs
= createMediaDescriptions ( offeredMediaDescriptions
, audioPublic... | added debug statements |
<nb> public abstract class AbstractTableMerger
_SYNC_ID + STRING0 + _SYNC_ACCOUNT + STRING1 ;
private static final String SELECT_BY_ID = BaseColumns . _ID + STRING1 ;
- SINGLE
- private static final String SELECT_UNSYNCED = STRING2
- + _SYNC_DIRTY + STRING3 + _SYNC_ACCOUNT + STRING4 + _SYNC_ACCOUNT + STRING... | Fix contact creation |
<nb> public class ScOtrEngineImpl
public void showError ( SessionID sessionID , String err )
{
- showError ( sessionID , err ) ;
+ ScOtrEngineImpl . this . showError ( sessionID , err ) ;
}
public void injectMessage ( SessionID sessionID , String messageText ) | Fix a recursive call that should have gone to the outer class |
<nb> public class DBCursorTest extends DatabaseTestCase {
}
@ test
+ public void testMarkPartialForEmptyObjects ( ) {
+ final DBCursor cursor = collection . find ( new BasicDBObject ( ) , new BasicDBObject ( STRING0 , NUMBER0 ) ) ;
+ for ( DBObject document : cursor ) {
+ assertTrue ( document . isPartial... | Added one more test for DBObject isPartialObject |
<nb> public class KeyguardViewMediator extends SystemUI {
if ( mLockPatternUtils . checkVoldPassword ( ) ) {
if ( DEBUG ) Log . d ( TAG , STRING0 ) ;
SINGLE
+ mShowing = false ;
hideLocked ( ) ;
return ;
}
<nb> public class KeyguardViewMediator extends SystemUI {
if ( DEBUG ) Log . d ( TAG , STRING1 )... | Fix invalid Keyguard state with encrypted devices |
<nb> public class DriverConnection implements AutoCloseable
{
hwmIndex = prepareForRotation ( activeTermId ) ;
hwmTermId = termId ;
- lossHandler . potentialHighPosition ( packetPosition ) ; SINGLE
+ lossHandler . potentialHighPosition ( packetPosition ) ;
}
rebuilders [ hwmIndex ] . insert ( buffer , N... | Java Removed unhelpful comment |
<nb> public class AsyncServer {
}
@ override
+ public boolean remove ( Object object ) {
+ synchronized ( this ) {
+ return super . remove ( object ) ;
+ }
+ }
+
+ @ override
public Runnable remove ( ) {
synchronized ( this ) {
if ( this . isEmpty ( ) ) | synchronize access to object specific removal |
<nb> public abstract class DialogWrapper {
ensureEventDispatchThread ( ) ;
registerKeyboardShortcuts ( ) ;
- Disposer . register ( Disposer . get ( STRING0 ) , myDisposable ) ; SINGLE
+
+ final Disposable uiParent = Disposer . get ( STRING0 ) ;
+ if ( uiParent != null ) { SINGLE
+ Disposer . register ( ... | glasspane dialog wrapper dispose fix no app yet |
<nb> public class TestMetaContactList
assertSame ( STRING0 + mockContactGroup
, expectedMetaContactGroup , actualMetaContactGroup ) ;
+
+ SINGLE
+ SINGLE
+ actualMetaContactGroup = fixture . metaClService
+ . findMetaContactGroupByContactGroup (
+ opSetPersPresence . getServerStoredContactListRoot ( )... | Added an extra test for one of the find methods |
<nb> public class CssCompressor {
SINGLE
sb = new StringBuffer ( ) ;
- p = Pattern . compile ( STRING0 ) ;
+ p = Pattern . compile ( STRING1 ) ;
m = p . matcher ( css ) ;
while ( m . find ( ) ) {
m . appendReplacement ( sb , m . group ( NUMBER0 ) . toLowerCase ( ) + STRING2 + m . group ( NUMBER1 ) ) ; | fix bug found while testing the perl port |
<nb> public class ClassCompiler {
String triple = config . getTriple ( ) ;
Target target = Target . lookupTarget ( triple ) ;
try ( TargetMachine targetMachine = target . createTargetMachine ( triple ,
- config . getArch ( ) . getLlvmCpu ( ) , null , config . isDebug ( ) ? CodeGenOptLevel . CodeGenLevelDefault ... | Set code gen opt level to none fixes local var issue may stil exhibit the unwinding issue |
<nb> public class ScrollPane extends WidgetGroup {
resetTransform ( batch ) ;
}
+ SINGLE
+ public void flick ( float flingTime , float velocityX , float velocityY ) {
+ this . flingTimer = flingTime ;
+ this . velocityX = velocityX ;
+ this . velocityY = velocityY ;
+ }
+
public float getPrefWidth... | Added flick feature to scrollpane |
<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 ;
<nb> import static NAMESPACE ;
import static... | Added missing annotations to PortablePositionFactoryTest |
<nb> public class BackTrackLineSearch implements LineOptimizer {
SINGLE
SINGLE
SINGLE
- private double relTolx = FLOAT0 ;
+ private double relTolx = FLOAT1 ;
private double absTolx = FLOAT2 ; SINGLE
final double ALF = FLOAT2 ;
<nb> public class BackTrackLineSearch implements LineOptimizer {
SINGLE
... | Pulled duplicative update score call and aligned relTolx to mallet and book |
<nb> public abstract class ResourceTest {
return test . client ( ) ;
}
+ protected JerseyTest getJerseyTest ( ) {
+ return test ;
+ }
+
@ before
public void setUpJersey ( ) throws Exception {
setUpResources ( ) ; | Expose JerseyTest via a getter |
<nb> public final class MediaType {
COMMENT
COMMENT
public static final MediaType WOFF = createConstant ( APPLICATION_TYPE , STRING0 ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final MediaType WOFF2 = createConstant ( APPLICATION_TYPE , STRING1 ) ;
public static... | Adding WOFF2 media type |
<nb> public class RefactoringConflictsUtil {
! CommonRefactoringUtil . isAncestor ( resolved , scopes ) &&
! PsiSearchScopeUtil . isInScope ( resolveScope , resolved ) &&
! ( resolved instanceof LightElement ) ) {
+ if ( resolved instanceof PsiMethod ) {
+ for ( PsiMethod superMethod : ( ( PsiMethod ) resolve... | skip conflict if super method is available in target module |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
public abstract class ColumnInfo < Item , Aspect > {
- public static final class StringColumn extends ColumnInfo < String , String > {
+ public static class StringColumn extends ColumnInfo < String , String > {
pu... | made StringColumnInfo not final |
<nb> public abstract class PsiAnchor {
@ override
@ nullable
public PsiFile getFile ( ) {
- return SelfElementInfo . restoreFileFromVirtual ( myVirtualFile , myProject , myLanguage ) ;
+ return SelfElementInfo . restoreFileFromVirtual ( myVirtualFile , myProject , myFileLanguage ) ;
}
@ override
<nb> ... | retrieve file using file language |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import N... | Fixed widget crashing by starting service instead of starting widget update directly |
<nb> public class OsmandMonitoringPlugin extends OsmandPlugin implements MonitoringIn
app . startNavigationService ( NavigationService . USED_BY_GPX ) ;
}
} ;
- if ( choice . value ) {
- runnable . run ( ) ;
- } else {
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
showIntervalChooseDialog ( map , app . getS... | remove Remember my choice functionality for now as we have no way to reverse this |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileTemplateManagerImpl extends FileTemplateManager implements Pers
@ notnull
@ override
public String getTemplatesDir ( ... | don t throw assertion if project file doesn t exist |
<nb> public class Solo {
public final static int ENTER = NUMBER0 ;
public final static int MENU = NUMBER1 ;
public final static int DELETE = NUMBER2 ;
+ public final static int CALL = NUMBER3 ;
COMMENT
<nb> public class Solo {
case DELETE :
robotiumUtils . sendKeyCode ( KeyEvent . KEYCODE_DEL ) ;
... | Added Call option in sendKey |
<nb> public class ShineButton extends PorterShapeImageView {
@ override
protected void onDraw ( Canvas canvas ) {
super . onDraw ( canvas ) ;
-
+ calPixels ( ) ;
}
@ override
<nb> public class ShineButton extends PorterShapeImageView {
@ override
protected void onMeasure ( int widthMeasureSpec , i... | calculate wrong position |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FeedRefreshUpdater {
SINGLE
String key1 = StringUtils . trimToEmpty ( STRING0 + feed . getId ( ) ) ;
- SINGLE
+ SINGL... | better locking mechanism |
<nb> public class GoBuildTargetSettings implements PersistentStateComponent < GoBuildTa
}
static class GoBuildTargetSettingsState {
- @ notnull private String os = DEFAULT ;
- @ notnull private String arch = DEFAULT ;
- @ notnull private ThreeState cgo = ThreeState . UNSURE ;
- @ notnull private String co... | Fix serializing build flags settings |
<nb> public class RenderingContext {
}
}
+ public int renderedState = NUMBER0 ;
SINGLE
public boolean interrupted = false ;
public boolean nightMode = false ; | Add field for java pc rendering |
<nb> public abstract class SectionHeaderInfo extends CompositeField < SectionHeaderInfo
super . writeTo ( out ) ;
}
+ public int place ( int offset ) {
+ offset = super . place ( offset ) ;
+ sectionSizeField . cacheValue ( getSection ( ) . size ( ) ) ;
+ return offset ;
+ }
+
public int getSectionS... | fixed an issue in the placement of the map section |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class JavaAnonymousClassesNodeProvider implements FileStructureNodeProvider < Ja... | provide property name |
<nb> public class RouteInfo implements Parcelable {
RouteInfo target = ( RouteInfo ) obj ;
- return Objects . equals ( mDestination , target . getDestination ( ) ) &&
+ return Objects . equals ( mDestination , target . getDestinationLinkAddress ( ) ) &&
Objects . equals ( mGateway , target . getGateway ( ) ... | Fix wifi connectivity issues |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class InputMethodManager {
COMMENT
COMMENT
private final int [ ] mViewTopLeft = new int [ NUMBER0 ] ;
- private final CursorAnchorInfoBuil... | Remove an unused member |
<nb> public class Watchdog extends Thread {
SINGLE
if ( ! Debug . isDebuggerConnected ( ) ) {
Slog . w ( TAG , STRING0 + name ) ;
+ Slog . w ( TAG , STRING1 ) ;
+ StackTraceElement [ ] stackTrace = mHandler . getLooper ( ) . getThread ( ) . getStackTrace ( ) ;
+ for ( StackTraceElement element : stackTrace ... | Dump system server stack trace on watchdog failure |
<nb> public class ImagePresenter < T > {
private T currentModel ;
private int currentCount ;
- private boolean isImageSet ;
+ private boolean isImageSet = false ;
private boolean loadedFromCache = false ;
private final Runnable getDimens = new Runnable ( ) {
<nb> public class ImagePresenter < T > {
... | Handle null images in image presenter |
<nb> public class GrLiteralImpl extends GrExpressionImpl implements GrLiteral , PsiLan
@ override
public PsiReference getReference ( ) {
final PsiReference [ ] references = getReferences ( ) ;
- if ( references . length > NUMBER0 ) {
+ if ( references . length == NUMBER1 ) {
+ return references [ NUMBER0 ] ... | don t create PsiMultiReference for one reference |
<nb> public class MigratorSchemaResolver implements EntityResolver {
String xsdFile = systemId . substring ( iSlash + NUMBER0 ) ;
try {
InputStream resourceAsStream = Thread . currentThread ( ) . getContextClassLoader ( ) . getResourceAsStream ( SEARCH_PACKAGE + xsdFile ) ;
+
+ if ( resourceAsStream == null )... | Fixed bug that kept schema from being found correctly when running in Ant |
<nb> public final class HelpActivity extends Activity {
return super . onKeyDown ( keyCode , event ) ;
}
+ @ override
+ protected void onSaveInstanceState ( Bundle icicle ) {
+ super . onSaveInstanceState ( icicle ) ;
+ webView . saveState ( icicle ) ;
+ }
} | Added a method onSaveInstanceState in HelpActivity java |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPA... | Removed unused imports from QuickTour |
<nb> public class JChannelFactory implements ChannelFactory , ChannelListener , Protoco
this . init ( transport ) ;
}
- channel . setName ( configuration . getEnvironment ( ) . getNodeName ( ) ) ; SINGLE
+ channel . setName ( configuration . getEnvironment ( ) . getNodeName ( ) + STRING0 + id ) ;
Transpor... | We no longer need this change after Paul s refactoring |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class GuiceEntityListenerInjectionManager implements EntityListenerInjectionManager {
@ inject
+ private JpaInitializer jpaInitializer ;
+
+... | Initialize Jpa before EntityListenerInjectionManager |
<nb> public class Util {
bos . write ( b ) ;
}
- COMMENT
- COMMENT
- COMMENT
@ override
public boolean isReady ( ) {
- SINGLE
+ SINGLE
return false ;
}
- COMMENT
- COMMENT
- COMMENT
@ override
public void setWriteListener ( WriteListener listener ) {
- SINGLE
-
+ SINGLE
+ thr... | Fix a couple of TODOs |
<nb> public class IdleResourceInterceptor extends AtmosphereInterceptorAdapter {
if ( req . getAttribute ( MAX_INACTIVE ) == null ) {
logger . error ( STRING0 , r ) ;
config . getBroadcasterFactory ( ) . removeAllAtmosphereResource ( r ) ;
+ config . resourcesFactory ( ) . unRegisterUuidForFindCandidate ( r ) ;... | Do not take any risk |
<nb> public final class AnalyzerFacadeForJS {
@ override
public void addDefaultImports ( @ notnull WritableScope rootScope ,
@ notnull Collection < JetImportDirective > directives ) {
- directives . add ( JetPsiFactory . createImportDirective ( project , STRING0 ) ) ;
+ directives . add ( JetPsiFactory . crea... | pull type safety up |
<nb> package NAMESPACE ;
public interface CxfBeanHeaderNames {
String VERB = STRING0 ;
- String CONTENT_TYPE = STRING1 ;
+ String CONTENT_TYPE = STRING2 ;
String CHARACTER_ENCODING = STRING3 ;
String PATH = STRING4 ;
String BASE_PATH = STRING5 ; | Fixed a typo in a header name |
<nb> package NAMESPACE ;
public class ConversionException extends RuntimeException {
-
- public ConversionException ( String message , Throwable cause ) {
- super ( message , cause ) ;
- }
-
public ConversionException ( Throwable cause ) {
super ( cause ) ;
}
- public ConversionException ( Str... | Fixed constructor in ConversionException |
<nb> public class Document implements Map < String , Object > , Serializable , Bson {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public Boolean getBoolean ( final Object key ) {
return ( Boolean ) get ( key ) ;
<nb> public class Document implements Map < String , Objec... | Fixed copy paste errors for getBoolean method |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class LimitOperator
private void addInputWithSampling ( Page page , int sampleWeightChannel )
{
- BlockCursor cursor = page ... | Change LimitOperator to not use BlockCursors |
<nb> public abstract class FeedEndpoint extends DefaultPollingEndpoint {
return STRING0 + feedUri ;
}
+ @ override
+ public String getEndpointKey ( ) {
+ SINGLE
+ return getEndpointUri ( ) ;
+ }
+
SINGLE
SINGLE | Fixed feedUrl parameters not beeing part of endpoint key because of lenient properties |
<nb> public class AsyncHttpClient {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public ExecutorService getThreadPool ( ) {
+ return threadPool ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Add getThreadPool method to return current thread pool used |
<nb> public class JSONArrayModel < ModelClass extends Model > implements Model {
for ( int i = NUMBER0 ; i < length ; i ++ ) {
try {
jsonModel . mData = mJsonArray . getJSONObject ( i ) ;
- jsonModel . update ( async ) ;
+ jsonModel . insert ( async ) ;
} catch ( JSONException e ) {
FlowLog . logError ( e... | fixed update insert in jsonarray model |
<nb> public final class LocalTachyonCluster extends AbstractLocalTachyonCluster {
if ( mUfsCluster != null ) {
mUfsCluster . cleanup ( ) ;
}
- SINGLE
- System . clearProperty ( STRING0 ) ;
}
COMMENT | Remove unnecessary tachyon underfs address property clear |
<nb> public enum PluginConflictReporter {
boolean hasConflictWithPlatform = false ;
if ( conflictingClasses . size ( ) < NUMBER0 ) {
- throw new IllegalArgumentException ( STRING0 ) ;
+ Logger . getInstance ( PluginConflictReporter . class ) . warn ( STRING0 ) ;
+ return ;
}
for ( Class < ? > aClass :... | Do not throw exceptions in lowlevel handler |
<nb> public interface Diagnostics
@ description ( STRING0 )
void dumpToLog ( String providerId ) ;
+ @ description ( STRING1 )
+ String dumpAll ( ) ;
+
@ description ( STRING2 )
String extract ( String providerId ) ;
<nb> public class DiagnosticsBean extends ManagementBeanProvider
}
@ override... | Added support for dumping diagnostics straight into JMX console |
<nb> public class CropImageView extends FrameLayout {
@ override
public void onRestoreInstanceState ( Parcelable state ) {
- if ( state instanceof Bundle && mBitmap != null ) {
+ if ( state instanceof Bundle ) {
final Bundle bundle = ( Bundle ) state ;
- SINGLE
- mDegreesRotated = bundle . getInt ( ... | Definitely fixed onRestoreInstanceState crash |
<nb> public class TransportGetAction extends TransportShardSingleOperationAction < GetR
@ override protected ShardIterator shards ( ClusterState clusterState , GetRequest request ) {
return clusterService . operationRouting ( )
- . indexShards ( clusterService . state ( ) , request . index ( ) , request . type ... | get shards should use preference as well when routing fix wrong previous commit |
<nb> public class Generator {
public Generator ( ByteBufferPool bufferPool , WebSocketPolicy policy )
{
+ generators . put ( OpCode . BINARY , new BinaryFrameGenerator ( bufferPool , policy ) ) ;
+ generators . put ( OpCode . TEXT , new TextFrameGenerator ( bufferPool , policy ) ) ;
generators . put ( OpCod... | Adding TEXT BINARY to root generator map |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HomegearClient extends BaseHomematicClient {
}
Object value = dpData . get ( STRING0 ) ;
+
+ String type = ( Str... | Fixed Homegear string type |
<nb> public class HivePageSink
target = locationService . targetPath ( locationHandle , partitionName ) ;
write = locationService . writePath ( locationHandle , partitionName ) . get ( ) ;
- if ( partitionName . isPresent ( ) ) {
- SINGLE
+ if ( partitionName . isPresent ( ) && ! target . equals ( write ) )... | Fix bug in CTAS when temporary directory is not used |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
impor... | Add some missing file headers |
<nb> public final class NativeLibraryLoader {
URLConnection conn = null ;
try {
String classpath = System . getProperty ( STRING0 ) ;
- URL url = Thread . currentThread ( ) . getContextClassLoader ( ) . getResource ( STRING1 ) ;
+ URL url = Thread . currentThread ( ) . getContextClassLoader ( ) . getResource ... | Fix crash when working directory not writable |
<nb> public class StaticTypesTypeChooser extends StatementMetaTypeChooser {
@ override
public ClassNode resolveType ( final Expression exp , final ClassNode current ) {
Expression target = exp instanceof VariableExpression ? getTarget ( ( VariableExpression ) exp ) : exp ;
- ClassNode dif = ( ClassNode ) exp . ... | Fixed type chooser not using the right variable for declaration type checks |
<nb> public class TwitterTestUnit extends TwitterTestBase {
List < Status > statuses ;
statuses = twitterAPI1 . getPublicTimeline ( ) ;
assertTrue ( STRING0 , NUMBER0 < statuses . size ( ) ) ;
- statuses = twitterAPI1 . getPublicTimeline ( NUMBER1 ) ;
- assertTrue ( STRING0 , NUMBER0 < statuses . size ( ) ) ;... | fixed some compilation issues in test cases |
<nb> public class MediaControl
, ex ) ;
}
- SINGLE
- SINGLE
+ SINGLE
+ SINGLE
SINGLE
Control ctl = ( Control )
dataSource . getControl ( STRING0 ) ;
- if ( ctl != null )
+ if ( ctl != null )
{
- ( ( BufferControl ) ctl ) . setBufferLength ( NUMBER0 ) ; SINGLE
+ ( ( BufferControl ) ctl ) ... | Record objects starting media processing |
<nb> public class DependencyGraphBuilder {
return selector . failure ;
}
- public ModuleVersionSelection getSelected ( ) {
+ public DefaultModuleRevisionResolveState getSelected ( ) {
SINGLE
- SINGLE
+ SINGLE
return selector . module . selected ;
}
public ModuleVersionSelectionReason getReason (... | Removed a TODO |
<nb> public class AppWidgetHost {
private OnClickHandler mOnClickHandler ;
public AppWidgetHost ( Context context , int hostId ) {
- this ( context , hostId , null , Looper . getMainLooper ( ) ) ;
+ this ( context , hostId , null , context . getMainLooper ( ) ) ;
}
COMMENT | Fixing construction of handler in AppWidgetHost |
<nb> public final class BufferedSourceTest {
InputStream in = source . inputStream ( ) ;
assertEquals ( NUMBER0 , in . skip ( NUMBER0 ) ) ;
assertEquals ( STRING0 , in . read ( ) ) ;
+
+ sink . writeUtf8 ( STRING1 ) ;
+ assertEquals ( NUMBER1 , in . skip ( NUMBER2 ) ) ; SINGLE
+ assertEquals ( NUMBER3 , i... | Add more test coverage to InputStream skip |
<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 IdeaDecompiler extends ClassFileDec... | show legal notice only for decompiled files |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class AndroidWiFiADB {
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
- package NAMESPACE ;
+ package NAMESPACE ;
+ import NAMES... | Move ADB class to the correct package |
<nb> public class EditableRowTable {
table . editCellAt ( index , NUMBER0 ) ;
table . setRowSelectionInterval ( index , index ) ;
table . setColumnSelectionInterval ( NUMBER0 , NUMBER0 ) ;
+ table . getParent ( ) . repaint ( ) ;
final Component editorComponent = table . getEditorComponent ( ) ;
if ( editorC... | repaint viewport when adding removing table items to update nothing to show label |
<nb> public class DefaultExecutionEnvironment implements ExecutionEnvironment {
@ override
public String getenv ( String key , String defaultValue ) {
- if ( environment . containsKey ( key ) ) {
- return environment . get ( key ) ;
- }
- return defaultValue ;
+ String value = environment . get ( key ) ... | Remove unneeded containsKey |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class UsefulTestCase extends TestCase {
protected void tearDown ( ) throws Exception {
if ( ApplicationManager . getA... | fixed instant initialization bug |
<nb> public class SmoothProgressBar extends ProgressBar {
public SmoothProgressBar ( Context context , AttributeSet attrs , int defStyle ) {
super ( context , attrs , defStyle ) ;
+ if ( isInEditMode ( ) ) {
+ setIndeterminateDrawable ( new SmoothProgressDrawable . Builder ( context ) . build ( ) ) ;
+ retu... | Added View isInEditMode |
<nb> public class LeaderSelectorClient implements Closeable , LeaderSelectorListener {
try {
mLeaderSelector . close ( ) ;
} catch ( IllegalStateException e ) {
- SINGLE
+ SINGLE
if ( ! e . getMessage ( ) . equals ( STRING0 ) ) {
throw e ;
} | Tagging TODOs in tachyon |
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix VanillaHealthIndicator javadoc |
<nb> public class StandaloneXml extends CommonXml {
boolean deploymentWritten = false ;
for ( String uniqueName : deploymentNames ) {
final ModelNode deployment = modelNode . get ( uniqueName ) ;
- if ( ! deployment . get ( PERSISTENT ) . asBoolean ( ) ) {
+ if ( deployment . hasDefined ( PERSISTENT ) && ! de... | Fix bug in deployment PERSISTENT handling |
<nb> public class WindowManagerService extends IWindowManager . Stub
private void updateResizingWindows ( final WindowState w ) {
final WindowStateAnimator winAnimator = w . mWinAnimator ;
- if ( ! w . mAppFreezing && w . mLayoutSeq == mLayoutSeq ) {
+ if ( w . mHasSurface && ! w . mAppFreezing && w . mLayout... | Don t resize WindowStates without a Surface |
<nb> public class ResourceAdapterNameTestCase {
private static final Logger logger = Logger . getLogger ( ResourceAdapterNameTestCase . class ) ;
- private static final String REPLY_QUEUE_JNDI_NAME = STRING0 ;
+ private static final String REPLY_QUEUE_JNDI_NAME = STRING1 ;
@ ejb ( mappedName = STRING2 )
... | Fix resource adaptor name test |
<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 ManagedModelProjection < M > extend... | Removed empty constructor |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class DirectoryService extends AbstractIndexShardComponent {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
- public Directory newFromDistributor ( Distri... | STORE Use DistributorDirectory only if there are more than one data direcotry |
<nb> public class TestDecayPolicies {
double beta1t = FastMath . pow ( beta1 , i ) ;
double beta2t = FastMath . pow ( beta2 , i ) ;
double alphat = lr * FastMath . sqrt ( NUMBER0 - beta2t ) / ( NUMBER0 - beta1t ) ;
+ if ( Double . isNaN ( alphat ) || alphat == FLOAT0 ) alphat = epsilon ;
gradExpected = mTmp... | Fix learning rate test addressing alphat as epsilon when nan |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- @ ignore
@ runwith ( AdvancedRunner . class )
public class QueueBenc... | Marked the test with Stress |
<nb> public final class BlockMaster extends MasterBase implements ContainerIdGenerabl
if ( masterBlockInfo == null ) {
continue ;
}
+ ArrayList < Long > workersToRemove = new ArrayList < Long > ( ) ;
for ( long workerId : masterBlockInfo . getWorkers ( ) ) {
- masterBlockInfo . removeWorker ( workerId ) ;
... | Avoid concurrent modification exception |
<nb> class JSSESupport implements SSLSupport , SSLSessionManager {
break ;
}
}
- ssl . setSoTimeout ( oldTimeout ) ;
+ SINGLE
+ if ( ! ssl . isClosed ( ) ) {
+ ssl . setSoTimeout ( oldTimeout ) ;
+ }
if ( listener . completed == false ) {
throw new SocketException ( STRING0 ) ;
} | Prevent stack traces when closing ssl sockets after unwanted renegotiation attempt |
<nb> public abstract class TemplateLanguageErrorFilter extends HighlightErrorFilter {
private static final Key < Class > TEMPLATE_VIEW_PROVIDER_CLASS_KEY = Key . create ( STRING0 ) ;
+ SINGLE
+ protected TemplateLanguageErrorFilter (
+ @ notnull final TokenSet templateExpressionStartTokens ,
+ @ notnull f... | restored ctr because extensions are unaware of varargs |
<nb> public class WifiManager {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix WPS docs for LABEL method |
<nb> public class DiagnosticGroups {
GlobalTypeInfo . ALL_DIAGNOSTICS ,
NewTypeInference . ALL_DIAGNOSTICS ) ;
- static {
- DiagnosticGroups . registerGroup ( STRING0 ,
+ public static final DiagnosticGroup NEW_CHECK_TYPES_ALL_CHECKS =
+ DiagnosticGroups . registerGroup ( STRING1 ,
NewTypeInference . NU... | NTI Turn off nullable dereferences by default |
<nb> public class ChatConversationPanel
this . chatTextPane . setEditable ( false ) ;
this . chatTextPane . setDocument ( document ) ;
this . chatTextPane . setDragEnabled ( true ) ;
+ this . chatTextPane . setFocusable ( false ) ;
chatTextPane . putClientProperty (
JEditorPane . HONOR_DISPLAY_PROPERTIES ... | Do not lose focus from chat write area when clicking on the conversation panel |
<nb> public class OFileClassic extends OFile {
COMMENT
@ override
public void synch ( ) throws IOException {
- channel . force ( false ) ;
+ SINGLE
}
@ override | Temporary removed synch |
<nb> public class ClientConfig {
return maxBootstrapRetries ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public ClientConfig setMaxBootstrapRetries ( int maxBootstrapRetries ) {
if ( maxBootstrapRetries < NUMBER0 )
throw new IllegalArgumentException ( STRING0 ) ; | Documented ClientConfig setMaxBoostrapRetries int |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
<nb> public class UsersProcessor extends AbsModule implements Processor {
onUserDescChanged ( upd ) ;
}
}
+
+ if ( saved != null ) {
+ if ( saved... | Mismatched access hash logging |
<nb> public class NotificationManagerService extends INotificationManager . Stub
final boolean hasCustomVibrate = notification . vibrate != null ;
SINGLE
- SINGLE
+ SINGLE
final boolean convertSoundToVibration =
! hasCustomVibrate
&& hasValidSound
&& ( audioManager . getRingerMode ( ) == AudioManager ... | DEFAULT_VIBRATE must always use the default vibe pattern |
<nb> public class SPTWalker {
COMMENT
if ( speed > avgSpeed )
speed = avgSpeed ;
- speed = avgSpeed ;
}
SINGLE | Remove spurrious line clamping speed to average |
<nb> import NAMESPACE ;
public interface FreemarkerConfigurationFactory {
- public Configuration getInstance ( ) ;
+ public Configuration getConfiguration ( ) ;
} | rename instance retrieval method |
<nb> public abstract class DiskJournalCache implements InputCache , OutputCache {
COMMENT
COMMENT
commit ( ) ;
+ LOG . info ( STRING0 , getDbFileName ( ) ) ;
compact ( ) ;
COMMENT | Add log message for the initial compaction of the off heap cache |
<nb>
public class Overlapping {
- public m1 ( ) {
+ public void m1 ( ) {
int a = NUMBER0 ;
int b = NUMBER0 ;
int c = NUMBER0 ;
int d = NUMBER0 ;
}
- public m2 ( ) {
+ public void m2 ( ) {
int a = NUMBER0 ;
int b = NUMBER0 ;
int c = NUMBER0 ;
}
- public m3 ( ) {
+ public void m3 (... | fixed Java syntax errors missing return type |
<nb> public final class ViewRootImpl implements ViewParent ,
+ mAttachInfo . mVisibleInsets ) ;
}
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ final boolean framesChanged = overscanInsetsChanged
+ || contentInsetsChanged
+ || stableInsetsChanged
+ || visibleInsetsChanged
+ || outsetsChanged ;
+ if ( ... | Do a forceLayout if pending insets is changed after relayout window |
<nb> public class RunnerFactory {
}
private Runner createDynamicSettingRunner ( StartArgs startArgs ) {
- File settingsFile = new File ( startArgs . getSettings ( ) . get ( ) ) ;
- FileRunner fileRunner = createSettingFileRunner ( settingsFile , startArgs ) ;
- SettingRunner runner = ( SettingRunner ) fileR... | add final keyword for some variables |
<nb> public class SchedulerSimpleTestCase extends JobManagerTestBase {
. timer ( mockTimer )
. networkUtil ( networkUtil )
. inTestMode ( )
- . scheduler ( scheduler ) ;
+ . scheduler ( scheduler , false ) ;
if ( requireUnmeteredNetwork ) {
networkUtil . setNetworkStatus ( NetworkUtil . UNMETERED ) ;
} ... | disable batching for scheduler test |
<nb> public class AggregationTest extends TestBase {
new User ( STRING0 , format . parse ( STRING1 ) , STRING2 , STRING3 , STRING4 ) ) ;
MorphiaIterator < User , User > aggregate = getDs ( ) . createAggregation ( User . class , User . class )
- . project ( projection ( STRING5 ) , projection ( STRING6 ) , proje... | fix unwind test |
<nb> public abstract class DebuggerUtils {
}
private static boolean typeEquals ( Type type , String typeName ) {
+ int genericPos = typeName . indexOf ( STRING0 ) ;
+ if ( genericPos > - NUMBER0 ) {
+ typeName = typeName . substring ( NUMBER1 , genericPos ) ;
+ }
return type . name ( ) . replace ( STRIN... | fixed cast to parametrized type |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.