diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Adding missing license header
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ClientServiceTest extends HazelcastTestSupport { @ test + @ category ( NightlyTest . class ) public void testNumberOfClients_afterUnAuthenticatedClient_withTwoNode_twoClient ( ) { final HazelcastInstance instance1 = Hazelcast . newHazelcastInstance ( ) ; final HazelcastInstance instance2 = Hazelcast . newHazelcastInstance ( ) ;
Marked a slow CLientServiceTest as nightly
<nb> public class WelcomeEmailFragment extends BaseFragment < WelcomeEmailFragment . Cont signInZetaButton . setOnClickListener ( this ) ; createAccountZetaButton . setOnClickListener ( this ) ; + + getStoreFactory ( ) . getNetworkStore ( ) ; SINGLE } @ override
Fix internet connection check when pressing login button on tablet
<nb> final class RecordingSession { recorder = new MediaRecorder ( ) ; recorder . setVideoSource ( SURFACE ) ; recorder . setOutputFormat ( MPEG_4 ) ; + recorder . setVideoFrameRate ( NUMBER0 ) ; recorder . setVideoEncoder ( H264 ) ; recorder . setVideoSize ( displayWidth , displayHeight ) ; recorder . setVideoEncodingBitRate ( NUMBER1 * NUMBER2 * NUMBER2 ) ;
Added Video Framerate to Fix prepare crash
<nb> public class AssetManager implements Disposable { log . debug ( STRING0 ) ; } + COMMENT + COMMENT + public void finishLoadingAsset ( String fileName ) { + log . debug ( STRING1 + fileName + STRING2 ) ; + while ( ! isLoaded ( fileName ) ) { + update ( ) ; + ThreadUtils . yield ( ) ; + } + log . debug ( STRING3 + fileName + STRING4 ) ; + } + synchronized void injectDependencies ( String parentAssetFilename , Array < AssetDescriptor > dependendAssetDescs ) { ObjectSet < String > injected = this . injected ; for ( AssetDescriptor desc : dependendAssetDescs ) {
Added a method finishLoadingAsset String
<nb> public class RendererRegistry { internalRenderers . put ( STRING0 , STRING0 + STRING1 ) ; internalRenderers . put ( STRING2 , STRING2 + STRING1 ) ; internalRenderers . put ( STRING3 , STRING3 + STRING1 ) ; + internalRenderers . put ( STRING4 , STRING5 + STRING1 ) ; } public RenderingRulesStorage defaultRender ( ) {
Add nautical to renderer registry
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
remove compile warnnings
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed unused import
<nb> public class PlatformTestUtil { public static String getCommunityPath ( ) { final String homePath = PathManager . getHomePath ( ) ; - if ( new File ( homePath , STRING0 ) . exists ( ) ) { + if ( new File ( homePath , STRING1 ) . isDirectory ( ) ) { return homePath + File . separatorChar + STRING0 ; } return homePath ;
corrected isCommunity check
<nb> public class RebalanceDatasetTest extends TestUtil { @ beforeclass public static void setup ( ) { stall_till_cloudsize ( NUMBER0 ) ; } @ test public void testProstate ( ) { Key rebalancedKey = Key . make ( STRING0 ) ; - for ( int i = NUMBER1 ; i < NUMBER2 ; ++ i ) { + int [ ] trials = { NUMBER3 , NUMBER1 , NUMBER4 , NUMBER5 , NUMBER6 , NUMBER7 , NUMBER8 , NUMBER9 , NUMBER10 , NUMBER11 , NUMBER12 } ; + for ( int k = NUMBER13 ; k < trials . length ; ++ k ) { + int i = trials [ k ] ; Frame fr = null , rebalanced = null ; try { NFSFileVec nfs = NFSFileVec . make ( find_test_file ( STRING1 ) ) ;
limit the cases in the rebalance test to get the gradle build time back to where it was
<nb> public class GzipFilterContentLengthTest { GzipTester tester = new GzipTester ( testingdir ) ; - SINGLE tester . prepareServerFile ( STRING0 , filesize ) ; FilterHolder holder = tester . setContentServlet ( servletClass ) ; <nb> public class GzipFilterContentLengthTest { GzipTester tester = new GzipTester ( testingdir ) ; - SINGLE tester . prepareServerFile ( STRING1 , filesize ) ; FilterHolder holder = tester . setContentServlet ( org . eclipse . jetty . servlet . DefaultServlet . class ) ;
Removed misleading comments
<nb> public class Cache < K , V > implements Map < K , V > { public synchronized V put ( K key , V value ) { SINGLE - remove ( key ) ; + V answer = remove ( key ) ; int objectSize = calculateSize ( value ) ; <nb> public class Cache < K , V > implements Map < K , V > { SINGLE cullCache ( ) ; - return value ; + return answer ; } public synchronized V get ( Object key ) { <nb> public class Cache < K , V > implements Map < K , V > { return ( ( Cacheable ) object ) . getCachedSize ( ) ; } SINGLE + else if ( object instanceof String ) { + return CacheSizes . sizeOfString ( ( String ) object ) ; + } else if ( object instanceof Long ) { return CacheSizes . sizeOfLong ( ) ; }
Optimized calculateSize to consider Strings
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TransportShardMultiGetAction extends TransportShardSingleOperationA private final IndicesService indicesService ; - private final ScriptService scriptService ; - private final boolean realtime ; @ inject public TransportShardMultiGetAction ( Settings settings , ClusterService clusterService , TransportService transportService , - IndicesService indicesService , ScriptService scriptService , ThreadPool threadPool ) { + IndicesService indicesService , ThreadPool threadPool ) { super ( settings , threadPool , clusterService , transportService ) ; this . indicesService = indicesService ; - this . scriptService = scriptService ; this . realtime = settings . getAsBoolean ( STRING0 , true ) ; }
remove unused script service
<nb> public class ChunkSpeedTest extends TestUtil { raw [ j ] [ i ] = i % NUMBER0 ; SINGLE break ; case NUMBER1 : - raw [ j ] [ i ] = i ; + raw [ j ] [ i ] = i * Integer . MAX_VALUE ; break ; case NUMBER2 : raw [ j ] [ i ] = i == NUMBER3 ? NUMBER4 : NUMBER5 ; SINGLE
Always force full Integer range
<nb> public class CommittedChangesCache implements PersistentStateComponent < Committed LOG . info ( STRING0 ) ; myRefreshingIncomingChanges = true ; final Task . Backgroundable task = new Task . Backgroundable ( myProject , VcsBundle . message ( STRING1 ) ) { - private boolean myAnyChanges = false ; - public void run ( final ProgressIndicator indicator ) { - myAnyChanges = refreshIncomingChanges ( ) ; + refreshIncomingChanges ( ) ; } public void onSuccess ( ) { myRefreshingIncomingChanges = false ; - if ( myAnyChanges ) { - myCachedIncomingChangeLists = null ; - LOG . info ( STRING2 ) ; - notifyIncomingChangesUpdated ( null ) ; - } - else { - LOG . info ( STRING3 ) ; - } + myCachedIncomingChangeLists = null ; + LOG . info ( STRING2 ) ; + notifyIncomingChangesUpdated ( null ) ; } } ; myTaskQueue . run ( task ) ;
always notify view after incoming changes refresh
<nb> public class BinaryOSProcessHandler extends OSProcessHandler { private class SimpleBinaryReader extends BinaryOutputReader { private SimpleBinaryReader ( InputStream stream , SleepingPolicy policy ) { super ( stream , policy ) ; + start ( STRING0 + myPresentableName ) ; } @ override
platform fixes binary process handler
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Add documentation to onTouchEvent for accessibility
<nb> public class MessageParser extends AbstractParser implements status = Message . STATUS_SEND ; if ( mXmppConnectionService . markMessage ( conversation , remoteMsgId , Message . STATUS_SEND_RECEIVED ) ) { return ; - } else if ( remoteMsgId == null ) { - Message message = conversation . findSentMessageWithBody ( packet . getBody ( ) ) ; + } else { + Message message = conversation . findSentMessageWithBody ( body ) ; if ( message != null ) { + message . setRemoteMsgId ( remoteMsgId ) ; mXmppConnectionService . markMessage ( message , Message . STATUS_SEND_RECEIVED ) ; return ; }
improved compatibility with muc components that change the message id
<nb> import NAMESPACE ; COMMENT public class ClientConfig { - private volatile int maxConnectionsPerNode = NUMBER0 ; + private volatile int maxConnectionsPerNode = NUMBER1 ; private volatile int maxTotalConnections = NUMBER2 ; private volatile int maxThreads = NUMBER3 ; private volatile int maxQueuedRequests = NUMBER1 ; <nb> public class ClientConfig { private volatile long connectionTimeoutMs = NUMBER2 ; private volatile long socketTimeoutMs = NUMBER4 ; private volatile boolean socketKeepAlive = false ; - private volatile int selectors = NUMBER5 ; + private volatile int selectors = NUMBER6 ; private volatile long routingTimeoutMs = NUMBER7 ; private volatile int socketBufferSize = NUMBER8 * NUMBER9 ; private volatile SerializerFactory serializerFactory = new DefaultSerializerFactory ( ) ;
Increased default values in Client config
<nb> public abstract class WXComponent implements IWXObject , IWXActivityStateListener } SINGLE - if ( ! mInstance . mEnd && mAbsoluteY >= WXViewUtils . getScreenHeight ( WXEnvironment . sApplication ) ) { + if ( ! mInstance . mEnd && mAbsoluteY >= mInstance . getWeexHeight ( ) ) { mInstance . firstScreenRenderFinished ( ) ; }
android modify screenHeight to weexHeight
<nb> public class ChartPanelView { final DataReader reader = factory . getDataReader ( in ) ; final GCModel model = reader . read ( ) ; model . setURL ( url ) ; - if ( textAreaLogHandler . hasErrors ( ) ) { + if ( textAreaLogHandler . hasErrors ( ) && ! gcDocument . isWatched ( ) ) { SINGLE final JPanel panel = new JPanel ( new BorderLayout ( ) ) ; final JLabel messageLabel = new JLabel ( new MessageFormat ( localStrings . getString ( STRING0 ) ) . format ( new Object [ ] { textAreaLogHandler . getErrorCount ( ) , url } ) ) ;
don t show error dialog if log file is watched
<nb> public abstract class AbstractHttpExchangeCancelTest @ test public void testHttpExchangeCancelOnRequestComplete ( ) throws Exception { - LOG . setDebugEnabled ( true ) ; - TestHttpExchange exchange = new TestHttpExchange ( ) { @ override
only handle early EOF if exchange is not done
<nb> public class OtrService extends OtrCryptoEngineImpl implements OtrEngineHost { packet . addChild ( STRING0 , STRING1 ) ; packet . addChild ( STRING2 , STRING3 ) ; packet . addChild ( STRING4 , STRING3 ) ; - packet . addChild ( STRING4 , STRING3 ) ; + packet . addChild ( STRING5 , STRING3 ) ; try { Jid jid = Jid . fromSessionID ( session ) ; Conversation conversation = mXmppConnectionService . find ( account , jid ) ;
and now do that properly
<nb> package NAMESPACE ; import NAMESPACE ; - interface ISlideBackgroundColorHolder { + public interface ISlideBackgroundColorHolder { COMMENT COMMENT COMMENT
Make ISlideBackgroundHolder public
<nb> public class PointSetTest extends TestCase { public void testLoadGeoJson ( ) { PointSet points = PointSet . fromGeoJson ( STRING0 ) ; assertNotNull ( points ) ; - points . writeJson ( System . out ) ; - System . out . println ( ) ; + assertEquals ( points . capacity , NUMBER0 ) ; } + COMMENT + }
remove stdout output from test add minimal pointset size check
<nb> public class StatusBarKeyguardViewManager { COMMENT public boolean onBackPressed ( ) { if ( mBouncer . isShowing ( ) ) { - mBouncer . hide ( false COMMENT ) ; - mPhoneStatusBar . showKeyguard ( ) ; - updateStates ( ) ; + reset ( ) ; return true ; } return false ;
Fix invalid keyguard state after pressing back in bouncer
<nb> public class PyCallingNonCallableInspection extends PyInspection { if ( isMethodType ( node , classType ) ) { return ; } - if ( ! classType . isDefinition ( ) && ! classType . resolveMember ( STRING0 , PyType . Context . READ ) . isDefined ( ) ) { - PyClass pyClass = classType . getPyClass ( ) ; - if ( pyClass != null ) { - classType . resolveMember ( STRING0 , PyType . Context . READ ) ; - registerProblem ( node , STRING1 + pyClass . getName ( ) + STRING2 ) ; - } - } + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE } } }
quikfixed broken compilation
<nb> public class ClearspaceMUCEventDelegate extends MUCEventDelegate { COMMENT COMMENT public boolean destroyingRoom ( String roomName , JID userjid ) { - if ( userjid . getNode ( ) == null && ClearspaceManager . getInstance ( ) . isClearspaceDomain ( userjid . getDomain ( ) ) ) { - SINGLE - return true ; - } - SINGLE - return false ; + SINGLE + return ClearspaceManager . getInstance ( ) . isClearspace ( userjid ) ; } } <nb> public class ClearspaceManager extends BasicModule implements ExternalComponentM COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT - public boolean isClearspaceDomain ( String domain ) { - return clearspaces . contains ( domain ) ; + public boolean isClearspace ( JID address ) { + return address . getNode ( ) == null && clearspaces . contains ( address . getDomain ( ) ) ; } COMMENT
Shifted bulk of check for whether a request is coming from a Clearspace component to ClearspaceManager
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; <nb> public class GoFileElementType extends IStubFileElementType < GoFileStub > { @ override public StubBuilder getBuilder ( ) { return new DefaultStubBuilder ( ) { + @ notnull @ override protected StubElement createStubForFile ( @ notnull PsiFile file ) { if ( file instanceof GoFile ) { <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Use right StringUtil
<nb> public class JavaGenerator implements CodeGenerator formatPropertyName ( groupName ) , token . version ( ) ) ) ; + final String actingVersionGuard = token . version ( ) == NUMBER0 ? + STRING0 : + indent + STRING1 + token . version ( ) + STRING2 + + indent + STRING3 + + indent + STRING4 + propertyName + STRING5 + + indent + STRING4 + propertyName + STRING6 + + indent + STRING7 + propertyName + STRING8 + + indent + STRING9 ; + sb . append ( String . format ( STRING10 + indent + STRING11 + indent + STRING12 + + STRING13 + indent + STRING14 + indent + STRING15 + indent + STRING16 , className , - propertyName ) ) ; + propertyName , + actingVersionGuard ) ) ; return sb ; }
Java Add acting version guard to Java decoders stubs so an extension repeating group is not read when not present
<nb> public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc private void scrollLayerTo ( int x , int y ) { int dx = mScrollingLayerRect . left - x ; int dy = mScrollingLayerRect . top - y ; - if ( dx == NUMBER0 && y == NUMBER0 ) { + if ( dx == NUMBER0 && dy == NUMBER0 ) { return ; } if ( mSelectingText ) {
Fix typo preventing layers from scrolling to top
<nb> public class DefaultInsertHandler implements InsertHandler , Cloneable { private void handleParenses ( final boolean hasParams , final boolean needParenth , TailType tailType ) { final CodeInsightSettings settings = CodeInsightSettings . getInstance ( ) ; final boolean generateAnonymousBody = myLookupItem . getAttribute ( LookupItem . GENERATE_ANONYMOUS_BODY_ATTR ) != null ; - boolean insertRightParenth = ! settings . INSERT_SINGLE_PARENTH + boolean insertRightParenth = ( ! settings . INSERT_SINGLE_PARENTH || ( settings . INSERT_DOUBLE_PARENTH_WHEN_NO_ARGS && ! hasParams ) || generateAnonymousBody - || tailType != TailType . NONE ; + || tailType != TailType . NONE ) && tailType != TailTypes . SMART_COMPLETION ; if ( needParenth ) { if ( myContext . lparenthOffset >= NUMBER0 ) {
Enable smart enter completion termination for constructors after new
<nb> public final class Ints { private static final long serialVersionUID = NUMBER0 ; } } - <nb> public final class Longs { private static final long serialVersionUID = NUMBER0 ; } } - <nb> public final class Shorts { private static final long serialVersionUID = NUMBER0 ; } } -
Adding converters for primitives and Enums
<nb> public class ContactListManagerAdapter extends public Contact getContactByAddress ( String address ) { if ( mAdaptee . getState ( ) == ContactListManager . LISTS_NOT_LOADED ) { - return mOfflineContacts . get ( address ) ; + if ( mOfflineContacts != null ) + return mOfflineContacts . get ( address ) ; + else + return null ; } Contact c = mAdaptee . getContact ( address ) ; <nb> public class ContactListManagerAdapter extends boolean exists = updateContact ( contact , listId ) ; - SINGLE - SINGLE + if ( ! exists ) + insertContactContent ( contact , listId , Imps . Contacts . TYPE_NORMAL ) ; } notificationText = mContext . getResources ( ) . getString ( R . string . add_contact_success , contact . getName ( ) ) ;
avoid NPE for uninit d state and make sure to insert new contact
<nb> public class VirtualDirectoryImpl extends VirtualFileSystemEntry { assertConsistency ( ignoreCase , STRING0 ) ; return getArraySafely ( ) ; } + } + + final boolean wasChildrenLoaded = ourPersistence . areChildrenLoaded ( this ) ; + final FSRecords . NameId [ ] childrenIds = ourPersistence . listAll ( this ) ; + + synchronized ( myData ) { + if ( allChildrenLoaded ( ) ) { + assertConsistency ( ignoreCase , STRING0 ) ; + return getArraySafely ( ) ; + } - final boolean wasChildrenLoaded = ourPersistence . areChildrenLoaded ( this ) ; - final FSRecords . NameId [ ] childrenIds = ourPersistence . listAll ( this ) ; int [ ] result ; if ( childrenIds . length == NUMBER0 ) { result = ArrayUtil . EMPTY_INT_ARRAY ;
Don t access PersistentFS under VirtualDirectory lock
<nb> public class FilesList extends Composite @ override public ImageResource getValue ( FileSystemItem object ) { + String status = object . getVCSStatus ( ) == null + ? null + : object . getVCSStatus ( ) . getStatus ( ) ; return VCSStrategy . getCurrentStrategy ( ) . getSimpleIconForStatus ( - new VCSStatus ( object . getVCSStatus ( ) . getStatus ( ) ) ) ; + new VCSStatus ( status ) ) ; } } ; iconColumn . setSortable ( true ) ;
Fix FilesList exception in compiled mode
<nb> public class RequestBatch < BatchReturnType , ResponseType , RequestArgumentType > { COMMENT COMMENT if ( batchLock . readLock ( ) . tryLock ( ) ) { - COMMENT - if ( batchStarted . get ( ) ) { - return null ; - } try { + COMMENT + if ( batchStarted . get ( ) ) { + return null ; + } + int s = count . incrementAndGet ( ) ; if ( s > maxBatchSize ) { return null ;
Fix concurrency bug in RequestBatch for HystrixCollapser
<nb> public final class Bootstrap { } + COMMENT + COMMENT + COMMENT + @ deprecated public void setCatalinaHome ( String s ) { System . setProperty ( Globals . CATALINA_HOME_PROP , s ) ; } + COMMENT + COMMENT + COMMENT + @ deprecated public void setCatalinaBase ( String s ) { System . setProperty ( Globals . CATALINA_BASE_PROP , s ) ; }
Deprecate unused methods
<nb> public class MDCInterceptor implements ExecInterceptor { } - public MDCInterceptor ( ) { - - } - public static MDCInterceptor instance ( ) { return INSTANCE ; }
Remove redundant constructor
<nb> public class AccessControlManager public void checkCanCreateViewWithSelectFromTable ( TransactionId transactionId , Identity identity , QualifiedObjectName viewName , QualifiedObjectName tableName ) { requireNonNull ( identity , STRING0 ) ; + requireNonNull ( viewName , STRING1 ) ; requireNonNull ( tableName , STRING2 ) ; authorizationCheck ( ( ) - > systemAccessControl . get ( ) . checkCanCreateViewWithSelectFromTable ( identity , viewName . asCatalogSchemaTableName ( ) , tableName . asCatalogSchemaTableName ( ) ) ) ;
Fix missing null check in AccessControlManager
<nb> public class MultiValuesMap < K , V > { } public void remove ( K key , V value ) { - if ( ! myBaseMap . containsKey ( key ) ) return ; + if ( myBaseMap . get ( key ) == null ) return ; final Collection < V > values = myBaseMap . get ( key ) ; values . remove ( value ) ; if ( values . isEmpty ( ) ) {
fixed NPE on double remove of last element
<nb> abstract class DataHandler extends LitePalBase { methodName = STRING0 ; } else if ( STRING1 . equals ( methodName ) ) { methodName = STRING2 ; + } else if ( STRING3 . equals ( methodName ) ) { + methodName = STRING4 ; } return methodName ; }
Fix Integer fields error when querying data
<nb> public class FileBasedIndexImpl extends FileBasedIndex { SINGLE SINGLE if ( ! fileIsDirectory ) { - if ( isTooLarge ( file ) ) { + if ( ! file . isValid ( ) || isTooLarge ( file ) ) { SINGLE myChangedFilesCollector . removeScheduledFileFromUpdate ( file ) ; }
tolerate invalid file in contentChanged
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - public interface LifeCycleAwareChannelHandler extends ChannelHandlerContext { + public interface LifeCycleAwareChannelHandler extends ChannelHandler { void beforeAdd ( ChannelHandlerContext ctx ) throws Exception ; void afterAdd ( ChannelHandlerContext ctx ) throws Exception ; void beforeRemove ( ChannelHandlerContext ctx ) throws Exception ;
Fixed a silly mistake LifeCycleAwareChannelHandler should implement ChannelHandler instead of ChannelHandlerContext
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Add license information to Sequence java
<nb> public class JavaPluginLoader implements PluginLoader { for ( final Method method : methods ) { final EventHandler eh = method . getAnnotation ( EventHandler . class ) ; if ( eh == null ) continue ; - final Class < ? > checkClass = method . getParameterTypes ( ) [ NUMBER0 ] ; - if ( ! Event . class . isAssignableFrom ( checkClass ) || method . getParameterTypes ( ) . length != NUMBER1 ) { + final Class < ? > checkClass ; + if ( method . getParameterTypes ( ) . length != NUMBER1 || ! Event . class . isAssignableFrom ( checkClass = method . getParameterTypes ( ) [ NUMBER0 ] ) ) { plugin . getLogger ( ) . severe ( plugin . getDescription ( ) . getFullName ( ) + STRING0 + method . toGenericString ( ) + STRING1 + listener . getClass ( ) ) ; continue ; }
Validate method parameters when registering events
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ notthreadsafe public class TachyonFramework { static class TachyonScheduler implements Scheduler { private static TachyonConf sConf = new TachyonConf ( ) ; <nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ threadsafe public class TachyonMasterExecutor implements Executor { @ override public void disconnected ( ExecutorDriver driver ) { <nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ threadsafe public class TachyonWorkerExecutor implements Executor { @ override public void disconnected ( ExecutorDriver driver ) {
Adding thread safety annotations for tachyon mesos in integration module
<nb> public class GenericAuthenticationCredentials implements AuthenticationCredentia this . paramValues = new HashMap < String , String > ( paramNames . length ) ; } - public String get ( String paramName ) { + public String getParam ( String paramName ) { return paramValues . get ( paramName ) ; } - public String set ( String paramName , String paramValue ) { + public String setParam ( String paramName , String paramValue ) { return paramValues . put ( paramName , paramValue ) ; } <nb> public class ScriptBasedAuthenticationMethodType extends AuthenticationMethodTyp } catch ( ScriptException | IOException e ) { log . error ( STRING0 + this . script . getName ( ) , e ) ; + getScriptsExtension ( ) . setError ( this . script , e ) ; return null ; }
Working simplified version of Script Based Authentication Method
<nb> public class LexerATNSimulator extends ATNSimulator { System . out . format ( STRING0 , s . stateNumber , getTokenName ( t ) ) ; } + DFAState target = null ; + if ( s . edges != null && t > IntStream . EOF && t < s . edges . length ) { + target = s . edges [ t ] ; + } + SINGLE - if ( s . edges == null || t >= s . edges . length || t <= IntStream . EOF || - s . edges [ t ] == null ) - { + if ( target == null ) { ATN_failover ++ ; return failOverToATN ( input , s ) ; } - DFAState target = s . edges [ t ] ; if ( target == ERROR ) break ; s = target ;
Remove unnecessary array indexing operation in execDFA
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fix unused import
<nb> import NAMESPACE ; COMMENT public class MyNewIssuesNotificationDispatcher extends NotificationDispatcher { - public static final String KEY = STRING0 ; + public static final String KEY = STRING1 ; private final NotificationManager manager ; public MyNewIssuesNotificationDispatcher ( NotificationManager manager ) {
update the MyNewIssuesNotificationDispatcher key because of a conflict with the Issues Assign plugin
<nb> public class PluginManager { } } else { System . out . println ( STRING0 + pluginFile . getAbsolutePath ( ) ) ; + downloaded = true ; } } else { System . out . println ( STRING0 + pluginFile . getAbsolutePath ( ) ) ; + downloaded = true ; } if ( ! downloaded ) {
fixing bug when installing local plugins
<nb> public class JarHandler extends ZipHandler { private static final int FS_TIME_RESOLUTION = NUMBER0 ; private final JarFileSystemImpl myFileSystem ; + private volatile File myFileWithMirrorResolved ; public JarHandler ( @ notnull String path ) { super ( path ) ; <nb> public class JarHandler extends ZipHandler { @ notnull @ override protected File getFileToUse ( ) { - return getMirrorFile ( getFile ( ) ) ; + File fileWithMirrorResolved = myFileWithMirrorResolved ; + if ( fileWithMirrorResolved == null ) { + myFileWithMirrorResolved = fileWithMirrorResolved = getMirrorFile ( getFile ( ) ) ; + } + return fileWithMirrorResolved ; } private File getMirrorFile ( @ notnull File originalFile ) {
do not calculate mirror file for each access to jar file
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; public class TestLogicalPlanner { <nb> public class TestLogicalPlanner private Plan plan ( String sql ) { - return queryRunner . inTransaction ( transactionSession - > queryRunner . createPlan ( transactionSession , sql ) ) ; + try { + return queryRunner . inTransaction ( transactionSession - > queryRunner . createPlan ( transactionSession , sql ) ) ; + } + catch ( RuntimeException ex ) { + fail ( STRING0 + sql , ex ) ; + return null ; SINGLE + } } private static final class PlanNodeExtractor
Print SQL when query does not compile
<nb> public class ZooKeeperMasterModel implements MasterModel { final List < String > children = client . getChildren ( parent ) ; for ( final String child : children ) { if ( Paths . isConfigJobCreation ( id , parent , child ) ) { - return Paths . configJobCreationId ( id , parent , child ) ; + return Paths . configJobCreationId ( child ) ; } } return null ; <nb> public class Paths { return child . startsWith ( CREATION_PREFIX ) ; } - public static UUID configJobCreationId ( final JobId id , final String parent , final String child ) { + public static UUID configJobCreationId ( final String child ) { return UUID . fromString ( child . substring ( CREATION_PREFIX . length ( ) ) ) ; }
Remove unused configJobCreationId params
<nb> public class OClassImpl extends ODocumentWrapperNoClass implements OClass { } private boolean isDistributedCommand ( ) { - return getDatabase ( ) . getStorage ( ) instanceof OAutoshardedStorage + return getDatabase ( ) . getStorage ( ) . getUnderlying ( ) instanceof OAutoshardedStorage && OScenarioThreadLocal . INSTANCE . get ( ) != OScenarioThreadLocal . RUN_MODE . RUNNING_DISTRIBUTED ; }
fixed bug on distributed commands against schema
<nb> public interface Predicate < T > { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + default com . google . common . base . Predicate < T > toGuavaPredicate ( ) { + return t - > { + try { + return apply ( t ) ; + } catch ( Exception e ) { + throw ExceptionUtils . uncheck ( e ) ; + } + } ; + } + + COMMENT COMMENT COMMENT COMMENT <nb> public interface Predicate < T > { return predicate : : test ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + static < T > Predicate < T > from ( com . google . common . base . Predicate < T > predicate ) { + return predicate : : apply ; + } + }
Add method to Predicate to support converting to from Guava style Predicates
<nb> class QuickSettingsModel implements BluetoothStateChangeCallback , mRotationLockState . label = locked ? mContext . getString ( R . string . quick_settings_rotation_locked_label ) : mContext . getString ( R . string . quick_settings_rotation_unlocked_label ) ; - mRotationLockCallback . refreshView ( mRotationLockTile , mRotationLockState ) ; + + SINGLE + if ( mRotationLockTile != null && mRotationLockCallback != null ) { + mRotationLockCallback . refreshView ( mRotationLockTile , mRotationLockState ) ; + } } }
Fix NPE in rotation lock QS
<nb> public interface ConfigurationContainer extends NamedDomainObjectContainer < Confi COMMENT COMMENT @ override - Configuration getByName ( String name , Action < ? super Configuration > configureClosure ) throws UnknownConfigurationException ; + Configuration getByName ( String name , Action < ? super Configuration > configureAction ) throws UnknownConfigurationException ; COMMENT COMMENT
Rename parameter to match super
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove unused imports
<nb> public class BeanEndpoint extends ProcessorEndpoint { } COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class BeanEndpoint extends ProcessorEndpoint { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT public void setCache ( boolean cache ) { this . cache = cache ;
Added javadoc for bean component
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CleanupInspectionIntention implements IntentionAction , HighPriority final PsiElement element = ( ( ProblemDescriptor ) descriptor ) . getPsiElement ( ) ; if ( element != null && element . isValid ( ) ) { fix . applyFix ( project , descriptor ) ; + PsiDocumentManager . getInstance ( project ) . commitDocument ( editor . getDocument ( ) ) ; } break ; }
commit document between applying quick fixes in case of one uses psi document mix
<nb> public final class MediaRouter { } checkCallingThread ( ) ; - sGlobal . selectRoute ( getDefaultRoute ( ) , reason ) ; + SINGLE + SINGLE + RouteInfo fallbackRoute = sGlobal . chooseFallbackRoute ( ) ; + if ( sGlobal . getSelectedRoute ( ) != fallbackRoute ) { + sGlobal . selectRoute ( fallbackRoute , reason ) ; + } else { + sGlobal . selectRoute ( sGlobal . getDefaultRoute ( ) , reason ) ; + } } COMMENT <nb> public final class MediaRouter { } } - private RouteInfo chooseFallbackRoute ( ) { + RouteInfo chooseFallbackRoute ( ) { SINGLE SINGLE SINGLE
Choose a fallback route when the current route is unselected
<nb> public class MetaClassImpl implements MetaClass , MutableMetaClass { list . add ( method ) ; } else { MetaMethod match = ( MetaMethod ) list . get ( found ) ; - if ( match . isPrivate ( ) || match . getDeclaringClass ( ) . isInterface ( ) ) { + if ( match . isPrivate ( ) + || ( match . getDeclaringClass ( ) . isInterface ( ) && ! method . getDeclaringClass ( ) . isInterface ( ) ) ) { + SINGLE SINGLE SINGLE SINGLE
Fix for failed build
<nb> public class InMemoryXmlApplicationContext extends AbstractXmlApplicationContext + STRING0 + STRING1 + STRING2 + + STRING3 + STRING4 + STRING5 + STRING6 + STRING7 + + STRING8 + STRING9 + STRING10 + STRING11 ;
Add mvc namespace to XmlApplicationContext
<nb> public class ResProcessor implements ElementProcessor { SINGLE if ( STRING0 . equals ( fieldType ) ) { JClass animationUtils = holder . refClass ( STRING1 ) ; - methodBody . assign ( JExpr . ref ( fieldName ) , animationUtils . staticInvoke ( STRING2 ) . arg ( JExpr . _this ( ) ) . arg ( idRef ) ) ; + methodBody . assign ( JExpr . ref ( fieldName ) , animationUtils . staticInvoke ( STRING2 ) . arg ( holder . contextRef ) . arg ( idRef ) ) ; } else { if ( holder . resources == null ) holder . resources = methodBody . decl ( holder . refClass ( STRING3 ) , STRING4 , holder . contextRef . invoke ( STRING5 ) ) ;
Fixed bug in ResProcessor was using this as context
<nb> public class LoadBalanceTest extends ContextTestSupport { protected RouteBuilder createRouteBuilder ( ) { return new RouteBuilder ( ) { public void configure ( ) { + SINGLE from ( STRING0 ) . loadBalance ( ) . roundRobin ( ) . to ( STRING1 , STRING2 , STRING3 ) ; + SINGLE } ; } ; }
Added the snippte comment for the load balancer wiki doc
<nb> final class TaskRecord { if ( bounds == null ) { return ; } - final int minimalSize = mMinimalSize == - NUMBER0 - ? mService . mStackSupervisor . mDefaultMinimalSizeOfResizeableTask : mMinimalSize ; + int minimalSize = mMinimalSize ; + SINGLE + SINGLE + SINGLE + if ( minimalSize == - NUMBER0 && stack . mStackId != PINNED_STACK_ID ) { + minimalSize = mService . mStackSupervisor . mDefaultMinimalSizeOfResizeableTask ; + } final boolean adjustWidth = minimalSize > bounds . width ( ) ; final boolean adjustHeight = minimalSize > bounds . height ( ) ; if ( ! ( adjustWidth || adjustHeight ) ) {
Do not enforce minimum size for pinned stack
<nb> public abstract class AbstractVcsTestCase { new WriteCommandAction . Simple ( myProject ) { @ override protected void run ( ) throws Throwable { - for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { + int numOfRuns = NUMBER1 ; + for ( int i = NUMBER0 ; i < numOfRuns ; i ++ ) { try { final VirtualFile [ ] children = dir . getChildren ( ) ; for ( VirtualFile child : children ) { <nb> public abstract class AbstractVcsTestCase { return ; } catch ( IOException e ) { - try { - Thread . sleep ( NUMBER2 ) ; - } catch ( InterruptedException e1 ) { - SINGLE + if ( i == ( numOfRuns - NUMBER3 ) ) { + SINGLE + throw e ; } + Thread . sleep ( NUMBER2 ) ; continue ; } }
do not ignore IOException in last attempt of clearing directory
<nb> public class TransferThreadPoolExecutor extends AbstractExecutorService { mainLock . lock ( ) ; boolean canExit ; try { - canExit = runState >= STOP || queueSize . get ( ) == NUMBER0 ; + canExit = runState >= STOP || ( queueSize . get ( ) == NUMBER0 && poolSize . get ( ) > corePoolSize ) ; } finally { mainLock . unlock ( ) ; }
add another test if the pool size is greater than the core pool size before a worker can exit
<nb> public class BindedDisplayList < T extends BserObject & ListEngineItem > extends Di SINGLE isLoadMoreBackwardRequested = false ; } else { - window . onBackwardSliceLoaded ( bottomSortKey ) ; + window . onBackwardSliceLoaded ( topSortKey ) ; if ( linearLayoutCallback != null ) linearLayoutCallback . setStackFromEnd ( true ) ; editList ( Modifications . addOnly ( items ) , new Runnable ( ) { @ override
wrong load backward head after loaded
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT + @ deprecated public class BeanReferenceFactoryBean implements SmartFactoryBean , BeanFactoryAware { private String targetBeanName ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT + @ deprecated public class CommonsLogFactoryBean implements FactoryBean < Log > , InitializingBean { private Log log ;
Finally deprecated BeanReferenceFactoryBean and CommonsLogFactoryBean
<nb> public class AprEndpoint extends AbstractEndpoint < Long > { SINGLE if ( isSSLEnabled ( ) ) { + SINGLE + SINGLE + if ( sslHostConfigs . size ( ) == NUMBER0 ) { + SSLHostConfig defaultSslHostConfig = new SSLHostConfig ( ) ; + defaultSslHostConfig . setHostName ( SSLHostConfig . DEFAULT_SSL_HOST_NAME ) ; + sslHostConfigs . put ( SSLHostConfig . DEFAULT_SSL_HOST_NAME , defaultSslHostConfig ) ; + } + for ( SSLHostConfig sslHostConfig : sslHostConfigs . values ( ) ) { SINGLE
Add temporary work around to fix SSL with APR during refactoring
<nb> public abstract class LineNumberTable implements Serializable { } private int getLineAt ( int offset ) { - Preconditions . checkArgument ( offset >= NUMBER0 , STRING0 , offset ) ; + if ( offset < NUMBER0 ) { + throw new IllegalStateException ( STRING0 + offset ) ; + } int lowBoundary = NUMBER1 , highBoundary = linestart . length - NUMBER1 ; while ( true ) { if ( ( highBoundary - lowBoundary ) <= NUMBER1 ) { <nb> public abstract class LineNumberTable implements Serializable { } private SingleHashLine getHashLine ( int offset ) { - Preconditions . checkArgument ( offset >= NUMBER0 , STRING0 , offset ) ; + if ( offset < NUMBER0 ) { + throw new IllegalStateException ( STRING0 + offset ) ; + } int binarySearchIndex = hashOrdering . binarySearch ( table , new SingleHashLine ( offset , - NUMBER1 , null ) ) ; if ( binarySearchIndex >= NUMBER0 ) {
Avoid autoboxing on potential hot paths in LineNumberTable
<nb> package NAMESPACE ; COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Improve Poison Pill Javadoc
<nb> public class AlertsController extends AuthenticatedController { } catch ( IOException e ) { return status ( NUMBER0 , views . html . errors . error . render ( ApiClient . ERROR_MSG_IO , e , request ( ) ) ) ; } catch ( APIException e ) { - String message = STRING0 + e . getHttpCode ( ) + STRING1 ; + String message = STRING2 + e . getHttpCode ( ) + STRING1 ; return status ( NUMBER0 , views . html . errors . error . render ( message , e , request ( ) ) ) ; } }
Changing copied error description to be more accurate
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; COMMENT
Remove unused import in bytestream Open IQ
<nb> public class Stage extends InputAdapter implements Disposable { } public void draw ( ) { + viewport . update ( ) ; Camera camera = viewport . getCamera ( ) ; camera . update ( ) ; if ( ! root . isVisible ( ) ) return ; <nb> public abstract class Viewport { private final Vector3 tmp = new Vector3 ( ) ; + COMMENT + public final void update ( ) { + Gdx . gl . glViewport ( viewportX , viewportY , viewportWidth , viewportHeight ) ; + camera . viewportWidth = worldWidth ; + camera . viewportHeight = worldHeight ; + camera . update ( ) ; + } + COMMENT COMMENT public final void update ( int screenWidth , int screenHeight ) {
Added method to apply viewport without recalculating
<nb> public class HighlyAvailableGraphDatabase } @ override - public TxIdGenerator getTxIdGenerator ( ) - { - return localGraph ( ) . txIdGenerator ; - } - - @ override public KernelPanicEventGenerator getKernelPanicGenerator ( ) { return localGraph ( ) . getKernelPanicGenerator ( ) ;
Fix merge mistake duplicate method
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RobolectricTest { SINGLE aView . getContext ( ) ; String output = buff . toString ( ) ; - assertEquals ( STRING0 , output ) ; + assertEquals ( STRING1 , output ) ; + buff . reset ( ) ; aView . findViewById ( NUMBER0 ) ; SINGLE <nb> public class RobolectricTest { } @ implements ( View . class ) - public static class TestShadowView extends ShadowWranglerTest . TestShadowViewParent { + public static class TestShadowView { @ suppresswarnings ( { STRING2 } ) @ implementation public Context getContext ( ) {
Remove dependency on ShadowWranglerTest
<nb> public class ResultLoaderMap { } if ( ! ( configurationObject instanceof Configuration ) ) { - final boolean isNull = ( configurationObject == null ) ; throw new ExecutorException ( STRING0 + this . configurationFactory + STRING1 + FACTORY_METHOD + STRING2 + Configuration . class + STRING3 - + ( isNull ? STRING4 : configurationObject . getClass ( ) ) + STRING5 ) ; + + ( configurationObject == null ? STRING4 : configurationObject . getClass ( ) ) + STRING5 ) ; } return Configuration . class . cast ( configurationObject ) ;
Fix possible null pointer exception
<nb> public class AuthenticationDetailsSourceImpl implements AuthenticationDetailsSou Constructor constructor = null ; for ( int i = NUMBER0 ; i < constructors . length ; i ++ ) { Class [ ] parameterTypes = constructors [ i ] . getParameterTypes ( ) ; - if ( parameterTypes . length == NUMBER1 && ( object == null || parameterTypes [ i ] . isInstance ( object ) ) ) { + if ( parameterTypes . length == NUMBER1 && ( object == null || parameterTypes [ NUMBER0 ] . isInstance ( object ) ) ) { constructor = constructors [ i ] ; break ; }
Fix incorrect index value
<nb> public class Building extends MapObject { } @ override + public String getName ( boolean en ) { + String fname = super . getName ( en ) ; + if ( interpolationInterval != NUMBER0 ) { + return fname + STRING0 + name2 + STRING1 + interpolationInterval + STRING2 ; + } else if ( interpolationType != null ) { + return fname + STRING0 + name2 + STRING3 + interpolationType . toString ( ) . toLowerCase ( ) + STRING2 ; + } + return name ; + } + + @ override public String toString ( ) { if ( interpolationInterval != NUMBER0 ) { return name + STRING0 + name2 + STRING1 + interpolationInterval + STRING2 ;
Fix interpolation display
<nb> public class PackageParser { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public static PackageLite parsePackageLite ( String packageFilePath , int flags ) { XmlResourceParser parser = null ; <nb> public class DefaultContainerService extends IntentService { metrics . setToDefaults ( ) ; PackageParser . PackageLite pkg = packageParser . parsePackageLite ( archiveFilePath , NUMBER0 ) ; - ret . packageName = pkg . packageName ; - ret . installLocation = pkg . installLocation ; SINGLE packageParser = null ; Runtime . getRuntime ( ) . gc ( ) ; <nb> public class DefaultContainerService extends IntentService { return ret ; } ret . packageName = pkg . packageName ; + ret . installLocation = pkg . installLocation ; ret . recommendedInstallLocation = recommendAppInstallLocation ( pkg . installLocation , archiveFilePath , flags ) ; return ret ; }
Do not deference before null check
<nb> import NAMESPACE ; public final class ClientNearCacheExecutor implements NearCacheExecutor { - private ClientExecutionService clientExecutionService ; + private ClientExecutionService executionService ; - public ClientNearCacheExecutor ( ClientExecutionService clientExecutionService ) { - this . clientExecutionService = clientExecutionService ; + public ClientNearCacheExecutor ( ClientExecutionService executionService ) { + this . executionService = executionService ; } @ override public ScheduledFuture < ? > scheduleWithRepetition ( Runnable command , long initialDelay , long delay , TimeUnit unit ) { - return clientExecutionService . scheduleWithRepetition ( command , initialDelay , delay , unit ) ; + return executionService . scheduleWithRepetition ( command , initialDelay , delay , unit ) ; } }
Aligned variable name of ClientNearCacheExecutor with MemberNearCacheExecutor
<nb> public class NeoStore extends AbstractStore COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT public static void createStore ( String fileName , Map < ? , ? > config ) { <nb> public class NeoStore extends AbstractStore lastCommittedTx = txId ; } - public long getNextCommitId ( ) - { - return getRecord ( NUMBER0 ) + NUMBER1 ; - } - public synchronized long getLastCommittedTx ( ) { if ( lastCommittedTx == - NUMBER1 )
Fix javadoc and delete unused method
<nb> public abstract class InplaceRefactoring { public void templateFinished ( Template template , final boolean brokenOff ) { boolean bind = false ; try { - super . templateFinished ( template , brokenOff ) ; if ( ! brokenOff ) { - bind = performRefactoring ( ) ; + bind = ApplicationManager . getApplication ( ) . runWriteAction ( ( Computable < Boolean > ) InplaceRefactoring . this : : performRefactoring ) ; } else { performCleanup ( ) ; }
run in place refactorings under write action
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE COMMENT COMMENT COMMENT + @ largetest public class BugreportReceiverTest extends InstrumentationTestCase { private static final String TAG = STRING0 ;
Added test annotation
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Simplified the protobuf example in javadoc using LengthFieldPrepender
<nb> public class JavaValue extends XNamedValue implements NodeDescriptorProvider , XV else { EvaluateException exception = myValueDescriptor . getEvaluateException ( ) ; if ( myValueDescriptor . getLastRenderer ( ) instanceof ToStringRenderer && exception == null ) { - presentation = new XRegularValuePresentation ( StringUtil . wrapWithDoubleQuote ( value ) , type ) ; + presentation = new XRegularValuePresentation ( StringUtil . wrapWithDoubleQuote ( value . substring ( NUMBER0 , Math . min ( value . length ( ) , XValueNode . MAX_VALUE_LENGTH ) ) ) , type ) ; } else { presentation = new JavaValuePresentation ( value , type , exception != null ? exception . getMessage ( ) : null ) ;
shring toString value to maxLength
<nb> public class EipAnnotationProcessor extends AbstractAnnotationProcessor { buffer . append ( STRING0 ) . append ( asTitle ( eipModel . getName ( ) ) ) . append ( STRING1 ) ; buffer . append ( STRING2 ) . append ( safeNull ( eipModel . getDescription ( ) ) ) . append ( STRING1 ) ; buffer . append ( STRING3 ) . append ( eipModel . getJavaType ( ) ) . append ( STRING1 ) ; - buffer . append ( STRING4 ) . append ( safeNull ( eipModel . getLabel ( ) ) ) ; + buffer . append ( STRING4 ) . append ( safeNull ( eipModel . getLabel ( ) ) ) . append ( STRING5 ) ; buffer . append ( STRING6 ) ; buffer . append ( STRING7 ) ;
Add javadoc to model classes so we have EIP documentation out of the box
<nb> public class ZooKeeperConfiguration implements Cloneable { } } + COMMENT + COMMENT + COMMENT + @ deprecated public boolean shouldAwaitExistence ( ) { return awaitExistence ; } + COMMENT + COMMENT + COMMENT + @ deprecated public void setAwaitExistence ( boolean awaitExistence ) { this . awaitExistence = awaitExistence ; } <nb> public class ZooKeeperEndpoint extends DefaultEndpoint { getConfiguration ( ) . setBackoff ( backoff ) ; } + COMMENT + COMMENT + COMMENT + @ deprecated @ managedattribute public boolean getAwaitExistence ( ) { return getConfiguration ( ) . shouldAwaitExistence ( ) ; } + COMMENT + COMMENT + COMMENT + @ deprecated @ managedattribute public void setAwaitExistence ( boolean awaitExistence ) { getConfiguration ( ) . setAwaitExistence ( awaitExistence ) ;
mark the awaitExistence option as Deprecated as it s usage would have no effect anyway
<nb> public class AsyncHttpClientConfig { COMMENT COMMENT COMMENT - public long getConnectionTimeoutInMs ( ) { + public int getConnectionTimeoutInMs ( ) { return connectionTimeOutInMs ; } <nb> public class AsyncHttpClientConfig { COMMENT COMMENT COMMENT - public long getIdleConnectionTimeoutInMs ( ) { + public int getIdleConnectionTimeoutInMs ( ) { return idleConnectionTimeoutInMs ; }
Fix remaining long
<nb> public class DefaultUrlMappingInfo extends AbstractUrlMappingInfo { } private String checkDispatchAction ( HttpServletRequest request ) { - if ( request . getAttribute ( WebUtils . EXCEPTION_ATTRIBUTE ) != null ) return null ; + if ( request . getAttribute ( WebUtils . EXCEPTION_ATTRIBUTE ) != null || WebUtils . isForwardOrInclude ( request ) ) { + return null ; + } String dispatchActionName = null ; Enumeration < String > paramNames = tryMultipartParams ( request , request . getParameterNames ( ) ) ;
Don t use the dispatch action if the request is a forward or include
<nb> public interface MediaStream public static final String DISABLE_VIDEO_SUPPORT_PROPERTY_NAME = STRING0 ; + COMMENT + COMMENT + COMMENT + COMMENT + public static final String PNAME_LOCAL_SSRC_AVAILABLE + = STRING1 ; + COMMENT + COMMENT + COMMENT + COMMENT + public static final String PNAME_REMOTE_SSRC_AVAILABLE + = STRING2 ; COMMENT COMMENT
Adds new elements to the neo MediaService
<nb> public class IpFilterRuleTest extends TestCase SINGLE return NUMBER0 ; } + + @ override + public Object getAttachment ( ) { + return null ; + } + + @ override + public void setAttachment ( Object attachment ) { + + } } , h , addr ) , addr ) ;
Fix compile errors
<nb> public abstract class MetaMethod extends ParameterTypes implements Cloneable { public final RuntimeException processDoMethodInvokeException ( Exception e , Object object , Object [ ] argumentArray ) { if ( e instanceof IllegalArgumentException ) { - SINGLE + SINGLE SINGLE SINGLE SINGLE SINGLE - SINGLE - SINGLE + SINGLE + SINGLE SINGLE SINGLE boolean setReason = e . getClass ( ) != IllegalArgumentException . class || this instanceof GeneratedMetaMethod ; <nb> public abstract class MetaMethod extends ParameterTypes implements Cloneable { } SINGLE - SINGLE + SINGLE public Object doMethodInvoke ( Object object , Object [ ] argumentArray ) { argumentArray = coerceArgumentsToClasses ( argumentArray ) ; try {
correct some typos
<nb> public class ClearspaceVCardProvider implements VCardProvider { try { SINGLE - String path = AVATAR_URL_PREFIX + STRING0 ; + String path = AVATAR_URL_PREFIX + STRING1 ; Element avatar = ClearspaceManager . getInstance ( ) . executeRequest ( POST , path , avatarCreateParams . asXML ( ) ) ; return Long . valueOf ( avatar . element ( STRING2 ) . element ( STRING3 ) . elementTextTrim ( STRING4 ) ) ;
Fix URI for CS avatar creator
<nb> public class NetInfoModule extends ReactContextBaseJavaModule private static final String ERROR_MISSING_PERMISSION = STRING0 ; private final ConnectivityManager mConnectivityManager ; - private final ConnectivityManagerCompat mConnectivityManagerCompat ; private final ConnectivityBroadcastReceiver mConnectivityBroadcastReceiver ; private boolean mNoNetworkPermission = false ; <nb> public class NetInfoModule extends ReactContextBaseJavaModule super ( reactContext ) ; mConnectivityManager = ( ConnectivityManager ) reactContext . getSystemService ( Context . CONNECTIVITY_SERVICE ) ; - mConnectivityManagerCompat = new ConnectivityManagerCompat ( ) ; mConnectivityBroadcastReceiver = new ConnectivityBroadcastReceiver ( ) ; }
Remove unused variable
<nb> public class CollapsingToolbarLayout extends FrameLayout { SINGLE mCollapsingTextHelper . setExpandedBounds ( isRtl ? mExpandedMarginEnd : mExpandedMarginStart , - mTmpRect . bottom + mExpandedMarginTop , + mExpandedMarginTop , right - left - ( isRtl ? mExpandedMarginStart : mExpandedMarginEnd ) , bottom - top - mExpandedMarginBottom ) ; SINGLE
Fix CTL title not showing sometimes