diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class PythonPlanBinder { try { String tmpPath = FLINK_PYTHON_FILE_PATH + r . nextInt ( ) ; - prepareFiles ( tmpPath , Arrays . copyOfRange ( args , NUMBER0 , split == NUMBER0 ? NUMBER1 : split ) ) ; + prepareFiles ( tmpPath , Arrays . copyOfRange ( args , NUMBER0 , split == NUMBER0 ? args . length...
hotfix py Fix PythonPlanBinder not copying additional files
<nb> public class ScatterGatherBuilder < T extends RecordTemplate > _unmappedKeys = Collections . unmodifiableCollection ( unmappedKeys ) ; } - Collection < RequestInfo < T > > getRequestInfo ( ) + public Collection < RequestInfo < T > > getRequestInfo ( ) { return _requestInfos ; } - Collection < M...
Make ScatterGatherResult getRequestInfo and
<nb> public class HierarchyViewerActivityTest extends AAProcessorTestHelper { } @ test - public void activity_subclass_in_manifest_compiles ( ) { + public void hierarchy_viewer_activity_compiles ( ) { addManifestProcessorParameter ( HierarchyViewerActivityTest . class , STRING0 ) ; CompileResult result = ...
Rename methods in HierarchyViewerActivityTest
<nb> public class DefaultHttpClient implements HttpClient { } } + @ override public Promise < ReceivedResponse > post ( URI uri , Action < ? super RequestSpec > action ) { return request ( uri , Action . join ( new Post ( ) , action ) ) ; }
Added missing Ovveride
<nb> public class OsMoPositionLayer extends OsmandMapLayer implements ContextMenuLaye canvas . drawCircle ( x , y , r + ( float ) Math . ceil ( tb . getDensity ( ) ) , pointOuter ) ; canvas . drawCircle ( x , y , r - ( float ) Math . ceil ( tb . getDensity ( ) ) , pointInnerCircle ) ; paintTextIcon . setTextSize ...
Fix osmo position
<nb> public class VecStatsTest extends TestUtil { chunk . close ( i , fs ) ; } vecs [ NUMBER0 ] = vec . close ( fs ) ; + fs . blockForPending ( ) ; frame = new Frame ( Key . make ( ) , null , vecs ) ; SINGLE <nb> public class VecStatsTest extends TestUtil { assertEquals ( min , v . min ( ) , epsilon )...
Hopefully fix intermitten failing test
<nb> public class NavBarPanel extends OpaquePanel . List implements DataProvider , Popup nameAttributes = new SimpleTextAttributes ( Font . PLAIN , color ) ; } append ( name , nameAttributes ) ; + SINGLE + setIconOpaque ( false ) ; setIcon ( NavBarPanel . getIcon ( value , false ) ) ; setPaintFocusBorder ...
Fix artifact with icons in expanded navbar lists
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT @ instantiationstrategy ( InstantiationStrategy . PER_BATCH ) <nb> import NAMESPACE ; import NAMESPACE ; COMMENT ...
Add some javadoc
<nb> public class LibratoWriter extends BaseOutputWriter { } private void serialize ( Query query , OutputStream outputStream ) throws IOException { - System . out . println ( query ) ; - for ( Result r : query . getResults ( ) ) { - System . out . println ( r ) ; - } - JsonGenerator g = jsonFactory ....
Remove debugging output
<nb> public class OverviewFragment extends SherlockFragment implements configureView . setOnClickListener ( new OnClickListener ( ) { @ override public void onClick ( View v ) { + if ( ! Utils . hasAccessToX ( getActivity ( ) ) ) { + Utils . advertiseSubscription ( getActivity ( ) ) ; + return ; + } sta...
Restrict extension config to supporters
<nb> public class Query renderStack ( results , out ) ; } renderErrorLocation ( client . getQuery ( ) , results , out ) ; + out . println ( ) ; } private static void renderErrorLocation ( String query , QueryResults results , PrintStream out ) <nb> public class Query } ansi . reset ( ) ; - out ....
Always print a newline in the CLI after errors
<nb> public class LocalSearch implements SearchSpecification { COMMENT COMMENT COMMENT - and ( new SearchCondition ( SEARCHFIELD . FOLDER , ATTRIBUTE . EQUALS , name ) ) ; + mConditions = and ( new SearchCondition ( SEARCHFIELD . FOLDER , ATTRIBUTE . EQUALS , name ) ) ; } COMMENT
Fixed LocalSearch addAllowedFolder
<nb> public class HTMLCodec { startPos = - NUMBER0 ; } } - if ( startPos > - NUMBER0 && i - startPos > NUMBER1 ) { - sb . append ( str , startPos , i ) ; + if ( sb != null ) { + if ( startPos > - NUMBER0 && i - startPos > NUMBER1 ) { + sb . append ( str , startPos , i ) ; + } + return sb . toString ...
fix bug in HTMLCodec
<nb> public interface CamelContext extends SuspendableService , RuntimeConfiguration { COMMENT COMMENT COMMENT - public < T > T hasService ( Class < T > type ) ; + < T > T hasService ( Class < T > type ) ; COMMENT COMMENT
Fixed the CS error in camel core
<nb> public class PackageManagerService extends IPackageManager . Stub { + packageName + STRING0 + userId ) ; return false ; } - retCode = mInstaller . deleteCodeCacheFiles ( packageName , userId ) ; - if ( retCode < NUMBER0 ) { - Slog . w ( TAG , STRING1 - + packageName + STRING0 + userId ) ; - return ...
Clearing cache shouldn t include code cache
<nb> public class HelloSquiDBApplication extends Application { return new AndroidOpenHelper ( HelloSquiDBApplication . this , databaseName , delegate , version ) ; } } ) ; - TasksDatabase . getInstance ( ) . registerDataChangedNotifier ( new UriNotifier ( this , Task . TABLE ) { + TasksDatabase . getInstance ...
Fix a compile error in sample application
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + public class ClassDataItem extends Item < ClassDataItem > { private EncodedField [ ] staticFields ; private EncodedField [ ] instanceFields ; <nb> public class ClassDataItem extends Item < ClassDataItem > { pub...
When making a ClassDataItem from scratch sort the fields and methods
<nb> public class DefaultManagementNamingStrategy implements ManagementNamingStrategy buffer . append ( domainName ) . append ( STRING0 ) ; buffer . append ( KEY_CONTEXT + STRING1 ) . append ( getContextId ( context ) ) . append ( STRING2 ) ; buffer . append ( KEY_TYPE + STRING1 + TYPE_TRACER + STRING2 ) ; - bu...
Tracer mbean name in JMX has no need for hexcode
<nb> public class LoginRequest { @ required public String password ; @ required public boolean noStartpage ; + public String getDestination ( ) { + return destination ; + } + + public void setDestination ( String destination ) { + this . destination = destination ; + } + + public String getUsern...
Generating getters setters for now as play is unable to do it
<nb> public class DatePart implements Function { return c . get ( Calendar . MINUTE ) ; } else if ( STRING0 . equals ( part ) || STRING1 . equals ( part ) || STRING2 . equals ( part ) ) { return c . get ( Calendar . SECOND ) ; + } else if ( STRING3 . equals ( part ) || STRING4 . equals ( part ) || STRING5 . equ...
Added ability to extract MILLISECOND to datePart milliseconds ms S
<nb> public class ServerHelper public static NeoServerWithEmbeddedWebServer createServer ( ) throws IOException { - NeoServerWithEmbeddedWebServer server = ServerBuilder . server ( ) . withMaxJettyThreads ( NUMBER0 ) + NeoServerWithEmbeddedWebServer server = ServerBuilder . server ( ) . build ( ) ; serv...
revoked minimal thread config for the server
<nb> public class CustomerDaoImplTest { @ test public void getNonExistinCustomerById ( ) { - final int nonExistingId = NUMBER0 ; + final int nonExistingId = getNonExistingCustomerId ( ) ; assertNull ( impl . getCustomerById ( nonExistingId ) ) ; }
Removed magic number
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix failing tests
<nb> public class WelcomeScreenHelper { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - public boolean show ( ) { - return show ( DEFAULT_WELCOME_SCREEN_REQUEST ) ; - } - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - p...
Remove deprecated methods
<nb> public abstract class PathType { COMMENT COMMENT COMMENT + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE private static final Pattern WORKING_DIR_WITH_DRIVE = Pattern . compile ( STRING0 ) ;
Add a TODO
<nb> public class NettyHttpCompressTest extends BaseNettyTest { Map < String , Object > headers = new HashMap < String , Object > ( ) ; headers . put ( STRING0 , STRING1 ) ; headers . put ( STRING2 , STRING3 ) ; - String out = template . requestBodyAndHeaders ( STRING4 , data , + String out = template . reque...
Using the port property in NettyHttpCompressTest
<nb> public class StatisticsControllerImpl implements StatisticsController { DynamicController dynamicController = Lookup . getDefault ( ) . lookup ( DynamicController . class ) ; DynamicModel dynamicModel = dynamicController . getModel ( ) ; AttributeModel attributeModel = attributeController . getModel ( ) ; ...
Throw exception if graph is not dynamic when executing dynamic metric
<nb> public class SpanishTokenizer < T extends HasWord > extends AbstractTokenizer < T > { public static TokenizerFactory < CoreLabel > coreLabelFactory ( ) { return SpanishTokenizerFactory . newCoreLabelTokenizerFactory ( ) ; } + + public static TokenizerFactory < CoreLabel > factory ( ) { + return coreLab...
Add Spanish support
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class TestContextManager { SINGLE if ( declaringClass == null ) { - if ( logger . isInfoEnabled ( ) ) { - logger . info ( STRING0 + clazz + STRING1 ) ; + if ( logger . isDebugEnabled ( ) ) { + logger . debug ( STRING0 + cla...
Reduce log level to DEBUG when TELs isn t present
<nb> public class VcsLogDataHolder implements VcsLogRefresher , Disposable { @ override public void refreshCompletely ( ) { - refresh ( new Runnable ( ) { - @ override - public void run ( ) { - notifyAboutDataRefresh ( ) ; - } - } ) ; + loadAllLog ( ) ; } @ override
reload the whole log on Refresh action
<nb> final class DelayedMessageBuffer { } } + boolean isBuffered ( int opcode ) { + for ( HdmiCecMessage message : mBuffer ) { + if ( message . getOpcode ( ) == opcode ) { + return true ; + } + } + return false ; + } + void processAllMessages ( ) { SINGLE ArrayList < HdmiCecMessage > copie...
Do not send Active Source when TV wakes up by one touch play
<nb> public class AsyncContinuation implements AsyncContext , Continuation } COMMENT - COMMENT - COMMENT - COMMENT public boolean isSuspending ( ) { synchronized ( this ) <nb> public class AsyncHttpConnection extends AbstractHttpConnection implements Async _generator . returnBuffers ( ) ; } ...
simplified maxIdleTime logic
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ChangesViewManager implements ProjectComponent , JDOMExternali...
kill PeerFactory dependency
<nb> public class XMPPTCPConnection extends AbstractXMPPConnection { SINGLE smSessionId = null ; } - smEnabledSyncPoint . reportSuccess ( ) ; smWasEnabledAtLeastOnce = true ; + smEnabledSyncPoint . reportSuccess ( ) ; LOGGER . fine ( STRING0 ) ; break ; case Failed . ELEMENT :
Set smWasEnableAtLeastOnce before sync point
<nb> public class OLogManager { if ( iMessage != null ) { final Logger log = iRequester != null ? Logger . getLogger ( iRequester . getClass ( ) . getName ( ) ) : Logger . getLogger ( DEFAULT_LOG ) ; if ( log . isLoggable ( iLevel ) ) { - SINGLE - SINGLE - SINGLE final String msg = String . format ( iMess...
added sub exception in case of error in cfg
<nb> abstract class AbstractNioWorker implements Worker { } } - private void cleanUpWriteBuffer ( AbstractNioChannel channel ) { + protected void cleanUpWriteBuffer ( AbstractNioChannel channel ) { Exception cause = null ; boolean fireExceptionCaught = false ; <nb> public class NioDatagramWorker exten...
Fix broken UDP support
<nb> public class WebApplicationHeader extends Composite GlobalDisplay globalDisplay , ThemeResources themeResources , final Session session , - Provider < CodeSearch > pCodeSearch , - WebApplicationHeaderAddIns addIns ) + Provider < CodeSearch > pCodeSearch ) { commands_ = commands ; eventBus_ = even...
tweak header addins
<nb> public abstract class OTransactionRealAbstract extends OTransactionAbstract { final ORecordOperation rec = getRecordEntry ( oldRid ) ; if ( rec != null ) { - updatedRids . put ( newRid , oldRid ) ; + updatedRids . put ( newRid , oldRid . copy ( ) ) ; if ( ! rec . getRecord ( ) . getIdentity ( ) . equ...
fixed rid copy on indentity change
<nb> public class WindowManagerPermissionTests extends TestCase { } try { - mWm . addAppToken ( NUMBER0 , null , NUMBER0 , NUMBER0 , false , false ) ; + mWm . addAppToken ( NUMBER0 , null , NUMBER0 , NUMBER0 , NUMBER0 , false , false ) ; fail ( STRING0 + STRING1 ) ; } catch ( SecurityException e ) {
Fix test that uses new API
<nb> public class TerrainQuad extends Node implements Terrain { } COMMENT - + COMMENT + COMMENT + COMMENT + public void recalculateAllNormals ( ) { + affectedAreaBBox = new BoundingBox ( new Vector3f ( NUMBER0 , NUMBER0 , NUMBER0 ) , totalSize * NUMBER1 , Float . MAX_VALUE , totalSize * NUMBER1 ) ; ...
added recalculateAllNormals to TerrainQuad
<nb> public class PollingSourceTest { assertEquals ( STRING0 , pollingConfig . getProperty ( STRING1 ) ) ; source . setFull ( STRING2 ) ; - Thread . sleep ( NUMBER0 ) ; + Thread . sleep ( NUMBER1 ) ; assertFalse ( pollingConfig . containsKey ( STRING1 ) ) ; source . setFull ( STRING3 ) ; Thread . sleep ...
Add sleep time to give GitHub build another try
<nb> public class ViolationPersisterDecorator implements Decorator { } public void decorate ( Resource resource , DecoratorContext context ) { + if ( context . getViolations ( ) . isEmpty ( ) ) { + return ; + } SINGLE List < RuleFailureModel > pastViolations = pastViolationsLoader . getPastViolations ( ...
Don t do anything in ViolationPersisterDecorator if no violations for current resource
<nb> public class DBCollection implements IDBCollection { } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static String genIndexName ( final DBObject keys ) { + final StringBuilder sb = new StringBuilder ( ) ; + for ( String s : keys . keySet ( ) ) { + if ( sb . length ( ) > NUMBER0...
chore driver compat add com mongodb DBCollection genIndexName
<nb> public abstract class BaseUpdateCommandMessage < T extends BaseUpdateRequest > exte getCommandEncoder ( ) . encode ( writer , update . getFilter ( ) ) ; writer . writeName ( STRING0 ) ; writeUpdate ( writer , update ) ; - writer . writeBoolean ( STRING1 , update . isMulti ( ) ) ; - writer . writeBoolean ...
For update command only write multi or upsert field if the value is not the default
<nb> public class LogicalWindow implements HasWindowStateChangeHandlers , public void onWindowStateChange ( WindowStateChangeEvent event ) { WindowState newState = event . getNewState ( ) ; + if ( state_ == EXCLUSIVE && newState == MAXIMIZE ) + newState = NORMAL ; + if ( newState == state_ ) + newState = ...
restore window state change logic transition roundtrip to ensure success
<nb> public class HandleEqualsAndHashCode extends EclipseAnnotationHandler < EqualsAndH return ; } - generateMethods ( typeNode , errorNode , null , null , null , false , FieldAccess . GETTER , null ) ; + generateMethods ( typeNode , errorNode , null , null , null , false , FieldAccess . GETTER , new ArrayLis...
Fixing possible NPE
<nb> public class JsrBrowserDebugTool server . setHandler ( context ) ; ServerContainer container = WebSocketServerContainerInitializer . configureContext ( context ) ; - container . setDefaultMaxSessionIdleTimeout ( NUMBER0 ) ; container . addEndpoint ( JsrBrowserSocket . class ) ; LOG . info ( STRING0 ,...
Tweaking idle timeout
<nb> public class LocalRegionCache implements RegionCache { } } - private class EvictionEntry implements Comparable < EvictionEntry > { + static private class EvictionEntry implements Comparable < EvictionEntry > { final Object key ; final Value value ; <nb> public class LocalRegionCache implements Re...
made some inner classes static in the hibernate modules
<nb> import NAMESPACE ; COMMENT COMMENT public abstract class Wrapper implements GroovyObject { - @ deprecated - protected MetaClass delegatingMetaClass ; - protected final Class constrainedType ; public Wrapper ( final Class constrainedType ) {
remove deprecated field
<nb> public class LocalTransportThreadModelTest { } } - @ test ( timeout = NUMBER0 ) + @ test ( timeout = NUMBER1 ) public void testConcurrentMessageBufferAccess ( ) throws Throwable { EventLoop l = new LocalEventLoop ( NUMBER2 , new PrefixThreadFactory ( STRING0 ) ) ; EventExecutor e1 = new DefaultEven...
Make a CPU intensive test pass on a slow machine
<nb> public class ResolveVisitor extends ClassCodeExpressionTransformer { if ( ( type == Types . ASSIGNMENT_OPERATOR || type == Types . EQUAL ) && left instanceof ClassExpression ) { ClassExpression ce = ( ClassExpression ) left ; - addError ( STRING0 + ce . getType ( ) . getName ( ) + STRING1 , be . getLeftExp...
Now adds a little more explanation to the error if it appears to be a script
<nb> public class FileMenuFilter { } else { toShow . add ( R . id . action_rename_file ) ; } + + SINGLE + if ( mFile == null || downloading || uploading ) { + toHide . add ( R . id . action_move ) ; + + } else { + toShow . add ( R . id . action_move ) ; + } SINGLE if ( mFile == null || downl...
Modify FileMenuFilter class for showing move option when it is appropiate
<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 ; COMMENT <nb...
Using non deprecated SocketChannelEndpoint
<nb> public class ZooClient implements Watcher { sequenceNr = setup ( ) ; keeperState = KeeperState . SyncConnected ; + receiver . somethingIsWrong ( new Exception ( ) ) ; } else if ( path == null && event . getState ( ) == Watcher . Event . KeeperState . Disconnected ) {
re evaluates itself on SyncConnected
<nb> public class PresenceRouter extends BasicModule { SINGLE ChannelHandler route = routingTable . getRoute ( recipientJID ) ; if ( route != null ) { - route . process ( packet ) ; - SINGLE + Session session = sessionManager . getSession ( packet . getFrom ( ) ) ; + if ( session != null && session . getS...
Register directed presence before it is actually routed
<nb> public class ContributionListing { count ++ ; } } + for ( ExamplesContribution ec : base . getExampleContribs ( ) ) { + if ( hasUpdates ( ec ) ) { + count ++ ; + } + } return count ; }
Include Example packs into update count
<nb> public class ResourceCertificateSource implements CertificateSource { public ResourceCertificateSource ( int resourceId , Context context ) { mResourceId = resourceId ; - mContext = context . getApplicationContext ( ) ; + mContext = context ; } private void ensureInitialized ( ) {
Use provided context directly
<nb> COMMENT package NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import ...
Reverted changes to junit and mockito imports in the Observable class
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class ForwardingCheckedFuture < V , X extends Exception > COMMENT COMMENT @ beta - public abstract static class SimpleForwadingCheckedFuture < + public abstract static class Simpl...
Fix typo in SimpleForwa r dingCheckedFuture
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractAnnotationDescriptorResolveTest extends KotlinTest SimpleFunctionDescriptor anonymousFun = getAnonymousFunDe...
Fix AnnotationDescriptorResolver tests
<nb> public class ReaderPostDetailFragment extends Fragment } } + COMMENT + COMMENT + COMMENT + COMMENT private boolean isVisibleAndScrolledIntoView ( View view ) { if ( view != null && view . getVisibility ( ) == View . VISIBLE ) { Rect scrollBounds = new Rect ( ) ;
Added comment to isVisibleAndScrolledIntoView
<nb> import NAMESPACE ; COMMENT class SharedWebMetaDataBuilder { - static final List < String > welcomeFiles = Arrays . asList ( new String [ ] { STRING0 , STRING1 , STRING2 } ) ; + static final List < String > welcomeFiles = new ArrayList < String > ( ) ; static final List < MimeMappingMetaData > mimeMappi...
Fix welcome file configuration
<nb> public class DrawTask implements IDrawTask { @ override public void seek ( long mills ) { - reset ( ) ; mTimer . update ( mills ) ; + reset ( ) ; } @ override
Fix up a seeking problem
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class ParseSetupHandler extends Handler { public ParseSetupV3 guessSetup ( int version , ParseSetupV3 p ) { + if ( p . source_frames == null ) ...
Adds input parameter check to ParseSetup
<nb> public interface ResolutionStrategy { Set < ModuleIdentifier > getForcedModules ( ) ; COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT void cacheDynamicVersionsFor ( int value , String units ) ; COMMENT - COMMENT - COMMENT - COMMENT +...
Cleaned up javadoc on ResolutionStrategy
<nb> public class JobSchedulerService extends com . android . server . SystemService for ( int i = NUMBER0 ; i < jobs . size ( ) ; i ++ ) { JobStatus job = jobs . valueAt ( i ) ; for ( int controller = NUMBER0 ; controller < mControllers . size ( ) ; controller ++ ) { - mControllers . get ( i ) . deviceIdleMode...
Fix loop index
<nb> public class OTransactionOptimistic extends OTransactionRealAbstract { . instance ( ) . warn ( this , - STRING0 , + STRING1 , iRecord . getIdentity ( ) ) ; txRecord . record = iRecord ;
Changed message of multiple record instance in the same tx
<nb> public final class MimeUtils { add ( STRING0 , STRING1 ) ; add ( STRING0 , STRING2 ) ; add ( STRING3 , STRING4 ) ; + add ( STRING5 , STRING6 ) ; add ( STRING7 , STRING8 ) ; add ( STRING7 , STRING9 ) ; add ( STRING10 , STRING11 ) ;
Add mimetype for WebM video files
<nb> public class LookupImpl extends LightweightHint implements Lookup , Disposable { editor . getContentComponent ( ) ) ; - final HintHint hintHint = new HintHint ( editor , editorPoint ) . setHighlighterType ( true ) . setContentActive ( true ) ; + final HintHint hintHint = new HintHint ( editor , editorPoi...
remove non meaningful hint requirements
<nb> public class SmiliesSelectorBox extends JMenuBar this . selectorBox . setUI ( new SIPCommChatSelectorMenuUI ( ) ) ; + this . setOpaque ( false ) ; + this . selectorBox . setOpaque ( false ) ; this . setPreferredSize ( new Dimension ( BUTTON_WIDTH , BUTTON_HEIGHT ) ) ;
set the smilies selector box non opaque
<nb> public class ORecordLazySet implements Set < OIdentifiable > , ORecordLazyMultiValue } public < RET > RET setDirty ( ) { - return delegate . setDirty ( ) ; + return ( RET ) delegate . setDirty ( ) ; } public boolean setDatabase ( final ODatabaseRecord iDatabase ) {
Fixed compilation problem with javac
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + + @ target ( ElementType . FIELD ) + @ retention ( RetentionPolicy . SOURCE ) public @ interface Delegate { Class < ? > [ ] value ( ) default { } ; }
Added meta annotations
<nb> public class SatelliteApplication protected void flushPendingEvents ( ) { - satellite_ . flushPendingEvents ( PDFViewerApplication . NAME ) ; + satellite_ . flushPendingEvents ( name_ ) ; }
Fix satellite events
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class RequestHeaderRequestMatcher implements RequestMatcher { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public RequestHeaderRequestMatcher ( String expectedHeaderName , - String exepctedHeaderNam...
RequestHeaderRequestMatcher constructor argument name has typo
<nb> public class BatchReportReaderRule implements TestRule , BatchReportReader { @ override public List < BatchReport . Measure > readComponentMeasures ( int componentRef ) { - return measures . get ( componentRef ) ; + List < BatchReport . Measure > res = this . measures . get ( componentRef ) ; + if ( re...
BatchReportReaderRule readComponentMeasures should never return null
<nb> import NAMESPACE ; public class PyExceptionBreakpointProperties extends ExceptionBreakpointProperties < PyExceptionBreakpointProperties > { @ attribute ( STRING0 ) public boolean myNotifyAlways ; - @ attribute ( STRING1 ) + @ attribute ( STRING2 ) public boolean myNotifyOnlyOnFirst ; @ attribute ( ST...
Fixed property serialization
<nb> public enum OType { public static boolean isSimpleType ( final Class < ? > iType ) { if ( iType . isPrimitive ( ) || Number . class . isAssignableFrom ( iType ) || String . class . isAssignableFrom ( iType ) - || Boolean . class . isAssignableFrom ( iType ) || Date . class . isAssignableFrom ( iType ) ) ...
Fixed issue on field value byte and Object Database
<nb> public class GitUIUtil { desc += STRING0 + StringUtil . join ( messages , STRING1 ) ; } NotificationGroup group = important ? GitVcs . IMPORTANT_ERROR_NOTIFICATION : GitVcs . NOTIFICATION_GROUP_ID ; - group . createNotification ( title , desc , type , null ) . notify ( project ) ; + group . createNotific...
make notifications available for default project
<nb> public abstract class HelloWorldApp extends TestApp { StringBuilder builder = new StringBuilder ( ) ; for ( String plugin : getPluginList ( ) ) { if ( plugin . equals ( STRING0 ) || plugin . equals ( STRING1 ) || plugin . equals ( STRING2 ) ) { - System . out . println ( STRING3 + GUtil . toLowerCamelCase ...
remove debug output
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public abstract class ScaledTransitionHandler implements TransitionHandler {
Removed strange p
<nb> public class WebView extends AbsoluteLayout COMMENT COMMENT public boolean showFindDialog ( String text , boolean showIme ) { - mFindCallback = new FindActionModeCallback ( mContext ) ; - if ( startActionMode ( mFindCallback ) == null ) { + FindActionModeCallback callback = new FindActionModeCallback (...
Do not store the find callback until action mode starts
<nb> public class GoFile extends PsiFileBase { } public boolean hasCPathImport ( ) { - for ( GoImportSpec importSpec : getImports ( ) ) { - if ( importSpec . isCImport ( ) ) { - return true ; - } - } - return false ; + return getImportedPackagesMap ( ) . containsKey ( GoConstants . C_PATH ) ; } ...
Optimize hasCImport method
<nb> public class BluetoothControllerImpl implements BluetoothController { filter . addAction ( BluetoothAdapter . ACTION_CONNECTION_STATE_CHANGED ) ; filter . addAction ( BluetoothDevice . ACTION_BOND_STATE_CHANGED ) ; filter . addAction ( BluetoothDevice . ACTION_ALIAS_CHANGED ) ; - filter . addAction ( Bluet...
Exclude unnecessary intents in SystemUI
<nb> public class TachyonFileAppender extends FileAppender { mCurrentFileBackupIndex = NUMBER0 ; break ; } - System . out . println ( STRING0 + mid ) ; if ( new File ( prefix + STRING1 + mid + suffix ) . exists ( ) ) { if ( new File ( prefix + STRING1 + ( mid + NUMBER0 ) + suffix ) . exists ( ) ) { lo = m...
Remove debugging message
<nb> public class FileDataModel extends AbstractDataModel { newPrefs . set ( j , prefs . get ( i ) ) ; } } + ( ( FastByIDMap < PreferenceArray > ) data ) . put ( userID , newPrefs ) ; } } }
Fix in place update of FileDataModel where PreferenceArray data has a data point removed not being updated currently
<nb> public class JavadocPlugin extends Plugin { @ override public void beforeEmitPropertyDeclaration ( JavaFileWriter writer , PropertyGenerator propertyGenerator ) throws IOException { - writeJavadocFromElement ( pluginEnv , writer , propertyGenerator . getField ( ) ) ; + if ( propertyGenerator . getField (...
Fix a NPE in JavadocPlugin
<nb> public class DateTimeZoneBuilder { if ( out instanceof DataOutput ) { writeTo ( zoneID , ( DataOutput ) out ) ; } else { - writeTo ( zoneID , ( DataOutput ) new DataOutputStream ( out ) ) ; + DataOutputStream dout = new DataOutputStream ( out ) ; + writeTo ( zoneID , ( DataOutput ) dout ) ; + dout . ...
Fixing usage of DataOutputStream
<nb> public class IssueFilterDto { return this ; } - public Boolean isShared ( ) { + public boolean isShared ( ) { return shared ; } - public IssueFilterDto setShared ( @ nullable Boolean shared ) { + public IssueFilterDto setShared ( boolean shared ) { this . shared = shared ; return this ; }...
Fix quality flaw
<nb> public class ReplicaSetStatus { return primaries . isEmpty ( ) ? ServerDescription . getDefaultMaxDocumentSize ( ) : primaries . get ( NUMBER0 ) . getMaxDocumentSize ( ) ; } + @ override + public String toString ( ) { + return STRING0 + + cluster . getDescription ( ) . getAll ( ) + + STRING1 ; + ...
Override toString in ReplicaSetStatus
<nb> public class SessionParam extends AbstractParam { } if ( this . tokens . size ( ) == NUMBER0 ) { SINGLE + this . tokens . add ( STRING0 ) ; this . tokens . add ( STRING1 ) ; + this . tokens . add ( STRING2 ) ; + this . tokens . add ( STRING3 ) ; + this . tokens . add ( STRING4 ) ; this . tokens ....
Added more default session tokens
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public class StaticImportVisitor extends ClassCodeExpressionTransformer { private ClassNode currentClass ;
remove javadoc warning
<nb> public class AnonymousBeanDefinitionParser implements BeanDefinitionParser { static final String DEF_KEY = STRING0 ; static final String ATT_USERNAME = STRING1 ; - static final String DEF_USERNAME = STRING2 ; + static final String DEF_USERNAME = STRING3 ; static final String ATT_GRANTED_AUTHORITY = S...
Changed default anonymous username to match that in the schema docs
<nb> public abstract class AbstractFramedStreamSourceChannel < C extends AbstractFramed } } } finally { - framedChannel . notifyFrameReadComplete ( this ) ; - + if ( pendingFrameData . isEmpty ( ) ) { + framedChannel . notifyFrameReadComplete ( this ) ; + } } } }
Don t notify frame read complete till all pending data has been read
<nb> public class PlaceGeoResourcesTest extends TwitterTestBase { assertNotNull ( TwitterObjectFactory . getRawJSON ( place ) ) ; assertEquals ( place , TwitterObjectFactory . createPlace ( TwitterObjectFactory . getRawJSON ( place ) ) ) ; assertEquals ( STRING0 , place . getFullName ( ) ) ; - assertEquals ( ST...
twitter now returns USA not US
<nb> public class KryoSerializer implements Closeable { private final List < Class > defaultRegistrations ; private final boolean registerRequired ; - private final Map < Integer , TypeRegistration > registrations ; private final int maxOutputSize ; COMMENT <nb> public class KryoSerializer implements Cl...
Remove unused field in KryoSerializer
<nb> public class DownloadService extends Service { cancelNotificationUpdater ( ) ; unregisterReceiver ( cancelDownloadReceiver ) ; - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - if ( ! newMediaFiles . isEmpty ( ) ) { - Log . d ( TAG , STRING0 ) ; - DBTasks . autodownloadUndownloadedItems ( getApp...
Remove selective downloading of new things and just let auto download do it s thing
<nb> public class AnnotationParser List < DiscoverableAnnotationHandler > handlers = _annotationHandlers . get ( annotationName ) ; if ( handlers == null ) return Collections . emptyList ( ) ; - return new ArrayList < DiscoverableAnnotationHandler > ( ) ; + return new ArrayList < DiscoverableAnnotationHandler...
The method AnnotationParser getAnnotationHandlers String always returns a empty collection
<nb> public class BottomBar extends FrameLayout implements View . OnClickListener , View private boolean mIsDarkTheme ; private boolean mIgnoreNightMode ; - private int mCustomActiveTabColor = - NUMBER0 ; + private int mCustomActiveTabColor ; private boolean mDrawBehindNavBar = true ; private boolean mU...
Fixed an issue with the custom active color
<nb> public class IndexGeneratorJob implements Jobby ProgressIndicator progressIndicator ) throws IOException { - return HadoopDruidIndexerConfig . INDEX_MAKER . mergeQueryableIndex ( + return HadoopDruidIndexerConfig . INDEX_MERGER . mergeQueryableIndex ( indexes , aggs , file , config . getIndexSpec ( ) ,...
Fix reference to INDEX_MAKER in IndexGeneratorJob
<nb> public class DatabaseTransferConsumer implements IDataTransferConsumer < DatabaseC monitor . subTask ( STRING0 + containerMapping . getTargetName ( ) ) ; StringBuilder sql = new StringBuilder ( NUMBER0 ) ; DBSObjectContainer schema = settings . getContainer ( ) ; + if ( schema == null ) { + throw new DBE...
Data transfer container check