diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public final class AuthorizationServerEndpointsConfigurer { private boolean tokenServicesOverride = false ; + private boolean reuseRefreshToken ; + public AuthorizationServerTokenServices getTokenServices ( ) { return tokenServices ; } <nb> public final class AuthorizationServerEndpointsConfigure...
Add convenience method for reuseRefreshToken
<nb> public class XPathFunctionCallImpl extends XPathElementImpl implements XPathFunc } public String getName ( ) { - return myFunctionDecl . getName ( ) ; + return myFunctionDecl != null ? myFunctionDecl . getName ( ) : getFunctionName ( ) ; } public String toString ( ) {
XPathFunctionCallImpl Reference FunctionImpl getName
<nb> public class CommentsActivity extends AppCompatActivity } SINGLE - if ( mSelectedCommentId != NUMBER0 ) { + if ( mSelectedCommentId != NUMBER0 && hasDetailFragment ( ) ) { outState . putLong ( KEY_SELECTED_COMMENT_ID , mSelectedCommentId ) ; }
Don t store selected comment ID unless detail view is showing
<nb> public class ContactListTree extends JTree MetaContact currentContact = ( MetaContact ) node . getUserObject ( ) ; - if ( currentContact . getDefaultContact ( ) . getAlias ( ) - . equals ( contact . getAlias ( ) ) ) { + if ( currentContact . getDefaultContact ( ) . getDisplayName ( ) + . equals ( con...
Renamed methods in metacontactlist classes for better intuitivity
<nb> public class Solo { public Solo ( Instrumentation instrumentation , Config config ) { this ( config , instrumentation , null ) ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + + public Solo ( Instrumentation instrumentation , Config config , Activi...
Added a new constructor Solo Instrumentation instrumentation Config config Activity activity
<nb> public final class WebViewCore { } SINGLE - private void updateTextfield ( int ptr , boolean changeToPassword , - String text , int textGeneration ) { + private void updateTextfield ( int ptr , String text , int textGeneration ) { if ( mWebViewClassic != null ) { - Message msg = Message . obtain ( ...
Remove password change from updateTextfield
<nb> public class AnimatedFactoryImpl implements AnimatedFactory { PlatformBitmapFactory platformBitmapFactory , ExecutorSupplier executorSupplier ) { this . mContext = context ; - this . mPlatformBitmapFactory = mPlatformBitmapFactory ; + this . mPlatformBitmapFactory = platformBitmapFactory ; this . mExec...
Fix AnimatedFactoryImpl constructor
<nb> abstract public class AbstractDialog extends JDialog { } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT - public AbstractDialog ( Frame arg0 , boolean arg1 ) throws HeadlessException { - super ( arg0 , arg1 ) ; + public AbstractDialog ( Frame owner , boolean modal ) throws ...
only renamed variables
<nb> public final class PluginManager { pluginName = xml . getAttributeValue ( null , STRING0 ) ; SINGLE this . addService ( pluginName , pluginClass ) ; + + SINGLE + if ( STRING1 . equals ( xml . getAttributeValue ( null , STRING2 ) ) ) { + this . getPlugin ( pluginName ) ; + } } else if ( strNode . ...
Add onload attribute to plugin in plugins xml to create the plugin at load time instead of lazy loading
<nb> public abstract class AsynchronousProcessor implements AsyncSupport < AtmosphereRe ( ( DefaultBroadcaster ) b ) . broadcastOnResume ( r ) ; } - impl . getAtmosphereResourceEvent ( ) . setIsResumedOnTimeout ( impl . resumeOnBroadcast ( ) ) ; + SINGLE + SINGLE } invokeAtmosphereHandler ( impl ) ;
Fix resumeOnTimout value
<nb> final class DisplayPowerController { SINGLE private static final int BRIGHTNESS_RAMP_RATE_FAST = NUMBER0 ; - private static final int BRIGHTNESS_RAMP_RATE_SLOW = NUMBER1 ; + private static final int BRIGHTNESS_RAMP_RATE_SLOW = NUMBER2 ; SINGLE SINGLE SINGLE SINGLE SINGLE - private static fi...
Adjust auto brightness time constants
<nb> public final class PersistCommand extends AbstractShellCommand { URIStatus status = mFileSystem . getStatus ( filePath ) ; if ( status . isFolder ( ) ) { List < URIStatus > statuses = mFileSystem . listStatus ( filePath ) ; - List < String > errorMessages = new ArrayList < String > ( ) ; + List < String ...
SMALLFIX Removed explicit argument type in PersistCommand
<nb> public abstract class AbstractSecurityWebSocketMessageBrokerConfigurer extends A public ChannelSecurityInterceptor inboundChannelSecurity ( ) { ChannelSecurityInterceptor channelSecurityInterceptor = new ChannelSecurityInterceptor ( inboundMessageSecurityMetadataSource ( ) ) ; List < AccessDecisionVoter < ? ...
Fix unchecked warning in AbstractSecurityWebSocketMessageBrokerConfigurer
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IntegrationTest { MyRoutes config ; @ inject - CamelContext camelContext ; - - @ inject @ mock MockEndpoint result ; @ produce...
simplfied integration test using CamelStartup
<nb> public abstract class BaseStatusBar extends SystemUI implements true COMMENT , true COMMENT ) ; visibilityChanged ( false ) ; - return intent != null && intent . isActivity ( ) ; + return true ; } } , afterKeyguardGone ) ; } <nb> public class WindowAnimator { boolean applyExistingExitAnimation ...
Fix lockscreen launch animations
<nb> public class MavenSelectProjectPopup { final Ref < JBPopup > popupRef = new Ref < JBPopup > ( ) ; - Runnable clickCallBack = new Runnable ( ) { + final Runnable clickCallBack = new Runnable ( ) { @ override public void run ( ) { TreePath path = projectTree . getSelectionPath ( ) ; <nb> public cla...
cannot select maven project by Enter
<nb> public class DisplayUtils { return parts [ NUMBER0 ] ; } } - SINGLE + SINGLE return dateString . toString ( ) ; }
Updated comment only
<nb> public class Stage extends InputAdapter implements Disposable { event . setButton ( button ) ; Actor target = hit ( tempCoords . x , tempCoords . y , true ) ; - if ( target == null ) target = root ; + if ( target == null ) { + if ( root . getTouchable ( ) == Touchable . enabled ) root . fire ( event ) ...
Enforce touchable attribute for Stage root
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT
Fix malformed RandomValuePropertySource javadoc
<nb> public class WorkbenchScreen extends Composite SINGLE int consoleWidth = paneManager_ . getConsole ( ) . getCharacterWidth ( ) ; + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + try + { + if ( paneManager_ . getConsole ( ) . getOffsetWidth ( ) <= NUMBER0 && + lastMetrics_ != null ) + { + ...
don t save client metrics for console when it is hidden
<nb> public final class FileSystemWorker extends AbstractWorker { mFilePersistenceService . cancel ( true ) ; } mFileSystemMasterWorkerClient . close ( ) ; - getExecutorService ( ) . shutdown ( ) ; + SINGLE + getExecutorService ( ) . shutdownNow ( ) ; } }
Properly shut down file system workers
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class CommonCrawlToNgram implements AutoCloseable { this . indexTopDir = indexTopDir ; this . evalFile = evalFile ; this . sentenceTok...
use a Google style word tokenizer
<nb> public class CreateDatabaseChangeLogTableGenerator implements SqlGenerator < Creat . addColumn ( STRING0 , STRING1 ) . addColumn ( STRING2 , STRING3 ) ; - if ( database instanceof MSSQLDatabase ) { - createTableStatement . setSchemaName ( STRING4 ) ; - } - return SqlGeneratorFactory . getInstance (...
allow non dbo sqlserver schemas
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public class JSONArray implements Iterable < Object > { <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public class JSONObject { COMMENT
update version dates
<nb> public class WritableFile extends File implements Writable { return delegate . compareTo ( arg0 ) ; } + public int compareTo ( Object arg0 ) { + return delegate . compareTo ( arg0 ) ; + } + public boolean createNewFile ( ) throws IOException { return delegate . createNewFile ( ) ; }
Reverting a change that is inexplicable and should never have happened
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT
Revert auto import changes
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class BaseClassesAnalysisAction extends BaseAnalysisAction { ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { @ override public void run ( ) { + if ( project . isDisposed ( ) ) { + return ; ...
additional project disposed check for BaseClassesAnalysisAction
<nb> public class AnimateDraggingMapThread { protected static final Log log = PlatformUtil . getLog ( AnimateDraggingMapThread . class ) ; private final static float DRAGGING_ANIMATION_TIME = NUMBER0 f ; - private final static float ZOOM_ANIMATION_TIME = NUMBER1 f ; - private final static float ZOOM_MOVE_ANIM...
Speed up zoom in
<nb> public class DefaultRepositoryHandler extends DefaultArtifactRepositoryContainer public MavenArtifactRepository mavenCentral ( Map < String , ? > args ) { Map < String , Object > modifiedArgs = new HashMap < String , Object > ( args ) ; - if ( modifiedArgs . containsKey ( STRING0 ) ) { - DeprecationLogge...
Removed deprecated urls parameter from mavenCentral
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class CloneDvcsDialog extends DialogWrapper { private void createUIComponents ( ) { myRepositoryURL = new EditorComboBox ( STRING0 ) ; fi...
wrap returned method value to a new collection in case someone decides to return unmodifiable list
<nb> public class BookmarkItem implements ItemWrapper { } public void execute ( Project project , JBPopup popup ) { + popup . cancel ( ) ; myBookmark . navigate ( ) ; }
cancel popup on navigation
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public void getLocationOnScreen ( @ size ( NUMBER0 ) int [ ] outLocation ) { getLocationInWindow ( outLocation ) ; <nb> public class View implements Drawable . Callback , K...
Fix build by making docs match params
<nb> public class ZygoteInit { } else { ClassLoader cl = null ; if ( systemServerClasspath != null ) { - cl = new PathClassLoader ( systemServerClasspath , ClassLoader . getSystemClassLoader ( ) ) ; + cl = createSystemServerClassLoader ( systemServerClasspath , + parsedArgs . targetSdkVersion ) ; + Thre...
Create linker namespace for the system server classloader
<nb> public class HttpRequest { private static final long serialVersionUID = - NUMBER0 ; COMMENT - COMMENT - COMMENT - COMMENT - public RequestException ( String message , Throwable cause ) { - super ( message , cause ) ; - } - - COMMENT - COMMENT - COMMENT - public RequestException ( String...
Remove unused exception constructors
<nb> public interface Output extends Appendable , Remote COMMENT COMMENT - COMMENT COMMENT COMMENT void println ( ) throws RemoteException ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NA...
Fixed some javadoc errors
<nb> public class ReaderPostTable { } - SINGLE + SINGLE SINGLE if ( ! isFollowed ) { if ( blogId != NUMBER0 ) { <nb> public class ReaderPostTable { if ( tag . tagType == ReaderTagType . DEFAULT ) { SINGLE - SINGLE + SINGLE if ( tag . isPostsILike ( ) ) { sql += STRING0 ; } else if ( ta...
Updated comments related to Blogs I Follow
<nb> public class RelIdArray } else { + SINGLE + SINGLE newLastBlock = new HighIdBlock ( highBits ) ; if ( lastBlock != null ) {
Added a todo comment
<nb> public abstract class HighlightingTestBase extends UsefulTestCase implements Ide } ; } } - - private static class MyMockProgressIndicator extends MockProgressIndicator implements UserDataHolder { - private final UserDataHolderBase myHolder = new UserDataHolderBase ( ) ; - - public < T > T getUserDa...
removed unused class
<nb> public class Material implements CloneableSmartAsset , Cloneable , Savable { ambientLightColor . addLocal ( l . getColor ( ) ) ; if ( removeLights ) { lightList . remove ( l ) ; + j -- ; } } if ( l instanceof LightProbe ) { probe = ( LightProbe ) l ; if ( removeLights ) { lightList . remove ( l...
Fixed indirect light extraction in Material
<nb> public class WicketUtils { } public static Label createDateLabel ( String wicketId , Date date , TimeZone timeZone , TimeUtils timeUtils ) { + return createDateLabel ( wicketId , date , timeZone , timeUtils , true ) ; + } + + public static Label createDateLabel ( String wicketId , Date date , TimeZon...
Revise date label creation for optional css class
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Notifications extends BroadcastReceiver { COMMENT private static boolean checkLastNotificationSound ( ) { long now = DateUtilities . now ( ...
Fixed bugs with NotificationTests
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ThumbnailsCacheManager { GetMethod get = new GetMethod ( uri ) ; status = mClient . executeMethod ( get ) ; if ( status == HttpStatus . SC_OK ) { - byte [ ] bytes = get . getR...
Replace call to get ResponseBody with get getReponseBodyAsStream in ThumbnailsCacheManager
<nb> public abstract class AbstractPrologCommandPlayer implements CommandPlayer , Stat SINGLE try { AudioManager mAudioManager = ( AudioManager ) ctx . getSystemService ( Context . AUDIO_SERVICE ) ; - SINGLE - SINGLE if ( mAudioManager == null || ! mAudioManager . isBluetoothScoAvailableOffCall ( ) ) { re...
remove obsolete comment
<nb> COMMENT 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 ; + imp...
Disable a flaky test on Windows
<nb> public class FrameCompressionExtension extends AbstractExtension private CompressionMethod method = new DeflateCompressionMethod ( ) ; @ override - public void incomingFrame ( Frame frame ) + public synchronized void incomingFrame ( Frame frame ) { if ( frame . getType ( ) . isControl ( ) || ! frame ...
Adding synchronize for multi threaded write concerns
<nb> public class DependencyManager implements InstallShinyEvent . Handler userAction , userPrompt , new Dependency [ ] { + + SINGLE + Dependency . cranPackage ( STRING0 , STRING1 ) , + Dependency . cranPackage ( STRING2 , STRING3 ) , + Dependency . cranPackage ( STRING4 , STRING5 ) , + Dependency . c...
add rmarkdown as dependency of rsconnect
<nb> public final class LocationBlacklist extends ContentObserver { COMMENT COMMENT public boolean isBlacklisted ( String packageName ) { + COMMENT synchronized ( mLock ) { for ( String black : mBlacklist ) { if ( packageName . startsWith ( black ) ) { <nb> public final class LocationBlacklist extends C...
temporarily disable blacklisting
<nb> public class AuthActivity extends BaseFragmentActivity { break ; case LOGGED_IN : finish ( ) ; - startActivity ( new Intent ( this , RootActivity . class ) ) ; + ActorSDK . sharedActor ( ) . startMessagingApp ( this ) ; break ; } }
start delegated activity after login
<nb> public abstract class BaseMenuPresenter implements MenuPresenter { if ( item != oldItem ) { SINGLE itemView . setPressed ( false ) ; - itemView . jumpDrawablesToCurrentState ( ) ; + SINGLE + SINGLE } if ( itemView != convertView ) { addItemView ( itemView , childIndex ) ;
Remove non implemented APIs in BaseMenuPresenter
<nb> public class PApplet extends Activity implements PConstants , Runnable { mouseClicked ( ) ; tapEvent ( downX , downY ) ; } else if ( MIN_SWIPE_LENGTH <= gestureLength && gestureTime <= MAX_SWIPE_DURATION ) { + mouseReleased ( ) ; swipeEvent ( downX , downY , upX , upY ) ; } else { mouseReleased ( ) ;
generates mouse released event along the swipe event
<nb> public class CertificateServiceImpl String tsFile = ( String ) config . getProperty ( PNAME_TRUSTSTORE_FILE ) ; String tsPassword = credService . loadPassword ( PNAME_TRUSTSTORE_PASSWORD ) ; - SINGLE - SINGLE - if ( tsFile != null && tsFile . equals ( STRING0 ) ) - { - tsType = tsFile ; - tsFile ...
Remove property migration code
<nb> public class Vector { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public Vector positive ( ) { + return new Vector ( Math . abs ( x ) , Math . abs ( y ) , Math . abs ( z ) ) ; + } + + COMMENT COMMENT COMMENT COMMENT <nb> public class Vector2D { } COMMENT + COMMENT ...
Add positive to Vector and Vector2D
<nb> public class AndroidNeverlinkAspect extends NativeAspectClass implements Configu return builder . requireProvider ( JavaCompilationArgsProvider . class ) + . requiresConfigurationFragments ( ) . build ( ) ; } }
Adds configuration fragment requirements for AndroidNeverlinkAspect
<nb> public class ServerSentEventTestCase { connection . send ( STRING0 , new ServerSentEventConnection . EventCallback ( ) { @ override public void done ( ServerSentEventConnection connection , String data , String event , String id ) { - IoUtils . safeClose ( connection ) ; + connection . shutdown ( ) ; }...
Fix issue with SSE test
<nb> public class BeanConfig extends AbstractScanner implements Scanner , SwaggerConfi ConfigurationBuilder config = new ConfigurationBuilder ( ) ; Set < String > acceptablePackages = new HashSet < String > ( ) ; - if ( resourcePackage != STRING0 ) { + if ( resourcePackage != null && ! STRING0 . equals ( reso...
use better pattern to compare to empty resourcePackages
<nb> public class CertificateManager { throw new IllegalArgumentException ( STRING0 ) ; } - final Collection < X509Certificate > certificates ; - try ( InputStream inputStream = new ByteArrayInputStream ( pemRepresentation . trim ( ) . getBytes ( ) ) ) + SINGLE + final String pem = pemRepresentation + ....
Trim each line of a PEM representation
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fixed unused imports
<nb> public abstract class NanoHTTPD { COMMENT public long getBodySize ( ) { if ( this . headers . containsKey ( STRING0 ) ) { - return Integer . parseInt ( this . headers . get ( STRING0 ) ) ; + return Long . parseLong ( this . headers . get ( STRING0 ) ) ; } else if ( this . splitbyte < this . rlen ) { ...
Fix content length not being parsed as long
<nb> public class ZyEdgeRealizer < EdgeType > extends PolyLineEdgeRealizer implements IZ private boolean m_isSloppyPainting = false ; - private final ListenerProvider < IZyEdgeRealizerListener < EdgeType > > m_listeners = - new ListenerProvider < IZyEdgeRealizerListener < EdgeType > > ( ) ; + private final ...
Remove Internal error message
<nb> public class Utils { } public static boolean hasNavBar ( Context context ) { - cd + Display display = ( ( Activity ) context ) . getWindowManager ( ) . getDefaultDisplay ( ) ; + Point size = new Point ( ) ; + Point realSize = new Point ( ) ; + display . getSize ( size ) ; + display . getRealSize ...
Fix Accidental removal of vital code
<nb> public class SimpleGcWriter extends AbstractDataWriter { @ override public void write ( GCModel model ) throws IOException { Iterator < AbstractGCEvent < ? > > i = model . getEvents ( ) ; + final Locale NO_LOCALE = null ; while ( i . hasNext ( ) ) { AbstractGCEvent < ? > abstractEvent = i . next ( ) ; ...
Avoid null cast and replace println with n in printf
<nb> public class EvictionPlan { mToEvict = Preconditions . checkNotNull ( toEvict ) ; } - public List < Pair < Long , BlockStoreLocation > > toTransfer ( ) { + public List < Pair < Long , BlockStoreLocation > > toMove ( ) { return mToMove ; } <nb> public class EvictionPlan { @ override public S...
Change toTransfer to toMove for EvitionPlan
<nb> public class UpdateLockService extends IUpdateLock . Stub { Intent intent = new Intent ( UpdateLock . UPDATE_LOCK_CHANGED ) . putExtra ( UpdateLock . NOW_IS_CONVENIENT , state ) . putExtra ( UpdateLock . TIMESTAMP , System . currentTimeMillis ( ) ) - . addFlags ( Intent . FLAG_RECEIVER_REGISTERED_ONLY ) ; ...
Send UpdateLock broadcasts to manifest receivers
<nb> public class RuntimeEnvironmentTest { } ) ; t . start ( ) ; t . join ( ) ; - assertEquals ( new File ( path ) . getCanonicalFile ( ) . getAbsolutePath ( ) , instance . getDataRootPath ( ) ) ; + assertEquals ( new File ( path ) , new File ( instance . getDataRootPath ( ) ) ) ; } @ test
fixed test where dataroot can be symlink
<nb> public class JobSupervisor { String jobId = getConfiguration ( ) . getJobId ( ) ; for ( Address address : addresses ) { try { - CancelJobSupervisorOperation operation = new CancelJobSupervisorOperation ( name , jobId , jobOwner ) ; + CancelJobSupervisorOperation operation = new CancelJobSupervisorOperati...
Fixed compile error on last commit
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SamplesUtil COMMENT public static Consumer < Subscription > subscriberL...
Change throughput tests to use busy spin idle strategy
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class ImplicitOutputsFunction { SINGLE SINGLE Object value = map . get ( attrName , map . getAttributeType ( attrName ...
Fix access to undefined label attribute in computed outputs
<nb> public final class ViewRootImpl implements ViewParent , mAttachInfo . mHardwareAccelerationRequested = false ; SINGLE - if ( false && mTranslator != null ) return ; + if ( mTranslator != null ) return ; SINGLE final boolean hardwareAccelerated = ( attrs . flags & WindowManager . LayoutParams . FL...
Revert Force enable hardware acceleration for apps
<nb> public class StatementFinalizerTest extends DefaultTestCase { } public void testStatementFinalization ( ) throws Exception { - DataSourceProxy d1 = this . createDefaultDataSource ( ) ; - d1 . setJdbcInterceptors ( StatementFinalizer . class . getName ( ) ) ; - Connection con = d1 . getConnection ( ) ; ...
Fix test case
<nb> public class DeepLearningProstateTest extends TestUtil { SINGLE if ( ! replicate ) assert ( ( double ) model1 . _output . _scoring_history . get ( NUMBER0 , NUMBER1 ) == NUMBER0 ) ; SINGLE - else assert ( ( double ) model1 . _output . _scoring_history . get ( NUMBER0 , NUMBER1 ) > FLOAT0 && ( double ) mode...
Relax DL prostate test JUnit tolerance
<nb> import static NAMESPACE import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> class OSGiSubsystemProviders { subsystem . get ( DESCRIPTION ) . set ( resbundle . getString ( STRING0 ) ) ; ...
Removing the XML namespace from the model description
<nb> public class WebAppContext extends ServletContextHandler implements WebAppClassL SINGLE public final static String [ ] __dftServerClasses = { - STRING0 , SINGLE + STRING1 , SINGLE STRING2 , SINGLE STRING3 , SINGLE STRING4 , SINGLE
Open up webappclassloader to SessionData for de serialization of sessions
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JVMNameUtil { } } + if ( positionFile instanceof PsiClassOwner ) { + String name = ( ( PsiClassOwner ) positionFile )...
Groovy script breakpoints are always shown in default package
<nb> class ImageDownloader { } } - static void cancelRequest ( ImageRequest request ) { + static boolean cancelRequest ( ImageRequest request ) { + boolean cancelled = false ; RequestKey key = new RequestKey ( request . getImageUrl ( ) , request . getCallerTag ( ) ) ; synchronized ( pendingRequests ) { ...
Returning a confirmation of the cancel request
<nb> public class JavadocStyleCheck STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 , STRING14 , STRING15 , STRING16 , STRING17 , STRING18 , STRING19 , STRING20 , STRING21 , STRING22 , STRING23 , STRING24 , STRING25 , ST...
Adding u HTML tag to list of allowed tags in JavaDoc
<nb> public class GrTypeDefinitionMembersCache { public List < PsiMethod > collectMethods ( @ notnull Collection < PsiMethod > codeMethods ) { if ( myDefinition . isInterface ( ) && ! myDefinition . isTrait ( ) ) return Collections . emptyList ( ) ; - GrImplementsClause clause = myDefinition . getImplementsClau...
groovy collect members from all traits including those from ast transformations
<nb> public abstract class AbstractHazelcastStoreManager extends LocalStoreManager im private StoreFeatures getDefaultFeatures ( ) { StoreFeatures features = new StoreFeatures ( ) ; - features . supportsTransactions = true ; - features . isDistributed = false ; - features . supportsScan = true ; feature...
reordered the features so its easier to read
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JobCollectContext implements ExecutionSubContext , ExecutionState { private final AtomicBoolean killed = new AtomicBoolean ( false ) ; privat...
initialize collectors to empty list in JobCollectContext
<nb> public class DownloadEventPoolImpl implements IDownloadEventPool { synchronized ( eventId . intern ( ) ) { boolean succeed = container . remove ( listener ) ; if ( container . size ( ) <= NUMBER0 ) { - listenersMap . remove ( container ) ; + listenersMap . remove ( eventId ) ; } return succeed ; }
remove the right eventList from eventPool when there isn t any listeners for the event
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class Match { final PsiElement matchStart = getMatchStart ( ) ; LOG . assertTrue ( matchStart == getMatchEnd ( ) ) ; if (...
shorten refs when replace duplicates
<nb> public class ChannelActivity extends AppCompatActivity { @ override public void onClick ( View view ) { Log . d ( TAG , info . feed_url ) ; - Intent i = new Intent ( Intent . ACTION_VIEW , Uri . parse ( info . feed_url + STRING0 ) ) ; + Intent i = new Intent ( Intent . ACTION_VIEW , Uri . parse ( info . ...
add feed function
<nb> import NAMESPACE ; COMMENT class TextFragment implements LineFragment { SINGLE - private static final Point NOWHERE = new Point ( Integer . MIN_VALUE , Integer . MIN_VALUE ) ; + private static final Point NOWHERE = new Point ( NUMBER0 , NUMBER0 ) ; @ notnull private final GlyphVector myGlyphVector ...
fix editor rendering issue on Linux where negative glyph y coordinates seem to be trimmed to zero
<nb> public class PImage implements PConstants , Cloneable { modified = true ; mx1 = NUMBER0 ; my1 = NUMBER0 ; - mx2 = width - NUMBER1 ; - my2 = height - NUMBER1 ; + mx2 = width ; + my2 = height ; }
changing mx2 my2 back
<nb> public class ATNDeserializer { @ suppresswarnings ( STRING0 ) public ATN deserialize ( char [ ] data ) { data = data . clone ( ) ; - SINGLE + + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGL...
Document the value shifting used in the serialized ATN
<nb> public class BasicUtils { } public static boolean judgeNotNull ( Object object ) { - return judgeNotNull ( object , new Object [ NUMBER0 ] ) ; + return judgeNotNull ( object , new Object [ NUMBER0 ] ) ; } public static boolean judgeNotNull ( Object object , Object . . . objects ) {
add object array of judge not null
<nb> public class TransportBroadcastByNodeActionTests extends ESTestCase { private TestClusterService clusterService ; private CapturingTransport transport ; - private TransportService transportService ; private TestTransportBroadcastByNodeAction action ; <nb> public class TransportBroadcastByNodeAction...
Move field to local variable
<nb> public final class WebViewFactory { return ( Class < WebViewFactoryProvider > ) Class . forName ( CHROMIUM_WEBVIEW_FACTORY , true , clazzLoader ) ; } catch ( PackageManager . NameNotFoundException e ) { - Log . e ( LOGTAG , STRING0 ) ; - return ( Class < WebViewFactoryProvider > ) Class . forName ( NULL_...
Don t let failures to load the null WebView propagate
<nb> public final class FileSystemMaster extends AbstractMaster { LOG . debug ( STRING0 , srcPath , dstPath ) ; SINGLE - FileInfo fileInfo = getFileInfoInternal ( srcInode ) ; - if ( ! replayed && fileInfo . isPersisted ( ) ) { + if ( ! replayed && srcInode . isPersisted ( ) ) { MountTable . Resolution re...
Remove unnecessary getFileInfoInternal call
<nb> public class HazelcastXaTest { } @ test - public void testRecovery ( ) throws Exception { HazelcastInstance instance1 = Hazelcast . newHazelcastInstance ( ) ; HazelcastInstance instance2 = Hazelcast . newHazelcastInstance ( ) ;
remove unneeded line
<nb> package NAMESPACE ; 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 ; import NA...
Fix the hasAnnotation utility method for annotations that aren t fully qualified
<nb> public class Dictionaries { BufferedReader reader = IOUtils . readerFromString ( file ) ; for ( String line ; ( line = reader . readLine ( ) ) != null ; ) { String [ ] split = line . split ( STRING0 ) ; - String [ ] pieces = split [ NUMBER0 ] . split ( STRING1 ) ; - List < String > tokens = Arrays . asLi...
Fix variable name
<nb> public class PathResource extends AbstractResource implements WritableResource { COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT
Remove duplicate Javadoc line from PathResource
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class RestService extends HttpRequestHandler { else { isTrusted . set ( trustedOrigins . getIfPresent ( host ) ) ; } ...
make tests green
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DownloadActivity extends BaseDownloadActivity { public void onClick ( DialogInterface dialog , int which ) { for ( String w...
Fix downnload activity archive
<nb> public class TextEditingTarget implements dirtyState_ , events_ ) ; - view_ . initWidgetSize ( ) ; - roxygenHelper_ = new RoxygenHelper ( docDisplay_ , view_ ) ; SINGLE <nb> public class TextEditingTarget implements } ) ; name_ . setValue ( getNameFromDocument ( document , defaultNameProvid...
don t show document outline in empty documents
<nb> final class FindDialog extends DialogWrapper { optionsPanel . add ( createGlobalScopePanel ( ) , gbConstraints ) ; gbConstraints . weightx = NUMBER0 ; gbConstraints . weighty = NUMBER0 ; - gbConstraints . fill = GridBagConstraints . BOTH ; + gbConstraints . fill = GridBagConstraints . HORIZONTAL ; gb...
make combo box show in fixed vertical size
<nb> public abstract class JavaTestFrameworkRunnableState < T extends final DefaultExecutionResult result = new DefaultExecutionResult ( consoleView , handler ) ; result . setRestartActions ( rerunFailedTestsAction , new ToggleAutoTestAction ( ) { @ override + public boolean isDelayApplicable ( ) { + return f...
hide auto test delay for java configurations which are compiler based
<nb> public class NettyAsyncHttpProvider extends IdleStateHandler implements AsyncHtt } private void closeChannel ( final ChannelHandlerContext ctx ) { - if ( config . getMaxTotalConnections ( ) != - NUMBER0 ) { + if ( config . getMaxTotalConnections ( ) != - NUMBER0 && ctx . getChannel ( ) . isOpen ( ) ) { ...
Make sure the counter is never descreased more than once
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DroidGap extends Activity { } } + SINGLE + public void startCamera ( ) + { + Intent i = new Intent ( this , Camer...
Wiring the camera to the DroidGap
<nb> import NAMESPACE ; import NAMESPACE ; 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 NAMES...
WPNetworkImageView now enforces a max size to avoid loading large images into memory