diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class DockerHealthChecker extends HealthCheck implements Managed { metrics . getDockerTimeoutRates ( ) , metrics . getSupervisorRunRates ( ) ) ; final double exceptionRatio = fiveMinuteRatio ( metrics . getContainersThrewExceptionRates ( ) , metrics . getSupervisorRunRates ( ) ) ; - log . info ( STR...
Reduce log noise from docker health check
<nb> public class SynchronizedObserverTest { SINGLE - Future < ? > f10 = tp . submit ( new CompletionThread ( w , TestConcurrencyObserverEvent . onCompleted , f1 , f2 , f3 , f4 ) ) ; + Future < ? > f10 = tp . submit ( new CompletionThread ( w , TestConcurrencyObserverEvent . onCompleted , f1 , f2 , f3 , f4 , ...
Fix SynchronizedObserver runConcurrencyTest
<nb> public class BatchNode extends Node implements Savable { batch . geometry . setIgnoreTransform ( true ) ; batch . geometry . setUserData ( UserData . JME_PHYSICSIGNORE , true ) ; } + updateGeometricState ( ) ; } protected void doBatch ( ) {
BatchNode now updates its geometric state right after batching
<nb> public class GBMV2 extends SharedTreeV2 < GBM , GBMV2 , GBMV2 . GBMParametersV2 > { public static final class GBMParametersV2 extends SharedTreeParametersV2 < GBMParameters , GBMParametersV2 > { static public String [ ] own_fields = new String [ ] { - STRING0 , - STRING1 , - STRING2 , - STRING3 , S...
Params in flow show two times
<nb> public class PythonDebugConsoleCommunication extends AbstractConsoleCommunicatio if ( processInput != null ) { try { final Charset defaultCharset = EncodingProjectManager . getInstance ( myDebugProcess . getProject ( ) ) . getDefaultCharset ( ) ; - processInput . write ( ( code . getText ( ) + STRING0 ) . ...
We shouldn t add new line character here
<nb> public final class Request { SINGLE + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public final void setNote ( int pos , Objec...
Add a quick comment
<nb> public class OrcMetadataReader return null ; } + SINGLE + SINGLE + if ( true ) { + return null ; + } + return new StringStatistics ( stringStatistics . hasMinimum ( ) ? stringStatistics . getMinimum ( ) : null , stringStatistics . hasMaximum ( ) ? stringStatistics . getMaximum ( ) : null ) ...
Fix incorrect check to disable string statistics in ORC
<nb> public class DefaultClassDirectoryBinarySpec extends AbstractBuildableModelEleme } @ override + @ suppresswarnings ( STRING0 ) public DomainObjectSet < LanguageSourceSet > getSource ( ) { - return sourceSets ; + return getInputs ( ) ; } @ override
Fixed compile error
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; <nb> public class DecoderConfigITest extends WithJetty { get ( STRING0 ) ; } - @ test public void + @ test @ ignore ( STRING1 ) public void use_n...
Ignored external test
<nb> import NAMESPACE ; COMMENT @ path ( STRING0 ) @ singleton - @ produces ( { STRING1 , STRING2 , STRING3 } ) + @ produces ( { STRING1 , STRING3 , STRING2 } ) public class CamelContextResource { private final CamelContext camelContext ; <nb> public class CamelContextResource { COMMENT COMMENT ...
fixed failing test case
<nb> public interface SubscriptionListener COMMENT COMMENT public void subscriptionMoved ( SubscriptionMovedEvent evt ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void subscriptionResolved ( SubscriptionEvent evt ) ; + }
added a subscription resolved method
<nb> public class NodeScheduler } if ( split . isRemotelyAccessible ( ) ) { - InetAddress address = hint . toInetAddress ( ) ; + InetAddress address ; + try { + address = hint . toInetAddress ( ) ; + } + catch ( UnknownHostException e ) { + SINGLE + continue ; + } for ( Node node : nodeMap . g...
Skip split address hints that do not resolve
<nb> COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public abstract class InStream extends Inp...
Clarify the class comment of InStream
<nb> public class RestIndicesAction extends AbstractCatAction { table . addCell ( STRING0 , STRING1 ) ; table . addCell ( STRING2 , STRING3 ) ; - table . addCell ( STRING4 , STRING5 ) ; + table . addCell ( STRING4 , STRING6 ) ; table . addCell ( STRING7 , STRING8 ) ; table . addCell ( STRING9 , STRING10...
Add alias sample
<nb> public abstract class BaseActivity extends Activity { COMMENT COMMENT boolean cancelSearch ( ) { + boolean collapsed = false ; + boolean closed = false ; + if ( mActionBar . hasExpandedActionView ( ) ) { mActionBar . collapseActionView ( ) ; - return true ; + collapsed = true ; } - return f...
Pressing back button clears search
<nb> public class NettyAsyncHttpProvider extends SimpleChannelUpstreamHandler impleme ChannelFuture channelFuture ; ClientBootstrap bootstrap = request . getUrl ( ) . startsWith ( WEBSOCKET ) ? webSocketBootstrap : ( useSSl ? secureBootstrap : plainBootstrap ) ; - SINGLE + bootstrap . setOption ( STRING0 , co...
Oups fix unwanted commit
<nb> public class MessageList private Account mAccount ; private int mUnreadMessageCount = NUMBER0 ; - private GestureDetector gestureDetector ; - private View . OnTouchListener gestureListener ; COMMENT COMMENT COMMENT
removed unused private fields gesture Detector Listener
<nb> public class HttpSessionContextIntegrationFilter implements InitializingBean , boolean filterApplied = false ; if ( ( request != null ) && ( request . getAttribute ( FILTER_APPLIED ) != null ) ) { SINGLE - System . out . println ( STRING0 ) ; chain . doFilter ( request , response ) ; } else { HttpSes...
Removed print statement
<nb> public class CommandLineTaskConfigurer { public List < String > configureTasks ( Collection < Task > tasks , List < String > arguments ) { assert ! tasks . isEmpty ( ) ; - if ( ! shouldConfigureWith ( arguments ) ) { + if ( arguments . isEmpty ( ) ) { return arguments ; } return configureTasksNow (...
Removed a check that CommandLineParser will do anyway
<nb> public class MetaClassRegistryCleaner implements MetaClassRegistryChangeEventLis } } - public void clean ( ) { + public synchronized void clean ( ) { try { cleaning = true ; MetaClassRegistryImpl registry = ( MetaClassRegistryImpl ) GroovySystem . getMetaClassRegistry ( ) ;
make clean method synchronized in MetaClassRegistryCleaner
<nb> public class ComboEditorCompletionContributor extends CompletionContributor { @ override public void fillCompletionVariants ( final CompletionParameters parameters , final CompletionResultSet result ) { + final CompletionProcess process = CompletionService . getCompletionService ( ) . getCurrentCompletion ...
don t autopopup completion in combo editors
<nb> public class VertexQueryFilter extends DefaultVertexQuery { } public Object vertexIds ( ) { - throw new UnsupportedOperationException ( ) ; + throw new UnsupportedOperationException ( STRING0 ) ; } public long count ( ) { - throw new UnsupportedOperationException ( ) ; + throw new UnsupportedOp...
added more exception messages to VertexQueryFilter
<nb> public abstract class StorIODb { COMMENT COMMENT COMMENT - private final Loggi loggi = new Loggi ( ) ; + @ nonnull private final Loggi loggi = new Loggi ( ) ; COMMENT COMMENT
Add NonNull annotation for Loggi
<nb> public class MetricsServlet extends HttpServlet { @ override protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException { final String uri = req . getPathInfo ( ) ; - if ( uri . equals ( STRING0 ) ) { + if ( uri == null || uri . equals ( STRING0 ) ) {...
Fix NPE w o trailing slash
<nb> public class CreateLocalVariableFromUsageFix implements IntentionAction { int offset = myRefExpression . getTextRange ( ) . getStartOffset ( ) ; GrStatement anchor = findAnchor ( file , offset ) ; - decl = myOwner . addVariableDeclarationBefore ( decl , anchor ) ; + TypeConstraint [ ] constraints = Groov...
inplace create local variable
<nb> public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer { if ( mTts != null ) { mTts . stop ( ) ; } + ttsRequests = NUMBER0 ; } public void sendAlertToPebble ( String bld ) {
reset utterance counter upon stop
<nb> public class GLMModel extends Model < GLMModel , GLMModel . GLMParameters , GLMModel . GLM } } } + } else if ( glm . nclasses ( ) > NUMBER0 ) { SINGLE + glm . error ( STRING0 , STRING1 + _family + STRING2 ) ; } + if ( ! _lambda_search ) { glm . hide ( STRING3 , STRING4 ) ; glm . hide ( STRING5 ...
Disallow categorical response for GLM with non binomial family
<nb> package NAMESPACE ; public class MongoInterruptedException extends MongoException { private static final long serialVersionUID = - NUMBER0 ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + @ deprecated public MongoInterruptedException ( final InterruptedException e ) { super ( STRING0 , e...
Deprecated MongoInterruptedException constructors
<nb> public class GithubRebaseAction extends DumbAwareAction { public void update ( AnActionEvent e ) { final Project project = e . getData ( PlatformDataKeys . PROJECT ) ; if ( StringUtil . isEmptyOrSpaces ( GithubSettings . getInstance ( ) . getLogin ( ) ) || - project == null || project . isDefault ( ) || ...
don t call Git in update
<nb> public class NettyCometSupport extends AsynchronousProcessor { public final static String SUSPEND = NettyCometSupport . class . getName ( ) + STRING0 ; public final static String RESUME = NettyCometSupport . class . getName ( ) + STRING1 ; - private static final Logger logger = LoggerFactory . getLogger ( ...
Fix wring logger
<nb> public class FloatingActionButton extends ImageButton { if ( mSettledScrollY != scrollY ) { mSettledScrollY = scrollY ; removeMessages ( NUMBER0 ) ; - SINGLE sendEmptyMessage ( NUMBER0 ) ; } }
Remove an outdated comment
<nb> public class UnsupportedEnvironment implements ProcessEnvironment { try { pid = Long . parseLong ( runtimeMXBeanName . substring ( NUMBER0 , separatorPos ) ) ; } catch ( NumberFormatException e ) { - LOGGER . debug ( STRING0 + runtimeMXBeanName ) ; + LOGGER . debug ( STRING1 + runtimeMXBeanName ) ; } ...
Improved log messages
<nb> public class JavaGeneratorTest System . out . println ( sources ) ; } - if ( fqClassName . contains ( STRING0 ) ) - { - System . out . println ( STRING1 + sources . get ( fqClassName ) ) ; - } return aClass ; }
Java Remove debugging output that was left in by mistake
<nb> public class StickyGridHeadersBaseAdapterWrapper extends BaseAdapter { if ( adapterPosition . mPosition == POSITION_HEADER ) { HeaderFillerView v = getHeaderFillerView ( adapterPosition . mHeader , convertView , parent ) ; View view = mDelegate . getHeaderView ( adapterPosition . mHeader , ( View ) v . getTa...
this change is so normal headers use the same trick as stickied headers and thus should solve the caching bug
<nb> public class SecurityConfigTests { @ autowired private WebApplicationContext context ; - @ autowired - private Filter springSecurityFilterChain ; - @ before public void setup ( ) { mvc = MockMvcBuilders . webAppContextSetup ( context ) - . addFilters ( springSecurityFilterChain ) . build ( ...
Remove springSecurityFilterChain from insecuremvc tests
<nb> class Follower implements RaftMessageHandler leaderSegmentPrevIndex > - NUMBER0 && ( leaderSegmentPrevIndex <= localLogPrevIndex || localSegmentPrevTerm == leaderSegmentPrevTerm ) ; - if ( ! logHistoryMatches ) - { - log . info ( STRING0 , - localLogPrevIndex , leaderSegmentPrevIndex , localSegmentPr...
Remove spammy logging
<nb> public class ServerTestCase { public static void tearDown ( ) throws Exception { if ( server != null ) server . stop ( ) ; + if ( proxy != null ) + proxy . stop ( ) ; } }
Stop proxy during tear down
<nb> public class Indexer { obj . put ( STRING0 , message . getCreatedAt ( ) ) ; } - SINGLE + SINGLE List < String > streamIds = new ArrayList < String > ( ) ; for ( ObjectId id : message . getStreamIds ( ) ) { streamIds . add ( id . toString ( ) ) ;
added forgotten ELASTIC todo flag to a comment to find it later
<nb> public static class SyntaxQuoteReader extends AFn { SINGLE } else - sym = Compiler . resolveSymbol ( sym ) ; + { + Object maybeClass = null ; + if ( sym . ns != null ) + maybeClass = Compiler . currentNS ( ) . getMapping ( + Symbol . intern ( null , sym . ns ) ) ; + if ( maybeClass instanceof C...
Resolve classnames in modern syntax static calls at syntaxQuote time
<nb> public class ServerStoredContactListJabberImpl logger . debug ( STRING0 + groupName + STRING1 ) ; throw new OperationFailedException ( STRING0 + groupName + STRING1 , - OperationFailedException . SUBSCRIPTION_ALREADY_EXISTS ) ; + OperationFailedException . CONTACT_GROUP_ALREADY_EXISTS ) ; } RosterG...
Add new code for OperationFailedException
<nb> public class HashSessionManager extends AbstractSessionManager COMMENT public void setStoreDirectory ( File dir ) throws IOException - { + { + SINGLE + SINGLE _storeDir = dir . getCanonicalFile ( ) ; } <nb> public class IdleSessionTest @ override public SessionManager newSessionManager ( ...
Add note about getCanonicalFile check and fix IdleSession test in test hash sessions
<nb> public class Session implements SessionHandler . SessionIf if ( result ) { SINGLE - ( ( DefaultSessionIdManager ) _handler . getSessionIdManager ( ) ) . invalidateAll ( _sessionData . getId ( ) ) ; + _handler . getSessionIdManager ( ) . invalidateAll ( _sessionData . getId ( ) ) ; } } catch ( Excep...
Remove unnecessary cast to DefaultSessionIdManager in Session invalidate
<nb> public class DisUnityProcessor implements Runnable , FileVisitor < Path > { AssetBundle ab = new AssetBundle ( ) ; try { - ab . load ( file ) ; + ab . open ( file ) ; } catch ( IOException ex ) { L . log ( Level . SEVERE , STRING0 + file , ex ) ; return ;
Using open instead of load for asset bundles
<nb> public class JettyLog implements Logger { return new JettyLog ( ) ; } - private String format ( String msg , Object arg0 , Object arg2 ) { + private String format ( String msg , Object arg0 , Object arg1 ) { int sub0 = msg . indexOf ( STRING0 ) ; int sub1 = ( sub0 > NUMBER0 ) ? ( NUMBER0 ) : ( msg . ...
Fixed up previous patch a bit
<nb> public class EventHubReceiverImpl implements IEventHubReceiver { long start = System . currentTimeMillis ( ) ; receiver = new ResilientEventHubReceiver ( connectionString , entityName , partitionId , consumerGroupName , defaultCredits , filter ) ; + receiver . initialize ( ) ; long end = System . curre...
Add initialization for ResilientEventHubReceiver
<nb> public class Percentile { this . value = value ; } - double getQuantile ( ) { + COMMENT + COMMENT + COMMENT + public double getQuantile ( ) { return quantile ; } - long getValue ( ) { + COMMENT + COMMENT + COMMENT + public long getValue ( ) { return value ; } }
expose getQuantile getValue in Percentile Per Steve Gury I made these accessors public
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public class TestMaxConnections extends TomcatBaseTest { private static Log log = LogFactory . getLog ( TestMaxConnections . class ) ; <nb> public class TestM...
Fix Checkstyle Eclipse nags
<nb> class DetailsPanel extends JPanel implements ListSelectionListener { for ( int i = myMainContentPanel . getComponentCount ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) { ( ( JComponent ) myMainContentPanel . getComponent ( i ) ) . setAlignmentX ( LEFT_ALIGNMENT ) ; } + + repaint ( ) ; } @ notnull
vcs log add repaint
<nb> public class HttpGetter { try { HttpGet httpget = new HttpGet ( url ) ; + httpget . addHeader ( STRING0 , STRING1 ) ; + httpget . addHeader ( STRING2 , STRING3 ) ; HttpResponse response = httpclient . execute ( httpget ) ; HttpEntity entity = response . getEntity ( ) ; if ( entity != null ) {
disable http cache
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Time { public int month ; COMMENT - COMMENT + COMMENT COMMENT public int year ;
add some more info to Time javadocs
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Move TextWatcherObservable to library
<nb> public class ReplaceDialog extends SearchDialog { } public void setValuesFromConfig ( Configuration configuration ) { - replaceCriteriaEdit . putUserData ( SubstitutionShortInfoHandler . CURRENT_CONFIGURATION_KEY , configuration ) ; + SINGLE if ( configuration instanceof ReplaceConfiguration ) { fi...
fixed issue with stale version of configurations used for short info
<nb> public class ReplaceSpacesTest { replaceSpaces . replace ( input ) ; - assertArrayEquals ( new char [ ] { STRING0 , STRING1 , STRING2 , STRING0 , STRING1 , STRING2 } , input ) ; + assertArrayEquals ( new char [ ] { STRING3 , STRING4 , STRING0 , STRING1 , STRING2 , STRING5 , STRING6 , STRING7 } , input ) ...
Fix broken test
<nb> public class ClassFileVersion implements Comparable < ClassFileVersion > { COMMENT COMMENT public static ClassFileVersion ofMinorMajor ( int versionNumber ) { - if ( versionNumber <= BASE_VERSION ) { + ClassFileVersion classFileVersion = new ClassFileVersion ( versionNumber ) ; + if ( classFileVersion ...
Fixed class file version validation
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class SecurityRealmRegistry { private static final RuntimePermission LOOKUP_REALM_PERMISSION = new RuntimePermission ( STRING0 ) ; - privat...
Fix small thread safety issue
<nb> public class ShardIndexingService extends AbstractIndexShardComponent { totalStats . indexCurrent . inc ( ) ; typeStats ( index . type ( ) ) . indexCurrent . inc ( ) ; for ( IndexingOperationListener listener : listeners ) { - listener . preIndex ( index ) ; + index = listener . preIndex ( index ) ; } ...
fix skipped variable setting
<nb> public class ThirdEyeJob { String thirdeyeCheckCompletenessClass = inputConfig . getProperty ( ThirdEyeJobConstants . THIRDEYE_CHECK_COMPLETENESS_CLASS . getName ( ) ) ; - LOGGER . info ( STRING0 , thirdeyeCheckCompletenessClass ) ; + if ( thirdeyeCheckCompletenessClass != null ) { + + LOGGER . inf...
Explore use of kafka api on etori to check completeness of data copy onto data tracking
<nb> public class ContentRevisionVirtualFile extends AbstractVcsVirtualFile { myModificationStamp ++ ; setRevision ( myContentRevision . getRevisionNumber ( ) . asString ( ) ) ; - final ByteBuffer byteBuffer = getCharset ( ) . encode ( content ) ; - myContent = byteBuffer . compact ( ) . array ( ) ; + myCon...
fix ByteBuffer to array conversion
<nb> public class Forwarding implements Implementation { COMMENT COMMENT public static Implementation to ( Object delegate ) { - return to ( delegate , String . format ( STRING0 , FIELD_PREFIX , delegate . hashCode ( ) ) ) ; + return to ( delegate , String . format ( STRING0 , FIELD_PREFIX , Math . abs ( dele...
Fixed another name from hashcode resolution
<nb> public class MultipartFormDataBody extends BoundaryEmitter implements AsyncHttpR . add ( new ContinuationCallback ( ) { @ override public void onContinue ( Continuation continuation , CompletedCallback next ) throws Exception { - written += part . length ( ) ; + long partLength = part . length ( ) ; + ...
do not count the unknown length in the written count safety first
<nb> public class Animation { if ( frameNumber >= keyFrames . length ) frameNumber = keyFrames . length - NUMBER0 - ( frameNumber - keyFrames . length ) ; break ; case LOOP_RANDOM : - int lastFrameNumber = ( int ) ( ( stateTime - ( stateTime - lastStateTime ) ) / frameDuration ) ; + int lastFrameNumber = ( in...
Fixed unnecessary calculation
<nb> public class DefaultShaderProvider extends BaseShaderProvider { protected Shader createShader ( final Renderable renderable ) { Gdx . app . log ( STRING0 , STRING1 ) ; if ( Gdx . graphics . isGL20Available ( ) ) - return new DefaultShader ( renderable . material , renderable . mesh . getVertexAttributes ( ...
Restore original code
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import static NAMESPACE ; public class ShelvedChangesViewManager implements ProjectComponent { + + private stat...
shelve add Logger if any problems occurred during projectOpened activity before loading shelves
<nb> public class FqName extends FqNameBase { @ override public boolean equals ( Object o ) { - SINGLE if ( this == o ) return true ; if ( o == null || getClass ( ) != o . getClass ( ) ) return false ; - FqName that = ( FqName ) o ; + FqName otherFqName = ( FqName ) o ; - if ( fqName != null ? ! f...
Remove not null warnings
<nb> public class LocalFileSystemTest extends PlatformLangTestCase { final File dirFile = createTempDirectory ( ) ; final String name = STRING0 ; final File childFile = new File ( dirFile , name ) ; - assert childFile . createNewFile ( ) || childFile . exists ( ) : childFile ; + boolean created = childFile . ...
don t createNewFile in assertion running without ea will ruin side effect
<nb> public class SubsamplingScaleImageView extends View { if ( ! readySent && ready ) { preDraw ( ) ; readySent = true ; + onReady ( ) ; if ( onImageEventListener != null ) { onImageEventListener . onReady ( ) ; - onReady ( ) ; } } return ready ; <nb> public class SubsamplingScaleImageView extend...
Fixed subclass callbacks and default listener class
<nb> public final class HttpRequests { } private static < T > T process ( RequestBuilderImpl builder , RequestProcessor < T > processor ) throws IOException { - LOG . assertTrue ( ApplicationManager . getApplication ( ) == null || ! ApplicationManager . getApplication ( ) . isReadAccessAllowed ( ) , + LOG . a...
disable assertion in tests
<nb> public class JniGenSharedLibraryLoader { } private InputStream getFromJar ( String jarFile , String sharedLibrary ) throws IOException { + SINGLE + @ suppresswarnings ( STRING0 ) ZipFile file = new ZipFile ( nativesJar ) ; ZipEntry entry = file . getEntry ( sharedLibrary ) ; return file . getInputS...
Ignore false warning
<nb> public class ByteBufferedChannelManager { public void shutdown ( ) { LOG . info ( STRING0 ) ; - System . out . println ( STRING0 ) ; SINGLE synchronized ( this . incomingConnectionThreads ) {
Removed System out println from ByteBufferedChannelManager
<nb> import NAMESPACE ; public final class ConfigFileFixture { + COMMENT + @ suppresswarnings ( STRING0 ) + public static final String WITH_VARITY_OF_AGENTS = STRING1 + + STRING2 + + STRING3 + + STRING4 + + STRING5 + + STRING6 + + STRING7 + + STRING8 + + STRING9 + + STRING10 + + STRING11...
Fix RSpec spec
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Changed comment to remove reference to FilterChainMap
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Temperature { COMMENT COMMENT public static Temperature fromCelsius ( BigDecimal celsius ) { - return new Temperature ( celsius . multiply ( NINE ) . divide ( FIVE ) . add ( T...
Avert ArithmeticExceptions for non terminating decimal expansion when converting to from Celsius
<nb> public class SharedBuffer } SINGLE - while ( ! queuedPages . isEmpty ( ) && bufferedBytes >= maxBufferedBytes ) { + while ( ! queuedPages . isEmpty ( ) && bufferedBytes < maxBufferedBytes ) { QueuedPage queuedPage = queuedPages . removeFirst ( ) ; addInternal ( queuedPage . getPage ( ) ) ; queuedPa...
Fix broken max size check
<nb> public class IndexAPI { @ get @ path ( STRING0 ) public Response getAllStopClusters ( ) { + index . clusterStopsAsNeeded ( ) ; SINGLE List < StopClusterDetail > scl = StopClusterDetail . list ( index . stopClusterForId . values ( ) , detail ) ; return Response . status ( Status . OK ) . entity ( scl ...
Fix bug when stopClusters weren t lazy initialized everywhere
<nb> public class ServletListenerRegistrationBean < T extends EventListener > extends logger . info ( STRING0 + this . listener + STRING1 ) ; return ; } - servletContext . addListener ( this . listener ) ; + try { + servletContext . addListener ( this . listener ) ; + } + catch ( RuntimeException ex ) {...
Improve diagnostics when ServletContext addListener fails
<nb> public class PruneRedundantProjections { PlanNode source = node . getSource ( ) . accept ( this , context ) ; + if ( node . getOutputs ( ) . size ( ) != source . getOutputs ( ) . size ( ) ) { + SINGLE + return new ProjectNode ( source , node . getOutputMap ( ) ) ; + } + boolean canElide = true ; ...
Don t prune identity projections that constrain underlying tuple
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PostsActivity extends WPActionBarActivity implements OnPostSelected OnRefreshListener , OnPostActionListener , OnDetailPostActionListener , OnDi...
remove unused constants
<nb> public class TextChangesStorage { if ( newChangeStart <= storedClientStart && newChangeEnd >= storedClientEnd ) { myChanges . remove ( i ) ; insertionIndex = i ; - newChangeEnd -= changeEntry . change . getText ( ) . length ( ) ; + newChangeEnd -= changeEntry . change . getDiff ( ) ; i -- ; continue ...
Correct bulk undo processing at document end
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - final public class PersistentStructMap extends APersistentMap { + public class PersistentStructMap extends APersistentMap { public static class Def implements Serializable { final ISeq keys ;
made PersistentStructMap non final again
<nb> public class MemberTableCell extends TableCell < SuggestTableRow , Suggestion > @ override protected void updateItem ( final Suggestion suggestion , boolean empty ) { - if ( suggestion != null ) + if ( suggestion != null && suggestion . getCaller ( ) != null ) { final IMetaMember member = suggestion ...
Avoid NPE if Suggestion has null caller
<nb> public class BatchStatement implements CQLStatement , MeasurableForPreparedCache { if ( timestampSet && statement . isTimestampSet ( ) ) throw new InvalidRequestException ( STRING0 ) ; + + statement . validate ( state ) ; } } <nb> public abstract class ModificationStatement implements CQLStatemen...
Validate statements inside batch
<nb> public class JavaGenerator implements CodeGenerator STRING0 + STRING1 + STRING2 + + STRING3 + + STRING4 + + STRING5 + + STRING6 + STRING7 + STRING4 + STRING8 + <nb> package NAMESPACE ; public interface MessageFlyweight { COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + int bl...
Added the blockLength property to the MessageFlyweight interface
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MavenServerManager extends RemoteObjectWrapper < MavenServer > { final Ar...
Fix Maven runtime dependencies
<nb> abstract class BitmapHunter implements Runnable { } COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT static BitmapFactory . Options createBitmapOptions ( Request data ) { final boolean justBounds = data . hasSize ( ) ; <nb> abstract class BitmapHunter implements Runnable { ...
Remove spaces reformat JavaDoc
<nb> public @ interface Getter { COMMENT COMMENT lombok . AccessLevel value ( ) default lombok . AccessLevel . PUBLIC ; - + COMMENT COMMENT - COMMENT + COMMENT COMMENT AnyAnnotation [ ] onMethod ( ) default { } ; COMMENT COMMENT + COMMENT COMMENT + @ deprecated @ retention ( Retentio...
Made AnyAnnotation deprecated
<nb> public class HueSettings { logger . error ( STRING0 ) ; return NUMBER0 ; } - return ( Integer ) settingsData . node ( STRING1 ) - . node ( deviceId ) . node ( STRING2 ) - . value ( STRING3 ) ; + Object bri = settingsData . node ( STRING1 ) . node ( deviceId ) . node ( STRING2 ) . value ( STRING3 ) ; ...
Add support for On Off plug in unit in hue binding
<nb> public class XPathExpressionGenerator { } } - int i = NUMBER0 ; + int i = NUMBER1 ; for ( Object o1 : list ) { if ( o1 == what ) { return uniquePath + STRING0 + i + STRING1 ;
fixed off by one error
<nb> public class Elements implements List < Element > { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public String outerHtml ( ) { StringBuilder sb = new StringBuilder ( ) ;
Fixed javadoc typo
<nb> public class PhotoUploadService extends Service implements Handler . Callback { if ( null == context ) { return ; } + + mUpload . setState ( PhotoUpload . STATE_UPLOAD_IN_PROGRESS ) ; Facebook facebook = mSession . getFb ( ) ; Bundle bundle = new Bundle ( ) ;
Set Photo In Progress State
<nb> public class DeclarationHintSupport extends AbstractProjectComponent { try { BindingContext bindingContext = AnalyzerFacadeWithCache . analyzeFileWithCache ( jetFile ) . getBindingContext ( ) ; - descriptor = bindingContext . get ( BindingContext . DECLARATION_TO_DESCRIPTOR , declaration ) ; + descriptor...
Do not show description hint for declaration with diagnostic message
<nb> public class ClassicCounter < E > implements Serializable , Counter < E > , Iterable < E > } } + public static < E > ClassicCounter < E > identityHashMapCounter ( ) { + return new ClassicCounter < E > ( MapFactory . < E , MutableDouble > identityHashMapFactory ( ) ) ; + } + SINGLE <nb> public...
Add utility methods to return counters with IdentityHashMap
<nb> public class HystrixCodaHaleMetricsPublisherCommand implements HystrixMetricsPub } ) ; SINGLE + createCumulativeCountForEvent ( STRING0 , HystrixRollingNumberEvent . BAD_REQUEST ) ; createCumulativeCountForEvent ( STRING1 , HystrixRollingNumberEvent . COLLAPSED ) ; createCumulativeCountForEvent ( STRIN...
Add BAD_REQUEST to CodaHale metrics publisher
<nb> public final class Utils { public static boolean isPrime ( long val ) { return API . Match ( val ) . of ( Case ( $ ( NUMBER0 ) , true ) , - Case ( $ ( n - > n > NUMBER1 ) , n - > ! primes ( ) . takeWhile ( d - > d <= Math . sqrt ( n ) ) . exists ( d - > n % d == NUMBER2 ) ) , + Case ( $ ( n - > n > NUMBE...
Avoids repeated calculations of upper limit in Utils isPrime
<nb> import NAMESPACE ; public class PolyUtil { + private PolyUtil ( ) { } + COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import static NAMESPACE ; public class SphericalUtil { + + private SphericalUtil ( ) { } + COMMENT COMMENT COMMENT
Add private constructors for util classes
<nb> public class DanmakuSurfaceView extends SurfaceView implements SurfaceHolder . Cal void drawDanmakus ( ) { if ( ! isSurfaceCreated ) return ; + if ( ! isShown ( ) ) + return ; long stime = System . currentTimeMillis ( ) ; Canvas canvas = mSurfaceHolder . lockCanvas ( ) ; if ( canvas != null ) {
Check danmakuview visibility before drawing Add showFPS boolena method
<nb> public abstract class ViewGroup extends View implements ViewParent , ViewManager @ override public void onInitializeAccessibilityNodeInfo ( AccessibilityNodeInfo info ) { super . onInitializeAccessibilityNodeInfo ( info ) ; - if ( ( mPrivateFlags & IS_ROOT_NAMESPACE ) != NUMBER0 ) { + SINGLE + SINGLE ...
AccessibilityNodeInfo reports no children for the topmost view in the tree
<nb> public abstract class WPActionBarActivity extends SherlockFragmentActivity { Blog currentBlog = WordPress . getCurrentBlog ( ) ; - if ( currentBlog != null && mListView . getHeaderViewsCount ( ) > NUMBER0 ) { + if ( currentBlog != null && mListView != null && mListView . getHeaderViewsCount ( ) > NUMBER0...
Added null check for mListView in onResume
<nb> import NAMESPACE ; import NAMESPACE ; public class FileSystemChangeWaiter implements BiAction < FileSystemSubset , Runnable > { - + private static final long FIRING_DELAY_TIMEMILLIS = NUMBER0 ; private final FileWatcherFactory fileWatcherFactory ; public FileSystemChangeWaiter ( FileWatcherFactory ...
add firing delay to fix problems in tests when events fire when file change is in progress
<nb> import NAMESPACE ; @ configuration @ conditionalonclass ( { MBeanExporter . class } ) @ conditionalonmissingbean ( { MBeanExporter . class } ) - @ conditionalonexpression ( STRING0 ) + @ conditionalonexpression ( STRING1 ) public class JmxAutoConfiguration { @ configuration
Enabled JMX export auto configuration by default
<nb> public class HdfsFileInputStream extends InputStream implements Seekable , Positi mTachyonFileInputStream . seek ( pos ) ; } else { getHdfsInputStream ( pos ) ; + SINGLE + SINGLE + mBufferLimit = - NUMBER0 ; } mCurrentPosition = pos ;
Invalidate the hdfs buffer after a seek