diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class AndroidBinaryRule extends DoNotUseAbstractBuildable implements new AndroidTransitiveDependencyGraph ( classpathDeps ) ; BuildRuleParams originalParams = createBuildRuleParams ( ruleResolver ) ; + AndroidBinaryGraphEnhancer graphEnhancer = new AndroidBinaryGraphEnhancer ( originalParams ) ; f...
Reorder some variables in AndroidBinaryRule
<nb> public class BitmapText extends Node { if ( ! block . getText ( ) . equals ( text ) ) { SINGLE if ( text . isEmpty ( ) ) { - System . out . println ( STRING0 ) ; detachAllChildren ( ) ; for ( int page = NUMBER0 ; page < textPages . length ; page ++ ) { <nb> public class BitmapText extends Node { ...
Removed more println s
<nb> public class WifiStateMachine extends StateMachine { public void enter ( ) { mIsRunning = true ; mInDelayedStop = false ; + mDelayedStopCounter ++ ; updateBatteryWorkSource ( null ) ; COMMENT
Ignore outstanding delayed shutdown on restart
<nb> package NAMESPACE ; class S { - @ suppresswarnings ( STRING0 ) + @ suppresswarnings ( STRING1 ) public String get ( final Class cls ) { return STRING2 ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAME...
Set ID and alternateID for inspection in test environment
<nb> public class TestCaseLoader { private static List < String > ourRanklist = getTeamCityRankList ( ) ; private static List < String > getTeamCityRankList ( ) { - final String filepath = System . getProperty ( STRING0 , null ) ; + final String filepath = System . getProperty ( STRING1 , null ) ; if ( file...
run recently failed tests first
<nb> public final class GrailsDomainBinder { OneToMany oneToMany = new OneToMany ( collection . getOwner ( ) ) ; collection . setElement ( oneToMany ) ; + if ( property . isBidirectional ( ) ) { + collection . setReferencedPropertyName ( property . getOtherSide ( ) . getName ( ) ) ; + } bindOneToMany ( ...
fixed bug that was failing to establish the circular relationships correctly
<nb> public class WindowsResourceCompiler implements Compiler < WindowsResourceCompileS List < String > args = new ArrayList < String > ( ) ; args . add ( STRING0 ) ; args . add ( STRING1 ) ; - args . add ( STRING2 + getOutputFile ( spec ) . getAbsolutePath ( ) ) ; + args . add ( getOutputFile ( spec ) . getA...
Revert fix windows resource sample integration test
<nb> public class ShowsActivity extends BaseActivity implements AbsListView . OnScrollL SINGLE ActionBar actionBar = getSupportActionBar ( ) ; + actionBar . setDisplayShowTitleEnabled ( false ) ; actionBar . setNavigationMode ( ActionBar . NAVIGATION_MODE_LIST ) ; ArrayAdapter < CharSequence > mActionBarLis...
Hide action bar title on main screen and in Upcoming
<nb> public abstract class AbstractHistogram extends AbstractHistogramBase implements ( subBucketCount == fromHistogram . subBucketCount ) && ( unitMagnitude == fromHistogram . unitMagnitude ) ) { SINGLE + long totalCount = NUMBER0 ; for ( int i = NUMBER0 ; i < fromHistogram . countsArrayLength ; i ++ ) { -...
Fixed total count computation on adding concurrently modified histograms
<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 BigStoreIT implements RelationshipType { createAnd...
Suppress a test that appears to bust limits
<nb> public class PropertyValuesHolder implements Cloneable { public void setObjectValues ( Object . . . values ) { mValueType = values [ NUMBER0 ] . getClass ( ) ; mKeyframeSet = KeyframeSet . ofObject ( values ) ; + if ( mEvaluator != null ) { + mKeyframeSet . setEvaluator ( mEvaluator ) ; + } } COM...
Set existing TypeEvaluator on new KeyframeSet when changing object values
<nb> public final class Configuration implements PersistentStateComponent < Element > { setPatternAnnotation ( JDOMExternalizerUtil . readField ( element , PATTERN_ANNOTATION_NAME ) ) ; setSubstAnnotation ( JDOMExternalizerUtil . readField ( element , SUBST_ANNOTATION_NAME ) ) ; setResolveReferences ( readBoolean...
turn DFA off by default
<nb> public class InputsResource extends RestResource { launchExisting ( inputId ) ; return Response . status ( Response . Status . ACCEPTED ) . build ( ) ; } - - @ get - @ timed - @ path ( STRING0 ) - public Response locationtest ( ) { - return Response . created ( getUriBuilderToSelf ( ) . path ( In...
Removing test endpoint
<nb> public class SmoothProgressDrawable extends Drawable implements Animatable { prev = Math . max ( FLOAT0 , xOffset - xSectionWidth ) ; ratioSectionWidth = Math . abs ( mInterpolator . getInterpolation ( prev ) - - mInterpolator . getInterpolation ( xOffset ) ) ; + mInterpolator . getInterpolation ( Math ....
Fixed decelerate issue
<nb> import static NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public ...
Added information about break points when using advice component
<nb> public class PsiBuilderImpl extends UserDataHolderBase implements PsiBuilder , AS } @ override + @ nullable public IElementType getTokenType ( ) { - final IElementType elementType = doGetTokenType ( ) ; - if ( elementType instanceof TokenWrapper ) { - return ( ( TokenWrapper ) elementType ) . getDe...
don t unwrap TokenWrappers element type
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IdentifierHighlighterPassFactory extends AbstractProjectComponent i public TextEditorHighlightingPass createHighlightingPass ...
in headless environment do not create identifier highlighter pass
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ;
Remove unecessary imports
<nb> public class MapActivityActions implements DialogProvider { settings . setPointToNavigate ( lat , lon , false , name ) ; } else if ( which == NUMBER0 ) { int sz = targetPointsHelper . getIntermediatePoints ( ) . size ( ) ; - LatLon pt = targetPointsHelper . getPointToNavigate ( ) ; + SINGLE settings . ...
remove surplus code
<nb> class NodeImpl implements Node , Comparable < Node > StopEvaluator stopEvaluator , ReturnableEvaluator returnableEvaluator , RelationshipType relationshipType , Direction direction ) { + if ( direction == null ) + { + throw new IllegalArgumentException ( STRING0 ) ; + } + SINGLE return travFactor...
Added null check for direction in node traverse non varargs methods
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - interface RowMapper { + public interface RowMapper { COMMENT COMMENT
make rowmapper interface public for custom task implementers
<nb> class Presser { COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT <nb> public class Solo { } COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT - COMMENT + CO...
Clarified javadoc for pressMenuItem in Solo and Presser
<nb> public class ObjectStore implements RawStore , Configurable { return prop ; } - private static PersistenceManagerFactory getPMF ( ) { + private static synchronized PersistenceManagerFactory getPMF ( ) { if ( pmf == null ) { pmf = JDOHelper . getPersistenceManagerFactory ( prop ) ; DataStoreCache ds...
ObjectStore getPMF has concurrency problems Brock Noland via Ashutosh Chauhan
<nb> public class CancelActivity extends ListActivity { protected void onCreate ( Bundle icicle ) { super . onCreate ( icicle ) ; requestWindowFeature ( Window . FEATURE_NO_TITLE ) ; + } + + @ override + protected void onStart ( ) { + super . onStart ( ) ; + SINGLE final BookCollectionShadow collect...
connect book service in onStart not in onCreate
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class IntelliJLaf extends DarculaLaf { } @ override - public UI...
do not redefine system fonts for IntelliJ Laf
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class Bro { public static final boolean IS_LINUX ; public static final boolean IS_X86 ; public static final boolean IS_ARM ; + public static final boolean IS_32BIT ; ...
Added IS_32BIT and IS_64BIT flags to org robovm rt bro Bro
<nb> public class Searcher { COMMENT public boolean searchForEditTextWithTimeout ( String regex ) { - long now = System . currentTimeMillis ( ) ; - final long endTime = now + TIMEOUT ; - - boolean shouldContinue = true ; - while ( shouldContinue ) { - sleeper . sleep ( ) ; - shouldContinue = ! searc...
Simplified Searcher searchForEditTextWithTimeout
<nb> public class UnionDataSource implements DataSource { return dataSources . hashCode ( ) ; } + + @ override + public String toString ( ) + { + return STRING0 + + STRING1 + dataSources + + STRING2 ; + } }
Add toString for better logging
<nb> public class Node extends Spatial implements Savable { protected void breadthFirstTraversal ( SceneGraphVisitor visitor , Queue < Spatial > queue ) { queue . addAll ( children ) ; } - COMMENT - @ override - void checkDoBoundUpdate ( ) { - if ( ( refreshFlags & RF_BOUND ) == NUMBER0 ) { - return ; ...
commented code relict removed
<nb> public class PluginManager { public static boolean isIncompatible ( final IdeaPluginDescriptor descriptor ) { BuildNumber buildNumber = getBuildNumber ( ) ; - if ( descriptor . getSinceBuild ( ) != null ) { + if ( ! StringUtil . isEmpty ( descriptor . getSinceBuild ( ) ) ) { BuildNumber sinceBuild = Bu...
Allow empty since build and until build tags
<nb> import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
remove unused import
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Attachment { return Base64Converter . encode ( myBytes ) ; } + @ notnull + public byte [ ] getBytes ( ) { + return myBytes ; + } + public boolean isIncluded ( ) { return myIncluded ; }
add getBytes method to diagnostic Attachment
<nb> public class Array < T > implements Iterable < T > { } public void clear ( ) { - size = NUMBER0 ; Object [ ] items = this . items ; for ( int i = NUMBER0 , n = size ; i < n ; i ++ ) items [ i ] = null ; + size = NUMBER0 ; } COMMENT
fixed Nothing to see here
<nb> public abstract class jOOQAbstractTest < new InsertUpdateTests ( this ) . testInsertReturning ( ) ; } - SINGLE + SINGLE public void testInsertReturningWithPlainSQL ( ) throws Exception { new InsertUpdateTests ( this ) . testInsertReturningWithPlainSQL ( ) ; }
Added issue id marker
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; public interface Macro {
Add missing copyright
<nb> public class IssueIndex extends BaseIndex { result . addAll ( EsUtils . termsKeys ( issuesResult ) ) ; result . addAll ( EsUtils . termsKeys ( rulesResult ) ) ; List < String > resultAsList = Lists . newArrayList ( result ) ; - return resultAsList . size ( ) > maxNumberOfTags ? resultAsList . subList ( NUM...
Fix tags dropdown in issue bulk change
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import static NAMESPACE ; - COMMENT - COMMENT - COMMENT public...
Fixed the license
<nb> public class SelectStatement implements CQLStatement , MeasurableForPreparedCache if ( restriction == null ) restriction = new MultiColumnRestriction . Slice ( onToken ) ; else if ( ! restriction . isMultiColumn ( ) ) - throw new InvalidRequestException ( String . format ( STRING0 , name , relation ) ) ; ...
add missing string format placeholder
<nb> public class EclipseClasspathStorageProvider implements ClasspathStorageProvider try { final HashSet < String > usedVariables = new HashSet < String > ( ) ; final CachedXmlDocumentSet documentSet = getFileSet ( ) ; - final String path = documentSet . getParent ( EclipseXml . PROJECT_FILE ) ; - LOG . asse...
restore root path from
<nb> public class CoreAPI extends ApiImplementor implements SessionListener { private static final String PARAM_DIR = STRING0 ; private static final String PARAM_SESSION = STRING1 ; private static final String PARAM_OVERWRITE_SESSION = STRING2 ; - SINGLE private static final String PARAM_REGEX = STRING3 ; p...
Tidy up removed a TODO comment no longer needed contexts are handled by ContextAPI
<nb> public class BlockMetadataManager { } } } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public synchronized BlockStoreMeta getBlockStoreMeta ( ) { + return new BlockStoreMeta ( this ) ; + } } <nb> public class TieredBlockStore implements BlockStore { @ override public Bloc...
Remove locking on the code path of getBlockStoremeta
<nb> public class Observable < T > { SINGLE } if ( isTrusted ) { - return onSubscribe . call ( observer ) ; + Subscription s = onSubscribe . call ( observer ) ; + if ( s == null ) { + SINGLE + SINGLE + return Subscriptions . empty ( ) ; + } else { + return s ; + } } else { AtomicObservableSu...
gracefully handle null subscription on trusted onSubscribe the same as non trusted already does
<nb> public class GoTestConsoleProperties extends TestConsoleProperties implements SM myStdOut . append ( text ) ; } else { + String failedMessage = ServiceMessageBuilder . testFailed ( myCurrentTest ) . addAttribute ( STRING0 , myStdOut . toString ( ) ) . toString ( ) ; myFailed = false ; myStdOut = new St...
Fix fail messages capturing
<nb> public class AUC extends Func { if ( ca . isNA0 ( i ) ) throw new UnsupportedOperationException ( STRING0 ) ; final int a = ( int ) ca . at80 ( i ) ; SINGLE - assert ( a == NUMBER0 || a == NUMBER1 ) : STRING1 ; + assert ( a == NUMBER0 || a == NUMBER1 ) : STRING2 ; if ( cp . isNA0 ( i ) ) { SINGLE c...
Improve error message
<nb> public class SpringApplication { private void handleRunFailure ( ConfigurableApplicationContext context , SpringApplicationRunListeners listeners , Throwable exception ) { + if ( this . log . isErrorEnabled ( ) ) { + this . log . error ( STRING0 , exception ) ; + registerLoggedException ( exception ) ;...
Log exception before sending to listeners
<nb> public class WebappClassLoader public static final boolean ENABLE_CLEAR_REFERENCES = Boolean . valueOf ( System . getProperty ( STRING0 , STRING1 ) ) . booleanValue ( ) ; - protected class PrivilegedFindResource - implements PrivilegedAction < ResourceEntry > { - - protected File file ; - protected...
Remove unused inner class
<nb> public class NijiPermissionsResolver implements PermissionsResolver { public boolean hasPermission ( String worldName , String name , String permission ) { try { - return api . getHandler ( ) . has ( worldName , name , permission ) ; + try { + return api . getHandler ( ) . has ( worldName , name , perm...
Added backwards compatibility for per world permissions
<nb> public class PatchDelegate { List < BindingTuple > methodsToDelegateForThisAnn = new ArrayList < BindingTuple > ( ) ; if ( rawTypes . isEmpty ( ) ) { + if ( method . returnType == null ) continue ; addAllMethodBindings ( methodsToDelegateForThisAnn , method . returnType . resolveType ( decl . initializer...
Added null check to prevent errors in eclipse when working on incomplete files
<nb> import NAMESPACE ; COMMENT public class TestConnections { + @ suppresswarnings ( STRING0 ) @ test public void testCreate ( ) throws SQLException { <nb> public class TestConnections } finally { ds . close ( ) ; + System . getProperties ( ) . remove ( STRING1 , STRING2 ) ; } } <nb> pu...
Reset housekeeping period after test
<nb> public abstract class AAdvancedMaterial extends AMaterial { } public AAdvancedMaterial ( String vertexShader , String fragmentShader , boolean isAnimated ) { - this ( vertexShader , fragmentShader , AMaterial . VERTEX_ANIMATION ) ; + this ( vertexShader , fragmentShader , + isAnimated ? AMaterial . VER...
Add parameter check in material constructor
<nb> public class WatchedBox extends ImageView { updateStateImage ( ) ; } - COMMENT - COMMENT - COMMENT - public void toggleWatched ( ) { - mEpisodeFlag = EpisodeTools . isWatched ( mEpisodeFlag ) - ? EpisodeFlags . UNWATCHED : EpisodeFlags . WATCHED ; - updateStateImage ( ) ; - } - private vo...
Drop unused method also should not be used of WatchedBox
<nb> public class DataSourceRealm extends RealmBase { String dbCredentials = getPassword ( dbConnection , username ) ; + if ( credentials == null || dbCredentials == null ) { + if ( containerLog . isTraceEnabled ( ) ) + containerLog . trace ( + sm . getString ( STRING0 , + username ) ) ; + return null...
Perform null checking on input and stored credentials before passing them off to CredentialHandlers for matching
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; public abstract class WelcomeActivity extends AppCompatActivity { <nb> - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPA...
Moved WelcomeScreenHider to more appropriate package
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; class CuratorEventImpl implements CuratorEvent <nb> class CuratorEventImpl implements CuratorEvent STRING0 + children + STRING1 + context + STRING2 + stat + - STRING3 + data +...
wrap data in toString
<nb> public final class Eureka2Clients { } public static EurekaInterestClient getInterestClient ( ) { - if ( interestClient == null ) { - throw new IllegalStateException ( STRING0 ) ; - } return interestClient ; }
Remove unnecessary condition in Eureka2Clients
<nb> public class MainTest { } @ test - public void testVersionArg ( ) throws IOException , CommandLineParsingException { - Main . main ( new String [ ] { STRING0 } ) ; + public void testVersionArg ( ) throws Exception { + Main . run ( new String [ ] { STRING0 } ) ; }
Fixed test now that main method logic moved to run
<nb> public class FilterUtil fc . onRestRequest ( req , emptyRequestContext ( ) , emptyWireAttrs ( ) ) ; } + public static void fireRestRequest ( FilterChain fc , RestRequest req , Map < String , String > wireAttrs ) + { + fc . onRestRequest ( req , emptyRequestContext ( ) , wireAttrs ) ; + } + public...
Added wire attrs as a param
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class HeronServerTest { private volatile boolean isMessageNeed = false ; private volatile int messagesRe...
Fix check style of unit tests in common network
<nb> public class AjpAprProcessor extends AbstractAjpProcessor < Long > { protected void setupSocket ( SocketWrapperBase < Long > socketWrapper ) { SINGLE } - - - COMMENT - COMMENT - COMMENT - @ override - public void recycle ( boolean socketClosing ) { - super . recycle ( socketClosing ) ; - } ...
Remove unnecessary method
<nb> static class ThrowExpr extends UntypedExpr { public Object eval ( ) throws Exception { - throw ( Exception ) excExpr . eval ( ) ; + Object t = excExpr . eval ( ) ; + if ( t instanceof Exception ) + throw ( Exception ) t ; + else + throw ( Error ) t ; } public void emit ( C context , FnExpr ...
enable eval of throw to throw Errors as well as Exceptions
<nb> public class EditingTargetCodeExecution codeExtractor_ = codeExtractor ; docId_ = docId ; inlineChunkExecutor_ = new EditingTargetInlineChunkExecution ( - target . getDocDisplay ( ) , docId ) ; + display , docId ) ; RStudioGinjector . INSTANCE . injectMembers ( this ) ; }
use supplied display interface for code browser
<nb> public class PsiBuilderImpl extends UserDataHolderBase implements PsiBuilder { @ notnull TokenSet comments , @ notnull Lexer lexer , CharTable charTable , - @ notnull final CharSequence text , + @ notnull CharSequence text , @ nullable ASTNode originalTree , @ nullable CharSequence lastCommittedText ...
drop final good for debug
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT COMMENT COMMENT - @ incubating + @ incubating @ hasinternalprotocol public interface ProjectNativeComponent extends Named { COMMENT COMMENT
Add missing HasInternalProtocol
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Added missing import CountDownTimer
<nb> extends BaseTest < A , AP , B , S , B2S , BS , L , X , DATE , BOOL , D , T , U , UU , I , IPK , T7 @ test public void testKeepRSWithUpdateOnChangeLazy ( ) throws Exception { switch ( dialect ( ) ) { + SINGLE + SINGLE + SINGLE + case DERBY : case SQLITE : log . info ( STRING0 , STRING1 ) ; retur...
Skip a test in Derby which fails because of
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; public class NavigationItemListCellRenderer extends JPanel implements ListCellRenderer { + private static final L...
assert not null item presentation
<nb> public class TransactionMetricCollector implements AgentStatCollector < TTransacti this . sampledNewGauge = ( Gauge < Long > ) MetricMonitorValues . getMetric ( metrics , TRANSACTION_SAMPLED_NEW , UNSUPPORTED_GAUGE ) ; this . sampledContinuationGauge = ( Gauge < Long > ) MetricMonitorValues . getMetric ( metri...
Fixed collection of unsampled continuation transactions
<nb> public class RuleResult extends Result < Rule > { Map < String , Map < String , Object > > activeRulesForHit = hit . getFields ( ) . get ( RuleNormalizer . RuleField . ACTIVE . key ( ) ) . getValue ( ) ; for ( Map . Entry < String , Map < String , Object > > activeRule : activeRulesForHit . entrySet ( ) ) { ...
Removed debug output
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class HttpClientBuilderTest { @ test public void usesACustomRoutePlanner ( ) throws Exception { - final HttpRoutePlanner ...
Remove XLint SUN proprietary API warnings
<nb> public class DataSet extends Sql { } return visitor ; } + COMMENT + COMMENT + COMMENT + public DataSet createView ( Closure criteria ) { + return new DataSet ( this , criteria ) ; + } }
added method to create a subset of the orginal dataset
<nb> package NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class NewHostControllerBootstrap { static void activateNetworkInterfaces ( final ModelNode host , final ServiceTarget serviceTarget ) { for ( final Property ...
Parse criteria properly when setting up the management socket
<nb> public class LocalGatewayShardsState extends AbstractComponent implements Cluste builder . prettyPrint ( ) ; builder . startObject ( ) ; builder . field ( STRING0 , shardStateInfo . version ) ; + if ( shardStateInfo . primary != null ) { + builder . field ( STRING1 , shardStateInfo . primary ) ; + } ...
also store the fact that a shard is primary or not in the shard state
<nb> public class XWebView extends XHook { SINGLE SINGLE - SINGLE + SINGLE SINGLE SINGLE SINGLE <nb> public class XWebView extends XHook { SINGLE try { - Method setUserAgent = clazzWebSettings . getDeclaredMethod ( STRING0 , String . class ) ; + Method setUserAgent = clazzWebSettings . getDe...
Fix hooking setUserAgent
<nb> public final class Settings implements ToXContent { } InputStream is = classLoader . getResourceAsStream ( resourceName ) ; if ( is == null ) { - return this ; + throw new SettingsException ( STRING0 + resourceName + STRING1 ) ; } return loadFromStream ( resourceName , is ) ; <nb> public class Ya...
Throw Exception for missing settings file
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class WebViewFactory { } private static Class < WebViewFactoryProvider > getFactoryClass ( ) throws ClassNotFoundException { - re...
Load the WebView Java code via createPackageContext
<nb> public abstract class LifecycleBase implements Lifecycle { ExceptionUtils . handleThrowable ( t ) ; setStateInternal ( LifecycleState . FAILED , null , false ) ; throw new LifecycleException ( sm . getString ( STRING0 , toString ( ) ) , t ) ; - } finally { - if ( state . equals ( LifecycleState . FAILED ...
Fix test failures
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class ModuleTestCase extends IdeaTestCase { final File moduleDir = createTempDirectory ( ) ; FileUtil . copyDir ( dirInTestDataFile , modu...
force refresh source root when creating new module to fix test
<nb> public class FormattedEmailAlertSender extends StaticEmailAlertSender implements STRING0 + STRING1 + STRING2 + - STRING3 + + STRING4 + STRING5 + STRING6 + STRING7 +
Add addition newline between messages to alert email
<nb> public final class MapPalette { byte [ ] result = new byte [ temp . getWidth ( ) * temp . getHeight ( ) ] ; for ( int i = NUMBER0 ; i < pixels . length ; i ++ ) { - result [ i ] = matchColor ( new Color ( pixels [ i ] ) ) ; + result [ i ] = matchColor ( new Color ( pixels [ i ] , true ) ) ; } return ...
Bleeding Fixed MapPalette imageToBytes to properly handle transparency
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FeedRefreshWorker { Thread . sleep ( NUMBER0 ) ; } } catch ( Exception e ) { - throw new EJBException ( e . getMessage ...
just log the error and go on
<nb> public class ClientEngineImpl implements ClientEngine , CoreService , PostJoinAwar ClientEndpointImpl endpoint = ( ClientEndpointImpl ) endpointManager . getEndpoint ( conn ) ; ClientRequest request = null ; try { - if ( ! node . joined ( ) ) { - throw new HazelcastInstanceNotActiveException ( STRING0 ) ...
Moved ClientPacketProcessor node joined check intto process to be able to return error to client
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; import NAMESPACE ;
Adding license header for test file
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + + import static NAMESPACE ; + import static NAMESPACE ; COMMENT COMMENT <nb> public class GithubShareProjectTest extends GithubShareProjectTestBase { createProjectFiles ( ) ; - GitExecu...
github test Fix git commands execution params
<nb> final class ClientCallImpl < ReqT , RespT > extends ClientCall < ReqT , RespT > @ override public void cancel ( ) { - cancel ( Status . CANCELLED ) ; - } - - SINGLE - SINGLE - private void cancel ( Status status ) { if ( cancelCalled ) { return ; } <nb> final class ClientCallImpl < ReqT ,...
Remove cancel Status since it is now unused
<nb> public class WebView extends AbsoluteLayout mHeldMotionless = MOTIONLESS_PENDING ; } } + int saveCount = canvas . save ( ) ; if ( animateZoom ) { mZoomManager . animateZoom ( canvas ) ; } else if ( ! canvas . isHardwareAccelerated ( ) ) { <nb> public class WebView extends AbsoluteLayout nativeUse...
Fix text selection drawing on SW
<nb> public class BuildOutputConsumerImpl implements BuildOutputConsumer { for ( File outputRoot : myOutputs ) { String outputRootPath = FileUtil . toSystemIndependentName ( outputRoot . getPath ( ) ) ; final String relativePath = FileUtil . getRelativePath ( outputRootPath , outputFilePath , STRING0 ) ; - if (...
correctly choose output root for generated class
<nb> public class ModifyKeyboardShortcutsWidget extends ModalDialogBase @ override public Object getKey ( CommandBinding item ) { - return item . getName ( ) ; + return item . hashCode ( ) ; } } ;
ensure key provider returns unique key for each item
<nb> public final class StringUtils { } if ( str . length ( ) > length ) { StringBuilder buffer = new StringBuilder ( length + NUMBER0 ) ; - buffer . append ( str . substring ( NUMBER1 , length ) ) ; + buffer . append ( str , NUMBER1 , length ) ; appendDropMessage ( buffer , str . length ( ) ) ; return bu...
remove substring object
<nb> public class ElasticsearchRestTests extends ElasticsearchIntegrationTest { public void reset ( ) throws IOException , RestException { SINGLE for ( PathMatcher blacklistedPathMatcher : blacklistPathMatchers ) { - assumeFalse ( STRING0 + testCandidate . getTestPath ( ) + STRING1 , blacklistedPathMatcher . ma...
TEST make sure that the Dtests rest blacklist parameter works on windows too
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public final class MethodHierarchyBrowser extends MethodHierarchyBrowserBase { + public class MethodHierarchyBrowser extends MethodHierarchyBrowserBase { private static final Logger LOG = Logger . getInstance ( STRING0 ) ; public MethodHier...
Allow inheritance from HierarchyBrowser implementations Type Method hierarchy
<nb> public class AtomEntryPollingConsumerTest extends ContextTestSupport { public void testResult3 ( ) throws Exception { MockEndpoint mock = getMockEndpoint ( STRING0 ) ; - mock . expectedMessageCount ( NUMBER0 ) ; + mock . expectedMessageCount ( NUMBER1 ) ; mock . assertIsSatisfied ( ) ; } <nb> pub...
Fixed failing unit test on Bamboo
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class WordPress extends Application { COMMENT COMMENT COMMENT + @ targetapi ( Build . VERSION_CODES . ICE_CREAM_SANDWICH ) private class PushNotificationsBacken...
Add targetApi annotation to prevent lint warning on PushNotificationBackendMonitor
<nb> public class LifecycleServiceImpl implements LifecycleService { @ override public boolean isRunning ( ) { - synchronized ( lifecycleLock ) { - return instance . node . isActive ( ) ; - } + SINGLE + return instance . node . isActive ( ) ; } @ override
removed excessive locking on lifecycleserviceimpl isRunning
<nb> public final class Settings { public static final String ACTION_NFCSHARING_SETTINGS = STRING0 ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + @ sdkconstant ( SdkConstantType . ACTIVITY_INTENT_ACTION ) + pu...
Add constant for Daydream settings
<nb> public class PhoneStatusBar extends BaseStatusBar implements DemoMode , @ override public void run ( ) { mLeaveOpenOnKeyguardHide = true ; - executeRunnableDismissingKeyguard ( runnable , null , false , true ) ; + executeRunnableDismissingKeyguard ( runnable , null , false , false ) ; } } ) ; }
Fix weird broken state from lock screen QS edit
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Cleaning up javadoc
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
removed unused import
<nb> import NAMESPACE ; COMMENT public class CompilerOptions implements Serializable , Cloneable { + SINGLE + private boolean manageClosureDependencies = false ; + SINGLE public enum Reach { ALL , <nb> public class CompilerOptions implements Serializable , Cloneable { dependencyOptions . setDepend...
Add manageClosureDependencies option back
<nb> public class ServiceLocator { addPackageToScan ( STRING0 ) ; addPackageToScan ( STRING1 ) ; addPackageToScan ( STRING2 ) ; + addPackageToScan ( STRING3 ) ; addPackageToScan ( STRING4 ) ; } }
Include liquibase sdk in packages to scan by default
<nb> public class GroovyCompiler implements TranslatingCompiler { SINGLE printer . println ( GroovycRunner . IS_GRAILS ) ; - printer . println ( GrailsConfigUtils . getInstance ( ) . isSDKConfigured ( module ) && module . getModuleType ( ) instanceof GrailsModuleType ) ; + printer . println ( GrailsConfigUtil...
enable grails specific compilation in java modules with several grails libraries