diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class SMTestProxy extends AbstractTestProxy { } public List < ? extends SMTestProxy > getChildren ( ) { - ApplicationManager . getApplication ( ) . assertIsDispatchThread ( ) ; + SINGLE return myChildren != null ? myChildren : Collections . < SMTestProxy > emptyList ( ) ; }
reverting EDT assertion for now CompositePrintable calls SMTestProxy getExceptionMark in a pooled thread
<nb> public class ProjectGenerator { Path hashCodeFilePath = headerSymlinkTreeRoot . resolve ( STRING0 ) ; Optional < String > currentHashCode = projectFilesystem . readFileIfItExists ( hashCodeFilePath ) ; String newHashCode = getHeaderSymlinkTreeHashCode ( resolvedContents ) . toString ( ) ; - if ( ! Optional...
Add logging to Xcode symlink tree generation
<nb> public class SearchResults implements DocumentListener { @ override public void run ( ) { Project project = getProject ( ) ; - if ( project != null && project . isDisposed ( ) ) return ; + if ( myDisposed || project != null && project . isDisposed ( ) ) return ; int [ ] starts = new int [ NUMBER0 ] ; ...
check myDisposed in read action too
<nb> abstract public class GoLiveTemplateContextType extends TemplateContextType { @ override protected boolean isInContext ( @ notnull PsiElement element ) { - if ( element instanceof PsiComment ) { + if ( element instanceof PsiComment || element instanceof GoPackageClause ) { return false ; } return e...
Disable file level live templates in package clauses
<nb> - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix license headers
<nb> public class AsyncIdleConnectionMonitorThread extends Thread { public AsyncIdleConnectionMonitorThread ( PoolingNHttpClientConnectionManager connMgr ) { super ( ) ; + super . setDaemon ( true ) ; this . connMgr = connMgr ; } <nb> public class SyncIdleConnectionMonitorThread extends Thread { pub...
Set background threads to daemon mode meaning they no longer prevent JVM shutdown
<nb> public class AvailablePluginsManagerMain extends PluginManagerMain { } } ) ; myActionsPanel . add ( httpProxySettingsButton , BorderLayout . WEST ) ; + myPanelDescription . setVisible ( false ) ; } @ override
hide description on custom plugin panel
<nb> public class Table extends WidgetGroup { } COMMENT - static class DebugRect extends Rectangle { + static public class DebugRect extends Rectangle { static Pool < DebugRect > pool = Pools . get ( DebugRect . class ) ; Color color ; }
Make DebugRect public
<nb> public class JetRefactoringUtil { } if ( expressions . size ( ) == NUMBER0 ) throw new IntroduceRefactoringException ( JetRefactoringBundle . message ( STRING0 ) ) ; + if ( expressions . size ( ) == NUMBER1 ) { + callback . run ( expressions . get ( NUMBER0 ) ) ; + return ; + } + final DefaultLis...
Don t show selection popup when there is only one expression candidate
<nb> public class CommandLineClient extends Client { out . println ( ) ; out . close ( ) ; - System . exit ( NUMBER0 ) ; + System . exit ( NUMBER1 ) ; return - NUMBER0 ; SINGLE }
Revert Use non zero exit code on error
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TestStandardContextResources extends TomcatBaseTest { SINGLE config1 . setDefaultWebXml ( STRING0 ) ; listener1 [ NUM...
Fix bug in unit test due to some Lifecycle refactoring
<nb> public class MainActivity extends ActionBarActivity implements ActionMode . Callba ultimateRecyclerView . setAdapter ( simpleRecyclerViewAdapter ) ; ultimateRecyclerView . enableLoadmore ( ) ; - ultimateRecyclerView . setParallaxHeader ( getLayoutInflater ( ) . inflate ( R . layout . parallax_recyclerview_...
update demo for new interface
<nb> class IInputMethodSessionWrapper extends IInputMethodSession . Stub } public void executeMessage ( Message msg ) { + if ( mInputMethodSession == null ) return ; + switch ( msg . what ) { case DO_FINISH_INPUT : mInputMethodSession . finishInput ( ) ;
Fix NPE in IInputMethodSessionWrapper executeMessage
<nb> public final class Caches { while ( true ) { CacheItem item = ( CacheItem ) queue . remove ( ) ; items . remove ( item . getRecid ( ) , item ) ; - if ( Thread . interrupted ( ) ) return ; } } catch ( InterruptedException e ) { SINGLE
remove unnecessary interrupt check
<nb> import NAMESPACE ; COMMENT @ threadsafe public class ForwardingControllerListener < INFO > implements ControllerListener < INFO > { - private static final String TAG = STRING0 ; + SINGLE + private static final String TAG = STRING1 ; private final List < ControllerListener < ? super INFO > > mListen...
Fix drawee lint
<nb> public class GrailsAwareInjectionOperation extends CompilationUnit . PrimaryClassN url = grailsResourceLoader . loadGroovySource ( source . getName ( ) ) ; } - if ( url != null && classInjector . shouldInject ( url ) ) { + if ( classInjector . shouldInject ( url ) ) { try { classInjector . performInj...
fixed failing tests
<nb> public final class SpanishVerbStripper implements Serializable { COMMENT COMMENT COMMENT - private HashMap < String , String > setupDictionary ( String dictPath ) { + private static HashMap < String , String > setupDictionary ( String dictPath ) { HashMap < String , String > dictionary = new HashMap < ...
Fix my little bug
<nb> public class NotificationContentView extends FrameLayout { } } else { if ( noExpandedChild || ( viewHeight <= mContractedChild . getHeight ( ) - && ( ! mIsChildInGroup + && ( ! mIsChildInGroup || isGroupExpanded ( ) || ! mContainingNotification . isExpanded ( true COMMENT ) ) ) ) { return VISIBLE_TYP...
Fixed a bug where the content wasn t transforming in a group
<nb> import NAMESPACE ; public ParseURLConnectionHttpClient ( int socketOperationTimeout , SSLSessionCache sslSessionCache ) { this . socketOperationTimeout = socketOperationTimeout ; - - HttpsURLConnection . setDefaultSSLSocketFactory ( SSLCertificateSocketFactory . getDefault ( - socketOperationTimeout , ...
Don t override default SSL Socket Factory
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class CachedList < CO extends CachedModel > extends CachedModel { protected Class < ? extends CachedModel > clazz ; - protected List < CO > lis...
Changed internal cache list class to ArrayList since it s basically the only list class Android supports
<nb> public class IconDrawable extends Drawable { paint . setTextAlign ( Paint . Align . CENTER ) ; paint . setUnderlineText ( false ) ; paint . setColor ( Color . BLACK ) ; - configurePaint ( paint ) ; - } - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - protected void configurePaint ( Pai...
Added antialiasing to the paint of IconDrawable removed configurePaint hook
<nb> public class DeadAgentReaper extends RateLimitedService < String > { @ override void processItem ( final String agent ) { - log . info ( STRING0 , agent ) ; try { final HostStatus hostStatus = masterModel . getHostStatus ( agent ) ; if ( hostStatus == null || hostStatus . getStatus ( ) != HostStatus ...
remove misleading log line in DeadAgentReaper
<nb> public class CrashTest { Process p = b . start ( ) ; p . waitFor ( ) ; String out = outStreamToString ( p . getInputStream ( ) ) ; - System . err . println ( outStreamToString ( p . getErrorStream ( ) ) ) ; + System . err . print ( outStreamToString ( p . getErrorStream ( ) ) ) ; assertTrue ( out , out...
Do not print empty lines
<nb> public class QueryManagerConfig private int queryManagerExecutorPoolSize = NUMBER0 ; - private int remoteTaskMaxConsecutiveErrorCount = Integer . MAX_VALUE ; - private Duration remoteTaskMinErrorDuration = new Duration ( NUMBER1 , TimeUnit . MINUTES ) ; + private int remoteTaskMaxConsecutiveErrorCount ...
Fix task error detection thresholds to work properly
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; public class BlockBuilder { <nb> public class BlockBuilder public UncompressedBlock build ( ) { - checkState ( ! isEmpty ( ) , STRING0 ) ; - return new UncompressedBlock ( positionCount , tupleIn...
Remove restriction on empty blocks
<nb> public interface ProxettaNaming { String INVOKE_PROXY_CLASS_NAME_SUFFIX = STRING0 ; COMMENT + COMMENT + COMMENT + String WRAPPER_CLASS_NAME_SUFFIX = STRING1 ; + + COMMENT COMMENT COMMENT String METHOD_PREFIX = STRING2 ;
added wrapper suffix
<nb> public class GenericUDFBridge extends GenericUDF implements Serializable { udf = ( UDF ) Class . forName ( udfClassName , true , JavaUtils . getClassLoader ( ) ) . newInstance ( ) ; } catch ( Exception e ) { throw new UDFArgumentException ( - STRING0 + udfClassName - + STRING1 ) ; + STRING2 + udfClassN...
GenericUDFBridge should log exception when it is unable to instantiate UDF object Jason Dere via Ashutosh Chauhan
<nb> public abstract class BaseSourceProcessor implements SourceProcessor { } for ( String fileName : fileNames ) { + if ( ! fileName . startsWith ( STRING0 ) ) { + break ; + } + File file = new File ( basedir + fileName ) ; String content = fileUtil . read ( file ) ;
SourceFormatter If there are no java files in portal compat shared it can incorrectly retrieve files from different branches
<nb> class ColumnFamilyStoreMBeanIterator implements Iterator < Map . Entry < String , Colum return tableCmp ; SINGLE - String q = e1 . getValue ( ) . getColumnFamilyName ( ) ; - String h = e2 . getValue ( ) . getColumnFamilyName ( ) ; String e1CF [ ] = e1 . getValue ( ) . getColumnFamilyName ( ) . split ( ...
remove dead code unused assignments
<nb> public class ConnectionsPresenter extends BasePresenter public void onExploreConnection ( ExploreConnectionEvent event ) { exploreConnection ( event . getConnection ( ) ) ; - display_ . ensureHeight ( EnsureHeightEvent . MAXIMIZED ) ; + SINGLE } } ) ; <nb> public class ConnectionsPresenter extend...
don t maximize connection explorer
<nb> final class ActivityStack { if ( DEBUG_SWITCH || DEBUG_CONFIGURATION ) Slog . v ( TAG_CONFIGURATION , STRING0 + r ) ; - SINGLE - SINGLE + SINGLE + SINGLE final Configuration newConfig = mService . mConfiguration ; final Configuration taskConfig = r . task . mOverrideConfig ; - if ( r . configur...
Always send configuration changes to activity
<nb> public abstract class AbstractByteBufTest { for ( int i = NUMBER0 ; i < buffer . capacity ( ) ; i ++ ) { buffer . writeByte ( ( byte ) i ) ; } - ByteBuf copy = copiedBuffer ( buffer ) ; + ByteBuf copy = freeLater ( copiedBuffer ( buffer ) ) ; SINGLE buffer . setIndex ( CAPACITY / NUMBER1 - NUMBER2 ...
Fix another memory leak in AbstractByteBufTest
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed useless import
<nb> public class PGraphicsFX2D extends PGraphics { } + COMMENT + @ override + public Object getNative ( ) { + return context ; + } + + SINGLE SINGLE <nb> public class PGraphicsJava2D extends PGraphics { } + COMMENT + @ override + public Object getNative ( ) { + return g2 ; +...
add useful getNative methods for PGraphics fellers
<nb> abstract class AbstractFileSystem extends org . apache . hadoop . fs . FileSystem { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT @ override - public FSDataInputStream open ( Path path , int bufferSize ) throws IOException { - LOG . info ( STRING0 , path , buff...
Revert unnecessary changes
<nb> import NAMESPACE ; public class SpringSecurityMessageSourceTests extends TestCase { SINGLE - public void testOperation ( ) { + public void testOperation ( ) { + fail ( STRING0 ) ; SpringSecurityMessageSource msgs = new SpringSecurityMessageSource ( ) ; assertEquals ( STRING1 , msgs . getMessage ( S...
Deliberately fail test to test bamboo s reaction
<nb> class ReaderPostRenderer { ReaderHtmlUtils . HtmlScannerListener imageListener = new ReaderHtmlUtils . HtmlScannerListener ( ) { @ override public void onTagFound ( String imageTag , String imageUrl , int start , int end ) { - replaceImageTag ( imageTag , imageUrl ) ; + if ( ! imageUrl . contains ( STRIN...
Skip wp com emoji when replacing images for reader detail rendering
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT COMMENT @ suppresswarnings ( STRING0 ) public class AnnotationAttributes extends LinkedHashMap < String , Object > {
Remove obsolete references to AliasFor in Javadoc for AnnotationAttributes
<nb> public class RunTestsViaEcj extends AbstractRunTests { return false ; } - @ suppresswarnings ( STRING0 ) SINGLE + @ suppresswarnings ( STRING1 ) SINGLE public boolean ignoreAllErrors ( ) { return false ; }
trivial removed possible warning in eclipse
<nb> public @ interface JsonSerialize COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Further improve JsonSerialize
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Add some javadoc to explain wtf this is doing
<nb> public final class CookieManager { COMMENT COMMENT public synchronized void setAcceptCookie ( boolean accept ) { + if ( useChromiumHttpStack ( ) ) { + nativeSetAcceptCookie ( accept ) ; + return ; + } + mAcceptCookie = accept ; } <nb> public final class CookieManager { COMMENT COMMENT ...
Hook up CookieManager acceptCookie and setAcceptCookie for the Chromium HTTP stack
<nb> public class WifiStressTest extends ConnectivityManagerTestBase { result . putInt ( STRING0 , ssidAppearInScanResultsCount ) ; getInstrumentation ( ) . sendStatus ( Activity . RESULT_FIRST_USER , result ) ; if ( i == mScanIterations + NUMBER0 ) { - writeOutput ( String . format ( STRING1 , i , mScanIterati...
Fix one off error in reporting
<nb> public class GridViewActivity extends Activity mMainTextView . setText ( R . string . pull_to_refresh_refreshing_label ) ; mProgressTextView . setVisibility ( View . GONE ) ; } + + @ override + public void onReleaseToRefresh ( ) { + mMainTextView . setText ( R . string . pull_to_refresh_release_label...
Fix GridView stock sample
<nb> public class ClsParsingUtil { final PsiAnnotation psiAnnotation = ( PsiAnnotation ) element ; final PsiJavaCodeReferenceElement referenceElement = psiAnnotation . getNameReferenceElement ( ) ; assert referenceElement != null : psiAnnotation ; - final String canonicalText = referenceElement . getCanonicalTe...
avoid resolve during stub building
<nb> public class DocumentArchive implements Closeable { COMMENT COMMENT public Cursor queryChildDocuments ( String documentId , @ nullable String [ ] projection , - @ nullable String sortOrder ) { + @ nullable String sortOrder ) throws FileNotFoundException { final ParsedDocumentId parsedParentId = ParsedD...
Throw FileNotFoundException in queryChildDocuments for archives
<nb> public class FacadeRenderHelper { rotated [ NUMBER0 ] [ NUMBER1 ] - zOffsets [ side . ordinal ( ) ] ) ; } - private static void setRenderBoundsAlt ( RenderBlocks renderblocks , float [ ] [ ] rotated , ForgeDirection side ) { - renderblocks . setRenderBounds ( - rotated [ NUMBER2 ] [ NUMBER2 ] , - rot...
Remove some dead code
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ProxyActivity extends Activity { @ suppresslint ( STRING0 ) protected void launchTargetActivity ( final String className ) { Log . d ( TAG , STRING1 + className ) ; - final String dexOutputPath = ...
Shared storage cannot protect your application from code injection attacks
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AddQuickPressShortcut extends ListActivity { WordPress . wpDB . addQuickPressShortcut ( accountIDs [ position ] , quickPressShortcutName . getText ( ) . toString...
Add latest blog ID if user added their account through the QuickPress shortcut
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> class PooledConnectionProvider implements ConnectionProvider { return null ; } else { ScheduledExecutorService newTimer = Executors . newSingleThreadScheduledExecutor ( ) ; - newTimer . scheduleAtFixedRate ( maintenanceTask , NUMBER0 , ...
Applying connection pool maintenance task initial delay
<nb> public class CommittedChangesCache { } private void refreshCacheAsync ( final ChangesCacheFile cache , final Runnable postRunnable ) { + try { + if ( cache . isEmpty ( ) ) { + return ; + } + } + catch ( IOException e ) { + LOG . error ( e ) ; + return ; + } if ( ApplicationManager . getAp...
don t autorefresh empty caches
<nb> public class Json { if ( mapper == null ) { mapper = create ( ) ; } - - ServiceLoader < Module > loader = ServiceLoader . load ( Module . class ) ; - Iterator < Module > itr = loader . iterator ( ) ; - while ( itr . hasNext ( ) ) { - Module ext = itr . next ( ) ; - if ( ext == null ) - LOGGER ....
removed aggressive loading of jackson modules
<nb> public abstract class OServerCommandAuthenticatedServerAbstract extends OServerC } protected boolean checkGuestAccess ( ) { - return server . isAllowed ( OServerConfiguration . SRV_ROOT_GUEST , resource ) ; + return server . isAllowed ( OServerConfiguration . GUEST_USER , resource ) ; } protected v...
Fixed issue after last merging of PR
<nb> import NAMESPACE ; COMMENT COMMENT public class ClazzInfo implements Serializable { - private static final long serialVersionUID = NUMBER0 ; + private static final long serialVersionUID = NUMBER1 ; private int modifiers ; private String name ;
Bump serialVersionUID to trigger recompilation for those using
<nb> public abstract class AbstractSimpleTranslogTests { assertThat ( snapshot . estimatedTotalOperations ( ) , equalTo ( NUMBER0 ) ) ; snapshot . release ( ) ; - translog . add ( new Translog . DeleteByQuery ( new byte [ ] { NUMBER1 } , null , null ) ) ; + translog . add ( new Translog . DeleteByQuery ( new ...
Fix non varargs call of varargs method with inexact argument type for last parameter exception warning
<nb> import NAMESPACE ; import NAMESPACE ; @ runwith ( Cucumber . class ) - @ cucumberoptions ( glue = { STRING0 , STRING1 } ) + @ cucumberoptions ( glue = { STRING0 , STRING2 } ) public class RunCukesTest { }
Updated RunCukesTest in the example spring txn with new hook location
<nb> public class AnimatedTiledMapTile implements TiledMapTile { this . animationIntervals = intervals ; loopduration = NUMBER0 ; - for ( int i = NUMBER0 ; i < intervals . length : i ++ ) { + for ( int i = NUMBER0 ; i < intervals . length ; i ++ ) { loopduration += intervals [ i ] ; }
Fix bad syntax
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT public class TestBufferedBlockOutStream extends BufferedBlockOutStream { SINGLE <nb> public class TestBufferedBlockOutStream extends BufferedBlockOutStream { mCanceled = false ; } + COMMENT + COMMEN...
Add javadocs for TestBufferedOutStream
<nb> public class DerbyDatabase extends AbstractJdbcDatabase { public DerbyDatabase ( ) { super . setCurrentDateTimeFunction ( STRING0 ) ; super . sequenceNextValueFunction = STRING1 ; - super . sequenceCurrentValueFunction = STRING2 ; + super . sequenceCurrentValueFunction = STRING3 ; determineDriverVersio...
Remove case sensitive from column name
<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 ; im...
remove stale imports
<nb> public class MultiProcessor extends DefaultProcessor implements Processor { ProjectController pc = Lookup . getDefault ( ) . lookup ( ProjectController . class ) ; for ( ContainerUnloader container : containers ) { - workspace = pc . newWorkspace ( pc . getCurrentProject ( ) ) ; - pc . openWorkspace ( wo...
Fix workspace creation issue with multiple processor
<nb> public class LastLineHashes implements BatchComponent { } private String loadHashesFromWs ( String fileKey ) { - TimeProfiler profiler = new TimeProfiler ( LOG ) . start ( STRING0 + fileKey ) . setLevelToDebug ( ) ; + TimeProfiler profiler = new TimeProfiler ( LOG ) . setLevelToDebug ( ) . start ( STRING...
Fix log level
<nb> public class AsyncRecursiveWalker else { callback . process ( entry . getFileStatus ( ) , entry . getBlockLocations ( ) ) ; } - if ( future . isCancelled ( ) ) { + if ( future . isDone ( ) ) { return ; } }
Fix future exception check
<nb> public class MagicLinkSignInActivity extends SignInActivity implements WPComMagi } @ override - public void onMagicLinkRequestSuccess ( ) { + public void onMagicLinkRequestSuccess ( String email ) { + mEmail = email ; + FragmentManager fragmentManager = getFragmentManager ( ) ; FragmentTransactio...
Sending back email on callback
<nb> public class TestComboMoves extends SimpleApplication implements ActionListener @ override public void simpleInitApp ( ) { - fpsText . setCullHint ( CullHint . Always ) ; - statsView . setCullHint ( CullHint . Always ) ; + setDisplayFps ( false ) ; + setDisplayStatView ( false ) ; SINGLE Bitmap...
Use the display flag setters and removed the
<nb> public class SimplePerRealmReloadingClassLoader extends URLClassLoader { public Object doInRealm ( String callableCalledInClassLoaderRealm ) throws Exception { - Object instance = this . loadClass ( callableCalledInClassLoaderRealm ) . getConstructor ( ) . newInstance ( ) ; - if ( instance instanceof Cal...
For the sake of coherence the other method here will be using the current thread classloader when executing the Callable
<nb> public class ArrayObjectAdapter extends ObjectAdapter { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public int indexOf ( Object item ) { + return mItems . indexOf ( item ) ; + } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void notifyArrayItemRa...
Add notifyArrayItemRangeChanged and indexOf
<nb> public final class OperatorGroupBy < K , T > implements Operator < GroupedObservable < K private void completeInner ( ) { if ( completionCounter . decrementAndGet ( ) == NUMBER0 && ( completed . get ( ) || childObserver . isUnsubscribed ( ) ) ) { - System . out . println ( STRING0 ) ; if ( childObserver ...
Remove Stray Println
<nb> public interface Operation { COMMENT COMMENT COMMENT + SINGLE + SINGLE + SINGLE public Operation addPayload ( InputStream payload , Phase nextPhase ) ; COMMENT <nb> public class Status { return status ; } } + + @ override + public String toString ( ) { + StringBuilder builder = ne...
Add toString to Status
<nb> public abstract class MorfologikSpellerRule extends SpellingCheckRule { protected MorfologikSpeller speller ; protected Locale conversionLocale ; + private static final Pattern DIACRITICAL_REGEX = Pattern . compile ( STRING0 ) ; + private boolean ignoreTaggedWords = false ; COMMENT <nb> public ab...
compile regex only once
<nb> public class StoreAppendTest < E extends StoreAppend > extends EngineTest < E > { } + + @ override public void large_record_larger ( ) { + SINGLE + } }
ignore failing test
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ParameterHidingMemberVariableInspectionBase extends BaseInspection return ; } } - if ( m_ignoreForPropertySetters && P...
accept multi param setters
<nb> public class MvelExpression extends ExpressionSupport { public MvelExpression ( MvelLanguage language , String expressionString , Class < ? > type ) { this . expressionString = expressionString ; this . type = type ; + + SINGLE + final ClassLoader tccl = Thread . currentThread ( ) . getContextClassLoad...
mvel compiles expression setting TCCL to classloader from mvel to improve OSGi compatability
<nb> public class ContextTools { COMMENT COMMENT public String getPlainTextContext ( final int fromPos , final int toPos , final String contents ) { - final String text = contents . replace ( STRING0 , STRING1 ) . replace ( STRING2 , STRING1 ) ; + final String text = contents . replace ( STRING0 , STRING1 ) ....
also replace tabs to not mess up position display if there are tabs in the input
<nb> public class Round implements Function { public Object call ( Properties bindings , Object [ ] args ) { if ( args . length == NUMBER0 && args [ NUMBER1 ] != null && args [ NUMBER1 ] instanceof Number ) { - return ( ( Number ) args [ NUMBER1 ] ) . longValue ( ) ; + return Math . round ( ( ( Number ) args ...
Fixed the GREL round function
<nb> public final class FileWritingTest { javaFile . writeTo ( file ) ; fail ( ) ; } catch ( IllegalArgumentException e ) { - assertThat ( e . getMessage ( ) ) . containsMatch ( STRING0 ) ; + assertThat ( e . getMessage ( ) ) . isEqualTo ( + STRING1 + file . getPath ( ) + STRING2 ) ; } }
Use the system specific file path in asserion
<nb> public abstract class SimpleBeanPropertyFilter { if ( include ( writer ) ) { writer . serializeAsField ( bean , jgen , provider ) ; + } else if ( ! jgen . canOmitFields ( ) ) { SINGLE + writer . serializeAsPlaceholder ( bean , jgen , provider ) ; } }
Add support for outputting placeholders during filtering
<nb> public class DefaultDataType < T > implements DataType < T > { @ override public String toString ( ) { - return getClass ( ) . getSimpleName ( ) + STRING0 + type + STRING1 + typeName + STRING2 ; + return getCastTypeName ( ) + STRING3 + type . getName ( ) + STRING4 ; } @ override
Improved DefaultDataType toString
<nb> public class WarJaccService extends JaccService < WarMetaData > { } pc . addToRole ( role , wrp ) ; - SINGLE - SINGLE - boolean missingMethods = true ; - if ( httpMethods != null ) { - String [ ] anyMissingMethods = WebResourceCollectionMetaData . getMissingHttpMethods ( Arrays . asList ( httpMetho...
define a constant
<nb> final class ProcessExecutor { } } } - if ( pathVarValue == null ) { - environment . put ( pathVarName , workingDirectory + File . separator + STRING0 ) ; - } - else { - environment . put ( pathVarName , workingDirectory + File . separator + STRING0 + File . pathSeparator + pathVarValue ) ; + + ...
Add npm to the path when executing processes
<nb> public class DefaultIssueCallback implements IssueCallback { newIssue . setMessage ( issue . getMessage ( ) ) ; newIssue . setNew ( issue . isNew ( ) ) ; newIssue . setResolution ( issue . resolution ( ) ) ; - newIssue . setRuleKey ( issue . getRuleKey ( ) . rule ( ) ) ; + newIssue . setRuleKey ( issue ....
Fix rule key in issue callback
<nb> public class PaneManager case Presentation : return commands_ . layoutZoomPresentation ( ) ; case Source : return commands_ . layoutZoomSource ( ) ; case VCS : return commands_ . layoutZoomVcs ( ) ; + case Viewer : return commands_ . layoutZoomViewer ( ) ; default : throw new IllegalArgumentException (...
add Viewer to layout command methods
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class PageCacheTest < T extends PageCache > extends PageCacheTestSu protected static final long SEMI_LONG_TIMEOUT_MILLIS =...
Fix merge mistakes
<nb> public class ODefaultReplicationConflictResolver implements OReplicationConflict return ; final OServerUserConfiguration replicatorUser = OServerMain . server ( ) . getUser ( ODistributedAbstractPlugin . REPLICATOR_USER ) ; - database = OServerMain . server ( ) . openDatabase ( STRING0 , iDatabaseName , re...
Fixed bug on replication at startup
<nb> public class LocalPreferences { private static final String KEY_FILE_SIZE = STRING0 ; public static boolean getDisplayAdvancedDevices ( Context context ) { + boolean defaultAdvanced = context . getResources ( ) + . getBoolean ( R . bool . config_defaultAdvancedDevices ) ; return PreferenceManager . get...
Bring along the rest of the change too
<nb> public class GitCheckinEnvironment implements CheckinEnvironment { GitSimpleHandler diff = new GitSimpleHandler ( project , root , GitCommand . DIFF ) ; diff . setSilent ( true ) ; diff . setStdoutSuppressed ( true ) ; - diff . addParameters ( STRING0 , STRING1 , STRING2 ) ; + diff . addParameters ( STRI...
explicitly disable rename tracking if it is not supported by parser
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ;
Put back the line feed being unintentionally removed by the previous commit
<nb> public class LookaheadErrorReporter extends ErrorReporter { public static class ParseException extends RuntimeException { } @ override + protected void reportMessage ( + SourcePosition location , String kind , String format , Object . . . arguments ) { + throw new ParseException ( ) ; + } + + @ o...
Avoid formatting error messages when using the look ahead parser
<nb> public class EdgeMatchExtension extends EdgeMatch { COMMENT COMMENT public EdgeMatchExtension ( CandidateEdge candidate ) { - setEdge ( new GraphEdgeExtension ( candidate . edge ) ) ; - setClosest_point ( new LatLngExtension ( candidate . nearestPointOnEdge ) ) ; + setEdge ( new GraphEdgeExtension ( ca...
Fix EdgeMatchExtension to match new CandidateEdge interface
<nb> import NAMESPACE ; import static NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix class description of FastLzFrameDecoder
<nb> xxxxxx xxxxx xxxxxxxxxxxxx xxxxxxx xxxxxxxxxxxxxxxxx x xxxxx + xxxxxx xxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + + xxxxxxxxxx xxxxxx x xxxxxxxxx + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + + xxxxxxxxxxxxxxxxxxxxxxxxx xx x ...
Add a very specific SQL Server integration test for using insert after copy with nullable and updatable primary keys
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT
added a note saying that Binding is not intended to be used in a multithreaded context
<nb> import NAMESPACE ; public class ActFmInvoker { COMMENT - private static final String URL = STRING0 ; + private static final String URL = STRING1 ; private static final String APP_ID = STRING2 ; private static final String APP_SECRET = STRING3 ;
Updated ip address
<nb> public class ZapOutputWriter extends WriterAppender { } if ( event . getLevel ( ) . equals ( Level . ERROR ) ) { - if ( scanStatus != null ) { - scanStatus . incScanCount ( ) ; - } - if ( ! SwingUtilities . isEventDispatchThread ( ) ) { SwingUtilities . invokeLater ( new Runnable ( ) { @ overri...
Increase error count just once per logged error
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class Main { String header = STRING0 ; String footer = STRING1 ; HelpFormatter formatter = new HelpFormatter ( ) ; + formatter . setOptionComparator ( new Comparator ...
Added option comparator to HelpFormatter
<nb> public class TransactionConfidence { StringBuilder builder = new StringBuilder ( ) ; int peers = numBroadcastPeers ( ) ; if ( peers > NUMBER0 ) { - builder . append ( STRING0 ) . append ( peers ) . append ( peers > NUMBER1 ? STRING1 : STRING2 ) ; + builder . append ( STRING0 ) . append ( peers ) . append...
Print lastBroadcastedAt in toString
<nb> public abstract class AbstractChannel extends DefaultAttributeMap implements Cha @ override public void flush ( ) { outboundBuffer . addFlush ( ) ; + flush0 ( ) ; + } + private void flush0 ( ) { if ( ! inFlushNow ) { SINGLE SINGLE SINGLE <nb> public abstract class AbstractChannel extends Defa...
Fix a bug where ChannelOutboundBuffer addFlush is called multiple times
<nb> public class CacheManagingDrawTask extends DrawTask { if ( ! danmaku . hasDrawingCache ( ) ) { buildCache ( danmaku , true ) ; } - if ( danmaku . isLive ) { - mCacheTimer . update ( mTimer . currMillisecond - + mContext . mDanmakuFactory . MAX_DANMAKU_DURATION * mScreenSize ) ; - } } public voi...
not update cachetimer if danmaku isLive true
<nb> public interface PoolConfiguration { COMMENT boolean result = getTimeBetweenEvictionRunsMillis ( ) & gt ; NUMBER0 ; result = result & amp ; & amp ; ( isRemoveAbandoned ( ) & amp ; & amp ; getRemoveAbandonedTimeout ( ) & gt ; NUMBER0 ) ; - result = result || ( isTestWhileIdle ( ) & amp ; amp ; & getValidati...
Fix HTML entity
<nb> public class DesignerNewsStory extends Activity { SpannableString poster = new SpannableString ( story . user_display_name . toLowerCase ( ) ) ; poster . setSpan ( new TextAppearanceSpan ( this , R . style . TextAppearance_CommentAuthor ) , NUMBER0 , poster . length ( ) , Spanned . SPAN_EXCLUSIVE_EXCLUSIVE )...
Tweak DN Story poster job for small caps presentation