diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; public class JavaFXCollapseSubtagToAttributeTest extends DaemonAnalyzerTestCase { @ override + protected void setUp ( ) throws Exception { + super . setUp ( ) ; + Assume . assumeFalse ( SystemInfo . isMac ) ; + } + + @ override protected void setUpModule ( ) { super . setUp...
disable all tests from JavaFXCollapseSubtagToAttributeTest on Mac to avoid craches
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class GroovyIconProvider extends IconProvider implements DumbAware { + public class GroovyIconProvider extends Icon...
make GroovyIconProvider non dumb aware to avoid costly non cancellable resolve during indexing
<nb> public class FMLContainer extends DummyModContainer implements WorldAccessContai meta . name = STRING0 ; meta . version = Loader . instance ( ) . getFMLVersionString ( ) ; meta . credits = STRING1 ; - meta . authorList = Arrays . asList ( STRING2 ) ; + meta . authorList = Arrays . asList ( STRING3 , STRI...
Fix csv string vs list of strings
<nb> public class ObjectSet < T > implements Iterable < T > { keyTable = ( T [ ] ) new Object [ capacity + stashCapacity ] ; } + public ObjectSet ( ObjectSet set ) { + this ( set . capacity , set . loadFactor ) ; + stashSize = set . stashSize ; + System . arraycopy ( set . keyTable , NUMBER0 , keyTable , ...
Added copy constructor
<nb> public class MessageParser extends AbstractParser implements replacedMessage . markUnread ( ) ; } mXmppConnectionService . updateMessage ( replacedMessage , uuid ) ; + mXmppConnectionService . getNotificationService ( ) . updateNotification ( false ) ; if ( mXmppConnectionService . confirmMessages ( ) &&...
update notification after message correction
<nb> public class UpdateService extends Service { } SINGLE - if ( restricted && hook . isDangerous ( ) ) { - PRestriction restriction = new PRestriction ( uid , hook . getRestrictionName ( ) , hook . getName ( ) , - dangerous ) ; + if ( dangerous && restricted && hook . isDangerous ( ) ) { + PRestrictio...
Upgrade only dangerous
<nb> href = STRING0 > Traceview : A Graphical Lo COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix build due to docs bug
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class WebBrowserServiceImpl extends WebBrowserService { } } } - return Urls . newFromVirtualFile ( virtualFile ) ; + return...
WebBrowserServiceImpl must not generate default URL for LightVirtualFile
<nb> public final class RPCService { if ( kryoTypesToRegister != null ) { kryo . setAutoReset ( false ) ; kryo . setRegistrationRequired ( true ) ; - kryo . setReferences ( false ) ; + kryo . setReferences ( true ) ; for ( final Class < ? > kryoType : kryoTypesToRegister ) { kryo . register ( kryoType )...
Reactivated reference tracking in kryo to avoid problems when serializing exceptions
<nb> class ModelPageProcessor implements PageProcessor { private Site site ; - private Set < Pattern > targetUrlPatterns = new HashSet < Pattern > ( ) ; - public static ModelPageProcessor create ( Site site , Class . . . clazzs ) { ModelPageProcessor modelPageProcessor = new ModelPageProcessor ( site ) ; ...
Remove unused variable to make the project cleaner
<nb> public class GelfCodec extends AbstractCodec { } SINGLE - if ( message . getField ( key ) != null || ( Message . RESERVED_FIELDS . contains ( key ) && ! Message . RESERVED_SETTABLE_FIELDS . contains ( key ) ) ) { + if ( message . getField ( key ) != null || Message . RESERVED_FIELDS . contains ( key ) ) ...
Revert Allow Message RESERVED_SETTABLE_FIELDS fields set by a GELF message
<nb> public class ConnectivityService extends IConnectivityManager . Stub { return false ; } NetworkStateTracker tracker = mNetTrackers [ networkType ] ; - DetailedState netState = tracker . getNetworkInfo ( ) . getDetailedState ( ) ; + DetailedState netState = DetailedState . DISCONNECTED ; + if ( tracker ...
Fix NPE in ConnectivityService
<nb> public class QuartzRouteFireNowTest extends BaseQuartzTest { @ test public void testQuartzRoute ( ) throws Exception { resultEndpoint = getMockEndpoint ( STRING0 ) ; - resultEndpoint . expectedMessageCount ( NUMBER0 ) ; + resultEndpoint . expectedMinimumMessageCount ( NUMBER0 ) ; resultEndpoint . messa...
Fixed test on windows
<nb> public class JavaVersionRule implements MethodRule { @ override public Statement apply ( Statement base , FrameworkMethod method , Object target ) { Enforce enforce = method . getAnnotation ( Enforce . class ) ; - return enforce == null || ClassFileVersion . forKnownJavaVersion ( enforce . value ( ) ) . co...
Fixed Java version rule to also run tests if the enforced version is equal to the current version
<nb> public abstract class DBCollection { final String name = options . get ( STRING0 ) . toString ( ) ; boolean doEnsureIndex = false ; - if ( Math . random ( ) > FLOAT0 ) - doEnsureIndex = true ; - else if ( ! _createIndexes . contains ( name ) ) + if ( ! _createIndexes . contains ( name ) ) doEnsureI...
remove some old babble cruft
<nb> public class FindInProjectUtil { if ( directoryName == null && psiElement instanceof PsiPackage ) { final PsiDirectory [ ] directories = ( ( PsiPackage ) psiElement ) . getDirectories ( ) ; - directoryName = directories . length > NUMBER0 ? directories [ NUMBER0 ] . getVirtualFile ( ) . getPresentableUrl (...
package selection sets dir if only one dir for the package exists
<nb> public abstract class BasePretrainNetwork < LayerConfT extends org . deeplearning4j . return super . numParams ( backwards ) ; int ret = NUMBER0 ; for ( String s : paramTable ( ) . keySet ( ) ) { - if ( backwards ) { - if ( ! s . equals ( PretrainParamInitializer . VISIBLE_BIAS_KEY ) ) { - ret += getPa...
Remove redundant condition
<nb> public class VideoApplication extends MultiThreadedApplicationAdapter { COMMENT COMMENT private void recordStream ( IBroadcastStream stream ) { - IConnection conn = Red5 . getConnectionLocal ( ) ; - String streamName = stream . getPublishedName ( ) ; + IConnection conn = Red5 . getConnectionLocal ( ) ;...
add timestamp on filename so it will be unique
<nb> public final class CaptureActivity extends Activity implements SurfaceHolder . Cal public static final boolean DEFAULT_DISABLE_CONTINUOUS_FOCUS = true ; COMMENT - public static final boolean DEFAULT_TOGGLE_BEEP = true ; + public static final boolean DEFAULT_TOGGLE_BEEP = false ; COMMENT public stat...
Add standard click to shutter button and don t beep by default
<nb> public class Frame extends Lockable < Frame > { for ( int j = NUMBER0 ; j < len ; j ++ ) { strCells [ j + NUMBER1 ] [ i ] = vec . isNA ( off + j ) ? STRING0 : vec . factor ( vec . at8 ( off + j ) ) ; dblCells [ j + NUMBER1 ] [ i ] = TwoDimTable . emptyDouble ; } break ; case Vec . T_TIME : - case Vec . T_T...
Removes the last of the multiple time types
<nb> public class FunType extends Type { } } - typeStack . pop ( type1 , type2 ) ; return true ; }
remove extra pop
<nb> public class SubscriptionProvider implements PacketExtensionProvider if ( ( tag == XmlPullParser . START_TAG ) && parser . getName ( ) . equals ( STRING0 ) ) isRequired = true ; - while ( tag != XmlPullParser . END_TAG && parser . getName ( ) != STRING1 ) tag = parser . next ( ) ; + while ( tag != XmlPul...
Fix faulty string comparison in SubscriptionProvider
<nb> public class EditPostSettingsFragment extends SherlockFragment implements View . O if ( mActivity . getPost ( ) . getBlog ( ) . getPostFormats ( ) . equals ( STRING0 ) ) { List < Object > args = new Vector < Object > ( ) ; args . add ( mActivity . getPost ( ) . getBlog ( ) ) ; - args . add ( this ) ; + a...
Pass correct context to getPostFormatsTask
<nb> public class GoDescriptionProvider implements ElementDescriptionProvider { if ( o instanceof GoConstDefinition ) return STRING0 ; if ( o instanceof GoVarDefinition ) return STRING1 ; if ( o instanceof GoParamDefinition ) return STRING2 ; + if ( o instanceof GoFieldDefinition ) return STRING3 ; if ( o ins...
add field and receiver
<nb> import NAMESPACE ; COMMENT public class D2ClientBuilder { + private boolean _restOverStream = false ; + COMMENT COMMENT COMMENT <nb> public class D2ClientBuilder final LoadBalancerWithFacilities loadBalancer = loadBalancerFactory . create ( cfg ) ; - D2Client d2Client = new DynamicClient ...
Add restOverStream switch to D2ClientBuilder
<nb> public class DBAddress extends ServerAddress { a . _port == _port && a . _db . equals ( _db ) && a . _host . equals ( _host ) ; + } else if ( other instanceof ServerAddress ) { + return other . equals ( this ) ; } return false ; }
if using DBAddress instead of ServerAddress server matching in replica set doesnt work
<nb> public final class DesignerToolWindowManager extends AbstractToolWindowManager { } } ; - AnAction collapseAll = new AnAction ( STRING0 , null , AllIcons . General . CollapseAll ) { + AnAction collapseAll = new AnAction ( STRING0 , null , AllIcons . Actions . Collapseall ) { @ override public void act...
Replace Collapse All icon
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class InterleavedBidirectionalHeuristic implements RemainingWeightHeurist SINGLE ...
Fix P R and B R in depart by searches
<nb> public abstract class BaseHazelCastStateTracker < E extends Updateable < ? > > implem if ( type . equals ( STRING0 ) && ! PortTaken . portTaken ( stateTrackerPort ) ) { SINGLE if ( connectionString . equals ( STRING0 ) ) { - String host = InetAddress . getLocalHost ( ) . getHostName ( ) ; + String host =...
change the default hazelcast host to bind to all interfaces
<nb> final class UserController { } private boolean isCurrentUserLocked ( int userId ) { - return mCurrentUserId == userId || mTargetUserId == userId ; + return userId == getCurrentOrTargetUserIdLocked ( ) ; } int setTargetUserIdLocked ( int targetUserId ) {
Fix broken user removal
<nb> package NAMESPACE ; COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT public class App {
Improve Prototype Javadoc
<nb> public class ItemEvent < E > extends EventObject { public String toString ( ) { return STRING0 + STRING1 + eventType + - STRING2 + item + + STRING2 + getItem ( ) + STRING3 ; } }
Fix ItemEvent toString
<nb> public abstract class HttpContentEncoder extends MessageToMessageCodec < HttpReque SINGLE if ( result == null ) { if ( isFull ) { - SINGLE + SINGLE res . headers ( ) . remove ( Names . TRANSFER_ENCODING ) ; res . headers ( ) . set ( Names . CONTENT_LENGTH , ( ( ByteBufHolder ) res ) . content ( ) . r...
HttpContentEncoder should not remove Content Length when acting as a passthrough
<nb> import NAMESPACE ; import NAMESPACE ; public class GoLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSettingsProvider { + private static final String DEFAULT_CODE_SAMPLE = + STRING0 + + STRING1 + + STRING2 + + STRING1 + + STRING3 + + STRING4 + + STRING5 ; + @ notnull @ overri...
change default code style settings
<nb> public abstract class AbstractBlockChain { while ( unused >= NUMBER0 && ( storedBlock = storedBlock . getPrev ( store ) ) != null ) timestamps [ unused -- ] = storedBlock . getHeader ( ) . getTimeSeconds ( ) ; - Arrays . sort ( timestamps , unused + NUMBER1 , NUMBER2 ) ; + Arrays . sort ( timestamps , un...
Fix median timestamp calculation
<nb> public class FixGetGlueCheckInActivity extends BaseActivity implements private EditText mSearchBox ; private View mFooterView ; private String mShowId ; - private String mGetGlueId ; private View mSaveButton ; @ override
Remove useless code
<nb> public class PreDexMerge extends AbstractBuildable implements InitializableFromD return null ; } - @ nullable public ImmutableSet < Path > getSecondaryDexDirectories ( ) { return getBuildOutput ( ) . secondaryDexDirectories ; }
Remove Nullable from PreDexMerge getSecondaryDexDirectories
<nb> public final class DetectionUtil { if ( value == null ) { value = SystemPropertyUtil . get ( STRING0 , STRING1 ) ; } - if ( STRING1 . equalsIgnoreCase ( value ) ) { + if ( ! STRING1 . equalsIgnoreCase ( value ) ) { return false ; }
Fix a bug where DetectionUtil hasUnsafe returns a wrong value
<nb> public final class KeyValueStoreMapReduceIntegrationTest { @ classrule public static LocalTachyonClusterResource sLocalTachyonClusterResource = - new LocalTachyonClusterResource ( Constants . GB , Constants . KB , BLOCK_SIZE , + new LocalTachyonClusterResource ( Constants . GB , BLOCK_SIZE , COMMENT ...
Fix compilation after merging upstream
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> public abstract class Scheduler { } } } ; - SerialSubscription s = new SerialSubscription ( ) ; + MultipleAssignmentSubscription s = new MultipleAssignmentSubscription ( )...
Use MultipleAssignmentSubscription to save an import
<nb> public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { handler . buildGraph ( extra ) ; } + COMMENT + COMMENT + COMMENT private < T > T unique ( T value ) { if ( ! _uniques . contains ( value ) ) { _uniques . add ( value ) ;
Add TODO in unique strange function
<nb> public class BuildPropertiesImpl extends BuildProperties { javac2 . add ( new PathElement ( propertyRelativePath ( PROPERTY_JAVAC2_HOME , STRING0 ) ) ) ; javac2 . add ( new PathElement ( propertyRelativePath ( PROPERTY_JAVAC2_HOME , STRING1 ) ) ) ; javac2 . add ( new PathElement ( propertyRelativePath ( PROP...
added jgoodies forms jar to default javac2 classpath
<nb> public class AppOpsService extends IAppOpsService . Stub { @ override public void startWatchingMode ( int op , String packageName , IAppOpsCallback callback ) { + if ( callback == null ) { + return ; + } synchronized ( this ) { op = ( op != AppOpsManager . OP_NONE ) ? AppOpsManager . opToSwitch ( o...
Avoid caller NPE if callback null in AppOpsService
<nb> public class ProcessStats implements Streamable , Serializable , ToXContent { return timestamp ( ) ; } + public long openFileDescriptors ( ) { + return this . openFileDescriptors ; + } + + public long getOpenFileDescriptors ( ) { + return openFileDescriptors ; + } + public Cpu cpu ( ) { r...
add getter for open file desc
<nb> public class SslHandler extends FrameDecoder { private static final ByteBuffer EMPTY_BUFFER = ByteBuffer . allocate ( NUMBER0 ) ; private static final Pattern CONNECTION_RESET = Pattern . compile ( - STRING0 , + STRING1 , Pattern . CASE_INSENSITIVE ) ; private static SslBufferPool defaultBufferPool...
Used non capturing group
<nb> public class StandaloneUpgrader if ( ! options . keepSource ) { SINGLE - System . out . format ( STRING0 , sstable . descriptor . baseFilename ( ) ) ; + System . out . format ( STRING1 , sstable . descriptor . baseFilename ( ) ) ; sstable . markObsolete ( ) ; sstable . selfRef ( ) . release ( ) ; }
use cross platform n
<nb> public class CardViewActivity extends AppCompatActivity { @ override public void onCheckedChanged ( RadioGroup group , int checkedId ) { mCardView . setCardBackgroundColor ( - getResources ( ) . getColor ( getColorId ( checkedId ) ) ) ; + getResources ( ) . getColorStateList ( getColorId ( checkedId ) ) ...
Set card background using ColorStateList
<nb> public abstract class Tree extends AbstractCollection < Tree > implements Label , La COMMENT COMMENT private int constituentsNodes ( int left ) { - if ( isPreTerminal ( ) ) { + if ( isLeaf ( ) ) { if ( label ( ) instanceof CoreLabel ) { ( ( CoreLabel ) label ( ) ) . set ( CoreAnnotations . SpanAnnota...
Set the spans on the leaves as well as internal nodes to better match the documentation
<nb> import NAMESPACE ; COMMENT public abstract class BindableConfigurable implements UnnamedConfigurable { - private ControlBinder myBinder ; + protected ControlBinder myBinder ; protected BindableConfigurable ( ControlBinder binder ) { myBinder = binder ;
i cannot get issues from YouTrack
<nb> public class ContextConfig docBase = STRING0 ; } else { if ( path . startsWith ( STRING1 ) ) { - docBase = path . substring ( NUMBER0 ) ; + docBase = path . substring ( NUMBER0 ) . replace ( STRING2 , STRING3 ) ; } else { - docBase = path ; + docBase = path . replace ( STRING2 , STRING3 ) ; } }...
Handle nested contexts when foo bar
<nb> public class BuildoutConfigurable implements Configurable , NonDefaultProjectConf @ nls @ override public String getDisplayName ( ) { - return STRING0 ; + return STRING1 ; } @ override
Remove Support from settings name
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT COMMENT public interface FrameworkSupportWithLibrary { - @ notnull + @ nullable CustomLibraryDescription createLibraryDescription ( ) ; boolean isLibraryOnly ( ) ;
allow to skip library addition
<nb> public class VectorDrawable extends Drawable { bounds . height ( ) ) ) { mCachedBitmap = Bitmap . createBitmap ( bounds . width ( ) , bounds . height ( ) , Bitmap . Config . ARGB_8888 ) ; + mCacheDirty = true ; } }
Set cache dirty when re create the cache bitmap
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class RouteDefinition extends ProcessorDefinition < RouteDefinition > { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT CO...
Added javadoc note about usage of adviceWith
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JobsResource { @ timed @ exceptionmetered public JobDeleteResponse delete ( @ pathparam ( STRING0 ) @ valid final JobId id , - @ querypara...
Remove unnecessary throws in JobsResource
<nb> final class CompilerOptionsPreprocessor { if ( options . getLanguageOut ( ) . isEs6OrHigher ( ) ) { throw new InvalidOptionsException ( STRING0 - + STRING1 ) ; + + STRING2 ) ; } if ( ! options . inlineFunctions
Fix a typo in error message
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PosixPatternValueToJsonbConverter implements @ override public PosixPatternValue toValue ( String value ) { - - return new PosixPatternValue ( value . substring ( NUMBER0 , value . len...
postgresql wrapper Fixed a bug that produces errors when patterns were used as argument in queries executed on array attributes
<nb> public class BaseActivity extends ATEActivity implements Constants , IExtendedAct super . onResume ( ) ; final NfcAdapter adapter = NfcAdapter . getDefaultAdapter ( this ) ; if ( adapter != null && adapter . isEnabled ( ) ) { - final PendingIntent intent = PendingIntent . getActivity ( this , NUMBER0 , new...
improved link handler
<nb> public class Http2ServerResponseImpl implements HttpServerResponse { private void end ( ByteBuf chunk ) { synchronized ( conn ) { - if ( chunk != null && ! chunked && ! headers . contains ( HttpHeaderNames . CONTENT_LENGTH ) ) { + if ( chunk != null && ! headers . contains ( HttpHeaderNames . CONTENT_LEN...
HttpServerResponse chunked cleanup
<nb> import NAMESPACE ; COMMENT @ configuration @ conditionalonbean ( { CounterService . class , GaugeService . class } ) - @ conditionalonclass ( { Servlet . class , ServletRegistration . class } ) + @ conditionalonclass ( { Servlet . class , ServletRegistration . class , + OncePerRequestFilter . class } )...
Make MetricFilter auto configuration conditional on OncePerRequestFilter
<nb> public class AndroidBackend implements Backend { mObjectFactory = new AndroidObjectFactory ( instrumentation ) ; } - public AndroidBackend ( Context context , ObjectFactory objectFactory ) { - mClasspathMethodScanner = new AndroidClasspathMethodScanner ( context ) ; - mObjectFactory = objectFactory ; ...
Removed unnecessary constructor
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Trust...
properly persist accepted crypto targets
<nb> public class NearCacheConfig implements DataSerializable , Serializable { evictionPolicy = in . readUTF ( ) ; timeToLiveSeconds = in . readInt ( ) ; maxSize = in . readInt ( ) ; - maxSize = in . readInt ( ) ; invalidateOnChange = in . readBoolean ( ) ; cacheLocalEntries = in . readBoolean ( ) ; final...
read maxSize only one in NearCacheConfig
<nb> public class StandardContext SINGLE oldCCL = bindThread ( ) ; + SINGLE + SINGLE + SINGLE + if ( ignoreAnnotations ) { + Wrapper jspServlet = ( Wrapper ) findChild ( Constants . JSP_SERVLET_NAME ) ; + jspServlet . addInitParameter ( STRING0 , STRING1 ) ; + } + try { SINGLE
Pass the ignore annotation flag to Jasper
<nb> public class CvsOperationExecutor { final CvsTabbedWindow tabbedWindow ) { if ( ! myShowErrors || myIsQuietOperation ) return ; if ( tabbedWindow == null ) { + if ( errors . isEmpty ( ) && warnings . isEmpty ( ) ) return ; final List < String > messages = new ArrayList < String > ( ) ; for ( VcsExcepti...
provide some message if Import fails since user has no write access to selected repository small correction
<nb> public class GrizzlyServer { @ setter private int port = NUMBER0 ; @ setter private String graphDirectory = STRING0 ; + @ setter private String staticContentDirectory = STRING1 ; @ setter private String defaultRouterId = STRING2 ; public void start ( String [ ] args ) { <nb> public class GrizzlySer...
add grizzly server property for static content directory
<nb> public class CorsInterceptor extends AtmosphereInterceptorAdapter { if ( STRING0 . equals ( req . getMethod ( ) ) ) { res . setHeader ( STRING1 , STRING2 ) ; res . setHeader ( STRING3 , - STRING4 ) ; + STRING5 ) ; res . setHeader ( STRING6 , STRING7 ) ; res . write ( emptyMessage . get ( ) ) ;
Also allow the AccessToken header
<nb> public class WPMainActivity extends ActionBarActivity if ( resultCode == RESULT_OK && data != null ) { int localId = data . getIntExtra ( SitePickerActivity . KEY_LOCAL_ID , NUMBER0 ) ; SINGLE - Blog blog = WordPress . getBlog ( localId ) ; + + SINGLE + Blog blog = WordPress . setCurrentBlog ( localI...
Update the current blog when it s changed from SitePickerActivity
<nb> public class PyClassImpl extends PyPresentableElementImpl < PyClassStub > implement @ notnull public PyClass [ ] getSuperClasses ( ) { - List < PyClass > stubSuperClasses = resolveSuperClassesFromStub ( ) ; - if ( stubSuperClasses != null ) { - return stubSuperClasses . toArray ( new PyClass [ stubSupe...
don t load PSI tree if we have stubs but failed to resolve superclasses via stubs
<nb> public class MatchQuery { } protected Query zeroTermsQuery ( ) { - SINGLE - SINGLE return zeroTermsQuery == DEFAULT_ZERO_TERMS_QUERY ? Queries . newMatchNoDocsQuery ( ) : Queries . newMatchAllQuery ( ) ; }
Removing question concerning default no docs query
<nb> public class XmppConnection extends ImConnection implements CallbackHandler { mNeedReconnect = false ; clearPing ( ) ; SINGLE - mStreamHandler . quickShutdown ( ) ; + + if ( mStreamHandler != null ) + mStreamHandler . quickShutdown ( ) ; } } ) ; } <nb> public class XmppConnection extends ImCo...
handle NPE and nosuchelement exceptions
<nb> public class Frame extends Lockable < Frame > { return fr2 ; } Frame frows = ( Frame ) orows ; - Vec vrows = makeCompatible ( new Frame ( frows . anyVec ( ) ) ) . anyVec ( ) ; - DKV . put ( vrows ) ; SINGLE SINGLE Vec [ ] vecs = new Vec [ c2 . length + NUMBER0 ] ; <nb> public class Frame extends ...
Remove unneeded code in Frame java after discussion with Cliff Anqi
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IgnoredFileIndexImpl implements IgnoredFileIndex { String pattern = tokenizer . nextToken ( ) ; if ( ! StringUtil . isEmptyOrSpaces ( pattern ) ) { try { - ...
consider FS case sensitivity when matching ignored patterns
<nb> import NAMESPACE ; COMMENT public class MediaResourceMonitorService extends SystemService { - private static final String TAG = STRING0 ; + private static final String TAG = STRING1 ; private static final boolean DEBUG = Log . isLoggable ( TAG , Log . DEBUG ) ; private static final String SERVICE_N...
Shorten the TAG
<nb> public class SaslProvider extends Provider { COMMENT COMMENT COMMENT - public SaslProvider ( ) { - super ( STRING0 , FLOAT0 , STRING1 ) ; - SINGLE - put ( STRING2 , STRING3 ) ; - SINGLE - put ( STRING4 , STRING3 ) ; + public SaslProvider ( ) + { + super ( STRING0 , FLOAT1 , STRING5 ) ; + ...
Provider should register all mechanisms
<nb> public interface World { public Location getSpawnLocation ( ) ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public boolean setSpawnLocation ( int x , int y , int z ) ; + + COMMENT COMMENT COMMENT COMMENT
Added method to set spawn location
<nb> public class TCPNetworkConnection implements NetworkConnection { ChannelPipeline pipeline = Channels . pipeline ( ) ; final TCPNetworkConnection conn = new TCPNetworkConnection ( params , new VersionMessage ( params , NUMBER0 ) ) ; conn . handshakeFuture = SettableFuture . create ( ) ; + conn . setRemoteAd...
Fix TCPNetworkConnection connectTo which broke during a previous re factor
<nb> public class AdminClient implements Closeable { } if ( status . isComplete ( ) ) { - logger . info ( nodeName + STRING0 + status ) ; return status . getStatus ( ) ; }
Removed a duplicate log in AdminClient waitForCompletion
<nb> public class EditPost extends Activity implements LocationListener { content . indexOf ( needle ) + needle . length ( ) , content . length ( ) ) ) ; } - post . setDescription ( content ) ; + else { + post . setDescription ( content ) ; + } post . setMediaPaths ( images ) ; post . setDate_created_...
Fixed more tag
<nb> public class TypeConverterAwareTest extends ContextTestSupport { PurchaseOrder order = context . getTypeConverter ( ) . convertTo ( PurchaseOrder . class , data ) ; assertNotNull ( order ) ; - System . out . println ( order ) ; - assertEquals ( STRING0 , order . getName ( ) ) ; assertEquals ( STRING1...
Removed system out
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; import NAMESPACE ; + + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; COMMENT <nb> public class MockServl...
Verify custom MIME type support in MockServletContext
<nb> public class ProjectRootManagerImpl extends ProjectRootManagerEx implements Proj rootPaths . add ( module . getModuleFilePath ( ) ) ; } + if ( myCompilerOutput != null ) { + final String url = myCompilerOutput . getUrl ( ) ; + rootPaths . add ( extractLocalPath ( url ) ) ; + } + final String proj...
add project compile directory to watched roots
<nb> public class WireCompiler { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix param name in the javadoc
<nb> class ProcessClosurePrimitives extends AbstractPostOrderCallback if ( compiler . getCodingConvention ( ) . isConstant ( namespace ) ) { name . putBooleanProp ( Node . IS_CONSTANT_NAME , true ) ; } - name . setJSDocInfo ( createConstantJsDoc ( ) ) ; + if ( candidateDefinition == null ) { + name . setJSD...
Only declare a namespace const if there is no candidate definition
<nb> public class ResultSetIterator implements Iterator < Map < String , Object > > { } } - private static interface Column { + private interface Column { String getName ( ) ;
Fixed the camel jdbc CS error
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RepositoryLibraryType extends LibraryType < RepositoryLibraryProperti @ override public LibraryPropertiesEditor createPropertiesEditor ( @ not...
create maven lib
<nb> public class DevicePolicyManager { public static final int PASSWORD_QUALITY_COMPLEX = NUMBER0 ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final int PASSWORD_QUALITY_MANAGED = NUMBER1 ; + + COMMENT COMMENT COMM...
Added new password quality constant PASSWORD_QUALITY_MANAGED to make it possible
<nb> public class PathParser { for ( int i = NUMBER0 ; i < nodeFrom . mParams . length ; i ++ ) { mParams [ i ] = nodeFrom . mParams [ i ] * ( NUMBER1 - fraction ) + nodeTo . mParams [ i ] * fraction ; + + SINGLE } + SINGLE } }
Removed debug output
<nb> public class ExpandableListView extends ListView { . getDimensionPixelSize ( com . android . internal . R . styleable . ExpandableListView_indicatorLeft , NUMBER0 ) ; mIndicatorRight = a . getDimensionPixelSize ( com . android . internal . R . styleable . ExpandableListView_indicatorRight , NUMBER0 ) ; - i...
Prevent NPE when no indicator is specified
<nb> public final class TvInputManager { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class TvInputService extends Service { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class TvView extends ViewGroup { ...
add new audio modes to the timeShiftSetPlaybackRate javadoc
<nb> public class SingleRowSource implements CollectSource { if ( collectPhase . whereClause ( ) . noMatch ( ) ) { return ImmutableList . < CrateCollector > of ( RowsCollector . empty ( downstream ) ) ; } + assert ! collectPhase . whereClause ( ) . hasQuery ( ) + : STRING0 ; ImplementationSymbolVisitor . Co...
Add no query assertion to SingleRowSource
<nb> public class PhoneWindowManager implements WindowManagerPolicy { SINGLE long [ ] mSafeModeEnabledVibePattern ; - - SINGLE - long [ ] mScrollBarrierVibePattern ; - + COMMENT boolean mEnableShiftMenuBugReports = false ; <nb> public class PhoneWindowManager implements WindowManagerPolicy { c...
Remove scroll barrier constant
<nb> public class ELParser COMMENT implements ELParserTreeConstants , ELParser xsp = jj_scanpos ; if ( jj_3R_11 ( ) ) jj_scanpos = xsp ; if ( jj_scan_token ( IDENTIFIER ) ) return true ; + if ( jj_scan_token ( LPAREN ) ) return true ; return false ; }
The surprisingly small update to the auto generate code to go with the update to the jjtree file
<nb> public class CopyBroadcastReceiver { this . receiver = receiver ; scratchBuffer = new AtomicBuffer ( new byte [ SCRATCH_BUFFER_SIZE ] ) ; + + SINGLE + SINGLE + SINGLE + while ( receiver . receiveNext ( ) ) + ; } COMMENT
get the broadcast receiver to catchup when constructed so that it doesn t run the risk of falling behind immediately
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removing unused import
<nb> public enum Answers implements Answer < Object > { this . implementation = implementation ; } - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - public Answer < Object > get ( ) { - return this ; - } - public Object answer ( InvocationOnMock invocation ) throws Throwable { return ...
Remove deprecated method
<nb> public class TestWebSettings extends WebSettings { private WebSettings . PluginState pluginState = WebSettings . PluginState . OFF ; private boolean supportMultipleWindows = false ; private boolean supportZoom = true ; + private String userAgentString = STRING0 ; public TestWebSettings ( ) { } <nb>...
Added user agent support to TestWebSettings
<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub { } } } - return null ; + SINGLE + return intent ; } }
Still return a package suspsended dialog if there is no owner
<nb> public class RequestQueue { long ret = INVALID_FRAME ; if ( mRepeatingRequest != null && mRepeatingRequest . getRequestId ( ) == requestId ) { mRepeatingRequest = null ; - ret = mCurrentRepeatingFrameNumber ; + ret = ( mCurrentRepeatingFrameNumber == INVALID_FRAME ) ? INVALID_FRAME : + mCurrentRepeatin...
Fix frame ID returned by legacy mode shim
<nb> public class AndroidAnnotationProcessor extends AbstractProcessor { loadApiPropertyFile ( ) ; } catch ( Exception e ) { messager . printMessage ( Diagnostic . Kind . ERROR , STRING0 + e . getMessage ( ) ) ; - throw new RuntimeException ( STRING1 , e ) ; } timeStats . setMessager ( messager ) ; <nb>...
Remove exceptions launched in some cases