diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public enum DistanceUnit { } @ override public double toMiles ( double distance ) { return distance ; } @ override public double toKilometers ( double distance ) { - return distance / MILES_KILOMETRES_RATIO ; + return distance * MILES_KILOMETRES_RATIO ; } @ override public String toString ( double di...
Fix MILES toKilometers and KILOMETERS toMiles
<nb> public class RouteStepsPlugin extends OsmandPlugin { } } pointsStatus = new ArrayList < Boolean > ( pointsIntermediateState ) ; + saveGPXFile ( ) ; } } ) ; builder . setNegativeButton ( STRING0 , null ) ;
added saving functionality for gpx file
<nb> public abstract class DialogWrapper { COMMENT COMMENT public void doCancelAction ( ) { - processDoNotAskOnCancel ( ) ; - if ( getCancelAction ( ) . isEnabled ( ) ) { close ( CANCEL_EXIT_CODE ) ; } <nb> public abstract class DialogWrapper { COMMENT COMMENT protected void doOKAction ( ) { -...
remove extra processing of DoNotAskAgain
<nb> public class BlockMasterWorkerServiceHandler implements BlockMasterWorkerService Map < String , Long > totalBytesOnTiers , Map < String , Long > usedBytesOnTiers , Map < String , List < Long > > currentBlocksOnTiers ) throws AlluxioTException { try { - mBlockMaster . workerRegister ( workerId , storageTier...
Remove unnecessary changes
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; <nb> public class ProfiledWebView extends WebView implements WebViewClassic . PageSwapD mContext = c ; } - COMMENT public void animationComplete ( ) { - Toast . makeText (...
remove toast from animation benchmark
<nb> public class MessagingController implements Runnable { while ( remoteSrcUidsIterator . hasNext ( ) ) { String remoteSrcUid = remoteSrcUidsIterator . next ( ) ; String localDestUid = localUidMap . get ( remoteSrcUid ) ; + String newUid = remoteUidMap . get ( remoteSrcUid ) ; Message localDestMessage = l...
Notify listeners of UID changes after remote copy move
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + COMMENT COMMENT COMMENT <nb> final class PlatformDependent0 { return UNALIGNED ; } - static void throwException ( Throwable t ) { - UNSAFE . throwException ( t ) ; + static void throwException ( Thr...
UNSAFE throwException null arg crashes JVM
<nb> public class VersionedSerializerTest extends TestCase { } private void assertSerializes ( String message , Versioned < String > obj ) { - assertEquals ( obj , this . serializer . toObject ( this . serializer . toBytes ( obj ) ) ) ; + assertEquals ( message , obj , this . serializer . toObject ( this . se...
Fix minor bug where assertSerializes did not pass message to assertEquals
<nb> public class Field else { final int periodIndex = valueRef . indexOf ( STRING0 ) ; - if ( - NUMBER0 == periodIndex ) + if ( periodIndex < NUMBER0 || periodIndex == ( valueRef . length ( ) - NUMBER0 ) ) { - handleError ( node , STRING1 + valueRef ) ; + handleError ( node , STRING2 + valueRef ) ; }...
Java Improve validation of valueRef on fields
<nb> public final class DynamicRelationshipType implements RelationshipType } COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT...
Clarified the javadoc regarding RelationshipType DynamicRelationshipType
<nb> import NAMESPACE ; public class HealthCheckResultRenderer extends RendererSupport < HealthCheck . Result > { @ override - public void render ( final Context context , final HealthCheck . Result object ) throws Exception { + public void render ( Context context , HealthCheck . Result object ) throws Excep...
undo the changes of paramers to final I don t know the codebase
<nb> public class CompilerOptions implements Serializable , Cloneable { SINGLE SINGLE - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public static enum LanguageMode { COMMENT COMMENT
Add some documentation in the code about strict and non strict support
<nb> public class WebSocket07Channel extends WebSocketChannel { @ override public void handle ( final ByteBuffer buffer , final PushBackStreamChannel channel ) throws WebSocketException { - SINGLE if ( ! buffer . hasRemaining ( ) ) { return ; }
Remove TODO which was fixed
<nb> public class InternalSubchannelTest { private final InternalSubchannel . Callback mockInternalSubchannelCallback = new InternalSubchannel . Callback ( ) { @ override - public void onTerminated ( InternalSubchannel is ) { + protected void onTerminated ( InternalSubchannel is ) { assertSame ( internalSub...
Fix ErrorProne failure for ForOverride
<nb> public class PojoPrefabManager implements PrefabManager { @ override public boolean exists ( String name ) { Preconditions . checkArgument ( ! Strings . isNullOrEmpty ( name ) ) ; - return assetManager . getAsset ( name , Prefab . class ) != null ; + return assetManager . getAsset ( name , Prefab . class...
Fix PojoPrefabManager exits which used to return always true
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class NamingSubsystemRootResourceDefinition extends SimpleResourceDefinit static final SimpleOperationDefinition JNDI_VIEW = new SimpleOperationDefinitionBuilder ( JndiView...
defines jndi view op definition s reply type
<nb> package NAMESPACE ; COMMENT COMMENT public class ReaderEvents { - public static class FollowedTagsChanged { } ; - public static class RecommendedTagsChanged { } ; + public static class FollowedTagsChanged { } + public static class RecommendedTagsChanged { } - public static class FollowedBlogsChan...
Removed unnecessary semicolons
<nb> public class OffHeapStarTreeBuilder implements StarTreeBuilder { } SINGLE - if ( skipStarNodeCreationForDimensions . contains ( splitDimensionName ) ) { + if ( skipStarNodeCreationForDimensions != null && skipStarNodeCreationForDimensions . contains ( splitDimensionName ) ) { return docsAdded ; }
Build Fix added null check to avoid NPE
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; public class MethodSorterTest {
remove unused imports in MethodSorterTest
<nb> public class NellySipToFlashTranscoderImp implements SipToFlashTranscoder { } } while ( ! pcmBufferProcessed ) ; } else { - log . warn ( STRING0 + audioCodec . getIncomingDecodedFrameSize ( ) ) ; + log . warn ( STRING1 + decodedBytes + STRING2 + audioCodec . getIncomingDecodedFrameSize ( ) + STRING3 ) ; ...
add log to display incoming frame length when not equal to expected frame length
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RequestServer extends NanoHTTPD { Request . addToNavbar ( registerRequest ( new GLM2 ( ) ) , STRING0 , STRING1 ) ; Request ...
Add NN to RequestServer back
<nb> public class StarTreeRecordStoreByteBufferImpl implements StarTreeRecordStore { synchronized ( sync ) { + ByteBuffer buffer = getBuffer ( ) ; List < StarTreeRecord > records = new LinkedList < StarTreeRecord > ( ) ; buffer . rewind ( ) ; while ( buffer . position ( ) < buffer . limit ( ) ) <nb> pub...
fixed couple places not calling getBuffer
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
removed unused imports
<nb> public class DeepLearningCheckpointReporting extends TestUtil { duration = duration . substring ( NUMBER0 , duration . length ( ) - NUMBER1 ) ; SINGLE try { double durationDouble = Double . parseDouble ( duration ) ; - Assert . assertTrue ( STRING0 , durationDouble >= NUMBER0 ) ; - Assert . assertTrue ( ...
Add more verbose Assertion message
<nb> public class Ctags { String fld = tagLine . substring ( p + NUMBER0 , lp ) ; SINGLE lp = p ; - if ( fld . startsWith ( STRING0 ) ) { + if ( fld . startsWith ( STRING1 ) ) { int sep = fld . indexOf ( STRING2 ) ; lnum = fld . substring ( sep + NUMBER0 ) ; - } else if ( fld . startsWith ( STRING3 ) ) ...
Improved the robustness of the Ctags parser
<nb> public class CodeModel extends JavaScriptObject } - * / ; public native final Position findNextSignificantToken ( Position pos ) COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT ; }
gracefully handle case where code model has no method for significant token seeking
<nb> public class PacketHandlerServer implements IPacketHandler { continue ; } - boolean found = true ; + boolean found = false ; for ( String modName : pkt . Mods ) { if ( modName . equals ( mod . toString ( ) ) ) { - found = false ; + found = true ; break ; } }
Fixed the inverted logic in the missing mod check
<nb> public abstract class AsynchronousProcessor implements AsyncSupport < AtmosphereRe } } } catch ( Throwable ex ) { - SINGLE + SINGLE logger . trace ( STRING0 , impl . uuid ( ) , ex ) ; } finally { try { <nb> public abstract class AsynchronousProcessor implements AsyncSupport < AtmosphereRe if ( ...
Delay the removal of the resource at the very end
<nb> public class JsonContext { if ( propertyType != null && ! jsonSerializer . includeCollections ) { ClassDescriptor propertyTypeClassDescriptor = ClassIntrospector . lookup ( propertyType ) ; - if ( propertyTypeClassDescriptor . isCollection ( ) ) { + if ( propertyTypeClassDescriptor . isArray ( ) ) { + ...
Added arrays as ignored by default
<nb> public class DefaultAccountDao extends EntityDaoBase < AccountModelDao , Account , A if ( currentAccount == null ) { throw new EntityPersistenceException ( ErrorCode . ACCOUNT_DOES_NOT_EXIST_FOR_ID , accountId ) ; } + + SINGLE + if ( ( currentAccount . getPaymentMethodId ( ) == null && paymentMethodId ...
don t update the default payment method if it hasn t changed
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ProfilingUtils { } AppLog . d ( T . PROFILING , mLabel + STRING0 + ( now - first ) + STRING1 ) ; } - - SINGLE - public static String getVersionNam...
remove unused method from ProfilingUtils
<nb> public class ImmutableChecker extends BugChecker implements BugChecker . ClassTree while ( ! Type . noType . equals ( enclosing ) ) { SINGLE SINGLE - System . err . println ( enclosing ) ; if ( getImmutableAnnotation ( enclosing . tsym ) == null ) { return info . plus ( String . format (
Remove a left over print statement
<nb> COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
remove javadoc p tags in license
<nb> public class OisControllers { long hwnd = getWindowHandle ( ) ; Ois ois = new Ois ( hwnd ) ; OisController [ ] controllers ; + + private static final boolean IS_MAC = System . getProperty ( STRING0 ) . toLowerCase ( ) . contains ( STRING1 ) ; public OisControllers ( final DesktopControllerManager man...
Avoid frequent garbage and relative expensive frequent toLowerCase calls
<nb> public class TestPaymentOSGIWithTestPaymentBundle extends TestOSGIBase { } else if ( expectedException != null ) { paymentChecker . checkPayment ( account . getId ( ) , NUMBER0 , callContext , new ExpectedPaymentCheck ( new LocalDate ( NUMBER1 , NUMBER2 , NUMBER0 ) , new BigDecimal ( STRING0 ) , PaymentStatus ...
Fix test issue after handling RuntimeException in PaymentProcessor
<nb> public class MeCommand extends VanillaCommand { StringBuilder message = new StringBuilder ( ) ; message . append ( sender . getName ( ) ) ; if ( args . length > NUMBER0 ) { - message . append ( args [ NUMBER0 ] ) ; - for ( int i = NUMBER1 ; i < args . length ; i ++ ) { + for ( int i = NUMBER0 ; i < arg...
Fixed the me command missing a space
<nb> import NAMESPACE ; COMMENT COMMENT public final class BlockStoreContextTest { - SINGLE - SINGLE + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT @ test ( timeout = NUMBER0 ) public void acquireAtMaxLimitTest ( ) throws Exception { final List < BlockMas...
Add javadoc for tests
<nb> public class OSessionStoragePerformanceStatistic { } private void checkComponentType ( Component component , ComponentType expected ) { - if ( component . type . equals ( expected ) ) + if ( ! component . type . equals ( expected ) ) throw new IllegalStateException ( STRING0 + expected + STRING1 + comp...
Fixed bug in performance stats
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> im...
eliminate eclipse warnings
<nb> final class CompilerOptionsPreprocessor { } if ( options . useNewTypeInference ) { - options . checkTypes = false ; - options . inferTypes = false ; options . checkMissingReturn = CheckLevel . OFF ; options . checkGlobalThisLevel = CheckLevel . OFF ; - SINGLE - SINGLE - SINGLE - SINGLE } ...
NTI Run the old type checker after the new one
<nb> public class HttpTransportOverHTTP2 implements HttpTransport { if ( commit . compareAndSet ( false , true ) ) { - boolean endStream = ! hasContent && lastContent ; - commit ( info , endStream , sendContent ? commitCallback : callback ) ; + if ( sendContent ) + { + commit ( info , false , commitCall...
Improved send implementation to be more clear and covered also a
<nb> public class AndroidBinary extends AbstractBuildRule implements this . getBuildTarget ( ) , commandString , preprocessJavaClassesDeps , - preprocessJavaClassesInDir . toFile ( ) ) { + context . getProjectRoot ( ) . resolve ( preprocessJavaClassesInDir ) . toFile ( ) ) { @ override protected void ad...
Pass class preprocessor dir as an absolute file
<nb> public abstract class PreferencesDialogBase < T > extends ModalDialogBase private void setPaneVisibility ( PreferencesDialogPaneBase < T > pane , boolean visible ) { - pane . getElement ( ) . getStyle ( ) . setDisplay ( visible - ? Display . BLOCK - : Display . NONE ) ; + pane . setPaneVisible ( visi...
allow pref panes to set their own visibility
<nb> public final class ByteArraySlice int length = min ( this . length , that . length ) ; for ( int i = NUMBER0 ; i < length ; i ++ ) { byte a = this . data [ this . offset + i ] ; - byte b = that . data [ this . offset + i ] ; + byte b = that . data [ that . offset + i ] ; int v = UnsignedBytes . compare...
Fix bug in slice comparator
<nb> public class AnimatedStateListDrawable extends StateListDrawable { mTransitions . append ( keyToFrom , pos | REVERSED_BIT | reversibleBit ) ; } - return addChild ( anim ) ; + return pos ; } int addStateSet ( @ nonnull int [ ] stateSet , @ nonnull Drawable drawable , int id ) { <nb> public class D...
Propagate original Resources to DrawableContainer if no override set
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT COMMENT COMMENT public class YAMLIndentationOptionsProvider implements FileTypeIndentOptionsProvider { - public CodeStyleSettings . IndentOptions...
Changed CodeStyleSettings IndentOptions to CommonCodeStyleSettings IndentOptions
<nb> public class LruDiscCache implements DiskCache { if ( reserveCacheDir != null ) { initCache ( reserveCacheDir , null , cacheMaxSize , cacheMaxFileCount ) ; } + if ( cache == null ) { + throw new RuntimeException ( STRING0 , e ) ; + } } } <nb> public interface BitmapDisplayer { COMMENT COMME...
Throw exception if LruDiskCache can t be initialized
<nb> public class CRFClassifierITest extends TestCase { STRING0 , } , { STRING1 , - STRING2 , + STRING3 , STRING4 , STRING5 + - STRING6 + + STRING7 + STRING8 + STRING9 + STRING10 , STRING11 + - STRING12 + + STRING13 + STRING14 + STRING15 + STRING16 , - STRING17 , + STRING18 , S...
Turned off default americanization
<nb> public class BlockManagerImpl extends BlockManager { logger . error ( STRING0 , block . getURI ( ) , familyUri ) ; block . setId ( UNKNOWN_ID ) ; } - registerFamily ( family ) ; } + registerFamily ( family ) ; } else { logger . error ( STRING1 , familyUri ) ; }
Fixed incorrect registration of new block families client side
<nb> import NAMESPACE ; COMMENT public class AMQPComponent extends JmsComponent { + SINGLE + public AMQPComponent ( ) { super ( AMQPEndpoint . class ) ; } <nb> public class AMQPComponent extends JmsComponent { setConnectionFactory ( connectionFactory ) ; } + SINGLE + COMMENT COMMENT CO...
camel amqp Added extra factory methods
<nb> public class DefaultErrorMessages { MAP . put ( MANY_COMPANION_OBJECTS , STRING0 ) ; MAP . put ( COMPANION_OBJECT_NOT_ALLOWED , STRING1 ) ; - MAP . put ( DEPRECATED_CLASS_OBJECT_SYNTAX , STRING2 ) ; + MAP . put ( DEPRECATED_CLASS_OBJECT_SYNTAX , STRING3 ) ; MAP . put ( LOCAL_OBJECT_NOT_ALLOWED , STRI...
Replace missed default in error message
<nb> public class TextEditingTarget implements EditingTarget } + @ suppresswarnings ( STRING0 ) private String stangle ( String sweaveStr ) { ScopeList chunks = new ScopeList ( docDisplay_ ) ;
suppress warnings on stangle helper
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public abstract class GrDocCommentUtil { @ nullable public static GrDocComment findDocComment ( GrDocCommentOwner owner ) { - PsiElement element = own...
IDEA does t show Javadoc by Ctrl Q for groovy fields
<nb> public class GceMockUtils { SINGLE String mockFileName = Strings . replace ( url , urlRoot , STRING0 ) ; - URL resource = GceInstancesServiceMock . class . getResource ( mockFileName ) ; + URL resource = GceMockUtils . class . getResource ( mockFileName ) ; if ( resource == null ) { throw new IOExcep...
Fix getResource to call it from the current class
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COM...
Fix wrong import
<nb> public abstract class BaseExecutor implements Executor { public void rollback ( boolean required ) throws SQLException { if ( ! closed ) { - clearLocalCache ( ) ; - flushStatements ( ) ; - if ( required ) { - transaction . rollback ( ) ; + try { + clearLocalCache ( ) ; + flushStatements ( ) ; ...
added a try finally block for added safety during rollback
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; - import NAMESPACE ; public class SvnExternalParser { private final List < SvnExternalMatcher > matchers = new ArrayList < SvnExternalMatche...
Move matcher to class level
<nb> public class PrepareCatalogMojo extends AbstractMojo { if ( dir . isDirectory ( ) && ! STRING0 . equals ( dir . getName ( ) ) && ! STRING1 . equals ( dir . getName ( ) ) ) { File target = new File ( dir , STRING2 ) ; + SINGLE + if ( STRING3 . equals ( dir . getName ( ) ) ) { + target = new File ( dir ,...
Camel catalog should include salesforce and linkedin which are special
<nb> final class FragmentManagerImpl extends FragmentManager { if ( ! fragment . mHidden ) { fragment . mHidden = true ; if ( fragment . mView != null ) { - Animation anim = loadAnimation ( fragment , transition , true , + Animation anim = loadAnimation ( fragment , transition , false , transitionStyle ) ; ...
Fix fragment flickering on hiding support library
<nb> public abstract class DomInvocationHandler implements InvocationHandler , DomElem try { XmlTag newTag = createEmptyTag ( tagName ) ; if ( index == NUMBER0 ) { - return ( XmlTag ) tag . add ( newTag ) ; + if ( subTags . length == NUMBER0 ) { + return ( XmlTag ) tag . add ( newTag ) ; + } + + retur...
no fixed and collection children intersections in tests
<nb> public class FileSystemCompiler { configuration . getOptimizationOptions ( ) . put ( STRING0 , true ) ; } - if ( cli . hasOption ( STRING1 ) ) { - String path = cli . getOptionValue ( STRING1 ) ; + if ( cli . hasOption ( STRING2 ) ) { + String path = cli . getOptionValue ( STRING2 ) ; File groovyCo...
Rename configuration option to configscript
<nb> public class TransactionAtomicTest { record1 . reload ( null , true ) ; - Assert . assertTrue ( record1 . value ( ) . equals ( STRING0 ) ) ; + Assert . assertEquals ( record1 . value ( ) , STRING0 ) ; db1 . close ( ) ; db2 . close ( ) ;
changed test check
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT public abstract class UltimateDifferentViewTypeAdapter < E extends Enum < E > > extends UltimateViewAdapter { private Map < E , DataBinder > mBinderMap = new HashMap < > ( ) ; <nb> public abstract class UltimateViewAdapter ...
add some javadoc
<nb> public class AxolotlService { bundle . getSignedPreKeyId ( ) , bundle . getSignedPreKey ( ) , bundle . getSignedPreKeySignature ( ) , bundle . getIdentityKey ( ) ) ; - axolotlStore . saveIdentity ( address . getName ( ) , bundle . getIdentityKey ( ) ) ; - try { SessionBuilder builder = new SessionBui...
Don t manually add keys to the store
<nb> public interface ModelControllerProtocol { byte GET_INPUTSTREAM_REQUEST = NUMBER0 ; byte CANCEL_ASYNC_REQUEST = NUMBER1 ; byte COMPLETE_TX_REQUEST = NUMBER2 ; + COMMENT + COMMENT + COMMENT + byte LEGACY_MASTER_HC_PING_REQUEST = NUMBER3 ; byte PARAM_END = NUMBER4 ; <nb> public class Transactio...
Reintroduce the handler for the ping requests coming from the master HC
<nb> class ScreenshotTaker { private final ActivityUtils activityUtils ; private final String LOG_TAG = STRING0 ; - private Solo solo ; private ScreenshotSequenceThread screenshotSequenceThread = null ; private HandlerThread screenShotSaverThread = null ; private ScreenShotSaver screenShotSaver = null ;...
Moved screenShotSequenceThread interrupt check to inside while loop
<nb> import static NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT public class EWMA { private static final int INTERVAL = NUMBER0 ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT public class Meter implements Metered {
Update some javadocs
<nb> public final class ServiceManager { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - ServiceManager ( Set < Service > services ) { - this ( ( Iterable < Service > ) services ) ; - } - - COMMENT COMMENT COMMENT COMMENT
Remove the ServiceManager constructor that used to be annotated with Inject
<nb> public class RoomsManager { log . debug ( STRING0 , name ) ; Room room = rooms . remove ( name ) ; if ( checkEvtListener ( ) && room != null ) { + room . endAndKickAll ( ) ; conferenceEventListener . ended ( room ) ; log . debug ( STRING1 ) ; } } + public void destroyAllRooms ( ) { + for ( Ma...
add methods to kick all users out of the conference
<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 RedisClusterReshard { } String...
define a ClusterNodeInformationParser intance
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IntroActivity extends AppCompatActivity { } } if ( buttonCtaVisible ) { - return Pair . create ( ( CharSequence ) getSt...
Fixed setButtonCtaLabel methods not working
<nb> public abstract class AbstractHttp11Processor < S > extends AbstractProcessor < S > { keptAlive = true ; SINGLE request . getMimeHeaders ( ) . setLimit ( endpoint . getMaxHeaderCount ( ) ) ; - SINGLE if ( ! getInputBuffer ( ) . parseHeaders ( ) ) { SINGLE SINGLE
Remove incorrect comment
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
remove unused import
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class PyResolveCalleeTest extends ResolveTestCase { + public class PyResolveCalleeTest exten...
convert test to PyLightFixtureTestCase
<nb> public class SimpleTcpCluster extends LifecycleMBeanBase + STRING0 + valve . getClass ( ) . getName ( ) ) ; if ( valve != null ) { container . getPipeline ( ) . removeValve ( valve ) ; - valve . setCluster ( this ) ; + valve . setCluster ( null ) ; } } }
Set null rather than this
<nb> public class HttpConfiguration COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT @ managedattribute ( STRING0 ) public long getBlockingTimeout ( ) <nb> public class HttpConfiguration COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public void setBlockingTimeout ( long blocking...
Fixed javadoc errors
<nb> public class Jsonschema2PojoMojo extends AbstractMojo implements GenerationConfi private String [ ] includes ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
updated documentation for excludes parameter in mojo
<nb> public enum PythonHelpersLocator implements PythonHelper { public abstract static class PathPythonHelper implements PythonHelper { protected final File myPath ; - PathPythonHelper ( String relativePath ) { - myPath = getHelperFile ( relativePath ) ; + PathPythonHelper ( String path ) { + myPath = new...
Fix helpers path locator
<nb> public class JBEditorTabs extends JBTabsImpl { super . paintLastGhost ( g2d ) ; } } - + + @ override + public boolean isTabDraggingEnabled ( ) { + return super . isTabDraggingEnabled ( ) && isSingleRow ( ) ; + } + public boolean isGhostsAlwaysVisible ( ) { return super . isGhostsAlwaysVisib...
disabling tab reordering for tabs in multiple rows
<nb> public class JobScheduler { stop ( ) ; start ( ) ; } - } , NUMBER0 ) ; + } , NUMBER1 ) ; } COMMENT
Optimized restart delay
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT @ immutable - public class ServerAddress { + public class ServerAddress implements Serializable { + + private static final long ...
Made ServerAddress and ServerCursor serializable
<nb> public class NettyConfiguration implements Cloneable { boolean found = false ; for ( String supportedProtocol : supportedProtocols ) { - if ( protocol . equalsIgnoreCase ( supportedProtocol ) ) { + if ( protocol != null && protocol . equalsIgnoreCase ( supportedProtocol ) ) { found = true ; break ; ...
Fixed potential NPE
<nb> public class JacksonFieldPlugin extends TableModelSpecFieldPlugin { } @ override - public boolean processVariableElement ( VariableElement field , DeclaredTypeName fieldType ) { + protected boolean hasPropertyGeneratorForField ( VariableElement field , DeclaredTypeName fieldType ) { if ( field . getAnn...
Simplify JacksonFieldPlugin using new shared field plugin logic
<nb> public class ActivityUtils { this . originalTime = sharedPrefs . getLong ( STRING0 + currentAccount , NUMBER0 l ) ; - this . notificationTitle = context . getString ( R . string . new_activity ) ; + this . notificationTitle = context . getString ( R . string . new_activity ) + STRING1 + ( useSecondAccoun...
New Add screenname to the activity notification title
<nb> public class MultiTouchSupport { if ( inZoomMode ) { listener . onZoomOrRotationEnded ( zoomRelative , angleRelative ) ; inZoomMode = false ; - SINGLE + return true ; } return false ; } <nb> public class OsmandMapTileView implements IMapDownloaderCallback { layers . get ( i ) . onTouchEvent ( e...
cancel touch events in all layers if multitouch is in use
<nb> public class Receiver extends BroadcastReceiver { . setSmallIcon ( options . getSmallIcon ( ) ) . setLargeIcon ( icon ) . setSound ( options . getSound ( ) ) - . setAutoCancel ( options . getAutoCancel ( ) ) ; + . setAutoCancel ( options . getAutoCancel ( ) ) + . setOngoing ( options . getOngoing ( ) )...
Add missing ongoing flag
<nb> public class PsiReferenceExpressionImpl extends PsiReferenceExpressionBase imple protected void elementFinished ( @ notnull PsiElement element ) { if ( ! ( element instanceof PsiReferenceExpressionImpl ) ) return ; PsiReferenceExpressionImpl expression = ( PsiReferenceExpressionImpl ) element ; - resolveCa...
don t resolve qualifiers twice
<nb> public class SpeexResampler int sampleSizeInBytes = inputAudioFormat . getSampleSizeInBits ( ) / NUMBER0 ; int inputSampleCount = inputLength / sampleSizeInBytes ; int outputLength - = ( int ) ( ( inputLength * outputSampleRate ) / inputSampleRate ) ; + = ( inputLength * outputSampleRate ) / inputSampleR...
Removes a redundant cast
<nb> public class Constants { SINGLE SINGLE - public static final String VERSION = STRING0 ; + public static final String VERSION = STRING1 ; SINGLE SINGLE - public static final String VERSION_DATE = STRING2 ; + public static final String VERSION_DATE = STRING3 ; SINGLE SINGLE
Reset build identifiers to SNAPSHOT
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typo in InternalAuthenticationServiceException javadoc
<nb> public class EnglishGrammaticalRelations { SINGLE SINGLE STRING0 , - STRING1 , SINGLE + SINGLE + STRING1 , STRING2 , SINGLE SINGLE STRING3 ,
Rearrange a comment because why not
<nb> public class Sketch { JLabel label = new JLabel ( STRING0 ) ; box . add ( label ) ; + box . add ( Box . createVerticalStrut ( NUMBER0 ) ) ; final JProgressBar progressBar = new JProgressBar ( NUMBER1 , NUMBER2 ) ; SINGLE
add a little extra space on the Save As dialog
<nb> public abstract class ORecordSerializerStringAbstract implements ORecordSerializ boolean integer = true ; char c ; + if ( iValue . charAt ( NUMBER0 ) == ORID . PREFIX ) + SINGLE + return OType . LINK ; + for ( int index = NUMBER0 ; index < iValue . length ( ) ; ++ index ) { c = iValue . charAt ( ...
Fixed bug on index with LINKs
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BasicPathParser extends PathParser { return TRANSIT ; if ( v instanceof OffboardVertex ) return STATION ; - if ( v inst...
Add new edge class to path parser
<nb> public abstract class AbstractDiskHttpData extends AbstractHttpData { FileOutputStream outputStream = new FileOutputStream ( dest ) ; FileChannel in = inputStream . getChannel ( ) ; FileChannel out = outputStream . getChannel ( ) ; - int chunkSize = NUMBER0 ; + long chunkSize = NUMBER0 ; long position ...
Fix AbstractDiskHttpData int conversion from long
<nb> public class NumberPicker extends LinearLayout { float textGapCount = selectorIndices . length - NUMBER0 ; int selectorTextGapHeight = ( int ) ( totalTextGapHeight / textGapCount + FLOAT0 ) ; mSelectorElementHeight = mTextSize + selectorTextGapHeight ; - mInitialScrollOffset = mTextSize - NUMBER1 * ( mSele...
Fix NumberPicker text positioning
<nb> public class ClassLoaderUtil { } COMMENT - COMMENT + COMMENT COMMENT COMMENT public static InputStream getClassAsStream ( Class clazz ) throws IOException { - return getResourceAsStream ( getClassFileName ( clazz ) , null ) ; + return getResourceAsStream ( getClassFileName ( clazz ) , clazz . g...
fixed issue with getting class as stream and classloaders
<nb> public class AddPropertiesUser { foundFiles . add ( standaloneProps ) ; } File domainProps = new File ( jbossHome + STRING0 ) ; - if ( domainProps . exists ( ) ) { + if ( domainProps . exists ( ) ) { foundFiles . add ( domainProps ) ; }
Fix trailing space that is causing the build to fail
<nb> final public class H2O { if ( _doneRequests ) throw new IllegalArgumentException ( STRING0 ) ; RequestServer . addToNavbar ( RequestServer . register ( url_pattern , STRING1 , hclass , hmeth , summary ) , base_url , label , menu ) ; } + + static public void registerGET ( String url_pattern , Class hclass...
Added registerGET methods
<nb> public class Once { } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Once { } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Once { } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> ...
Fixed some mistakes in JavaDoc