diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class LightweightHint implements Hint , UserDataHolder {
finally {
LayoutFocusTraversalPolicyExt . setOverridenDefaultComponent ( null ) ;
}
- layeredPane . paintImmediately ( bounds . x , bounds . y , bounds . width , bounds . height ) ;
+
+ layeredPane . repaint ( bounds . x , bounds . y , bou... | Could cause caret is in its update exception |
<nb> public class ManagementCenterService implements LifecycleListener , MembershipLis
logger . info ( STRING0 ) ;
logger . info ( STRING1 ) ;
- logger . info ( url + STRING2 + projectId + STRING3 + securityToken ) ;
+ logger . info ( url + STRING2 + projectId ) ;
logger . info ( STRING0 ) ;
}
} | Removed the security token from the start do url |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
public class BitcoinSerializerTest {
private final byte [ ] addrMessage = Hex . decode ( STRING0... | Remove an unnecessary import |
<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
+ CO... | Added more info on DB schema to javadoc |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- impo... | Fixed compilation problems |
<nb> public class TimePickerDialog extends DialogFragment implements OnValueSelectedL
mOkButton . setTextColor ( mAccentColor ) ;
mCancelButton . setTextColor ( mAccentColor ) ;
mTimePicker . setAccentColor ( mAccentColor ) ;
- timePickerHeader . setBackgroundColor ( mAccentColor ) ;
+ timePickerHeader . setB... | TimePicker header should use darkened color as background |
<nb> public class SendToConsoleEvent extends GwtEvent < SendToConsoleHandler >
public SendToConsoleEvent ( String code , boolean execute , boolean focus )
{
+ this ( code , execute , focus , false ) ;
+ }
+
+ public SendToConsoleEvent ( String code ,
+ boolean execute ,
+ boolean focus ,
+ boolean a... | add animate parameter to send to console event |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public interface AsyncContextCallback {
public void fireOnComplete ( ) ; | Fix Javadoc error |
<nb> public class GroovyPsiManager {
private final Map < String , GrTypeDefinition > myArrayClass = new HashMap < String , GrTypeDefinition > ( ) ;
private final ConcurrentMap < GroovyPsiElement , PsiType > myCalculatedTypes = ContainerUtil . createConcurrentWeakMap ( ) ;
- private final ConcurrentMap < PsiMemb... | don t leak PSI via GroovyPsiManager myCompileStatic |
<nb> package NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public class App {
<nb> package NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public abstract class Command {
<nb>
package NAMESPACE ;
+ COMMENT
... | Improved Command pattern code comments |
<nb> public abstract class AbstractEnglishSpellerRule extends MorfologikSpellerRule {
}
COMMENT
+ COMMENT
COMMENT
COMMENT
@ override
- protected List < String > getAdditionalTopSuggestions ( List < String > suggestions , String word ) {
+ protected List < String > getAdditionalTopSuggestions ( List < ... | Fix compilation error |
<nb> public class EnglishGrammaticalRelations {
new GrammaticalRelation ( Language . English , STRING0 , STRING1 ,
SUBJECT , STRING2 , tregexCompiler ,
new String [ ] {
- STRING3 + timeWordRegex + STRING4 ,
+ SINGLE
+ SINGLE
+ SINGLE
+ STRING5 + timeWordRegex + STRING6 ,
STRING7 + timeWordRegex + STRI... | In certain cases of verbs Rolls Royce expects sales to remain steady we want dobj instead of nsubj |
<nb> public class ContactGroupIcqImpl
while ( contacts . hasNext ( ) )
{
ContactIcqImpl item = ( ContactIcqImpl ) contacts . next ( ) ;
- if ( item . getJoustSimBuddy ( ) . getScreenname ( )
- . equals ( new Screenname ( screenName ) ) )
+ if ( item . getJoustSimBuddy ( ) . getScreenname ( ) . getFormatted ... | When downloading contact list compare with existing contacts by equal ing the strings and nod the screenname objects |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class QueryParseContext {
private IndicesQueriesRegistry indicesQueriesRegistry ;
public QueryParseContext ( IndicesQueriesRegistry registry ) {
... | remove index from QueryParseContext Constructor |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class ItemEngine extends ItemBlockBuildCraft
- {
+ public class ItemEngine extends ItemBlockBuildCraft {
public ItemEngine ( int i ) {
super ( i , STRING0 ) ;
+ setMaxDamage ( NUMBER0 ) ;
+ setHasSubtypes ( true ) ;
}
+ @... | Fixed issues when picking up engines of different types |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
public interface TestOperationDescriptor extends OperationDescriptor {
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ override
String getName ... | Write in terms of test operation |
<nb> public class ImagePipelineNativeLoader {
public static final List < String > DEPENDENCIES ;
static {
List < String > dependencies = new ArrayList < String > ( ) ;
- dependencies . add ( STRING0 ) ;
DEPENDENCIES = Collections . unmodifiableList ( dependencies ) ;
}
<nb> public class WebPImage implem... | Make leaf libraries static |
<nb> public class ODatabaseDocumentTx extends ODatabaseRecordWrapperAbstract < ODatabas
final int [ ] clusterIds ;
if ( doc . getSchemaClass ( ) != null ) {
- SINGLE
-
SINGLE
clusterIds = doc . getSchemaClass ( ) . getClusterIds ( ) ;
int i = NUMBER0 ;
for ( ; i < clusterIds . length ; ++ i )
if ( c... | Fixed error reported by Ilya Mikhaylov on db document |
<nb> public class CreateViewTask
metadata . createView ( session , name , data , statement . isReplace ( ) ) ;
}
- public Analysis analyzeStatement ( Statement statement , Session session , Metadata metadata )
+ private Analysis analyzeStatement ( Statement statement , Session session , Metadata metadata )
... | Make CreateViewTask method private |
<nb> public interface NamingStrategy {
COMMENT
COMMENT
COMMENT
- public String getDefaultVariableName ( String namePrefix , EntityType entityType ) ;
+ String getDefaultVariableName ( String namePrefix , EntityType entityType ) ;
COMMENT
COMMENT
<nb> public interface NamingStrategy {
COMMENT
COMME... | removed redundant modifiers |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class CapturingProcessAdapter extends ProcessAdapter {
}
}
+ @ override
+ public void processTerminated ( @ notnull final ProcessEvent event ) {
+ myOutput . setExitCode ( event . getExitCode ( ) ) ;... | CapturingProcessAdapter should set process exit code to ProcessOutput |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TargetsCommandOptions extends BuildCommandOptions {
File projectRoot , ImmutableSet < String > nonCanonicalFilePaths )
throws IOException {
ImmutableSet . Bui... | Fix directory separator inconsistency in TargetsCommandOptionTest |
<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> import NAMESPACE ;
import NAMESPACE ;
import NAMES... | suggesting all properties files under project |
<nb> public abstract class GraphDatabaseSettings
STRING0 )
public static final Setting < File > plugin_dir = setting ( STRING1 , PATH , STRING2 ) ;
- @ description ( STRING3 )
- @ internal
- public static final Setting < File > store_internal_log_location = setting ( STRING4 , PATH , NO_DEFAULT ) ;
-
@ ... | Use the logs directory for the internal log |
<nb> public class RowsFragment extends BaseRowFragment {
float level = mSelectLevelAnimStart + fraction * mSelectLevelAnimDelta ;
if ( mColorDimmer != null ) {
mColorDimmer . setActiveLevel ( level ) ;
+ if ( getVerticalGridView ( ) != null ) {
+ getVerticalGridView ( ) . invalidate ( ) ;
+ }
}
mRowPres... | Fix row dimming animation |
<nb> public class WifiStressTest extends ConnectivityManagerTestBase {
Settings . Global . WIFI_SCAN_ALWAYS_AVAILABLE , NUMBER0 ) ;
SINGLE
Settings . Global . putInt ( mRunner . getContext ( ) . getContentResolver ( ) ,
- Settings . Global . WIFI_SLEEP_POLICY , Settings . Global . WIFI_SLEEP_POLICY_NEVER ) ;
... | Fix wifi reconnection tests |
<nb> public class MyResource {
public Person [ ] getList ( ) {
Person [ ] list = new Person [ NUMBER0 ] ;
list [ NUMBER1 ] = new Person ( STRING0 , NUMBER2 ) ;
- list [ NUMBER2 ] = new Person ( STRING1 , NUMBER3 ) ;
+ list [ NUMBER2 ] = new Person ( STRING2 , NUMBER3 ) ;
list [ NUMBER3 ] = new Person ( STRI... | Fixing a name |
<nb> public class ImApp extends Application {
}
public synchronized void stopImServiceIfInactive ( ) {
- boolean hasActiveConnection = true ;
- hasActiveConnection = ! mConnections . isEmpty ( ) ;
- if ( ! hasActiveConnection ) {
+ if ( ! hasActiveConnections ( ) ) {
if ( Log . isLoggable ( LOG_TAG , ... | removing these is causing dups and confusion |
<nb> public class CandidateEdge {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Remove TODO that is now done |
<nb> public class JavaCompletionUtil {
}
String name = psiClass . getName ( ) ;
+ if ( name == null ) {
+ return startOffset ;
+ }
+
+ assert document != null ;
document . replaceString ( startOffset , endOffset , name ) ;
final RangeMarker toDelete = insertTemporary ( startOffset + name . length ... | don t qualify references to fields in anonymous classes |
<nb> public class RepoLoader {
mPref . edit ( ) . putLong ( STRING0 , System . currentTimeMillis ( ) ) . commit ( ) ;
}
-
+
+ private void removeRepoFile ( String repo ) {
+ getRepoCacheFile ( repo ) . delete ( ) ;
+
+ mPref . edit ( )
+ . remove ( STRING1 + repo + STRING2 )
+ . remove ( STRING1 +... | delete repo xml files that could not be parsed forcing a redownload |
<nb> public class Converter < T > {
return ;
} else if ( resName . type . equals ( STRING0 ) ) {
return ;
+ } else if ( resName . type . equals ( STRING1 ) ) {
+ return ;
} else if ( DrawableResourceLoader . isStillHandledHere ( resName ) ) {
SINGLE
DrawableNode drawableNode = resourceLoader . getDrawab... | add support for referencing raw resources in xml layouts |
<nb> class InstrumentMethod {
int end = getLabelIdx ( tcb . end ) ;
if ( start <= fi . endInstruction && end >= fi . endInstruction ) {
+ db . log ( LogLevel . DEBUG , STRING0 , mn . name , i , fi . endInstruction ) ;
SINGLE
SINGLE | Added instrumentation debug log ci skip |
<nb>
COMMENT
package NAMESPACE ;
- public class BadRequestException extends OperationException {
+ public class BadRequestException extends OperationException implements IsRetryableException {
private static final long serialVersionUID = - NUMBER0 ;
private static final String WHY_UNCONFIGURED_COLUMNFAM... | Make BadRequestException to be IsRetryableException so that it can work with our retry policy |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
+
public abstract class AbstractBaseJavaLocalInspectionTool extends LocalInspectionTool {
+ private static final Condition < PsiElement ... | AbstractBaseJavaLocalInspectionTool getProblemElement should not return PsiTypeParameter |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- COMMENT
+ ... | add Apache Header |
<nb> public class AprEndpoint extends AbstractEndpoint {
protected long sslContext = NUMBER0 ;
+ private Acceptor acceptors [ ] = null ;
+
+
SINGLE
<nb> public class AprEndpoint extends AbstractEndpoint {
}
SINGLE
+ acceptors = new Acceptor [ acceptorThreadCount ] ;
for ( int i = NUMBER0 ;... | Store the Acceptor instances in the array like we do for other threads |
<nb> public class ProjectSpecificSettingsStep extends ProjectSettingsStepBase impleme
super . initGeneratorListeners ( ) ;
if ( myProjectGenerator instanceof PythonProjectGenerator ) {
( ( PythonProjectGenerator ) myProjectGenerator ) . addSettingsStateListener ( this : : checkValid ) ;
+ myErrorLabel . addMous... | brought back error label listener |
<nb> public class ChaseCameraAppState extends AbstractAppState implements ActionListe
initTogleRotateInput ( ) ;
inputManager . addListener ( this , inputs ) ;
+ inputManager . setCursorVisible ( dragToRotate ) ;
}
public void onAction ( String name , boolean keyPressed , float tpf ) {
<nb> public class... | fixed an issue where calling setCursorVisible on the ChaseCameraAppstate before it s initialized was causing an NPE |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class OHttpResponse {
- public static final String JSON_FORMAT = STRING0 ;
+ public static final String JSON_FORMAT = STRING1 ;
public static final char [ ] URL_SEPARATOR = { STRING2 } ;
private final OutputStream out ; | now always returns the fieldTypes in JSON response |
<nb> public final class Mapper {
COMMENT
COMMENT
COMMENT
- protected MappedHost [ ] hosts = new MappedHost [ NUMBER0 ] ;
+ protected volatile MappedHost [ ] hosts = new MappedHost [ NUMBER0 ] ;
COMMENT
<nb> public final class Mapper {
}
}
- private boolean addHostAliasImpl ( MappedHost newAlia... | Fix data race |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class StoreAccess
public StoreAccess ( String path , Map < Object , Object > params )
{
params . put ( FileSystemAbstraction . class , CommonFactories . defaultFileSyst... | Added the StringLogger to the config of StoreAccess so that store logging works as usual |
<nb> public class IpnbRunCellAction extends AnAction {
public void runCell ( @ notnull final IpnbFilePanel ipnbFilePanel , boolean selectNext ) {
final IpnbEditablePanel cell = ipnbFilePanel . getSelectedCell ( ) ;
cell . runCell ( ) ;
- if ( selectNext )
+ if ( selectNext ) {
+ final int index = ipnbFilePa... | add new cell on run if it was the last cell in file |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- ... | Removing obsolete imports |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TaskListFragment extends ListFragment implements OnScrollListener ,
SINGLE
setHasOptionsMenu ( true ) ;
- ContentValues... | Removed debug code |
<nb> public abstract class PaymentOperation extends OperationCallbackBase implements
SINGLE
if ( paymentStateContext . getOverridePluginOperationResult ( ) == null ) {
final PaymentTransactionInfoPlugin paymentInfoPlugin = doCallSpecificOperationCallback ( ) ;
+ if ( paymentInfoPlugin == null ) {
+ throw new ... | Make sure payment sytem thros an exception if payment plugin returns a null result |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CreateUserAndBlog {
SharedPreferences settings = PreferenceManager . getDefaultSharedPreferences ( mContext ) ;
SharedPrefe... | Encrypt the password before storing it to preferences |
<nb>
- package NAMESPACE ;
+ package NAMESPACE ;
import NAMESPACE ; | java files declare the package they re actually in |
<nb> public class OutboundTcpConnection extends Thread
private static boolean isLocalDC ( InetAddress targetHost )
{
String remoteDC = DatabaseDescriptor . getEndpointSnitch ( ) . getDatacenter ( targetHost ) ;
- String localDC = DatabaseDescriptor . getEndpointSnitch ( ) . getDatacenter ( DatabaseDescriptor . ... | OutboundTcpConnection class retrieves local IP |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
public class RelationAnalysisContext {
private final ExpressionAnalysisContext expressionAnalysisContext ;
private ExpressionAnalyzer expressionAnalyz... | keep order of tables in the FROM clause |
<nb> public class Address
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public static Address [ ] unpack ( String addressList )
{
<nb> public class Address
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
... | Fix bug where replaceAll result was being discarded |
<nb> public class EvictorImpl implements Evictor {
}
protected boolean tryEvict ( Data key , Record record , RecordStore recordStore , boolean backup , long now ) {
- String mapName = recordStore . getName ( ) ;
Object value = record . getValue ( ) ;
if ( recordStore . isLocked ( key ) ) { | Fixed dead store findbugs error |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public class HazelcastTest {
@ test
<nb> public class HazelcastTest {
assertEquals ( STRING0 , topic . getName ( ) ) ;
}
+ public static class TopicListener implements MessageListener < String > , Serializable {
... | fixed broken test |
<nb> public final class HttpServerExchange extends AbstractAttachable {
public HttpServerExchange addResponseWrapper ( final ConduitWrapper < StreamSinkConduit > wrapper ) {
ConduitWrapper < StreamSinkConduit > [ ] wrappers = responseWrappers ;
if ( responseChannel != null ) {
- throw UndertowMessages . MESSAGE... | Throw correct exception |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ target ( { ElementType . FIELD , ElementType . METHOD , ElementType . TYPE }... | add constructors to the list of targets for the Generated annotation |
<nb> public class MavenPlugin implements Plugin < ProjectInternal > {
installUpload . setConfiguration ( configuration ) ;
MavenRepositoryHandlerConvention repositories = new DslObject ( installUpload . getRepositories ( ) ) . getConvention ( ) . getPlugin ( MavenRepositoryHandlerConvention . class ) ;
repositori... | reworded description of maven install task |
<nb> public final class BridgeWindowSession implements IWindowSession {
}
@ override
- public boolean startMoving ( IWindow window , float startX , float startY )
+ public boolean startMovingTask ( IWindow window , float startX , float startY )
throws RemoteException {
SINGLE
return false ; | Fix build break with startMovingTask API |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
public class JetPluginUtil {
<nb> public class JetPluginUtil {
VirtualFile moduleFile = module . getModuleFile ( ) ;
if ( moduleFile == null ) return false ;
- String moduleFilePath = moduleFile... | Checking file existence through VFS potentially faster |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ; ... | Remove references to CommonsHttpInvokerRequestExecutor |
<nb> public class OCommandExecutorSQLInsert extends OCommandExecutorSQLSetAware imple
throw new OCommandExecutionException ( STRING0 + indexName + STRING1 ) ;
SINGLE
- Map < String , Object > result = null ;
+ Map < String , Object > result = new HashMap < String , Object > ( ) ;
for ( Map < String , Obje... | fixed return value of insert index operation |
<nb> public class ThumbnailComponentUI extends ComponentUI {
@ nonnls private static final String THUMBNAIL_COMPONENT_ERROR_STRING = STRING0 ;
static {
- SINGLE
UIManager . getDefaults ( ) . put ( THUMBNAIL_COMPONENT_ERROR_STRING ,
IconsBundle . message ( STRING1 ) ) ;
} | removed redundant suppressions |
<nb> public final class ViewRootImpl implements ViewParent ,
mAccessibilityManager = AccessibilityManager . getInstance ( context ) ;
mAccessibilityInteractionConnectionManager =
new AccessibilityInteractionConnectionManager ( ) ;
+ mAccessibilityManager . addAccessibilityStateChangeListener (
+ mAccessibilit... | Cannot query the content of certain windows |
<nb> class PageModelExtractor {
private void init ( Class clazz ) {
this . clazz = clazz ;
initClassExtractors ( ) ;
- clazz . getDeclaredFields ( )
fieldExtractors = new ArrayList < FieldExtractor > ( ) ;
for ( Field field : ClassUtils . getFieldsIncludeSuperClass ( clazz ) ) {
field . setAccessible ( tr... | fix compile error |
<nb>
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
package NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class Configu... | Fix unused import warnings from Checkstyle |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Give a more realistic usage example for EqualsTester |
<nb> public class ViewablesTest extends AndroidTestCase {
public void testTextPlusRfc822Message ( ) throws MessagingException {
Locale . setDefault ( Locale . US ) ;
- TimeZone . setDefault ( TimeZone . getTimeZone ( STRING0 ) ) ;
+ TimeZone . setDefault ( TimeZone . getTimeZone ( STRING1 ) ) ;
String bod... | Fixed issue with TimeZone setDefault |
<nb> public class CleaningNeoServer extends NeoServer
{
private final String dir ;
private static RuntimeException lastStarted ;
+ private final File configFile ;
public CleaningNeoServer ( final AddressResolver addressResolver , final StartupHealthCheck startupHealthCheck ,
final File configFile , final ... | Hopefully this nukes the config files after each test now |
<nb> public class XaLogicalLog
}
SINGLE
fileChannel . position ( lastEntryPos ) ;
+ SINGLE
+ buffer . clear ( ) ;
+ while ( buffer . hasRemaining ( ) )
+ {
+ buffer . put ( ( byte ) NUMBER0 ) ;
+ }
+ buffer . flip ( ) ;
+ long endPosition = fileChannel . size ( ) ;
+ do
+ {
+ long bytesLeft ... | Fixed problem with unwritten record non committed not getting reset to zero |
<nb> public class DynamicDialect extends Dialect {
STRING0 + dbName + STRING1 + dbMajorVersion ) ;
}
- if ( dbName . startsWith ( PortalCustomSQLUtil . HYPERSONIC ) ) {
+ if ( dbName . startsWith (
+ com . liferay . util . dao . hibernate . CustomSQLUtil . HYPERSONIC ) ) {
+
if ( _log . isWarnEnabled ( ... | Fix Windows JDK build error |
<nb> public final class Realm implements Closeable {
}
SINGLE
- if ( object . realm == this ) {
+ if ( object . realm . id == this . id ) {
return object ;
} | Using id to compare Realms will also support in memory Realms |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DashboardsApiController extends AuthenticatedController {
final List requestSeries = ( List ) requestConfig . get ( STRING0 ) ;
for ( Object seriesObject : reque... | Cast object to make method call work |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
public class XSystemProperties extends XHook {
<nb> public class XSystemProperties extends XHook {
@ override
protected void after ( MethodHookParam param ) throws Throwa... | Skip SystemProperties for Android |
<nb> 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 NAMESPACE ;
import NAMESPACE ;
import NAM... | Fixed the CS error of camel spring |
<nb> public class StreamingHistogram
double mb = pi . getValue ( ) + ( pnext . getValue ( ) - pi . getValue ( ) ) * weight ;
sum += ( pi . getValue ( ) + mb ) * weight / NUMBER0 ;
- sum += pi . getValue ( ) / NUMBER0 ;
+ sum += pi . getValue ( ) / FLOAT0 ;
for ( Long value : bin . headMap ( pi . getKey ( ) ... | Use double math for double results in StreamingHistogram |
<nb> public class LoadDataChange extends AbstractChange implements ChangeWithColumns <
if ( columnConfig != null ) {
columnName = columnConfig . getName ( ) ;
+ if ( columnConfig . getType ( ) . equalsIgnoreCase ( STRING0 ) ) {
+ continue ;
+ }
+
if ( value . toString ( ) . equalsIgnoreCase ( STRING1 ) ... | Add SKIP as a column type to be able to ignore some columns in a CSV file |
<nb> public class MasterBatchCoordinator extends BaseRichSpout {
_spouts = spouts ;
}
+ public List < String > getManagedSpoutIds ( ) {
+ return _managedSpoutIds ;
+ }
+
@ override
public void activate ( ) {
_active = true ; | Expose managed spout ids publicly |
<nb> public class VoiceRouter {
public interface VoiceMessageListener {
void onVoiceMessage ( ) ;
}
- private ConcurrentHashMap < VoiceMessageListener , Void > voiceMessageListeners ;
+ private ConcurrentHashMap < VoiceMessageListener , Integer > voiceMessageListeners ;
public VoiceRouter ( RoutingHelper ... | Fix null pointer |
<nb> public class TestWithTaxItems extends TestIntegrationBase {
}
@ test ( groups = STRING0 )
- public void testXXX ( ) throws Exception {
+ public void testBasicTaxItems ( ) throws Exception {
final AccountData accountData = getAccountData ( NUMBER0 ) ;
final Account account = createAccountWithNonOsgi... | Change name of test to something more meaningful |
<nb> public abstract class FluidContainerRegistry
code = NUMBER0 * code + fluid . fluidID ;
return code ;
}
+ @ override
+ public boolean equals ( Object o )
+ {
+ return o != null && o . hashCode ( ) == hashCode ( ) ;
+ }
}
private static Map < ContainerKey , FluidContainerData > containerFluidMa... | Implement simple hash based equals in Fluid ContainerKey |
<nb> public class LocalStore extends Store implements Serializable
COMMENT
COMMENT
COMMENT
- mDb . execSQL ( STRING0 ,
+ mDb . execSQL ( STRING1 ,
new Object [ ]
{
mId | Incorrect and ancient code would accidentally clobber the wrong attachment |
<nb> public class SpringCamelContext extends DefaultCamelContext implements Initializ
NO_START . remove ( ) ;
}
}
-
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
public static SpringCamelContext springCamelContext ( ApplicationContext applicationContext ) throws Exception {
return spr... | Deprecated api on SpringCamelContext as they are not the way to use Camel and Spring together |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ @ beta
public class XAResourceImpl implements XAResource {
private final TransactionContextImpl transact... | added beta tag |
<nb> public interface AgentBuilder {
redefinitionListener ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Listener scheduled ( ScheduledExecutorService executorService , long time , TimeUnit timeUnit ) {
+ executorService . scheduleWithFixedDelay ... | Added a convenience method for scheduling a resubmission job |
<nb> public class OwnPresenceActor extends ModuleActor implements BusSubscriber {
private static final int TIMEOUT = NUMBER0 * NUMBER1 ;
private boolean isVisible = false ;
+ private long prevRid = NUMBER2 ;
public OwnPresenceActor ( Modules messenger ) {
super ( messenger ) ;
<nb> public class OwnPrese... | Cancel obsolete online requests |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class BaseNavDrawerActivity extends BaseActivity
} , NAVDRAWER_CLOSE_DELAY ) ;
}
- mDrawerLayout . closeDrawer ( Gra... | Use correct gravity constant |
<nb> public final class Capsule {
final List < String > localClassPath = new ArrayList < String > ( ) ;
localClassPath . addAll ( nullToEmpty ( getListAttribute ( ATTR_APP_CLASS_PATH ) ) ) ;
- localClassPath . addAll ( nullToEmpty ( getDefaultClassPath ( appCache ) ) ) ;
+ localClassPath . addAll ( nullToEmpt... | add the jar itself to the class path |
<nb> public class DropboxLoginAsyncTask extends AsyncTask < Void , Void , Integer > {
if ( result == DropboxAPI . STATUS_SUCCESS ) {
if ( m_config != null
&& m_config . authStatus == DropboxAPI . STATUS_SUCCESS ) {
+ m_act . setLoggedIn ( true ) ;
m_act . storeKeys ( m_config . accessTokenKey ,
m_config . a... | Fixed dual login fetch at first authentication |
<nb> public class PointQuadTree < T extends PointQuadTree . Item > {
COMMENT
COMMENT
private void split ( ) {
- mChildren = new ArrayList < PointQuadTree < T > > ( ) ;
+ mChildren = new ArrayList < PointQuadTree < T > > ( NUMBER0 ) ;
mChildren . add ( new PointQuadTree < T > ( mBounds . minX , mBounds . mid... | Initialize ArrayList with capacity |
<nb> public class ClusterConfigServiceImpl implements ClusterConfigService {
ClusterConfig config = dbCollection . findOne ( DBQuery . is ( STRING0 , type . getCanonicalName ( ) ) ) ;
if ( config == null ) {
- LOG . warn ( STRING1 , type . getCanonicalName ( ) ) ;
+ LOG . debug ( STRING1 , type . getCanonical... | Do not log a warning if a cluster config entry does not exist |
<nb> public class JSONGenerator implements Visitor < OptimizerNode > {
String valuesKey = STRING0 ;
if ( hints . getAvgNumValuesPerDistinctValues ( ) . size ( ) > NUMBER0 ) {
valuesKey = STRING1 ;
- for ( Entry < FieldSet , Long > entry : visitable . getEstimatedCardinalities ( ) . entrySet ( ) ) {
+ for ( En... | Fixed wrong compiler hints in JSONGenerator |
<nb> public class ImapStore extends Store {
if ( ImapResponseParser . equalsIgnoreCase ( response . get ( NUMBER0 ) , commandResponse ) ) {
boolean includeFolder = true ;
+ if ( response . size ( ) > NUMBER1 || ! ( response . getObject ( NUMBER2 ) instanceof String ) ) {
+ Log . w ( K9 . LOG_TAG , STRING0 + c... | Skip incorrectly formatted parsed LSUB LIST replies |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RealmObjectTest extends AndroidTestCase {
}
}
+ public void testWriteMustThrowOutOfTransaction ( ) {
+ testRealm . beginTransaction ( ) ;
+ Dog dog = tes... | Add a unit test about editing a RealmObject outside of a transaction |
<nb> public class AuditOwnerCommand extends AbstractCommandRunner < AuditOwnerOptions >
SINGLE
Path targetBasePath = MorePaths . relativize (
getProjectFilesystem ( ) . getRootPath ( ) . toAbsolutePath ( ) ,
- buckFile . getParent ( ) . toAbsolutePath ( ) ) ;
+ buckFile . toAbsolutePath ( ) . getParent ( ) ) ... | Flip chained method order |
<nb> public class Utils {
COMMENT
COMMENT
COMMENT
+ @ deprecated
private static ForgeDirection get2dOrientation ( Position pos1 , Position pos2 ) {
double Dx = pos1 . x - pos2 . x ;
double Dz = pos1 . z - pos2 . z ; | added nissing deprecated annotation |
<nb> public interface IndexFieldDataCache {
static class Key {
final Object readerKey ;
- final List < Listener > listeners = new ArrayList < > ( ) ; SINGLE
+ final List < Listener > listeners = new ArrayList < > ( ) ;
long sizeInBytes = - NUMBER0 ; SINGLE
Key ( Object readerKey ) {
<nb> public class ... | Removed incorrect comment |
<nb> public class Format {
public final String language ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- public final int bandwidth ;
-
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Format {
this . bitrate = bitrate ;
this . language = language ;
this . codecs... | Remove deprecated bandwidth parameter |
<nb> public class DoubleHistogram extends EncodableHistogram implements Serializable
private void setTrackableValueRange ( final double lowestValueInAutoRange , final double highestValueInAutoRange ) {
this . currentLowestValueInAutoRange = lowestValueInAutoRange ;
this . currentHighestValueLimitInAutoRange = hig... | Java Fix typo in private method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
public class MainActivity extends Activity {
static ResponseCacheMiddleware cacher ; | Changed import of UrlEncodedFormBody to make simple app working |
<nb> public class QueryStateMachine
recordDoneStats ( ) ;
+ SINGLE
+ SINGLE
+ failureCause . compareAndSet ( null , toFailure ( throwable ) ) ;
+
boolean failed = queryState . setIf ( FAILED , currentState - > ! currentState . isDone ( ) ) ;
if ( failed ) {
log . debug ( throwable , STRING0 , queryI... | Revert query state machine set failure cause |
<nb> final class Security {
for ( Map . Entry < Pattern , String > e : SPECIAL_JARS . entrySet ( ) ) {
if ( e . getKey ( ) . matcher ( url . getPath ( ) ) . matches ( ) ) {
String prop = e . getValue ( ) ;
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ if ( System . getProperty ( prop ) != null ) {
... | remove temporary leniency |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.