diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class ActionBarSherlock {
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ ... | Add internal tracking of HasXXX interfaces to native ActionBar methods |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT
<nb> public class Canonicalizer {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ suppresswarnings ( STRING0 )
public static void register ( Str... | remove an import that is breaking on oracle java |
<nb> public class IElementType {
} ;
public static final short FIRST_TOKEN_INDEX = NUMBER0 ;
- public static final short MAX_INDEXED_TYPES = NUMBER1 ;
+ public static final short MAX_INDEXED_TYPES = NUMBER2 ;
private static short ourCounter = FIRST_TOKEN_INDEX ;
private static IElementType [ ] ourRegist... | reverted increase of ielementtype limit to catch more clients that create ielementtype in wrong way |
<nb> public abstract class AbstractMaster implements Master {
COMMENT
protected AbstractMaster ( Journal journal , Clock clock , ExecutorService executorService ) {
mJournal = Preconditions . checkNotNull ( journal ) ;
- mClock = clock ;
- mExecutorService = executorService ;
+ mClock = Preconditions . chec... | Add defensive null checks |
<nb> public abstract class LuceneIndexPopulator implements IndexPopulator
this . dirFile = dirFile ;
this . failureStorage = failureStorage ;
this . indexId = indexId ;
- try
- {
- failureStorage . reserveForIndex ( indexId ) ;
- }
- catch ( IOException e )
- {
- throw new RuntimeException ( e ) ;
... | Move creation of FailureStorage to LuceneIndexPopulator create |
<nb> public interface Graph {
public Edge getEdge ( String id ) ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Edge getEdge ( Node node1 , Node node2 ) ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> p... | Add getEdge node node finally to Graph into GraphAPI |
<nb> public class ShellStepTest extends EasyMockSupport {
ShellStep command = createCommand ( ENV , ARGS , PATH ) ;
assertEquals (
String . format ( STRING0 ,
- PATH . getAbsolutePath ( ) ) ,
+ PATH . getPath ( ) ) ,
command . getDescription ( context ) ) ;
}
@ test
public void testDescriptionWithPa... | Fix absolute path in ShellStepTest |
<nb> public class DefaultFileLockManager implements FileLockManager {
}
throw new LockTimeoutException ( String . format ( STRING0 ,
- displayName , metaDataProvider . getProcessIdentifier ( ) , ownerPid , ownerOperation , operationDisplayName , lockFile ) ) ;
+ displayName , ownerPid , metaDataProvider . get... | Fixed small bug where owner and our PID was out of order |
<nb> class MetricUploaderThread extends Thread {
amazonCloudWatchClient = new AmazonCloudWatchClient ( config . getCredentialsProvider ( ) ) ;
} else if ( config . getClientConfiguration ( ) != null && config . getCredentialsProvider ( ) == null ) {
amazonCloudWatchClient = new AmazonCloudWatchClient ( config . g... | Added ClientConfiguration to Cloud Watch Metrics configurations |
<nb> public class RajawaliRenderer implements GLSurfaceView . Renderer , INode {
mMaterialManager . setContext ( this . getContext ( ) ) ;
mMaterialManager . registerRenderer ( this ) ;
+ getCurrentScene ( ) . resetGLState ( ) ;
+
initScene ( ) ;
}
<nb> public class RajawaliScene extends AFrameTask { ... | Removed the resetGLState call from RajawaliScene s constructor to onSurfaceCreated in RajawaliRenderer |
<nb> public class CollectorsTest extends BaseRestTest {
. assertThat ( ) . body ( STRING0 , notNullValue ( ) ) ;
}
- @ test
+ SINGLE
+ SINGLE
@ requiresauthentication
public void testGetCollector ( ) throws Exception {
given ( ) . when ( ) | Disabling single test case for now |
<nb> public interface ModelBuilder < T > extends LongRunningOperation {
COMMENT
COMMENT
COMMENT
+ @ incubating
ModelBuilder < T > withCancellationToken ( CancellationToken cancellationToken ) ;
COMMENT | Add Incubating to override of API withCancellationToken |
<nb> public final class ReaderWriter {
MediaType type ) throws IOException {
Writer osw = new BufferedWriter ( new OutputStreamWriter ( out ,
getCharset ( type ) ) ) ;
- osw . write ( s ) ;
+ osw . write ( s , NUMBER0 , s . length ( ) ) ; SINGLE
osw . flush ( ) ;
} | Improved performance of writing a string to an output stream |
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
+ COMMENT... | Added missing JavaDoc for the classes in org jbossdotNetty logging |
<nb> public abstract class AbstractCacheRecordStore <
this . cacheService = cacheService ;
this . cacheConfig = cacheService . getCacheConfig ( name ) ;
if ( cacheConfig == null ) {
- throw new CacheNotExistsException ( STRING0 + nodeEngine . getLocalMember ( ) ) ;
+ throw new CacheNotExistsException ( STRING... | Improved CacheNotExistsException error message |
<nb> public class SubtypingConstraint implements ConstraintFormula {
if ( tBound . equalsToText ( CommonClassNames . JAVA_LANG_OBJECT ) ) {
return true ;
}
+
+ if ( myS instanceof PsiCapturedWildcardType ) {
+ myS = ( ( PsiCapturedWildcardType ) myS ) . getWildcard ( ) ;
+ }
+
if ( myS instanceof PsiW... | accept captured wildcard opening during subtype constraint reduction |
<nb> public class Activity extends ContextThemeWrapper
COMMENT
COMMENT
COMMENT
- void convertToTranslucent ( TranslucentConversionListener callback , ActivityOptions options ) {
+ public void convertToTranslucent ( TranslucentConversionListener callback ,
+ ActivityOptions options ) {
boolean drawComplete... | Make convertToTranslucent a public method in Activity |
<nb> final class HttpReadListener implements ChannelListener < PushBackStreamChannel > {
SINGLE
channel . getReadSetter ( ) . set ( null ) ;
final StreamSinkChannel ourResponseChannel = this . responseChannel ;
- final StreamSinkChannel targetChannel = ourResponseChannel instanceof GatedStreamSinkChannel ? ( ( ... | Don t layer gated channels on top of each other |
<nb> public class Activity extends ContextThemeWrapper
COMMENT
private void initActionBar ( ) {
Window window = getWindow ( ) ;
+
+ SINGLE
+ SINGLE
+ window . getDecorView ( ) ;
+
if ( isChild ( ) || ! window . hasFeature ( Window . FEATURE_ACTION_BAR ) || mActionBar != null ) {
return ;
} | Fix a bug where an action bar could be created when it should not be |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMES... | Made the filling of the module list instantly |
<nb> public class Leg {
COMMENT
COMMENT
+ COMMENT
COMMENT
public int departureDelay = NUMBER0 ;
COMMENT
COMMENT
+ COMMENT
COMMENT
public int arrivalDelay = NUMBER0 ;
COMMENT | Specify what the documentation of delay s add mathematical summary |
<nb> public interface PsiFunctionalExpression extends PsiExpression , Iconable , Naviga
COMMENT
@ nullable
PsiType getFunctionalInterfaceType ( ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ boolean isAcceptable ( PsiType left ) ;
}
<nb> public class PsiLambdaExpressionImpl extends ExpressionPsiElement imple... | introduce acceptability for both lambda and method references |
<nb> public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS
getContext ( ) . startActivity ( mVoiceWebSearchIntent ) ;
} else if ( mSearchable . getVoiceSearchLaunchRecognizer ( ) ) {
Intent appSearchIntent = createVoiceAppSearchIntent ( mVoiceAppSearchIntent ) ;
+
+ SINGLE
+ SING... | Tell the SearchManager to stopSearch before starting an in app voice |
<nb> public class MethodAnalyzer {
}
}
+ for ( int i = NUMBER0 ; i < instructions . size ( ) ; i ++ ) {
+ AnalyzedInstruction instruction = instructions . valueAt ( i ) ;
+ for ( int j = NUMBER0 ; j < instruction . postRegisterMap . length ; j ++ ) {
+ if ( instruction . postRegisterMap [ j ] . category =... | After analyzing a method change any Unknown registers to Uninit |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
COMMENT
<nb> public class ApiComponentGeneratorMojoTest extends AbstractGeneratorMojoTest {
m... | Minor Fix CS errors in camel api component maven plugin |
<nb> public class CompileDriver {
}
}
- LanguageLevel moduleLanguageLevel = module . getLanguageLevel ( ) ;
+ LanguageLevel moduleLanguageLevel = module . getEffectiveLanguageLevel ( ) ;
if ( languageLevel == null ) {
languageLevel = moduleLanguageLevel ;
} else { | compiler should form source for ModuleChunk not project language level |
<nb> public class JUnitUtil implements TestFramework {
if ( psiMethod . hasModifierProperty ( PsiModifier . ABSTRACT ) ) return false ;
if ( psiMethod . getParameterList ( ) . getParametersCount ( ) > NUMBER0 ) return false ;
if ( psiMethod . hasModifierProperty ( PsiModifier . STATIC ) && BaseTestRunner . SUITE_... | check test prefix for JUnit tests |
<nb> class Referentials {
stmt = connection . createStatement ( ) ;
stmt . setFetchSize ( NUMBER0 ) ;
rs = stmt . executeQuery ( STRING0 ) ;
- ConcurrentLinkedQueue < long [ ] > queue = new ConcurrentLinkedQueue < long [ ] > ( ) ;
+ Queue < long [ ] > queue = new ConcurrentLinkedQueue < long [ ] > ( ) ;
t... | Fix some quality flaws |
<nb> public class DashChunkSource implements ChunkSource , Output {
@ override
public void enable ( int track ) {
enabledTrack = tracks . get ( track ) ;
- processManifest ( currentManifest ) ;
if ( enabledTrack . isAdaptive ( ) ) {
adaptiveFormatEvaluator . enable ( ) ;
}
if ( manifestFetcher != null )... | Fixed issue in which DashChunkSource didn t make use of the most recent |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AppWidgetHostView extends FrameLayout {
return tv ;
}
+ @ override
+ public void onInitializeAccessibilityNodeInfo ( ... | Expose class name in AppWidgetHostView for accessibility |
<nb> class ModelGenerator implements SourceGenerator {
fieldType . add ( STRING0 , ClassName . get ( EntityModelBuilder . class ) , model ) ;
types . forEach ( e - > fieldType . add ( STRING1 ,
- ClassName . bestGuess ( e . typeName ( ) . toString ( ) ) , e . staticTypeName ( ) ) ) ;
+ ClassName . bestGuess (... | Fix Typename reference |
<nb> import NAMESPACE ;
public class RestrictToMasterFeature implements DynamicFeature {
private final ServerStatus serverStatus ;
+ private final RestrictToMasterFilter restrictToMasterFilter ;
@ inject
public RestrictToMasterFeature ( ServerStatus serverStatus ) {
this . serverStatus = serverStatus ; ... | Reusing instance of filter instead of repeated instantiation |
<nb> public class DroidGap extends Activity {
private static final String LOG_TAG = STRING0 ;
private WebView appView ;
private String uri ;
+ private PhoneGap gap ;
+ private GeoBroker geo ;
+ private AccelListener accel ;
+
COMMENT
@ override
<nb> public class DroidGap extends Activity {
priva... | Fixing scoping issues where PhoneGap would get Garbage Collected |
<nb> public class OServerCommandGetDatabase extends OServerCommandGetConnect {
json . writeAttribute ( STRING0 , prop . isNotNull ( ) ) ;
json . writeAttribute ( STRING1 , prop . getMin ( ) ) ;
json . writeAttribute ( STRING2 , prop . getMax ( ) ) ;
+ json . writeAttribute ( STRING3 , prop . getCollate ( ) ) ; ... | Fixed COLLATE problem on studio |
<nb> import NAMESPACE ;
public class GoRunFileConfigurationType extends ConfigurationTypeBase {
public GoRunFileConfigurationType ( ) {
- super ( STRING0 , STRING1 , STRING2 , GoIcons . ICON ) ;
+ super ( STRING0 , STRING3 , STRING4 , GoIcons . APPLICATION_RUN ) ;
addFactory ( new ConfigurationFactory ( thi... | run single file |
<nb> public class StatusBarNotification implements Parcelable {
}
private String key ( ) {
- return pkg + STRING0 + id + STRING0 + tag + STRING0 + uid ;
+ return user . getIdentifier ( ) + STRING1 + pkg + STRING1 + id + STRING1 + tag + STRING1 + uid ;
}
public void writeToParcel ( Parcel out , int flags... | Add userId to StatusBarNotification key |
<nb> public class PlansUtils {
return features ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public static String getIconUrlForPlan ( long planId , int iconSize ) {
Plan plan = getGlobalPlan ( planId ) ;
- if ( plan == null ) {
+ if ( plan == null || ! plan . hasI... | Updated comment on getIconUrlForPlan |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class XMPPServer {
loadModule ( IQSharedGroupHandler . class . getName ( ) ) ;
loadModule ( AdHocCommandHandler . class . getName ( ) ) ;
loadModu... | File transfer proxy |
<nb> public abstract class AbstractPsiBasedDeclarationProvider implements Declaration
protected abstract void doCreateIndex ( ) ;
protected void putToIndex ( JetDeclaration declaration ) {
+ if ( declaration instanceof JetClassInitializer ) {
+ return ;
+ }
allDeclarations . add ( declaration ) ;
if ( d... | Anonymous initializers do not declare anything relevant |
<nb> public class AnnotationVisitor {
protected void visitExpression ( String attrName , Expression attrAst , Class attrType ) {
if ( attrType . isArray ( ) ) {
- visitListExpression ( attrName , ( ListExpression ) attrAst , attrType . getComponentType ( ) ) ;
+ SINGLE
+ if ( attrAst instanceof ListExpressi... | improved error report when using erroneous list attribute format in annotations |
<nb> public class Utils {
return SGChannel . STABLE ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static boolean isSupporterChannel ( Context context ) {
+ if ( getChannel ( context ) != SGChannel . STABLE ) {
+ return true ;
+ } else {
+ return false ;
+ }
+ }... | Add isSupporterChannel helper method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HttpDownloaderTest {
We ' ll have to check if Jetty NUMBER0 resolves this toString ( ) issue .
COMMENT
- Thread . sleep... | Fix HttpDownloaderTest on Windows |
<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 NAMESPACE ;
- import NAM... | update unit test to reproduce com sun jpalog TSJavaLog class not found error |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix broken build |
<nb> public interface PsiElement extends UserDataHolder , Iconable {
COMMENT
COMMENT
COMMENT
- @ nullable
PsiElement getNextSibling ( ) ;
COMMENT
<nb> public interface PsiElement extends UserDataHolder , Iconable {
COMMENT
COMMENT
COMMENT
- @ nullable
PsiElement getPrevSibling ( ) ;
COMMEN... | remove Nullable from PsiElement getFirst LastChild |
<nb> public final class AssetManager {
public final int getAssetInt ( ) {
return mAsset ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ public final long getNativeAsset ( ) {
+ return mAsset ;
+ }
private AssetInputStream ( int asset )
{
mAsset = asset ; | Add AssetInputStream getNativeAsset |
<nb> public class ConstCheckTest extends CompilerTestCase {
}
public void testConstantPreIncremented1 ( ) {
- testError ( STRING0 ) ;
+ testError ( STRING1 ) ;
}
public void testConstantPreIncremented2 ( ) {
- testError ( STRING2 ) ;
+ testError ( STRING3 ) ;
}
public void testConstantPostDecr... | Fix a couple of tests which claimed to deal with pre increment pre decrement but were actually the post versions |
<nb> public class DatabaseStorageManager
SINGLE
commitShardColumns ( shardId , columnIds , finalOutputFiles ) ;
+
+ SINGLE
+ deleteStagingDirectory ( shardId ) ;
}
private List < File > stagingImport ( long shardId , List < Long > columnIds , Operator source )
<nb> public class DatabaseStorageManage... | Delete empty staging directories |
<nb> public class GoMacLauncher extends JFrame {
try {
setUpApplicationSupport ( ) ;
- final Process server = Runtime . getRuntime ( ) . exec ( args , null , new File ( APPLICATION_SUPPORT_PATHNAME ) ) ;
- server . getErrorStream ( ) . close ( ) ;
- server . getInputStream ( ) . close ( ) ;
+ ProcessBuild... | Do not close the stdout error streams of the go server process that the mac launcher executes |
<nb> public class TestWsWebSocketContainer extends WebSocketBaseTest {
SINGLE
BlockingPojo . clearBlock ( ) ;
+ SINGLE
+ SINGLE
+ wsSession . close ( ) ;
+
String msg = STRING0 + timeout + STRING1 ;
SINGLE | Fix likely cause of occasional CI failure |
<nb> public class DisUnityCli {
private static final Logger L = Logger . getLogger ( DisUnityCli . class . getName ( ) ) ;
private final DisUnity disunity ;
- private Options opts = new Options ( ) ;
+ private Options opts ;
COMMENT
COMMENT
<nb> public class DisUnityCli {
}
public boolean config... | Better re create the Options object every call |
<nb> public class ActivityShare extends Activity {
mAppAdapter . setMessage ( uid , getString ( R . string . msg_restart ) ) ;
SINGLE
- if ( mListAbortedUid . size ( ) > NUMBER0 )
- mAppAdapter . setMessage ( mListAbortedUid . get ( NUMBER0 ) , getString ( R . string . msg_aborted ) ) ;
+ if ( mListAbortedU... | Show fail icon when aborting new style imports |
<nb> public abstract class BaseSourceProcessor implements SourceProcessor {
for ( String languageKey : languageKeys ) {
if ( Validator . isNumber ( languageKey ) ||
languageKey . endsWith ( StringPool . DASH ) ||
+ languageKey . endsWith ( StringPool . OPEN_BRACKET ) ||
languageKey . endsWith ( StringPool . P... | SourceFormatter Fix false positive for missing language keys |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> abstract class DirectoryCertificateSource implements CertificateSource {
private String getHash ( X500Principal name ) {
int hash = NativeCrypto . X509_NAME_hash_old ( name... | Don t use IntegralToString |
<nb> public class Music extends BaseAudioEntity {
@ override
public void stop ( ) {
this . mMediaPlayer . stop ( ) ;
- this . mMediaPlayer . seekTo ( NUMBER0 ) ;
}
@ override | Fixed bug in Music when stop is called |
<nb> public abstract class UserDataCache < T , Owner extends UserDataHolder , S > {
return result ;
}
+ public final T getCached ( Key < T > key , Owner owner ) {
+ r . lock ( ) ;
+
+ try {
+ return owner . getUserData ( key ) ;
+ }
+ finally {
+ r . unlock ( ) ;
+ }
+ }
+
+ public final v... | Desynchronizing file view provider |
<nb> public class AccountSettings extends K9PreferenceActivity
if ( mAccount . getFolderPushMode ( ) != FolderMode . NONE )
{
needsPushRestart |= displayModeChanged ;
- displayModeChanged |= mIncomingChanged ;
+ needsPushRestart |= mIncomingChanged ;
}
SharedPreferences prefs = mAccountRingtone . getPre... | Correct push restart logic |
<nb> public class ColumnSnapshotGenerator extends JdbcSnapshotGenerator {
protected DateFormat getDateTimeFormat ( Database database ) {
if ( database instanceof MySQLDatabase ) {
- return new SimpleDateFormat ( STRING0 ) ; SINGLE
+ return new SimpleDateFormat ( STRING1 ) ; SINGLE
+ }
+ if ( database inst... | Handle mssql and mysql datetime format correctly |
<nb> public class BubbleDraggable extends BubbleView implements Draggable {
}
private void doAnimateToContentView ( ) {
- if ( mMode == Mode . ContentView )
+ if ( mMode == Mode . ContentView && mAnimActive )
return ;
mTouchDown = false ; | Fix animating to content view when dragging in that mode |
<nb> public class Capsule implements Runnable {
throw new RuntimeException ( t ) ;
}
+ private static void close ( Object c ) {
+ try {
+ ( ( AutoCloseable ) c ) . close ( ) ;
+ } catch ( Exception ex ) {
+ }
+ }
+
COMMENT
COMMENT
COMMENT | Add close utility method |
<nb> public abstract class WPActionBarActivity extends SherlockFragmentActivity {
getBlogNames ( ) ;
setupCurrentBlog ( ) ;
initMenuDrawer ( ) ;
+ mMenuDrawer . peekDrawer ( NUMBER0 ) ;
} else {
finish ( ) ;
} | Peek menu one time after adding blog to the app from the welcome screen |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Added clarification of immutability contract |
<nb> public class ImageLoader {
if ( this . configuration == null ) {
this . configuration = configuration ;
imageLoadingExecutor = Executors . newFixedThreadPool ( configuration . threadPoolSize ) ;
- emptyListener = new EmptyImageLoadingListener ( ) ;
+ emptyListener = new EmptyListener ( ) ;
}
}
<n... | Rename EmptyListener EmptyImageLoadingListener |
<nb> public class CoreNLPServlet extends HttpServlet {
String escapedXml = StringEscapeUtils . escapeHtml4 ( output . toString ( ) ) ;
String [ ] lines = escapedXml . split ( STRING0 ) ;
- out . print ( STRING1 ) ;
+ out . print ( STRING2 ) ;
for ( String line : lines ) {
int numSpaces = NUMBER0 ;
while... | Improve formatting of XML JSON and ConLL output in online demo |
<nb> public class CassandraCQLClient extends DB {
insertStmt . value ( entry . getKey ( ) , value ) ;
}
- insertStmt . setConsistencyLevel ( writeConsistencyLevel ) . enableTracing ( ) ;
+ insertStmt . setConsistencyLevel ( writeConsistencyLevel ) ;
if ( debug ) {
System . out . println ( insertStmt . t... | Cassandra removed tracing from insert |
<nb> public class DatabaseCleaner {
long total = NUMBER0 ;
int deleted = - NUMBER1 ;
do {
- deleted = feedDAO . deleteWithoutSubscriptions ( NUMBER2 ) ;
+ deleted = feedDAO . deleteWithoutSubscriptions ( NUMBER1 ) ;
total += deleted ;
log . info ( STRING0 , total ) ;
} while ( deleted != NUMBER0 ) ; | reduce batch size |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
}
} else if ( mHideLockScreen ) {
mKeyguardHidden = true ;
+ mWinDismissingKeyguard = null ;
if ( setKeyguardOccludedLw ( true ) ) {
changes |= FINISH_LAYOUT_REDO_LAYOUT
| FINISH_LAYOUT_REDO_CONFIG
| FINISH_LAYOUT_REDO_WALLPAPER ;
}... | Always tell Keyguard about occluded state |
<nb>
package NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
+ import static... | Initialize JNDI to fix failing Environment test |
<nb> public class AudioRecord
}
if ( ( audioData == null ) || ( offsetInBytes < NUMBER0 ) || ( sizeInBytes < NUMBER0 )
+ || ( offsetInBytes + sizeInBytes < NUMBER0 ) SINGLE
|| ( offsetInBytes + sizeInBytes > audioData . length ) ) {
return ERROR_BAD_VALUE ;
}
<nb> public class AudioRecord
}
if ( (... | Detect integer overflow |
<nb> public class JetCompletionContributor extends CompletionContributor {
JavaClassNameCompletionContributor . addAllClasses (
parameters ,
- JavaCompletionSorting . addJavaSorting ( parameters , tempResult ) ,
parameters . getInvocationCount ( ) <= NUMBER0 ,
+ JavaCompletionSorting . addJavaSorting ( para... | Fixed compilation which failed because of changes in IDEA platform |
<nb> public class BoltKernelExtension extends KernelExtensionFactory < BoltKernelExtens
ThreadToStatementContextBridge txBridge ( ) ;
- SessionTracker sessionManager ( ) ;
+ SessionTracker sessionTracker ( ) ;
}
public BoltKernelExtension ( )
<nb> public class BoltKernelExtension extends KernelExtensi... | Rename bolt session tracker dependency |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public class HBaseIDAllocationTest extends IDAllocationTest {
public KeyColumnValueStoreManager openStorageManager ( int idx ) thr... | Ignore HBase local partition test |
<nb> public class MSSQLDatabase extends AbstractJdbcDatabase {
@ override
public String escapeObjectName ( String catalogName , String schemaName , String objectName , Class < ? extends DatabaseObject > objectType ) {
- String name = super . escapeObjectName ( objectName , objectType ) ;
- if ( schemaName != ... | Reverted change MSSQL can reference objects through the catalog name |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- final class AnnotationValues {
+ public final class AnnotationValues {
private static final Equivalence < AnnotationValue > ANNOTATION_VALUE_EQUIVALENCE =
new Equivalence < AnnotationValue > ( ) {
@ override protected boolean doEquivalent ( AnnotationVal... | Make AnnotationValues public |
<nb> class Build {
}
COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> class Build {
final Project p = new Project ( ) ;
p . setUserProperty ( STRING0 , buildFile . getAbsolutePath ( )
. replace ( STRING1 , STRING2 ) ) ;
+
SINGLE
p . setUserProperty ( STRING3 , STRING4 ) ;
SINGLE | Fix bogus comment |
<nb> public class InterfaceBuilderClassesPlugin extends AbstractCompilerPlugin {
}
if ( ! unresolved . isEmpty ( ) ) {
- logger . warn ( STRING0 ,
+ logger . warn ( STRING1 ,
unresolved ) ;
} | Didn t log unresolved custom classes properly |
<nb> public class RCompletionManager implements CompletionManager
SINGLE
SINGLE
SINGLE
- char charAtCursor = docDisplay_ . getCharacterAtCursor ( ) ;
- if ( Character . isLetter ( charAtCursor ) ||
- Character . isDigit ( charAtCursor ) )
+ if ( isValidForRIdentifier ( docDisplay_ . getCharacterAtCursor (... | restrict auto popup if there is an identifier following cursor |
<nb> public class CamelSpringBootApplicationController {
try {
super . doStop ( ) ;
} finally {
- latch . countDown ( ) ;
+ SINGLE
+ CamelSpringBootApplicationController . this . latch . countDown ( ) ;
}
}
} ; | Fixed shutdown of camel spring boot when using Camel main runner |
<nb> public class HttpSessionContextIntegrationFilter implements InitializingBean ,
if ( httpSession != null ) {
httpSessionExistedAtStartOfRequest = true ;
- Object contextObject = httpSession . getAttribute ( ACEGI_SECURITY_CONTEXT_KEY ) ;
+ Object contextFromSessionObject = httpSession . getAttribute ( ACE... | Clarify local variable name given it was the same as a member variable |
<nb> public class GrailsDomainConfigurationUtil {
dc = application . addDomainClass ( ghdc ) ;
}
- LOG . info ( STRING0 + persistentClass + STRING1 ) ;
+ LOG . debug ( STRING0 + persistentClass + STRING1 ) ;
try {
DynamicMethods dm = new DomainClassMethods ( application , persistentClass , sf , applicatio... | reduced log level |
<nb> public abstract class PanelWithActionsAndCloseButton extends JPanel implements D
myToolbarGroup . add ( ActionManager . getInstance ( ) . getAction ( IdeActions . ACTION_CONTEXT_HELP ) ) ;
- add ( ActionManager . getInstance ( ) . createActionToolbar ( ActionPlaces . FILEHISTORY_VIEW_TOOLBAR , myToolbarGro... | make file history toolbar buttons available independently of the focus |
<nb> public class YearClassTest {
return yearClass ;
}
+
+ @ test
+ public void testBuildingFromInt ( ) {
+ assertEquals ( YearClass . CLASS_2008 , YearClass . fromIntValue ( NUMBER0 ) ) ;
+ assertEquals ( YearClass . CLASS_2009 , YearClass . fromIntValue ( NUMBER1 ) ) ;
+ assertEquals ( YearClass . C... | add test for building from int value |
<nb> public class DefaultModelRegistry implements ModelRegistryInternal {
public void registerNode ( ModelNodeInternal node , Multimap < ModelActionRole , ? extends ModelAction > actions ) {
SINGLE
SINGLE
- LOGGER . debug ( STRING0 , node . getPath ( ) ) ;
+ LOGGER . debug ( STRING1 , node . getPath ( ) , nod... | Add information about hidden state of a node when it s registered |
<nb> public abstract class KeymapGroupFactory {
}
public abstract KeymapGroup createGroup ( String name ) ;
- public abstract KeymapGroup createGroup ( String name , Icon closedIcon ) ;
+ public abstract KeymapGroup createGroup ( String name , Icon icon ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ @ deprec... | Bring back API as Deprecated for backward compatibility |
<nb> public class SedaConsumerStartStopTest extends ContextTestSupport {
executor . execute ( new Runnable ( ) {
public void run ( ) {
for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
+ SINGLE
+ SINGLE
try {
SINGLE
- Thread . sleep ( new Random ( ) . nextInt ( NUMBER2 ) ) ;
+ SINGLE
+ Thread . sleep (... | Fix seda test that fails on slower machines sometimes |
<nb> public class OrderedMemoryAwareThreadPoolExecutor extends
return super . shouldCount ( task ) ;
}
+ void onAfterExecute ( Runnable r , Throwable t ) {
+ afterExecute ( r , t ) ;
+ }
+
private final class ChildExecutor implements Executor , Runnable {
private final LinkedList < Runnable > tasks = ... | Shut eclipse compiler up |
<nb> public class NettyHandlerAdapter extends ChannelInboundHandlerAdapter {
private boolean isIgnorableException ( Throwable throwable ) {
SINGLE
- return throwable instanceof IOException && throwable . getMessage ( ) . endsWith ( STRING0 ) ;
+ if ( throwable instanceof IOException ) {
+ String message = t... | Fix potential NPE |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import static NAMESPACE ;
<nb> public class EncodingTest {
public void support_japanese_charset ( ) {
runProjectAnalysis ( orchestrator , STRING0 , STRING1 , STRING2 ) ;
- Selenese selenese = Se... | Migrate EncodingTest IT |
<nb> public class SocketBufferHandler {
readBuffer . clear ( ) ;
} else {
readBuffer . compact ( ) ;
- readBuffer . position ( remaining ) ;
- readBuffer . limit ( readBuffer . capacity ( ) ) ;
}
} else {
SINGLE | Remove unnecessary method calls |
<nb> public class ServerSentEventsTest extends JerseyTest {
final AtomicInteger doneCount = new AtomicInteger ( NUMBER0 ) ;
- for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
+ SINGLE
+ SINGLE
new EventSource ( target ( ) . path ( response . getLocation ( ) . toString ( ) ) , executorService ) {
int mes... | temporarily simplifying testCreateDomain |
<nb> public class EnterpriseAuthManagerFactory extends AuthManager . Factory
SINGLE
}
- long ttl = config . get ( SecuritySettings . auth_caching_ttl ) ;
+ long ttl = config . get ( SecuritySettings . auth_cache_ttl ) ;
long maxCapacity = config . get ( SecuritySettings . auth_cache_max_capacity ) ;
ret... | Changed name of auth_cache_ttl setting |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CustomChangeWrapper extends AbstractChange {
public Set < DatabaseObject > getAffectedDatabaseObject... | Call customChange setUp and customChange setFileOpener |
<nb> public class ConfigHelper
conf . set ( OUTPUT_KEYSPACE_CONFIG , keyspace ) ;
}
-
+
COMMENT
COMMENT
COMMENT
<nb> public class ConfigHelper
{
conf . set ( OUTPUT_COLUMNFAMILY_CONFIG , columnFamily ) ;
}
-
+
COMMENT
COMMENT
COMMENT
<nb> public class ConfigHelper
{
return conf .... | avoid boxing calisthenics |
<nb> public class FileVanishedScenarioTest {
@ override
public void run ( ) {
try {
+ Thread . sleep ( NUMBER0 ) ;
clientA . up ( ) ;
}
catch ( Exception e ) {
<nb> public class FileVanishedScenarioTest {
logger . log ( Level . INFO , STRING0 ) ;
runUpThread . start ( ) ;
- Thread . sleep ( NUMB... | Changing timings in test such that they are not less |
<nb> class WebServerManagerImpl extends WebServerManager implements Disposable {
Future < ? > serverStartFuture = startServerInPooledThread ( ) ;
if ( serverStartFuture != null ) {
LOG . assertTrue ( ! ApplicationManager . getApplication ( ) . isDispatchThread ( ) ) ;
- ApplicationManager . getApplication ( ) .... | fix merge error |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public class EntitiesConfigurations {
private Map < String , EntityConfiguration > entitiesConfigurations ;
<nb> public class EntitiesConfigurations {
return get ( entityName ) != null ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COM... | Improve support for entityNames in envers |
<nb> public class IO {
if ( size != - NUMBER0 ) {
charBuf . _len ( size ) ;
}
- if ( size < buffer . length ) {
+ if ( size < NUMBER1 ) {
return charBuf ;
} | Added fix for read method with unconventional readers |
<nb> public class RadialTimePickerDialog extends DialogFragment implements OnValueSel
private int mBlack ;
private String mAmText ;
private String mPmText ;
+ private String mDoneText ;
private boolean mAllowAutoAdvance ;
private int mInitialHourOfDay ;
<nb> public class RadialTimePickerDialog extends D... | Add option to set done text for radial time picker |
<nb> public class Allocation extends BaseObj {
if ( mAutoPadding && ( mType . getElement ( ) . getVectorSize ( ) == NUMBER0 ) ) {
usePadding = true ;
}
+ if ( usePadding ) {
+ if ( dt . mSize * arrayLen < mSize / NUMBER1 * NUMBER0 ) {
+ throw new RSIllegalArgumentException (
+ STRING0 ) ;
+ }
+ } else... | RenderScript add exception reporting for copyTo if array size |
<nb> public class DeepLearningReproducibilityTest extends TestUtil {
p . _hidden_dropout_ratios = new double [ ] { FLOAT0 , FLOAT1 } ;
p . _epochs = FLOAT2 ;
p . _quiet_mode = true ;
+ p . _single_node_mode = true ;
+ p . _force_load_balance = false ;
p . _reproducible = repro ;
DeepLearning dl = new Deep... | Speed up DLRepro JUnit test |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.