diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class DataLiberationFragment extends SherlockFragment implements OnTaskFi } private void setProgressLock ( boolean isEnable ) { + if ( isEnable ) { + mButtonImport . setEnabled ( false ) ; + } else { + mButtonImport . setEnabled ( mCheckBoxImportWarning . isChecked ( ) ) ; + } mButtonExpor...
Prevent backup lock unlock from circumventing warning switch
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class TouchExplorer implements EventStreamTransformation { } } break ; case MotionEvent . ACTION_POINTER_UP : { - final int activePo...
More than one finger at a time can trigger a system crash
<nb> public class StructureViewComponent extends JPanel implements TreeActionsOwner , } } + public boolean isToBuildChildrenInBackground ( final Object element ) { + if ( element instanceof TreeElementWrapper ) { + final Object o = ( ( TreeElementWrapper ) element ) . getElement ( ) ; + final TreeElement ...
compute root node children in background
<nb> import NAMESPACE import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TestOAuth2WebSecurityExpressionRoot { assertTrue ( new OAuth2WebSecurityExpressionRoot ( oAuth2Authentic...
Fix broken test
<nb> public class EnvConfiguration extends AbstractConfiguration @ override public void destroy ( WebAppContext context ) throws Exception { + ClassLoader old_loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; + Thread . currentThread ( ) . setContextClassLoader ( context . getClassLoader ( ) )...
EnvConfiguration destroy should set the classloader
<nb> public class Classifier COMMENT COMMENT COMMENT - public void backpropSaved ( Set < Integer > indexesSeen ) { - for ( int x : indexesSeen ) { - int mapX = smallMap . get ( x ) ; + public void backpropSaved ( Map < Integer , Integer > preMap ) { + for ( int x : preMap . keySet ( ) ) { + int mapX =...
Make sure backpropSaved is using proper map
<nb> public abstract class ParseTime { if ( id == cid ) { SINGLE if ( ! tzMap . containsKey ( key ) ) tzMap . put ( key , STRING0 ) ; } else { SINGLE - if ( ! tzMap . containsKey ( key ) ) tzMap . put ( key , id ) ; - else tzMap . put ( key , tzMap . get ( key ) + STRING1 + id ) ; + if ( ! tzMap . containsK...
Fixes the timezone lists
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT COMMENT + COMMENT COMMENT - public interface TcpConnection < P > { + publ...
TcpConnection extends java io Closeable
<nb> public class VirtualConsole } else { - emitRange ( data , clazz , parent ) ; + SINGLE + emitRange ( consolify ( data ) , clazz , parent ) ; } }
consolify submitted text when rendering incrementally
<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...
Only warn one per dependency otherwise log spam can destroy disks
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; import NAMESPACE ;
Added missing license header
<nb> public class DeepLearningVsNeuralNet extends TestUtil { COMMENT COMMENT COMMENT - final float abseps = threaded ? FLOAT0 : FLOAT1 ; - final float releps = threaded ? FLOAT0 : FLOAT1 ; + final float abseps = threaded ? FLOAT0 : FLOAT2 ; + final float releps = threaded ? FLOAT0 : FLOAT3 ; SINGLE ...
Reduce tolerance for DL vs NN test
<nb> public class NettyHttpRequestSizeLimitIT extends ESIntegTestCase { . build ( ) ; } - @ testlogging ( STRING0 ) public void testLimitsInFlightRequests ( ) throws Exception { ensureGreen ( ) ;
Remove trace logging from NettyHttpRequestSizeLimitIT
<nb> public class PackageManagerService extends IPackageManager . Stub { private static final boolean DEBUG_ABI_SELECTION = false ; private static final boolean RUNTIME_PERMISSIONS_ENABLED = - SystemProperties . getInt ( STRING0 , NUMBER0 ) == NUMBER1 ; + SystemProperties . getInt ( STRING1 , NUMBER0 ) == NUM...
Fix a typo
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JedisShardInfo extends ShardInfo < Jedis > { Jedis jedis = new Jedis ( this ) ; try { jedis . select ( db ) ; - } c...
catching any Jedis exception
<nb> public final class BasicNonByteBufferOperations implements Callable < Boolean > { ClientContext . getConf ( ) . set ( Constants . MASTER_HOSTNAME , mMasterLocation . getHost ( ) ) ; ClientContext . getConf ( ) . set ( Constants . MASTER_RPC_PORT , Integer . toString ( mMasterLocation . getPort ( ) ) ) ; + ...
SMALLFIX Initialize ClientContext in two basic operations examples
<nb> public class SSLContextParametersTest extends AbstractJsseParametersTest { } protected void assertStartsWith ( String [ ] values , String prefix ) { + if ( values == null || values . length == NUMBER0 ) { + return ; + } for ( String value : values ) { assertTrue ( value . startsWith ( prefix ) ) ; ...
Fixed test on CI servers
<nb> public class OneToOneCallPanel ShowHideVideoButton showHideButton = new ShowHideVideoButton ( call , true , callContainer . isShowHideVideoButtonSelected ( ) ) ; showHideButton . setPeerRenderer ( peerPanel ) ; + showHideButton . setEnabled ( callContainer . isVideoButtonSelected ( ) ) ; Component [ ] ...
Fixes show hide local video button state in full screen mode
<nb> public class UpdateBase extends AbstractBaseTest { update ( survey ) . set ( survey . id , NUMBER0 ) . set ( survey . name , Expressions . stringTemplate ( STRING0 ) ) - . addBatch ( ) ; + . addBatch ( ) + . execute ( ) ; } }
Call execute method
<nb> public class Listener { if ( classToMethod . containsKey ( type ) ) return ; SINGLE try { method = getClass ( ) . getMethod ( STRING0 , new Class [ ] { Connection . class , type } ) ; + method . setAccessible ( true ) ; } catch ( SecurityException ex ) { if ( ERROR ) error ( STRING1 , STRING2 + type . ...
Fix issue where ReflectionListener could not access private methods
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class FileReference implements FileReferenceOwner , PsiPolyVariantReferenc if ( contextRef == null ) { Collection < PsiFileSystemItem > defaultContexts = myFileReferenceSet . getDefaultContexts ( ) ; for ( PsiFileSystemItem context...
avoid costly LOG assertTrue
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Selection extends ElementaryOperator < Selection > { return builder . toString ( ) ; } + public static class Implementation extends SopremoMap { private BooleanExpression co...
Removed superflous open in Selection Implementation
<nb> public class LookupImpl extends LightweightHint implements Lookup , Disposable { panel . add ( hintComponent ) ; myAutopopupHint = new LightweightHint ( panel ) ; myAutopopupHint . setForceShowAsPopup ( true ) ; - myAutopopupHint . setForceLightweightPopup ( true ) ; hintManager . showEditorHint ( myAuto...
shadows in hint autopopup update the size correctly
<nb> public abstract class CompilerTestCase extends TestCase { } else { explanation = expectedRoot . checkTreeEquals ( mainRoot ) ; } - assertNull ( - STRING0 - + compiler . toSource ( expectedRoot ) + if ( explanation != null ) { + String expectedAsSource = compiler . toSource ( expectedRoot ) ; + St...
Don t print the full explanation including tree views of the actual expected ASTs if the JavaScript is already different
<nb> public class Cookie implements Cloneable , Serializable { try { return super . clone ( ) ; } catch ( CloneNotSupportedException e ) { - throw new RuntimeException ( e . getMessage ( ) ) ; + throw new RuntimeException ( e ) ; } }
Wrap the root cause rather than just using the message
<nb> public interface ComponentArtifactMetaData { COMMENT COMMENT ComponentIdentifier getComponentId ( ) ; + + COMMENT + COMMENT + COMMENT + IvyArtifactName getName ( ) ; }
Hoisted up getName to ComponentArtifactMetaData for backwards compatibility
<nb> public interface IPhotoView { @ deprecated void setMidScale ( float midScale ) ; - COMMENT + COMMENT COMMENT COMMENT COMMENT
Turn multiline comment into documentation comment as implied
<nb> public class LeftCurlyCheck TokenTypes . LITERAL_ELSE , TokenTypes . LITERAL_FOR , TokenTypes . STATIC_INIT , + TokenTypes . OBJBLOCK , } ; } <nb> public class LeftCurlyCheckTest extends BaseCheckTestSupport { TokenTypes . LITERAL_IF , TokenTypes . LITERAL_ELSE , TokenTypes . LITERAL_FOR , ...
add Anonymous class to allowed tokens
<nb> public class PlanGenerator { tooSloped = true ; } } catch ( VertexNotFoundException e ) { - LOG . info ( STRING0 + options . from + STRING1 + options . to , e ) ; + LOG . info ( STRING0 + options . from + STRING1 + options . to ) ; throw e ; } options . rctx . debugOutput . finishedCalculating ( ) ...
Do not log VertexNotFoundException stack traces
<nb> public class JdbcSessionDatabaseInitializer { aliases . put ( STRING0 , STRING1 ) ; aliases . put ( STRING2 , STRING3 ) ; aliases . put ( STRING4 , STRING5 ) ; - aliases . put ( STRING6 , STRING7 ) ; ALIASES = Collections . unmodifiableMap ( aliases ) ; }
Remove useless postgresql alias
<nb> public interface EjbLogger extends BasicLogger { COMMENT COMMENT COMMENT - @ message ( id = NUMBER0 , value = STRING0 ) + @ message ( id = NUMBER0 , value = STRING1 ) RuntimeException invalidEjbLocalInterface ( String componentName ) ; COMMENT
Fix messages with missing format parameter
<nb> public abstract class AbstractBlockChain { COMMENT COMMENT public void removeListener ( BlockChainListener listener ) { - listeners . remove ( listener ) ; + ListenerRegistration . removeFromList ( listener , listeners ) ; } COMMENT <nb> public abstract class AbstractBlockChain { COMMENT COMM...
Fix AbstractBlockChain removeListener
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class SimpleMapCache < TModel extends Model > extends ModelCache < TModel , Map < String , TModel > > { <nb> public class QueryTransaction < TResult extends Model > implements ITransaction { ...
comments moved back qerytransactionbuilder to optional resultcallback
<nb> public class RoutingHelper { log . info ( STRING0 + dist ) ; SINGLE calculateRoute = true ; } + SINGLE if ( dist < POSITION_TOLERANCE * FLOAT0 ) { + Location nextLocation = routeNodes . get ( currentRoute ) ; LatLon project = getProject ( currentLocation , routeNodes . get ( currentRoute - NUMBER0 ) ...
Fix bearing when we calculate projection
<nb> public class OrcPageSource else if ( columnIndexes [ fieldId ] == ROWID_COLUMN ) { blocks [ fieldId ] = buildSequenceBlock ( filePosition , batchSize ) ; } - else if ( columnIndexes [ fieldId ] == SHARD_UUID_COLUMN ) { - blocks [ fieldId ] = constantBlocks [ fieldId ] . getRegion ( NUMBER0 , batchSize ) ...
Remove redundant check for constant block in OrcPageSource
<nb> public class VisibilityModifierCheck @ override public int [ ] getDefaultTokens ( ) { - return new int [ ] { - TokenTypes . VARIABLE_DEF , - TokenTypes . IMPORT , - } ; + return getAcceptableTokens ( ) ; } @ override public int [ ] getAcceptableTokens ( ) { return new int [ ] { TokenTyp...
Exclude OBJBLOCK from acceptable tokens of VisibilityModifier
<nb> public class MailConsumer extends ScheduledBatchPollingConsumer { private void peekMessage ( Message mail ) { SINGLE - if ( mail . getClass ( ) . getName ( ) . startsWith ( STRING0 ) ) { + if ( mail . getClass ( ) . getSimpleName ( ) . startsWith ( STRING0 ) ) { try { LOG . trace ( STRING1 , mail ) ;...
Fix IMAP peeking use simpleName for classcheck
<nb> public class ResultTreeRenderer extends ColoredTreeCellRenderer final TestResultMessage result = proxy . getResultMessage ( ) ; final String name = TestProxy . toDisplayText ( result , consoleProperties . getProject ( ) ) ; append ( name , SimpleTextAttributes . REGULAR_ATTRIBUTES ) ; - final String descri...
do not apply test description twice
<nb> public class MongoClientOptions { public MongoClientOptions build ( ) { return new MongoClientOptions ( this ) ; } + + org . mongodb . MongoClientOptions . Builder getProxied ( ) { + return proxied ; + } } COMMENT <nb> public class MongoClientURI { this ( uri , new MongoClientOptions . Buil...
Added MongoClientURI constructor that takes a Builder
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT public final class EarClippingTriangulator { private static final int CONCAVE = NUMBER0 ; <nb> public final class EarClippingTriangulator { final int areaSign2 = computeSpannedAreaSign ( p2 , p3 , v ) ; fin...
Fix some comments
<nb> public enum PredictionMode { return all ; } - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public static BitSet getAlts ( ATNConfigSet configs ) { BitSet alts = new BitSet ( ) ; for ( ATNConfig config : configs ) {
Move a since tag to start of a new line
<nb> public class JsonImportTask extends AsyncTask < Void , Void , Integer > { } SINGLE - ArrayList < ListItem > items = com . battlelancer . seriesguide . util . Lists . newArrayList ( ) ; + ArrayList < ContentValues > items = com . battlelancer . seriesguide . util . Lists . newArrayList ( ) ; for ( ListI...
Use correct array data type
<nb> public abstract class GraphDatabaseApp extends AbstractApp } StringBuilder result = new StringBuilder ( STRING0 ) ; - result . append ( relationship . getType ( ) . name ( ) ) ; + result . append ( STRING1 + relationship . getType ( ) . name ( ) ) ; result . append ( verbose ? STRING2 + relationship . ...
Mimics the Cypher output more closely
<nb> public class ChatSessionAdapter extends info . guardianproject . otr . app . im . IChatSes SINGLE SINGLE SINGLE - SINGLE - SINGLE + if ( N == NUMBER0 ) + { SINGLE mStatusBarNotifier . notifyChat ( mConnection . getProviderId ( ) , mConnection . getAccountId ( ) , getId ( ) , bareUsername , nick...
turn off notifications when chat is up
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
add array import
<nb> public abstract class Server < M , R > extends Protocol implements ChannelPipelineFa } catch ( Throwable e ) { + msgLog . logMessage ( STRING0 , e ) ; ctx . getChannel ( ) . close ( ) ; tryToFinishOffChannel ( ctx . getChannel ( ) ) ; e . printStackTrace ( ) ;
Added logging if an unexpected exception gets thrown when handling a request
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT + public class AcraReportSender i...
add copyright notice
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; public class DefaultLoggingConfigurer implements LoggingConfigurer { - private final static Logger LOGGER = Logging . getLogger ( DefaultLoggingConfigure...
Removed log message
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class DomExtenderEP { + public class DomExtenderEP implements PluginAware { private static fin...
class not found fix
<nb> public class LintManager private void lintActiveDocument ( final LintContext context ) { - target_ . save ( new Command ( ) + if ( context . showMarkers ) { - @ override - public void execute ( ) + target_ . save ( new Command ( ) { - performLintServerRequest ( context ) ; - } - } ) ; +...
only perform explicit save on explicit lint gesture
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ProgressIndicatorUtils { } public static void scheduleWithWriteActionPriori...
do not exhaust limited job scheduling pool
<nb> public class UserPreferences { } COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT public static boolean setLockscreenBackground ( ) { return prefs . getBoolean ( PREF_LOCKSCREEN_BACKGROUND , true ) ;
Fix documentation of setLockscreenBackground
<nb> import NAMESPACE ; @ gwtcompatible ( emulated = true ) final class Platform { private static final Logger logger = Logger . getLogger ( Platform . class . getName ( ) ) ; - private static final PatternCompiler patternCompiler ; - - static { - patternCompiler = loadPatternCompiler ( ) ; - logger . l...
Remove logging of regex compiler
<nb> public class IntentFilter implements Parcelable { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Adjust javadoc for filter priority
<nb> public class CalEventLocalServiceImpl extends CalEventLocalServiceBaseImpl { } } catch ( Exception e ) { - _log . error ( e . getMessage ( ) , e ) ; + _log . error ( e , e ) ; } }
improving logging for exceptions
<nb> public final class ToolWindowManagerImpl extends ToolWindowManagerEx implements } toolWindow . setIcon ( icon ) ; } - toolWindow . setSplitMode ( bean . secondary , null ) ; + + if ( ! getInfo ( bean . id ) . isSplit ( ) && bean . secondary ) toolWindow . setSplitMode ( bean . secondary , null ) ; ...
fix keep ToolWindow position for split mode between project reloads
<nb> public class TransitNarrative extends DelegatingEdgeNarrative { return newtrip ; } } + + public String toString ( ) { + return STRING0 + base + STRING1 ; + } }
Add a toString
<nb> public class FullPrunedBlockChainTest { if ( ! ( rule instanceof BlockAndValidity ) ) continue ; BlockAndValidity block = ( BlockAndValidity ) rule ; + log . info ( STRING0 + block . ruleName + STRING1 + block . block . getHash ( ) ) ; boolean threw = false ; try { if ( chain . add ( block . block ) ...
add more debug logging
<nb> public class FileConsumerJpaIdempotentTest extends ContextTestSupport { protected RouteBuilder createRouteBuilder ( ) throws Exception { return new RouteBuilder ( ) { public void configure ( ) throws Exception { - from ( STRING0 ) . to ( STRING1 ) ; + from ( STRING2 ) . to ( STRING1 ) ; } } ; }
Fixed failing unit test
<nb> public class AddOnActivity extends FragmentActivity { . setIcon ( R . drawable . gl_more ) . setTabListener ( new AddOnTabListener ( availableView ) ) ; - ab . addTab ( installedTab ) ; ab . addTab ( availableTab ) ; + ab . addTab ( installedTab ) ; setTitle ( R . string . AOA_title ) ;
Switch order of add on activity tabs
<nb> public class DomainClientImpl implements DomainClient { ModelNode op = new ModelNode ( ) ; op . get ( STRING0 ) . set ( STRING1 ) ; op . get ( STRING2 ) . set ( STRING3 ) ; - op . get ( STRING4 ) . set ( STRING5 , host ) ; + op . get ( STRING4 ) . add ( STRING5 , host ) ; ModelNode result = executeForR...
Fix wrong method add missing class
<nb> public final class PreferencesFragment if ( valueString . isEmpty ( ) ) { return true ; } + SINGLE + SINGLE + valueString = valueString . replaceAll ( STRING0 , STRING1 ) ; SINGLE try { URI uri = new URI ( valueString ) ;
validate custom search URL without placeholders which will make URLs invalid in some cases
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + public class RelativizedCopySpec extends DelegatingCopySpec { private final CopySpecInternal parent ; <nb> public class RelativizedCopySpec extends DelegatingCopySpec { return parent . getDestPath ( ...
Relativize the children of a relative copy spec as well
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public final class SpdyHttpHeaders { COMMENT COMMENT - COMMENT + COMMENT COMMENT public static final class Names { COMMENT
Fix javadocs warnings
<nb> final class NewTypeInference implements CompilerPass { warnings . add ( JSError . make ( argNode , INVALID_ARGUMENT_TYPE , Integer . toString ( i + NUMBER0 ) , calleeScope . getReadableName ( ) , - formalType . toString ( ) , - argType . toString ( ) ) ) ; + errorMsgWithTypeDiff ( formalType , argType ...
NTI Print type diff properly when reporting INVALID_ARGUMENT_TYPE in one case
<nb> public class ODocument extends ORecordVirtualAbstract < Object > implements Iterabl COMMENT COMMENT + COMMENT + COMMENT COMMENT - public void addOwner ( final ORecordElement iOwner ) { + public ODocument addOwner ( final ORecordElement iOwner ) { if ( _owners == null ) _owners = new ArrayList <...
Added fluent interface to owners methods
<nb> public interface ISerialization < T > { COMMENT COMMENT COMMENT - public boolean accept ( Class < T > c ) ; + public boolean accept ( Class c ) ; COMMENT COMMENT
remove generic from ISerialization accept
<nb> public class RedundantThrows extends GlobalJavaInspectionTool { PsiJavaCodeReferenceElement [ ] throwsRefs = psiMethod . getThrowsList ( ) . getReferenceElements ( ) ; ArrayList < ProblemDescriptor > problems = null ; + final PsiManager psiManager = psiMethod . getManager ( ) ; for ( int i = NUMBER0 ; i ...
e g take different jdks into account
<nb> public class ObjcCommandLineOptions extends FragmentOptions { + STRING0 ) public boolean enableCcDeps ; - SINGLE @ option ( name = STRING1 , - defaultValue = STRING2 , + defaultValue = STRING3 , category = STRING4 , converter = CommaSeparatedOptionListConverter . class , - help = STRING5 ) + ...
Make permanent changes already in tools blaze
<nb> public class DataGenerator this . headerGenerator = headerGenerator ; } - public void generate ( ByteBufferPool . Lease lease , Frame frame , int maxLength ) + public void generate ( ByteBufferPool . Lease lease , DataFrame frame , int maxLength ) { - DataFrame dataFrame = ( DataFrame ) frame ; - g...
Removed unneeded casting to DataFrame
<nb> public class AsyncHttpClient { url = url . replace ( STRING0 , STRING1 ) ; if ( params != null ) { - String paramString = params . getParamString ( ) ; - if ( ! url . contains ( STRING2 ) ) { - url += STRING2 + paramString ; - } else { - url += STRING3 + paramString ; + SINGLE + SINGLE + Stri...
Only add the query string if it s not empty and it s not equal to
<nb> public abstract class ExploreByTouchHelper extends AccessibilityDelegateCompat { public boolean performAction ( int virtualViewId , int action , Bundle arguments ) { return ExploreByTouchHelper . this . performAction ( virtualViewId , action , arguments ) ; } + + @ override + public AccessibilityNodeIn...
Add findFocus to ExploreByTouchHelper
<nb> public class LogBufferDescriptor COMMENT public static int nextPartitionIndex ( final int currentIndex ) { - int nextIndex = currentIndex + NUMBER0 ; - if ( nextIndex == PARTITION_COUNT ) - { - nextIndex = NUMBER1 ; - } - - return nextIndex ; + return ( currentIndex + NUMBER0 ) % PARTITION_CO...
Save branch on nextPartitionIndex calculation
<nb> public class XBinder extends XHook { STRING0 , SINGLE STRING1 , SINGLE STRING2 , SINGLE + STRING3 , SINGLE + STRING4 , SINGLE STRING5 , SINGLE STRING6 , SINGLE STRING7 , SINGLE
Added IPC exceptions support info
<nb> public class GeneralConfigPluginActivator COMMENT COMMENT COMMENT - ServiceReference [ ] protocolRefs = bundleContext . getServiceReferences ( - ProtocolProviderService . class . getName ( ) , null ) ; - if ( protocolRefs != null && protocolRefs . length > NUMBER0 ) - { - try - { - synchronized...
Reverts latest changes fixing build
<nb> public class Metrics { return DEFAULT_REGISTRY ; } + @ suppresswarnings ( STRING0 ) public static void shutdown ( ) { Utils . shutdownThreadPools ( ) ; DEFAULT_REGISTRY . threadPools ( ) . shutdownThreadPools ( ) ;
Suppress a deprecation warning
<nb> public class SimpleCounterTest { private static void sleepForResetInterval ( long startTimeMs ) { try { long stopTimeMs = startTimeMs + COUNTER_RESET_INTERVAL_MS ; - Thread . sleep ( stopTimeMs - System . currentTimeMillis ( ) + NUMBER0 ) ; + long sleepDurationMs = stopTimeMs - System . currentTimeMillis...
Tweaked SimpleCounterTest to avoid passing negative value to sleep if GC or other pause occurs at inopportune point during test
<nb> public class IndexRangesResource extends RestResource { } @ get - @ path ( STRING0 ) + @ path ( STRING1 ) @ timed @ apioperation ( value = STRING2 ) @ produces ( MediaType . APPLICATION_JSON )
Fix wrong URI path for showing a single index range
<nb> class NewMongoCollectionImpl < T > implements NewMongoCollection < T > { } @ override - public long count ( final CountModel model ) { + public < D > long count ( final CountModel < D > model ) { CountOperation operation = new CountOperation ( namespace ) ; operation . setCriteria ( asBson ( model . ...
Added generic method type
<nb> public abstract class ImmutableSortedMultiset < E > extends ImmutableSortedMultiset COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix usage example of ImmutableSortedMultiset Builder
<nb> public class PersistedServiceImpl implements PersistedService { private static final Logger LOG = LoggerFactory . getLogger ( PersistedServiceImpl . class ) ; public final MongoConnection mongoConnection ; - public PersistedServiceImpl ( MongoConnection mongoConnection ) { + protected PersistedServiceImp...
Changing visibility of constructor as it s not intented to be used
<nb> public class GhostscriptImpl implements Ghostscript { public Future < ? > execute ( List < String > commandArguments ) throws Exception { if ( ! isEnabled ( ) ) { - StringBundler sb = new StringBundler ( NUMBER0 ) ; + StringBundler sb = new StringBundler ( NUMBER1 ) ; - sb . append ( STRING0 ) ; - ...
Source formattting missing space in message and incorrect size for sb
<nb> import NAMESPACE ; + + SINGLE + public class WriteSVG extends PApplet { public String sketchRenderer ( ) {
remove me note
<nb> public class NodeEngineImpl implements NodeEngine { waitNotifyService . shutdown ( ) ; proxyService . shutdown ( ) ; serviceManager . shutdown ( terminate ) ; - executionService . shutdown ( ) ; eventService . shutdown ( ) ; operationService . shutdown ( ) ; wanReplicationService . shutdown ( ) ; +...
moved executionService shutdown to the end of the shutdown procedure
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class ExtensionImpl implements Extension { PsiElement declaration = getChildDescription ( ) . getDeclaration ( getManager ( ) . getProject ( ) ) ; if ( declaration instanceof PomTargetPsiElement ) { PomTarget target = ( ( ...
do not return invalid DOM element
<nb> public class AudioStream extends AudioData implements Closeable { throw new RuntimeException ( STRING0 ) ; } } + + public boolean isSeekable ( ) { + return in instanceof SeekableStream ; + } public void setTime ( float time ) { if ( in instanceof SeekableStream ) { <nb> public class ALAudioRe...
Fix exception when stopping non cached audio stream
<nb> public class AccumulatorSnapshot implements Serializable { COMMENT COMMENT public Map < AccumulatorRegistry . Metric , Accumulator < ? , ? > > deserializeFlinkAccumulators ( ) throws IOException , ClassNotFoundException { - return flinkAccumulators . deserializeValue ( ClassLoader . getSystemClassLoader ( ...
hotfix Use AccumulatorSnapshot s class loader for deserializing accumulators
<nb> public class CommandHandler < K , V > extends ChannelDuplexHandler { try { if ( ! input . isReadable ( ) ) return ; - SINGLE + SINGLE buffer . discardReadBytes ( ) ; buffer . writeBytes ( input ) ; <nb> public class CommandHandler < K , V > extends ChannelDuplexHandler { Command < ? , ? , ? > c...
encode binary data in operation debug output
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT @ mojo ( name = STRING0 , requiresProject = true , defaultPhase = LifecyclePhase . VALIDATE , requi...
Added an Execute annotation to RunMojo
<nb> COMMENT COMMENT - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ;
Fix ALSSpeedIT package
<nb> public class TextQueryBuilder extends BaseQueryBuilder { builder . startObject ( TextQueryParser . NAME ) ; builder . startObject ( name ) ; - builder . field ( STRING0 , text ) ; + builder . field ( STRING1 , text ) ; if ( type != null ) { builder . field ( STRING2 , type . toString ( ) . toLowerCas...
fix the build of a phrase query in the java client
<nb> public final class ALSServingModel { } finally { lock . unlock ( ) ; } - YTY = YTY == null ? YTYpartial : YTY . add ( YTYpartial ) ; + if ( YTYpartial != null ) { + YTY = YTY == null ? YTYpartial : YTY . add ( YTYpartial ) ; + } } return new LinearSystemSolver ( ) . getSolver ( YTY ) ; }
Handle empty partitions in getYTYSolver
<nb> public final class FileSystemUtils { COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT
DOCFIX Fix javadoc for FileSystemUtils waitCompleted
<nb> public abstract class AbstractInitCommand extends Command implements UserInterac } } catch ( InstantiationException | IllegalAccessException e ) { + logger . log ( Level . SEVERE , STRING0 , e ) ; throw new RuntimeException ( STRING1 + e . getMessage ( ) ) ; } <nb> public abstract class AbstractIni...
Add option value to postQueryCallback
<nb> public class GroovyConsole { myProcessHandler = handler ; } - public void execute ( @ notnull String command ) { + private void doExecute ( @ notnull String command ) { SINGLE if ( first ) { first = false ; <nb> public class GroovyConsole { myConsoleView . print ( STRING0 , ConsoleViewContentTy...
do not execute empty commands
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AlarmManager { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT public void cancel ( Pendi...
Relax null parameter enforcement for legacy apps
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> public abstract class BaseScannerThread < StartOptions extends ScanStartOptions > e COMMENT COMMENT public void setPaused ( boolean paused ) { - Logger . getAnonymousLogger ( ) . info ( STRIN...
Removed unneccessary logs
<nb> public interface ReconnectPolicy { COMMENT COMMENT COMMENT - EVERY_MESSAGE { + EVERY_NOTIFICATION { @ override public ReconnectPolicy newObject ( ) { return new ReconnectPolicies . Always ( ) ; <nb> public class ApnsConnectionImpl implements ApnsConnection { socket = factory . createSocket ( ho...
modify EVERY_MESSAGE to EVERY_NOTIFICATION
<nb> public class AndroidAptCompiler implements SourceGeneratingCompiler { - NUMBER0 , - NUMBER0 ) ; continue ; } - String sourceRootPath = AndroidRootUtil . getAptGenSourceRootPath ( facet ) ; - if ( sourceRootPath == null ) { - myContext . addMessage ( CompilerMessageCategory . ERROR , - AndroidBundle ....
do not check source root for autogenerated files in compiler
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Adds license header