diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> final class TaskRecord extends ThumbnailHolder {
final void setFrontOfTask ( ) {
boolean foundFront = false ;
final int numActivities = mActivities . size ( ) ;
- for ( int activityNdx = NUMBER0 ; numActivities < activityNdx ; ++ activityNdx ) {
+ for ( int activityNdx = NUMBER0 ; activityNdx < numActivi... | Fix loop limits |
<nb> public final class HiveJoinAddNotNullRule extends RelOptRule {
for ( int pos : inputKeyPositions ) {
try {
RelDataType keyType = input . getRowType ( ) . getFieldList ( ) . get ( pos ) . getType ( ) ;
+ SINGLE
+ if ( ! keyType . isNullable ( ) ) {
+ continue ;
+ }
SqlOperator funcCall = SqlFunction... | Add field nullable check to HiveJoinAddNotNullRule CBO branch Jesus Camacho Rodriguez via Ashutosh Chauhan |
<nb> public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
for ( BeanPostProcessor bp : getBeanPostProcessors ( ) ) {
if ( bp instanceof SmartInstantiationAwareBeanPostProcessor ) {
SmartInstantiationAwareBeanPostProcessor ibp = ( SmartInstantiationAwareBeanPostProcessor ) bp ;
- Clas... | Refined predictBeanType s typesToMatch check for FactoryBeans |
<nb> public class InvoiceApiExceptionMapper extends ExceptionMapperBase implements Ex
return buildBadRequestResponse ( exception , uriInfo ) ;
} else if ( exception . getCode ( ) == ErrorCode . INVOICE_ITEM_ADJUSTMENT_AMOUNT_SHOULD_BE_POSITIVE . getCode ( ) ) {
return buildBadRequestResponse ( exception , uriInfo... | add missing special case in InvoiceApiExceptionMapper |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public interface CordovaInterface {
abstract public void startActivityForResult ( IPlugin command , Intent intent , int requestCode ) ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- abstr... | Adding getContext startActivity to CordovaInterface |
<nb> public class AudioFormat {
public static final int ENCODING_INVALID = NUMBER0 ;
COMMENT
public static final int ENCODING_DEFAULT = NUMBER1 ;
- COMMENT
+ COMMENT
public static final int ENCODING_PCM_16BIT = NUMBER2 ; SINGLE
- COMMENT
+ COMMENT
public static final int ENCODING_PCM_8BIT = NUMBER3 ; ... | Add some javadoc to AudioRecord plus updates based on code review comments |
<nb> public class CreateTaskWindowDialog extends DialogWrapper {
LOG . error ( STRING0 , e ) ;
}
catch ( IOException e ) {
- e . printStackTrace ( ) ;
+ LOG . error ( e ) ;
}
}
} | replaced print with logging |
<nb> public final class XcodeProvider implements TransitiveInfoProvider {
COMMENT
COMMENT
private void addTransitiveSets ( XcodeProvider dependencyish ) {
+ additionalSources . addTransitive ( dependencyish . additionalSources ) ;
inputsToXcodegen . addTransitive ( dependencyish . inputsToXcodegen ) ;
propa... | Add additional sources of test host to xctest targets |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public cla... | fixed concurrent modification while iterating |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAM... | Remove unused imports |
<nb> public class GenericsHighlightUtil {
final PsiExpression expression = expressions [ i ] ;
final PsiType parameterType = substitutor . substitute ( parameter . getType ( ) ) ;
final PsiType expressionType = substitutor . substitute ( expression . getType ( ) ) ;
- final HighlightInfo highlightInfo = checkRa... | add NotNull annotations |
<nb> public abstract class AbstractSessionManager extends AbstractLifeCycle implement
protected long _lastAccessed ;
protected boolean _invalid ;
protected boolean _doInvalidate ;
- protected long _maxIdleMs = _dftMaxIdleSecs * NUMBER0 ;
+ protected long _maxIdleMs = _dftMaxIdleSecs > NUMBER1 ? _dftMaxIdleSec... | Check session expiry on access |
<nb> import NAMESPACE ;
COMMENT
@ bugpattern (
name = STRING0 ,
+ altNames = STRING1 ,
summary = STRING2 ,
explanation =
STRING3 | Allow MoreThanOneScopeAnnotationOnClass as an alternate name to |
<nb> public class SyncEngine {
cancelSyncAccountTasks ( syncAccountId ) ;
}
- _remoteEventsScheduledExecutorService . shutdownNow ( ) ;
_executorService . shutdownNow ( ) ;
_localEventsScheduledExecutorService . shutdownNow ( ) ;
+ _remoteEventsScheduledExecutorService . shutdownNow ( ) ;
SyncClientUp... | sync engine does order matter |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix javadoc for Canonical |
<nb> public class RendererRegistry {
internalRenderers . put ( DEFAULT_RENDER , STRING0 ) ;
internalRenderers . put ( STRING1 , STRING1 + STRING2 ) ;
internalRenderers . put ( STRING3 , STRING3 + STRING2 ) ;
- internalRenderers . put ( STRING4 , STRING4 + STRING2 ) ;
internalRenderers . put ( STRING5 , STRING... | Remove the choise of Cycle map |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class MapperQueryParser extends QueryParser {
}
@ override protected Query getFieldQuery ( String field , String queryText ) throws ParseException {
- String indexedNameFi... | removed unused field |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT | Updated the ChannelGroup JavaDoc by removing b releaseExternalResources |
<nb> public interface EdgeDraft {
public void setColor ( String color ) ;
+ public Color getColor ( ) ;
+
public void setLabel ( String label ) ;
public void setLabelVisible ( boolean labelVisible ) ;
<nb> public interface NodeDraft {
public void setColor ( String color ) ;
+ public Color getC... | Add getColor in Node and Edge draft |
<nb> public class StringUtil extends StringUtilRt {
@ nullable
public static String nullize ( @ nullable final String s , boolean nullizeSpaces ) {
if ( nullizeSpaces ) {
- if ( isEmpty ( s ) ) return null ;
+ if ( isEmptyOrSpaces ( s ) ) return null ;
}
else {
- if ( isEmptyOrSpaces ( s ) ) return null... | fixed nullize method |
<nb> public class AudioStream extends RtpStream {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public AudioCodec getCodec ( ) {
+ return mCodec ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class AudioStream extends RtpStream {
}
COMMENT
+ COMMENT
+ COMMENT
+ C... | Add two getters to retrieve the current configuration from AudioStream |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public class ConnectorServices {
<nb> public class ConnectorServices {
public DefaultGradleConnector crea... | Ignore env vars in Tooling API |
<nb> public final class MenuItemImpl implements MenuItem {
}
if ( mIconResId != NO_ICON ) {
- return mMenu . getResources ( ) . getDrawable ( mIconResId ) ;
+ Drawable icon = mMenu . getResources ( ) . getDrawable ( mIconResId ) ;
+ mIconResId = NO_ICON ;
+ mIconDrawable = icon ;
+ return icon ;
}
... | Fix a bug where MenuItems would not return consistent results for |
<nb> public abstract class GradleRunner {
public abstract GradleRunner withClasspath ( List < URI > classpath ) ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public abstract boolean isDebug ( ) ;
-
- COMMENT
... | Remove functionality from public API to make it releasable |
<nb> public final class DateTimeUtils
COMMENT
public static Date getDateRelativeToNow ( TimeUnit timeUnit , long amount )
{
- return new Date ( new Date ( ) . getTime ( ) + timeUnit . toMillis ( amount ) ) ;
+ return new Date ( System . currentTimeMillis ( ) + timeUnit . toMillis ( amount ) ) ;
}
} | Replaced second Date instantiation with call to System currentTimeMillis |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
<nb> public class CommandExecutorImpl implements CommandExecutor {
return command . execute ( commandContext ) ;
}
- public void setProcessEngineConfiguration ( ProcessEngineConfiguration processEngineConfiguration ) {
- }
} | remove unused empty method |
<nb> public class NetworkRegistry
void playerLoggedIn ( EntityPlayerMP player , NetServerHandler netHandler , NetworkManager manager )
{
+ generateChannelRegistration ( player , netHandler , manager ) ;
for ( IConnectionHandler handler : connectionHandlers )
{
handler . playerLoggedIn ( ( Player ) player ... | Generate channel registration for client also do it before the login events so you can send packets |
<nb> abstract public class AbstractSyncRepeatTests < REMOTE_MODEL > extends DatabaseTest
}
private void saveAndTriggerRepeatListener ( Task task ) {
- task . putTransitory ( SyncFlags . ACTFM_SUPPRESS_SYNC , true ) ;
+ task . putTransitory ( SyncFlags . ACTFM_SUPPRESS_OUTSTANDING_ENTRIES , true ) ;
task . p... | Removed references to deleted sync flag in test projects |
<nb> public class ConnectivityService extends IConnectivityManager . Stub {
for ( RouteInfo r : routeDiff . added ) {
if ( isLinkDefault || ! r . isDefaultRoute ( ) ) {
addRoute ( newLp , r ) ;
+ } else {
+ SINGLE
+ SINGLE
+ String ifaceName = newLp . getInterfaceName ( ) ;
+ if ( TextUtils . isEmpty ( ... | Remove default routes for non default networks |
<nb>
package NAMESPACE ;
COMMENT
- Copyright ( c ) NUMBER0 JSON . org
+ Copyright ( c ) NUMBER1 JSON . org
Permission is hereby granted , free of charge , to any person obtaining a copy
of this software and associated documentation files ( the STRING0 ) , to deal
<nb> import NAMESPACE ;
COMMENT
CO... | updates file dates |
<nb> public class DirectDruidClient < T > implements QueryRunner < T >
}
) ;
+ SINGLE
+ SINGLE
if ( ! isBySegment ) {
retVal = Sequences . map (
retVal , | add comment about de serialing bySegment |
<nb> public class ExEditorKit extends DefaultEditorKit
doc . remove ( dot - delChars , delChars ) ;
}
- else
- {
- if ( doc . getLength ( ) == NUMBER0 )
- {
- target . postActionEvent ( ) ;
- }
- }
}
catch ( BadLocationException bl )
{ | Don t handle backspace on empty field |
<nb> public class ProxyFactoryConfig {
private String className ;
+ public ProxyFactoryConfig ( ) {
+ }
+
public ProxyFactoryConfig ( String className , String service ) {
this . className = className ;
this . service = service ;
}
+ public void setService ( String service ) {
+ this . service... | added methods back that are removed by mistake |
<nb> import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
@ targetapi ( Build . VERSION_CODES . LOLLIPOP )
<nb> public class MessagesFragment extends DisplayListFragment < Message , MessageHolder
}
return true ;
} else {
- if ( mes... | edit only last and own message |
<nb> public class ResourceServerConfigurerAdapter implements ResourceServerConfigurer
@ override
public void configure ( HttpSecurity http ) throws Exception {
+ http . authorizeRequests ( ) . anyRequest ( ) . authenticated ( ) ;
}
} | Provide default impl ResourceServerConfigurerAdapter configure http |
<nb> public class JavadocApiMethodGeneratorMojoTest extends AbstractGeneratorMojoTest
}
} ;
mojo . excludePackages = JavadocApiMethodGeneratorMojo . DEFAULT_EXCLUDE_PACKAGES ;
+ Substitution substitution = new Substitution ( STRING0 , STRING1 , STRING2 , STRING3 ) ;
+ mojo . substitutions = new Substitution [... | Added substitution for duplicate argument name key |
<nb> public class FileBasedIndexImpl extends FileBasedIndex {
myFlushingFuture = null ;
}
- myFileDocumentManager . saveAllDocuments ( ) ;
+ SINGLE
}
finally {
LOG . info ( STRING0 ) ; | fixed assertion on saveAllDocuments rev Eugene Juravlev |
<nb> public abstract class CameraDevice implements AutoCloseable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Clarify the documentation on the ImageReader usecase |
<nb> public final class LineageMaster extends MasterBase {
public synchronized void streamToJournalCheckpoint ( JournalOutputStream outputStream )
throws IOException {
mLineageStore . streamToJournalCheckpoint ( outputStream ) ;
+ outputStream . writeEntry ( mLineageIdGenerator . toJournalEntry ( ) ) ;
}
... | Added journaling for lineage id generator |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public final class AddToProjectAction implements Action { | Fixed unused import |
<nb> OUTER : do
Set < Integer > visitedChildren = new HashSet < Integer > ( ) ;
for ( String child : getZooKeeper ( true ) . getChildren ( getRoot ( ) + STRING0 + HA_SERVERS_CHILD , false ) )
{
- int id = idFromPath ( child ) ;
+ int id ;
+ try
+ {
+ SINGLE
+ SINGLE
+ id = idFromPath ( child ) ;
+... | Fixes a bug in refreshHaServers where it tried to include zk nodes which shouldn t have been included |
<nb> public class JavaCodeStyleManagerImpl extends JavaCodeStyleManager {
public static boolean isStringPsiLiteral ( PsiElement element ) {
if ( element instanceof PsiLiteralExpression ) {
final String text = element . getText ( ) ;
- return text . length ( ) > NUMBER0 && StringUtil . isQuotedString ( text ) ; ... | remove unnecessary condition |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
... | Make TV content rating names consistent |
<nb> public class XContentProvider extends XHook {
SINGLE
else if ( packageName . equals ( STRING0 ) )
listHook . add ( new XContentProvider ( PrivacyManager . cEMail , STRING1 ,
- STRING2 ) ) ;
+ STRING2 ) . optional ( ) ) ;
SINGLE
else if ( packageName . equals ( STRING3 ) ) | Make Gmail provider optional support info |
<nb> public class TemplateOperationFactory {
final Set < Map . Entry < String , String > > entries = bindings . entrySet ( ) ;
Map wrappedBindings = new HashMap ( entries . size ( ) ) ;
for ( Map . Entry < String , String > entry : entries ) {
+ if ( entry . getValue ( ) == null ) {
+ throw new IllegalArgumen... | Added some diagnostics to build init to track down problems locating the versions of various things Gradle build time |
<nb> implements ManagedService {
public void setSonosZoneGroups ( List < SonosZoneGroup > sonosZoneGroups ) {
this . sonosZoneGroups = sonosZoneGroups ;
- logger . debug ( STRING0 , sonosZoneGroups . toString ( ) ) ;
}
@ override | Remove redundant debugging line of code from Sonos binding |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FlagTapeEntryQueue implements ObjectQueue < FlagTapeEntry > {
public static synchronized FlagTapeE... | Use an in memory object queue for tape task |
<nb> public class OperatorOnBackpressureBufferTest {
@ test ( expected = IllegalArgumentException . class )
public void testFixBackpressureBufferZeroCapacity ( ) throws InterruptedException {
- Observable . empty ( ) . onBackpressureBuffer ( - NUMBER0 ) ;
+ Observable . empty ( ) . onBackpressureBuffer ( NUMB... | fix several typos |
<nb> public class ChangeSetExtent extends AbstractDelegateExtent {
@ override
public Entity createEntity ( Location location , BaseEntity state ) {
Entity entity = super . createEntity ( location , state ) ;
- if ( state != null ) {
+ if ( entity != null ) {
changeSet . add ( new EntityCreate ( location , s... | Fixed an issue where an entity could fail to spawn and this would end the edit |
<nb> public abstract class PartitionClientRequest extends ClientRequest {
final void process ( ) {
final ClientEndpoint endpoint = getEndpoint ( ) ;
final Operation op = prepareOperation ( ) ;
- op . setCallerUuid ( endpoint . getUuid ( ) ) ;
+ op . setCallerUuid ( endpoint . getPrincipal ( ) . getUuid ( ) ) ... | setting callerId of requests changed from endpoint s callerId to endpoint s principal s callerId |
<nb> public class ForcedResizableInfoActivity extends Activity implements OnTouchList
}
@ override
+ public void finish ( ) {
+ super . finish ( ) ;
+ overridePendingTransition ( NUMBER0 , R . anim . forced_resizable_exit ) ;
+ }
+
+ @ override
public void setTaskDescription ( ActivityManager . Task... | Fix transition for forced resizable exit |
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> class ObjectToArray implements ConversionExecutor {
}
public Object execute ( Object source ) throws ConversionFailedException {
- Object array = Array . newInstance ( targetArrayType . getType ( ) , NUMBER0 ) ;
- A... | fixed element type bug |
<nb> public class AllIcons {
public static final Icon Parameter = IconLoader . getIcon ( STRING0 ) ; SINGLE
public static final Icon PinToolWindow = IconLoader . getIcon ( STRING1 ) ; SINGLE
public static final Icon Plugin = IconLoader . getIcon ( STRING2 ) ; SINGLE
+ public static final Icon PluginJB = IconLoa... | add new plugins icons |
<nb> import NAMESPACE ;
public abstract class Atom {
+ public static final int TYPE_ftyp = getAtomTypeInteger ( STRING0 ) ;
public static final int TYPE_avc1 = getAtomTypeInteger ( STRING1 ) ;
public static final int TYPE_avc3 = getAtomTypeInteger ( STRING2 ) ;
public static final int TYPE_esds = getAtomT... | Add ftyp atom def |
<nb> public class OCacheRecord extends OSharedResourceAdaptive {
if ( cache . size ( ) < threshold )
return ;
+
+ SINGLE
+ cache . clear ( ) ;
OLogManager . instance ( ) . debug ( this , STRING0 , maxSize , threshold ) ;
maxSize = threshold ; | Now cache frees all the instances in case of low memory |
<nb> public class Token
public String toString ( )
{
- return super . toString ( ) + STRING0 + this . text + STRING1 + type + STRING2 ;
+ return super . toString ( ) + STRING3 + getDescription ( ) + STRING4 + this . text + STRING1 + type + STRING2 ;
}
SINGLE
<nb> public class CSTNode
public String... | Fixing some debug stuff |
<nb> public class RNNOptions implements Serializable {
COMMENT
public int numClasses = NUMBER0 ;
- public boolean lowercaseWordVectors = true ;
+ public boolean lowercaseWordVectors = false ;
public boolean useTensors = true ; | Don t lowercase word vectors by default |
<nb> public class InventoryGrid extends CoreWidget {
SINGLE
if ( numSlots < cells . size ( ) ) {
- for ( int i = cells . size ( ) - NUMBER0 ; i >= NUMBER1 ; -- i ) {
+ for ( int i = cells . size ( ) ; i > numSlots && i > NUMBER1 ; -- i ) {
cells . remove ( i ) ;
}
} else if ( numSlots > cells . size ( )... | only remove the proper number of cells when shrinking |
<nb> class ResourceCacheGenerator implements DataFetcherGenerator ,
@ override
public boolean startNext ( ) {
List < Key > sourceIds = helper . getCacheKeys ( ) ;
+ if ( sourceIds . isEmpty ( ) ) {
+ return false ;
+ }
List < Class < ? > > resourceClasses = helper . getRegisteredResourceClasses ( ) ;
wh... | Avoid IndexOutOfBoundsException in ResourceCacheGenerator |
<nb> public enum OGlobalConfiguration {
SERVER_LOG_DUMP_CLIENT_EXCEPTION_LEVEL ( STRING0 ,
STRING1 ,
- Level . class , Level . FINE ) ,
+ String . class , Level . FINE . getName ( ) ) ,
SERVER_LOG_DUMP_CLIENT_EXCEPTION_FULLSTACKTRACE ( STRING2 ,
STRING3 , Boolean . class , Boolean . FALSE , true ) , | changed the dump client exception log level configuration to store string |
<nb> public class HTTPLoggingPreparednessRuleTest
private File badDirectory ( ) throws Exception
{
- File f = new File ( STRING0 ) ;
+ File f = new File ( STRING1 ) ;
if ( f . exists ( ) || f . canWrite ( ) )
{ | Made the bad directory even more invalid |
<nb> public class PrestoS3FileSystem
{
checkNotNull ( uri , STRING0 ) ;
checkNotNull ( conf , STRING1 ) ;
+ super . initialize ( uri , conf ) ;
+ setConf ( conf ) ;
this . uri = URI . create ( uri . getScheme ( ) + STRING2 + uri . getAuthority ( ) ) ;
this . workingDirectory = new Path ( STRING3 ) . mak... | Save conf so that superclass methods have access to it via getConf |
<nb> public final class ClosureCheckModuleImports extends AbstractPostOrderCallback
static final DiagnosticType QUALIFIED_REFERENCE_TO_GOOG_MODULE =
DiagnosticType . error (
STRING0 ,
- STRING1
+ STRING2
+ STRING3
+ STRING4 ) ;
<nb> public class Compiler extends AbstractCompiler {
private static f... | Fix error message text that doesn t quote the argument correctly |
<nb> public interface HazelcastInstance {
COMMENT
IExecutorService getExecutorService ( String name ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
< T > T executeTransaction ( TransactionalTask < T > task ) throws TransactionException ... | Added javadoc for HazelcastInstance tx methods |
<nb> public class PythonSdkComboBox extends ComboboxWithBrowseButton {
private Project myProject ;
public PythonSdkComboBox ( ) {
- getComboBox ( ) . setRenderer ( new SdkListCellRenderer ( ) ) ;
+ getComboBox ( ) . setRenderer ( new SdkListCellRenderer ( getComboBox ( ) . getRenderer ( ) ) ) ;
addActionLis... | Fix Python SDK chooser combo for GTK L F |
<nb> public final class ParserRunner {
Node root = null ;
List < Comment > comments = ImmutableList . of ( ) ;
FeatureSet features = p . getFeatures ( ) ;
- if ( tree != null && ( ! es6ErrorReporter . hadError ( ) || config . preserveDetailedSourceInfo ) ) {
+ if ( tree != null && ( ! es6ErrorReporter . hadEr... | Fix one more spot where we were reading the wrong IDE mode flag |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class BaseTest < T extends ODatabase > {
}
}
- if ( storageType . equals ( STRING0 ) )
- new ODatabaseDocumentTx ( url ) . create ( ... | Revert Fixed issue with executing singular tests the all suite startup |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RecursiveDescriptorProcessorTest extends KotlinTestWithEnvironment
private static Class closestInterface ( Class < ? > aCla... | Test problem skip LazyEntity in search for closest interface |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CommandContext {
}
if ( exception != null ) {
- log . log ( Level . SEVERE , STRING0 , exception ) ;
+ Level loggingLevel = Level . SEVE... | Reduced logging level for ActivitiTaskAlreadyClaimedException from SEVERE to INFO |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SourceSatelliteWindow extends SatelliteWindow
Provider < FontSizeManager > pFSManager ,
Provider < SourceSatellitePresenter > pPresenter ,
P... | add desktop hooks to the source window |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fixed compilation error |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class StoragePathMacros {
- @ deprecated @ notnull public static final String ROOT_CONFIG = STRING0 ;
+ @ deprecated
+ @ notnull
+ public static final String ROOT_CONFIG = STRING0 ;
COMMENT
COMMENT
COMMENT
@ suppresswarnings ( STRING1 )
@ deprecat... | add deprecated notes |
<nb> public class CompilerOptions implements Serializable , Cloneable {
COMMENT
COMMENT
- COMMENT
COMMENT
private LanguageMode languageOut ; | Remove obsolete comment |
<nb> public class HaServerFunctionalTest
private static Object get ( URI property )
{
- ClientResponse response = Client . create ( ) . resource ( property ) . accept (
+ ClientResponse response = CLIENT ( property ) . accept (
MediaType . APPLICATION_JSON_TYPE ) . type ( MediaType . APPLICATION_JSON_TYPE )... | Ridding us of unnecessary Jersey client creation because they re |
<nb> public class ConfigurationBundle {
@ notnull
private Set < Dashboard > dashboards = Collections . emptySet ( ) ;
@ jsonproperty
- @ notnull
private Set < GrokPattern > grokPatterns = Collections . emptySet ( ) ;
public String getId ( ) { | Allow content packs to avoid grok patterns field |
<nb> public class AvailablePortFinder {
COMMENT
COMMENT
public int getNextAvailable ( ) {
- DeprecationLogger . nagUserWith ( this . getClass ( ) . getSimpleName ( ) + STRING0 ) ;
+ DeprecationLogger . nagUserOfDeprecated ( this . getClass ( ) . getSimpleName ( ) ) ;
lock . lock ( ) ;
try {
while ( true... | Tweaked deprecation message |
<nb> public class ForeignKeyColumnDefinition extends ColumnDefinition {
public void addPropertyCase ( MethodSpec . Builder methodBuilder ) {
checkNeedsReferences ( ) ;
for ( ForeignKeyReferenceDefinition reference : foreignKeyReferenceDefinitionList ) {
- methodBuilder . beginControlFlow ( STRING0 , reference .... | fix missing quotes in foreign key properties |
<nb> public class AsmMethod extends AsmResource {
}
private boolean isMethodNotAccessorOrAccessingDifferentField ( AsmMethod method ) {
- return ! method . isAccessor ( ) || ( accessedField != null && accessedField != method . getAccessedField ( ) ) ;
+ return ! method . isAccessor ( ) || ( accessedField != n... | Fixed some violations |
<nb> public final class ContactsContract {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static final String DISPLAY_NAME_SOURCE = STRING0 ;
<nb> public final class ContactsContract {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static final String PHONETIC_NAME_STYLE = STRING... | Fixing broken javadoc |
<nb> public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
if ( ! paused && ! cancelPrev ) {
boolean append = getResultCollection ( ) != null ;
if ( append ) {
- getResultCollection ( ) . addSearchResults ( apiResults , false , true ) ;
+ getResultCollection ( ) . addSearchResults (... | Added sort on fly for search |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
@ retention ( RetentionPolicy . SOURCE )
@ target ( ElementType . FIELD )
public @ interface Extra {
- String value ( ) ;
+ String value ( ) ;
} | added some javadoc on Extra |
<nb> public class ShadowSocketTagger {
public static final String REAL_CLASS_NAME = STRING0 ;
@ implementation
+ public final void tag ( Socket socket ) throws SocketException { }
+
+ @ implementation
public final void untag ( Socket socket ) throws SocketException { }
} | Implement SocketTagger tag |
<nb> public class CordovaChromeClient extends WebChromeClient {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
@ override
public boolean onJsAlert ( WebView view , String url , String message , final JsResult result ) {
<nb> public class CordovaChromeClient extends WebChromeClient {
COMMENT
COMMENT
COM... | Add documentation referencing other implementation |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
- @ deprecated
public interface Decorator extends BatchExtension , CheckProject {
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
- @ deprecated
public interface PostJob extends ... | Do not mark Decorator and PostJob as deprecated |
<nb> public class PythonConsoleView extends LanguageConsoleImpl implements Observable
private void showConsole ( @ notnull Runnable runnable ) {
PythonConsoleToolWindow toolWindow = PythonConsoleToolWindow . getInstance ( getProject ( ) ) ;
- if ( toolWindow != null && ! toolWindow . getToolWindow ( ) . isVisib... | Fix exception in test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
COMMENT
public class CompletionData {
private static final Logger LOG = Logger . getInstance ( STRING0 ) ;
... | cache the often created pattern |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
public class NodePrinter {
- private IndentPrinter out ;
+ protected final IndentPrinter out ;
public NodePrinter ( ) {
this ( new IndentPrinter ( new PrintWriter ( new OutputStreamWriter ( System . out ) ) ) ) ;
<nb> ... | Changed indent printer field access level from private to protected final easier sub classing |
<nb> public class NativeServices extends DefaultServiceRegistry implements ServiceReg
LOGGER . debug ( STRING0 ) ;
useNativePlatform = false ;
} catch ( NativeException ex ) {
- if ( ex . getCause ( ) instanceof UnsatisfiedLinkError && ex . getCause ( ) . getMessage ( ) . contains ( STRING1 ) ) {
+ if ( ex . ... | Slightly improve diagnostics on failure to initialize native platform |
<nb> public class ColorBleedEffect {
changing = new int [ rgb . length ] ;
ARGBColor color = new ARGBColor ( ) ;
for ( int i = NUMBER0 ; i < rgb . length ; i ++ ) {
- int pixel = rgb [ i ] ;
- color . argb = pixel ;
+ color . argb = rgb [ i ] ;
if ( color . alpha ( ) == NUMBER0 ) {
data [ i ] = TO_PROCE... | Avoid flush if blending doesn t need to be changed |
<nb> public class MaterialDialog extends DialogBase implements
@ override
public void onTextChanged ( CharSequence s , int start , int before , int count ) {
- if ( mBuilder . alwaysCallInputCallback )
- mBuilder . inputCallback . onInput ( MaterialDialog . this , s ) ;
+
final int length = s . toString (... | Modified priority of user s input callback |
<nb> public class ExternalDaemonConnector extends AbstractDaemonConnector < PersistentD
this ( userHomeDir , DaemonIdleTimeout . DEFAULT_IDLE_TIMEOUT , DEFAULT_CONNECT_TIMEOUT ) ;
}
+ ExternalDaemonConnector ( File userHomeDir , int idleTimeout ) {
+ this ( userHomeDir , idleTimeout , DEFAULT_CONNECT_TIMEOUT ... | allow specification of idleTimeout but use default connect timeout |
<nb> public class TcpFailureDetector extends ChannelInterceptorBase {
membership . removeMember ( m ) ;
super . memberDisappeared ( m ) ;
removeSuspects . remove ( m ) ;
- log . info ( STRING0 + m + STRING1 ) ;
+ if ( log . isInfoEnabled ( ) )
+ log . info ( STRING0 + m + STRING1 ) ;
} SINGLE
}
<nb>... | Add Missing isInfoEnabled checks |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT ... | Changing name to Wildfire |
<nb> import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ ignore
public class ProxyServerTest {
@ rule
public TestNa... | Skip ProxyServerTest for now |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ResourceServerConfigurationTests {
@ configuration
@ enableresourceserver
+ @ enableauthorizationserver
@ enablewebse... | Add EnableAuthorizationServer to tests that required them |
<nb> public class PropertiesTableModel extends ListTableModel < PropertyDiffRecord > {
@ nullable
@ override
public String getMaxStringValue ( ) {
- return STRING0 ;
+ return STRING1 ;
}
@ nullable | shorten svn property name column |
<nb> public class Account extends AbstractEntity {
public void setOption ( int option , boolean value ) {
if ( value ) {
- this . options = ( this . options | NUMBER0 < < option ) ;
+ this . options |= NUMBER0 < < option ;
} else {
- this . options = ( this . options & NUMBER1 < < option ) ;
+ this . op... | fixed broken bitsets |
<nb> public class MatchQueryBuilderTests extends AbstractQueryTestCase < MatchQueryBuil
e = expectThrows ( ParsingException . class , ( ) - > parseQuery ( shortJson ) ) ;
assertEquals ( STRING0 , e . getMessage ( ) ) ;
}
+
+ public void testParseFailsWithTermsArray ( ) throws Exception {
+ String json1 = ST... | TEST add test for match query parsing error when providing an array of terms |
<nb> public final class NodeUtil {
}
} else if ( param . isRegExp ( ) ) {
if ( STRING0 . equals ( method ) ) {
- SINGLE
+ SINGLE
return ! param . getNext ( ) . isString ( ) ;
} else if ( STRING_REGEXP_METHODS . contains ( method ) ) {
return false ; | Fixed a typo in a comment |
<nb> public class LocationManagerService extends ILocationManager . Stub {
}
SINGLE
- FlpHardwareProvider flpHardwareProvider = FlpHardwareProvider . getInstance ( mContext ) ;
+ SINGLE
+ SINGLE
+ FlpHardwareProvider flpHardwareProvider ;
if ( FlpHardwareProvider . isSupported ( ) ) {
+ flpHardwarePro... | Fix crash in Volantis because there is not FLP support |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.