diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class VcsConfiguration implements PersistentStateComponent < Element >
public boolean PERFORM_CHECKOUT_IN_BACKGROUND = true ;
public boolean PERFORM_ADD_REMOVE_IN_BACKGROUND = true ;
public boolean PERFORM_ROLLBACK_IN_BACKGROUND = false ;
- public volatile boolean CHECK_LOCALLY_CHANGED_CONFLIC... | disable background processes by default |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
public class TestNonBlockingAPI extends TomcatBaseTest {
- private static final Log log = LogFactory . getLog ( TestNonBlockingAPI . class ) ;
-
private s... | Remove unnecessary Log definitions |
<nb> public abstract class MultimapBuilder < K0 , V0 > {
COMMENT
COMMENT
public ListMultimapBuilder < K0 , Object > arrayListValues ( final int expectedValuesPerKey ) {
+ checkNonnegative ( expectedValuesPerKey , STRING0 ) ;
return new ListMultimapBuilder < K0 , Object > ( ) {
@ override
public < K extend... | Fix arrayListValues int in MultimapBuilder to actually throw IAE when expectedValuesPerKey is negative |
<nb> public class MessageCompose extends K9Activity implements OnClickListener , OnFoc
Address . toString ( mSourceMessage . getFrom ( ) ) ) ;
quotedText += MimeUtility . getTextFromPart ( part ) . replaceAll ( STRING0 , STRING1 ) ;
+ quotedText = quotedText . replaceAll ( STRING2 , STRING3 ) ;
mQuotedText . ... | Eliminate carriage returns from reply and forward text |
<nb> public final class LocalTimeProtocol {
getDescriptorForType ( ) {
return getDescriptor ( ) ;
}
- public static final com . google . protobuf . Descriptors . EnumDescriptor
+ public static com . google . protobuf . Descriptors . EnumDescriptor
getDescriptor ( ) {
return org . jboss . netty . example .... | Remove redundant final from static methods |
<nb> public class Stream extends AbstractStream implements HeaderEmitter {
SINGLE
request . getMimeHeaders ( ) . addValue ( STRING0 ) . duplicate ( request . method ( ) ) ;
request . getMimeHeaders ( ) . addValue ( STRING1 ) . duplicate ( request . scheme ( ) ) ;
- SINGLE
- request . getMimeHeaders ( ) . addV... | Include the query string when pushing requests to the client |
<nb> import NAMESPACE ;
COMMENT
public class GroupMapping {
COMMENT
- private GroupMappingService mEnv ;
+ private final GroupMappingService mEnv ;
COMMENT
- private boolean mCacheEnabled ;
+ private final boolean mCacheEnabled ;
COMMENT
private LoadingCache < String , List < String > > mCache ;
... | SMALLFIX Add refreshCache |
<nb> public abstract class AbstractLocalAlluxioCluster {
COMMENT
protected void runWorker ( ) throws IOException , ConnectionFailedException {
mWorker = new DefaultAlluxioWorker ( ) ;
- Whitebox . setInternalState ( DefaultAlluxioWorker . class , STRING0 , mWorker ) ;
+ Whitebox . setInternalState ( AlluxioWo... | Fix whitebox calls |
<nb> public class CompilingClassLoader extends ClassLoader {
DiagnosticCollector < JavaFileObject > diagnostics = new DiagnosticCollector < > ( ) ;
JavaCompiler javaCompiler = ToolProvider . getSystemJavaCompiler ( ) ;
if ( javaCompiler == null ) {
- throw new RuntimeException ( STRING0 ) ;
+ throw new Runtim... | improve error message if java compiler cannot be found |
<nb> public class ExpressionCompatibilityConstraint extends InputOutputConstraintForm
final PsiExpressionList argumentList = ( ( PsiCallExpression ) myExpression ) . getArgumentList ( ) ;
if ( argumentList != null ) {
final Pair < PsiMethod , PsiSubstitutor > pair = MethodCandidateInfo . getCurrentMethod ( argume... | skip inference for nested call when nested call was initially requested to be inferred |
<nb> import NAMESPACE ;
public class DefaultClassLoaderScope implements ClassLoaderScope {
public static final String STRICT_MODE_PROPERTY = STRING0 ;
- private static final boolean STRICT_MODE = Boolean . getBoolean ( STRICT_MODE_PROPERTY ) ;
private final ClassLoaderScope parent ;
private final ClassLoa... | Don t read strict class loader scope flag on class load read on demand |
<nb> public final class HDKeyDerivation {
COMMENT
COMMENT
COMMENT
- static DeterministicKey createMasterPrivKeyFromBytes ( byte [ ] privKeyBytes , byte [ ] chainCode ) throws HDDerivationException {
+ public static DeterministicKey createMasterPrivKeyFromBytes (
+ byte [ ] privKeyBytes , byte [ ] chainCode ... | Make HDKeyDerivation createMasterPrivKeyFromBytes public |
<nb> public interface Map < K , V > extends Traversable < Tuple2 < K , V > > , Function1 < K , V > {
}
default Tuple2 < Seq < K > , Seq < V > > unzip ( ) {
- return this . unzip ( Function . identity ( ) ) ;
+ return unzip ( Function . identity ( ) ) ;
}
default < T1 , T2 > Tuple2 < Seq < T1 > , Seq < T... | removed redundant this |
<nb> public class OClientConnectionManager {
continue ;
}
- if ( ! ( c . protocol instanceof ONetworkProtocolBinary ) && c . data . serializationImpl != null )
+ if ( ! ( c . protocol instanceof ONetworkProtocolBinary ) || c . data . serializationImpl == null )
SINGLE
continue ; | readded fix on phs configuration |
<nb> public class TypeRegistry {
static {
ignorablePackagePrefixes = new String [ NUMBER0 ] [ ] ;
ignorablePackagePrefixes [ STRING0 - STRING0 ] = new String [ ] { STRING1 } ;
- ignorablePackagePrefixes [ STRING2 - STRING0 ] = new String [ ] { STRING3 , STRING4 ,
+ ignorablePackagePrefixes [ STRING2 - STRING0... | Fix problem with not ignoring org springsource loaded classes |
<nb> public interface PsiJetFunctionStub extends PsiJetStubWithFqName < JetNamedFunctio
boolean hasBody ( ) ;
boolean hasTypeParameterListBeforeFunctionName ( ) ;
-
- @ notnull
- String [ ] getAnnotations ( ) ;
}
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;... | Remove unused PsiJetFunctionStub getAnnotations |
<nb> public class PubSubPersistenceManager {
STRING0 +
STRING1 +
STRING2 +
- STRING3 +
+ STRING4 +
STRING5 ;
private static final String ADD_DEFAULT_CONF =
STRING6 + | Fix SQL syntax error pubsub |
<nb> public class DefaultClient implements Client
SINGLE
SINGLE
if ( errorListeners . isEmpty ( ) ) {
+ log . log ( Level . SEVERE , STRING0 , t ) ;
DisconnectInfo info = new DisconnectInfo ( ) ;
info . reason = STRING1 ;
info . error = t ; | Client will log the exception that causes it to disconnect |
<nb> public abstract class VimTestCase extends UsefulTestCase {
new LightTempDirTestFixtureImpl ( true ) ) ;
myFixture . setUp ( ) ;
myFixture . setTestDataPath ( getTestDataPath ( ) ) ;
+ KeyHandler . getInstance ( ) . fullReset ( myFixture . getEditor ( ) ) ;
Options . getInstance ( ) . resetAllOptions ( ) ... | Reset key handler before each test |
<nb> public abstract class Language {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public void setIgnoredCharactersRegex ( String ignoredCharactersRegex ) {
this . ignoredCharactersRegex = Pattern . compile ( ignoredCharactersRegex ) ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
imp... | overwrite getIgnoredCharactersRegex so we don t need another set method in class Language |
<nb> public class DirectoryChooserUI extends BasicFileChooserUI {
if ( fc . isDirectorySelectionEnabled ( ) && ! fc . isFileSelectionEnabled ( ) ) {
if ( fc . getFileSystemView ( ) . isDrive ( file ) ) {
return file . getPath ( ) ;
- } else {
- return file . getPath ( ) ;
}
} else {
return file . getNam... | Duplicate statement in DirectoryChooserUI java |
<nb> public class FragmentActivity extends Activity implements SupportActivity {
@ override
LoaderManagerImpl getLoaderManager ( int index , boolean started , boolean create ) {
- return mLoaderManager ;
+ return FragmentActivity . this . getLoaderManager ( index , started , create ) ;
}
@ override
<n... | Fix internal callbacks returning the activity loader manager rather than getting its own |
<nb> public class StubbingConsecutiveReturnValuesTest extends TestBase {
. toReturn ( STRING0 )
. toThrow ( new Exception ( ) ) ;
}
+
+ @ test
+ public void shouldAllowConsecutiveStubbingForVoidMethod ( ) throws Exception {
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SIN... | added test method for fut |
<nb> public class NeoServerWithEmbeddedWebServer implements NeoServer
}
sb . append ( STRING0 ) ;
- SINGLE
+
sb . append ( getWebServerAddress ( ) ) ;
- if ( webServerPort != NUMBER0 )
+ if ( webServerPort != NUMBER0 && webServerPort != NUMBER1 )
{
sb . append ( STRING1 ) ;
sb . append ( webServ... | Tidying up the web server init code |
<nb> import NAMESPACE ;
import NAMESPACE ;
SINGLE
- class TextFileReader extends AbstractFileReader {
+ public class TextFileReader extends AbstractFileReader {
public static final String [ ] defaultFields = { STRING0 } ;
public static final String CHARSET = STRING1 ;
public static final String BUFFER_S... | expose TextFileReader public |
<nb> public class JspCompilationContext {
COMMENT
COMMENT
COMMENT
- public TldLocation getTldLocation ( String uri ) throws JasperException {
+ public TldLocation getTldLocation ( String uri ) {
TldLocation location =
getOptions ( ) . getTldLocationsCache ( ) . getLocation ( uri ) ;
return location ;
... | Fix a couple of Eclipse warnings |
<nb> public class SearchView extends LinearLayout {
COMMENT
public void setQuery ( CharSequence query , boolean submit ) {
mQueryTextView . setText ( query ) ;
+ if ( query != null ) {
+ mQueryTextView . setSelection ( query . length ( ) ) ;
+ }
+
SINGLE
if ( submit && ! TextUtils . isEmpty ( query ) ... | Moving cursor to the end of the search query when set explicitly |
<nb> public class SedaTest extends OSGiIntegrationTestSupport {
assertNotSame ( name1 , name2 ) ;
String id = STRING0 + bundleContext . getBundle ( ) . getBundleId ( ) ;
- assertTrue ( name1 . startsWith ( id ) ) ;
- assertTrue ( name2 . startsWith ( id ) ) ;
+ assertTrue ( name1 + STRING1 + id , name1 . st... | Add better error message for test failure |
<nb> public class CronScheduledRoutePolicyTest extends CamelTestSupport {
consumerSuspended = true ;
}
assertTrue ( consumerSuspended ) ;
-
}
@ test
<nb> public class CronScheduledRoutePolicyTest extends CamelTestSupport {
template . sendBody ( STRING0 , STRING1 ) ;
success . assertIsSatisfied ( )... | Cosmetic changes removed unncessary blank lines |
<nb> public class PreferencesFrame {
} ) ;
selector = new ColorChooser ( dialog , false ,
- Preferences . getColor ( STRING0 ) , Language . text ( STRING1 ) ,
+ Preferences . getColor ( STRING0 ) , Language . text ( STRING2 ) ,
new ActionListener ( ) {
@ override
public void actionPerformed ( ActionEven... | fixed okay ok key |
<nb> public class OpenStreetMapGraphBuilderImpl implements GraphBuilder {
}
}
}
+ SINGLE
+ for ( Area area : _walkableAreas ) {
+ for ( Ring outerRing : area . outermostRings ) {
+ for ( OSMNode node : outerRing . nodes ) {
+ long nodeId = node . getId ( ) ;
+ if ( possibleIntersectionNodes . contains... | Link ways that share nodes with areas |
<nb> public final class JavaGenerator {
ImmutableMap < ProtoType , ClassName > protoTypeToCustomJavaName ,
ImmutableMap < ProtoType , AdapterConstant > protoTypeToAdapterConstant ) {
if ( ! this . nameToProtoFieldsJavaName . isEmpty ( ) ) {
- throw new IllegalStateException ( ) ;
+ throw new IllegalStateExcep... | Fix exception message |
<nb> public class DefaultTypeTransformation {
SINGLE
args = new Object [ NUMBER0 ] ;
args [ NUMBER1 ] = object ;
+ } else {
+ args = new Object [ ] { object } ;
}
if ( args != null ) {
SINGLE | try cast by invoking constructor in one arg |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileStructurePopup implements Disposable {
for ( FileS... | fix default preferred width for HiDPI |
<nb> public class ParsePipeline implements AutoCloseable {
SINGLE
if ( depCellPath . equals ( cell . getRoot ( ) ) ) {
try {
+ if ( depTarget . isFlavored ( ) ) {
+ getTargetNodeJob ( cell , BuildTarget . of ( depTarget . getUnflavoredBuildTarget ( ) ) ) ;
+ }
getTargetNodeJob ( cell , depTarget ) ;
} c... | Speculatively parse unflavored targets so we can exploit parallelism |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BlenderLoader implements AssetLoader {
String worldName = worldStructure . getName ( ) ;
if ( blenderKey . getUsedWorld ( )... | properly adding AmbientLight to the result set node |
<nb> public class OnErrorThrowable extends RuntimeException {
COMMENT
COMMENT
public OnNextValue ( Object value ) {
- super ( STRING0 + value ) ;
+ super ( STRING1 ) ;
this . value = value ;
} | Fixed OnNextValue to not call toString on the failing value |
<nb> public class ProjectFilesystem {
getDefaultBuckPaths ( root ) ) ;
}
- COMMENT
- COMMENT
- COMMENT
public ProjectFilesystem (
Path projectRoot ,
ImmutableSet < PathOrGlobMatcher > blackListedPaths ) { | Remove untrue comment |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Java Fix javadoc |
<nb> public class EventPublisher < E >
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public void publishEvent ( final EventTranslator < E > translator , long timeout , TimeUnit units ) throws TimeoutException
{ | Fix Javadoc warning |
<nb> public class ScorePhrasesAverageFeatures extends PhraseScorer {
assert ( Data . rawFreq . containsKey ( g ) ) ;
domainNgramNormScores . setCount ( g , getDomainNgramScore ( g ) ) ;
} else
- throw new RuntimeException ( STRING0 + g + STRING1 ) ;
+ System . err . println ( STRING0 + g + STRING1 ) ;
}
... | do not throw exception if not presnet in domainngramfreq text |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COM... | add Apache headers to new files |
<nb>
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | remove garbage text in copyright notice |
<nb> public abstract class AbstractServingIT extends AbstractLambdaIT {
private static final Logger log = LoggerFactory . getLogger ( AbstractServingIT . class ) ;
- protected static final int WAIT_BUFFER_IN_WRITES = NUMBER0 ;
-
private ServingLayer servingLayer ;
private ProduceData updateProducer ;
... | Fix SpeedIT by allowing more time at startup |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class OptionsPreferences extends BasePreferenceFragment < OptionsPreference
@ override
public boolean onPreferenceChange ( Prefer... | Fixed some pmd warnings |
<nb> public class Node implements Cloneable , Serializable {
case CATCH_SCOPE_PROP : return STRING0 ;
case LABEL_ID_PROP : return STRING1 ;
case TARGET_PROP : return STRING2 ;
+ case BRACELESS_TYPE : return STRING3 ;
case BREAK_PROP : return STRING4 ;
case CONTINUE_PROP : return STRING5 ;
case ENUM_PROP :... | Add missing annotations types |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public final class ByteArrayRef {
+ public final class ByteArrayRef implements Serializable {
+
+ private static final long serialVersionUID = NUMBER0 ;
+
privat... | Made ByteArrayRef serializable otherwise a lot of serialization exceptions on tomcat boot |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
... | ReferrerPushStrategy fix javadoc |
<nb> public class CommentsActivity extends WPActionBarActivity implements
}
}
+
+ @ override
+ public void onSaveInstanceState ( Bundle outState ) {
+ if ( outState . isEmpty ( ) ) {
+ outState . putBoolean ( STRING0 , true ) ;
+ }
+ super . onSaveInstanceState ( outState ) ;
+ }
} | Add saveInstanceState to CommentsActivity |
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- public interface IArrayNode extends Iterable < IJsonNode > , IJsonNode {
+ public interface IArrayNode extends Iterable < IJsonNode > , IJsonNode {
public abstract int size ( ) ;
<nb> public... | fixed code ownership and added some javadoc |
<nb> public abstract class AbstractChannel extends DefaultAttributeMap implements Cha
@ override
public final void close ( final ChannelFuture future ) {
if ( eventLoop ( ) . inEventLoop ( ) ) {
+ boolean wasActive = isActive ( ) ;
if ( closeFuture . setClosed ( ) ) {
- boolean wasActive = isActive ( ) ;
... | Fix a bug where channelInactive is not triggered for local transport |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
public @ interface Suspend {
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
int period ( ) default - NUMBER0 ;
+ COMMENT
+ COMMENT
... | Add support for TimeUnit |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StatusBarWindowView extends FrameLayout
mExpandHelper = new ExpandHelper ( mContext , latestItems , minHeight , maxHeight ) ;... | Exempt the notification panel from animation lockout |
<nb> public class NotificationStackScrollLayout extends ViewGroup
case MotionEvent . ACTION_DOWN : {
final int y = ( int ) ev . getY ( ) ;
+ mScrolledToTopOnFirstDown = isScrolledToTop ( ) ;
if ( getChildAtPosition ( ev . getX ( ) , y ) == null ) {
setIsBeingDragged ( false ) ;
recycleVelocityTracker ( ) ... | Fix scrolling of QS panel when no notification is present |
<nb> public class DynamoDBMapper {
COMMENT
COMMENT
public void delete ( Object object , DynamoDBMapperConfig config ) {
- delete ( object , null , this . config ) ;
+ delete ( object , null , config ) ;
}
COMMENT | Make DynamoDBMapper delete honor the given config |
<nb> public class FSRecords implements Forceable {
myNames = new PersistentStringEnumerator ( namesFile ) ;
myAttributes = new Storage ( attributesFile . getCanonicalPath ( ) ) ;
myContents = new RefCountingStorage ( contentsFile . getCanonicalPath ( ) ) ;
- myRecords = new ResizeableMappedFile ( recordsFile , ... | do not cache content agressively |
<nb> public class OperationSetBasicTelephonyJabberImpl
if ( fullCalleeURI == null )
fullCalleeURI = discoverFullJid ( calleeAddress , alwaysCallGtalk ) ;
+ if ( fullCalleeURI == null )
+ throw new OperationFailedException (
+ STRING0 + calleeAddress
+ + STRING1 +
+ STRING2 ,
+ OperationFailedException... | Show an error message if we try to initiate a call to an XMPP contact who does |
<nb> import NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
public class RuntimeOptionsFactoryTest
{
@ test | removed author tag |
<nb> public class Message implements Messages {
return ;
}
- if ( value instanceof String ) {
+ if ( FIELD_TIMESTAMP . equals ( key . trim ( ) ) && value != null && value instanceof Date ) {
+ fields . put ( FIELD_TIMESTAMP , new DateTime ( value ) ) ;
+ } else if ( value instanceof String ) {
final Str... | addField allows Date objects for timestamp fields |
<nb> public class MavenIndex {
private final String myRepositoryId ;
private final String myRepositoryPathOrUrl ;
private final Kind myKind ;
- private volatile Long myUpdateTimestamp ;
+ private Long myUpdateTimestamp ;
- private volatile String myDataDirName ;
- private volatile IndexData myData ;
+... | Remove unnecessary volatile modifier |
<nb> public class MainActivity extends Activity {
@ override
protected void onPause ( ) {
super . onPause ( ) ;
- SINGLE
- startUriBeaconDiscoveryService ( ) ;
+ if ( checkIfUserHasOptedIn ( ) ) {
+ SINGLE
+ startUriBeaconDiscoveryService ( ) ;
+ }
}
@ override | Don t start service if user has not opted in |
<nb> public abstract class KeymapsTestCase extends PlatformTestCase {
{ STRING0 , STRING1 , STRING2 } ,
{ STRING3 , STRING4 , STRING5 } ,
{ STRING6 , STRING7 , STRING8 , STRING9 , STRING10 ,
- STRING11 , STRING12 } ,
+ STRING11 , STRING12 , STRING13 } ,
{ STRING14 , STRING15 , STRING16 , STRING17 , STRING13... | use EditValueAction to start editing on ENTER |
<nb> public class NetworkPolicyManagerService extends INetworkPolicyManager . Stub {
case MATCH_MOBILE_3G_LOWER :
case MATCH_MOBILE_4G :
case MATCH_MOBILE_ALL :
+ SINGLE
+ if ( isAirplaneModeOn ( mContext ) ) {
+ return false ;
+ }
+
SINGLE
return Objects . equal ( getActiveSubscriberId ( ) , templa... | Avoid data usage notifications in airplane mode |
<nb> public class ListSort < T > {
SINGLE
arr [ dest ] = tempArray [ iterB ] ;
} else if ( lengthB == NUMBER0 ) {
- throw new UnsupportedOperationException ( STRING0 ) ;
+ throw new UnsupportedOperationException ( STRING1 +
+ STRING2 ) ;
} else { SINGLE
System . arraycopy ( tempArray , NUMBER0 , arr , d... | Change the compare function error in ListSort to be more user friendly and indicate the likely cause of the error |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class EditorChangeAction implements UndoableAction {
public void undo ( ) {
exchangeStrings ( myNewString , myOldString ) ;
getDocument ( ) . setModifica... | commit all documents before undo redo operations |
<nb> public class NetworkSenderReceiverTest
sender . process ( Message . to ( TestMessage . helloWorld , URI . create ( STRING0 ) , STRING1 ) ) ;
+ sem . acquire ( ) ; SINGLE
sem . acquire ( ) ; SINGLE
receiver . stop ( ) ; | Fixes test that forgot to take into account the extra call to listeningAt |
<nb> public class DribbbleShot extends Activity {
}
@ override
- public boolean animateMove ( RecyclerView . ViewHolder holder , int fromX , int fromY , int toX ,
- int toY ) {
- if ( ! animateMoves ) return false ;
+ public boolean animateMove (
+ RecyclerView . ViewHolder holder , int fromX , int from... | Fix bug with ItemAnimator |
<nb> public final class BatchEventProcessor < T >
{
final long availableSequence = sequenceBarrier . waitFor ( nextSequence ) ;
- if ( nextSequence > availableSequence )
- {
- Thread . yield ( ) ;
- }
-
while ( nextSequence <= availableSequence )
{
event = dataProvider . get ( nextSequence ) ; | Remove stray yield call |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public @ interface ManagedService {
COMMENT
COMMENT
String path ( ) default STRING0 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ public Class < ? extends AtmosphereResourceEventList... | Add listener support |
<nb> public class TitlePageIndicator extends View implements PageIndicator {
SINGLE
mPaintText . setAlpha ( colorTextAlpha - ( int ) ( colorTextAlpha * selectedPercent ) ) ;
}
+
+ SINGLE
+ if ( i < boundsSize - NUMBER0 ) {
+ Rect rightBound = bounds . get ( i + NUMBER0 ) ;
+ SINGLE
+ if ( bound . righ... | Left title overlaps current title with long text during right dragging |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- class IoUtils {
+ public class IoUtils {
static void deleteContents ( File dir ) throws IOException {
File [ ] files = dir . listFiles ( ) ;
if ( files == null ) {
<nb> class IoUtils {
}
}
- static void closeQuietly ( COMMENT Closeable close... | Make public some IoUtils closeQuietly |
<nb> public class ConnectPlugin extends CordovaPlugin {
SINGLE
makeGraphCall ( ) ;
}
+ } else if ( state == SessionState . CLOSED_LOGIN_FAILED && loginContext != null ) {
+ handleError ( new FacebookAuthorizationException ( STRING0 ) , loginContext ) ;
}
}
} | Also handle unexpected authentication terminations where no exception is present e g age restriction |
<nb> public class ZipSplitter {
public static enum DexSplitStrategy {
MAXIMIZE_PRIMARY_DEX_SIZE ,
- MINIMIZE_PRIMARY_DEX_SIZE ;
+ MINIMIZE_PRIMARY_DEX_SIZE ,
+ ;
}
private final Set < File > inFiles ; | Add a a trailing comma |
<nb> public class SimpleCrypto {
SINGLE
fis = context . openFileInput ( DATACORE ) ;
keystore . load ( fis , keystorePassword ) ;
- } catch ( FileNotFoundException e ) {
+ } catch ( IOException e ) {
SINGLE
keystore . load ( null , keystorePassword ) ;
} finally { | Recreate keystore on any IOException |
<nb> public class NepheleJobGraphGenerator implements Visitor < PlanNode > {
Channel inConn = node . getInput ( ) ;
PlanNode pred = inConn . getSource ( ) ;
chaining = ds . getPushChainDriverClass ( ) != null &&
- ! ( pred instanceof NAryUnionPlanNode ) && SINGLE
+ ! ( pred instanceof NAryUnionPlanNode ) && S... | Prevent operator chaining directly after iteration nodes |
<nb> public final class JLanguageTool {
COMMENT
public void addRule ( final Rule rule ) {
userRules . add ( rule ) ;
- SINGLE
final SuggestionExtractor extractor = new SuggestionExtractor ( language ) ;
final List < String > suggestionTokens = extractor . getSuggestionTokens ( rule ) ;
final List < Rule >... | remove misleading comment |
<nb> public class ImagePresenter < T > {
width = view . getWidth ( ) ;
height = view . getHeight ( ) ;
cb . onSizeReady ( width , height ) ;
- cb = null ;
}
+ cb = null ;
}
} ;
<nb> public class ImagePresenter < T > {
@ override
public void onGlobalLayout ( ) {
- final SizeDeterminer sizeDet... | Fix memory leak in ImagePresenter SizeDeterminer |
<nb> public class GridSLM extends SectionLayoutManager {
return rowHeight ;
}
+ @ deprecated
public void setColumnWidth ( int minimumWidth ) {
mMinimumWidth = minimumWidth ;
mColumnsSpecified = false ;
}
+ @ deprecated
public void setNumColumns ( int numColumns ) {
mNumColumns = numColumns ;
m... | Deprecate old set methods on GridSLM |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ColorSampleLookupValue implements LookupValueWithUIHint ... | Do not show color hex presentation for unnamed colors |
<nb> public class OClassImpl extends ODocumentWrapperNoClass implements OClass {
return isStrictMode ( ) ;
case ABSTRACT :
return isAbstract ( ) ;
+ case CUSTOM :
+ return getCustomInternal ( ) ;
}
throw new IllegalArgumentException ( STRING0 + iAttribute + STRING1 ) ; | Committed patch by Tue about OClass get of custom attributes |
<nb> public class TypeAnalyze {
} else if ( value instanceof Type ) {
provideAs ( cst , Type . getType ( Class . class ) ) ;
} else if ( value instanceof Number ) {
- if ( value instanceof Integer ) {
- int a = ( ( Integer ) value ) . intValue ( ) ;
+ if ( value instanceof Integer || value instanceof Byte |... | Fix NPE in generat Asm Method |
<nb> public final class RequestBuilderTest {
buildRequest ( Example . class ) ;
fail ( ) ;
} catch ( IllegalArgumentException e ) {
- assertThat ( e ) . hasMessage (
- STRING0 ) ;
+ assertThat ( e . getMessage ( ) )
+ . isIn ( STRING0 ,
+ STRING1 ) ;
}
} | Fix test to not rely on the order |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
<nb> public abstract class Jackson {
return new DefaultJsonParse < > ( JsonNode . class , objectReader ) ;
}
- public static ObjectParse fromJson ( ) {... | Moving ObjectParse to internal package |
<nb> public class TestMaterialCompare extends SimpleApplication {
}
private void testMats ( Material mat1 , Material mat2 , boolean expected ) {
- if ( mat2 . isEqual ( mat1 ) ) {
+ if ( mat2 . equals ( mat1 ) ) {
System . out . print ( mat1 . getName ( ) + STRING0 + mat2 . getName ( ) ) ;
if ( expected )... | Fixed isEqual to equals in GeometryBatchFactory and in TestMaterialCompare |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class CorsHandler extends ChannelDuplexHandler {
private void handlePreflight ( final ChannelHandlerContext ctx , final HttpRequest request ) {
final HttpResponse response = new... | Add content length and date headers to CORS response |
<nb> public class Term extends Activity implements UpdateCallback {
case TermSettings . ACTION_BAR_MODE_NONE :
if ( AndroidCompat . SDK >= NUMBER0 && ( mHaveFullHwKeyboard || y < height / NUMBER1 ) ) {
openOptionsMenu ( ) ;
+ return ;
} else {
doToggleSoftKeyboard ( ) ;
}
<nb> public class Term extends ... | Have EmulatorViews request focus when clicked |
<nb> class PropertyCacheFile
}
}
mDetailsFile = ( setInActive ) ? null : aFileName ;
- System . out . println ( STRING0 + mDetailsFile ) ;
}
COMMENT | removed debug statement |
<nb> class DefaultBindContext extends AbstractBindContext {
else if ( type . isArray ( ) ) {
switch ( dialect ) {
case POSTGRES : {
- StringBuilder sb = postgresArrayString ( value ) ;
- stmt . setString ( nextIndex ( ) , sb . toString ( ) ) ;
+ String sb = postgresArrayString ( value ) ;
+ stmt . setStri... | Made method return String instead of StringBuilder |
<nb> public abstract class AdapterView < T extends Adapter > extends ViewGroup {
COMMENT
public interface OnItemSelectedListener {
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Clarify documentation of AdapterView OnItemSelectedListener |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT ... | Fix javadoc of pubsub Item |
<nb> public class Drawer {
COMMENT
COMMENT
public Result append ( Result result ) {
+ return append ( result , null ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Result append ( Result result , View view ) {
if ( mUsed ) {
throw new RuntimeExcep... | add new option to append a drawer with a completely custom view |
<nb> public final class TextViewer extends EditorTextField {
}
public TextViewer ( @ notnull String initialText , @ notnull Project project ) {
- this ( createDocument ( initialText ) , project , false , false ) ;
+ this ( createDocument ( initialText ) , project , false , true ) ;
}
public TextViewer (... | enable soft wrapping by default |
<nb> import NAMESPACE ;
COMMENT
public class GremlinEvaluator {
- private Statement currentStatement ;
+ private static final String COMMENT = STRING0 ;
+ private Statement currentStatement ;
private XPathEvaluator xPathEvaluator ;
public GremlinEvaluator ( ) {
<nb> public class GremlinEvaluator {
... | adding lines beginning with in scripts being ignored as comments |
<nb> public class DecorView extends FrameLayout implements RootViewSurfaceTaker , Wind
w = NUMBER0 ;
}
if ( DEBUG_MEASURE ) Log . d ( mLogTag , STRING0 + w ) ;
+ final int widthSize = MeasureSpec . getSize ( widthMeasureSpec ) ;
if ( w > NUMBER0 ) {
- final int widthSize = MeasureSpec . getSize ( widthMeasu... | Fix wrong measurement in DecorView |
<nb> public class StringHelper {
. put ( STRING0 , VK_ENTER )
. put ( STRING1 , VK_INSERT )
. put ( STRING2 , VK_INSERT )
+ . put ( STRING3 , VK_HOME )
+ . put ( STRING4 , VK_END )
+ . put ( STRING5 , VK_PAGE_UP )
+ . put ( STRING6 , VK_PAGE_DOWN )
. put ( STRING7 , VK_DELETE )
. put ( STRING8 , VK_DE... | Add some missing key names |
<nb> public class TestRouting {
public static void info ( ) {
println ( STRING0 ) ;
println ( STRING1 ) ;
- return ;
- }
+ }
private static void println ( String string ) {
<nb> public class OpeningHoursParser {
break ;
}
if ( Character . isWhitespace ( ch ) || ch == STRING2 ) {
- continue ;... | Remove continue and return |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
public class GeoHashUtils {
private static final char [ ] BASE_32 = { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , | removing remaining lucene experimental javadoc tag |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
public class SimpleNameReferenceRenameTest extends LightCodeInsightTestCase {
@ notnull | Fix build remove author tag |
<nb> public class SearchManagerTest extends ActivityInstrumentationTestCase2 < LocalAct
COMMENT
COMMENT
COMMENT
- @ mediumtest
public void testStartSearchIdempotent ( ) throws Exception {
SearchManager searchManager = ( SearchManager )
mContext . getSystemService ( Context . SEARCH_SERVICE ) ;
<nb> publ... | Remove flaky and broken search tests from continous |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Documented minimum JUnit requirement for MockitoJUnitRule |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.