diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class BinaryClient extends Connection { sendCommand ( QUIT ) ; } - public void exists ( final byte [ ] . . . key ) { + public void exists ( final byte [ ] . . . keys ) { + sendCommand ( EXISTS , keys ) ; + } + + @ deprecated + public void exists ( final byte [ ] key ) { sendCommand ( E...
add Deprecated annotation
<nb> public abstract class MvpActivity < V extends MvpView , P extends MvpPresenter < V > > return null ; } - @ override public Object onRetainCustomNonConfigurationInstance ( ) { + COMMENT + COMMENT + COMMENT + COMMENT + @ override public final Object onRetainCustomNonConfigurationInstance ( ) { re...
marking onRetainCustomNonConfigurationInstance as final since internally used by mosby New snapshot available
<nb> public class ShareActivity extends FileActivity dismissLoadingDialog ( ) ; if ( result != null && result . isSuccess ( ) ) { Log_OC . d ( TAG , STRING0 ) ; - - } else { - Toast . makeText ( this , result . getLogMessage ( ) , Toast . LENGTH_SHORT ) . show ( ) ; - } + } SINGLE SINGLE refreshUs...
Fixed error messages for user using getLogMessage
<nb> import NAMESPACE ; public class AuthenticationManagerFactoryBean implements FactoryBean < AuthenticationManager > , BeanFactoryAware { private BeanFactory bf ; - public static final String MISSING_BEAN_ERROR_MESSAGE = STRING0 + public static final String MISSING_BEAN_ERROR_MESSAGE = STRING1 + STRING2 ...
Fix Error Message typo
<nb> public class TextEditorBackgroundHighlighter implements BackgroundEditorHighligh if ( myProject . isDisposed ( ) ) return Collections . emptyList ( ) ; PsiDocumentManager . getInstance ( myProject ) . commitAllDocuments ( ) ; renewFile ( ) ; - if ( myFile == null || ! myFile . isPhysical ( ) ) return Colle...
Removed check for myFile isPhysical in TextEditorBackgroundHighlighter to restore override marks in compiled files
<nb> public class Task implements StudyItem { private int myIndex ; private StudyStatus myStatus = StudyStatus . Unchecked ; + @ serializedname ( STRING0 ) @ expose private int myStepicId ; @ serializedname ( STRING1 )
Minor remove my prefix from stepic id serialization name
<nb> public class RecyclerViewDragDropManager { } } } ; - ViewCompat . postOnAnimation ( mRecyclerView , mDeferredCancelProcess ) ; + mRecyclerView . post ( mDeferredCancelProcess ) ; } } } <nb> public class RecyclerViewDragDropManager { private void finishDragging ( boolean result ) { final Recyc...
Fix NullPointerException issue
<nb> public class HystrixTimerTest { public void setUp ( ) { HystrixTimer timer = HystrixTimer . getInstance ( ) ; HystrixTimer . reset ( ) ; + HystrixPlugins . reset ( ) ; } @ after
Added explicit HystrixPlugins reset to HystrixTimerThread init of each test
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DocTabLayoutPanel getDataTransferFormat ( ) , docId_ + STRING0 + RStudioGinjector . INSTANCE . getSourceWindowManager ( ) ...
use only move effect for tab drags
<nb> public abstract class Task implements TaskInfo , Progressive { private String myCancelText = CommonBundle . getCancelButtonText ( ) ; private String myCancelTooltipText = CommonBundle . getCancelButtonText ( ) ; - public Task ( @ nullable final Project project , @ notnull final String title , final boolean...
Progress title should have title capitalization
<nb> public abstract class GenericCsvInputFormat < OT > extends DelimitedInputFormat < OT > if ( startPos >= NUMBER0 ) { field += ( skipCnt - NUMBER1 ) ; } + else if ( lenient ) { + SINGLE + return false ; + } else { String lineAsString = new String ( bytes , offset , numBytes ) ; throw new ParseExc...
Csv leniently accepts bad lines also when skipping fields
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class HttpClientCodec extends ChannelHandlerAppender implements Htt COMMENT @ override public vo...
Fix IllegalReferenceCountException caused by HttpClientCodec upgradeFrom
<nb> public abstract class BaseCmd { return new File ( value ) ; } if ( type . equals ( Path . class ) ) { - return new File ( value ) . getPath ( ) ; + return new File ( value ) . toPath ( ) ; } try { type . asSubclass ( Enum . class ) ;
fix set argument type of java nio Path in BaseCmd
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import static NAMESPACE ; <nb> public final class ErrorClassDescriptor extends ClassDescrip...
Error class descriptor must not fail an attempt to create a type with arguments from it
<nb> package NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public interface PrivacyListEventListener {
Added author info
<nb> public class ModelInstance implements RenderableProvider { COMMENT public ModelInstance ( ModelInstance copyFrom ) { - this ( copyFrom , null ) ; + this ( copyFrom , copyFrom . transform ) ; } COMMENT - public ModelInstance ( ModelInstance copyFrom , Matrix4 transform ) { + public ModelInstance...
only set transform if it s not null
<nb> public interface Seq < T > extends Traversable < T > , IntFunction < T > { COMMENT @ suppresswarnings ( STRING0 ) static < T > Seq < T > ofAll ( Iterable < ? extends T > elements ) { + Objects . requireNonNull ( elements , STRING1 ) ; if ( elements instanceof Seq ) { return ( Seq < T > ) elements ; }...
Added null check to point to the origin within the stack trace
<nb> public final class Pm { params . installFlags |= PackageManager . INSTALL_INTERNAL ; } else if ( opt . equals ( STRING0 ) ) { params . installFlags |= PackageManager . INSTALL_ALLOW_DOWNGRADE ; + } else if ( opt . equals ( STRING1 ) ) { + params . installFlags |= PackageManager . INSTALL_GRANT_RUNTIME_PE...
Add grant flag support to install create verb
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + SINGLE + SINGLE + SINGLE + SINGLE public class AlluxioFs extends DelegateToFileSystem { private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ;
add documentation for use of DelegateToFileSystem interface
<nb> public class Paint { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT FILL_AND_STROKE ( NUMBER0 ) ;
update dox for FILL_AND_STROKE style
<nb> public class DefaultGoApplicationAccessor extends GoApplicationAccessor { return processorMap . get ( request . api ( ) ) . process ( request ) ; } catch ( Exception e ) { LOGGER . warn ( String . format ( STRING0 , request . api ( ) ) , e ) ; - throw new RuntimeException ( String . format ( STRING0 , requ...
Fixed failing test
<nb> public class Label extends Widget { } cache . setColor ( style . fontColor == null ? color : Color . tmp . set ( color ) . mul ( style . fontColor ) ) ; cache . setPosition ( getX ( ) , getY ( ) ) ; - cache . draw ( batch , color . a * parentAlpha ) ; + cache . draw ( batch , parentAlpha ) ; } publ...
avoid double modulation of color alpha
<nb> public class StandardRoot extends LifecycleMBeanBase main = new JarResourceSet ( this , f . getAbsolutePath ( ) , STRING0 , STRING0 ) ; } else { throw new IllegalArgumentException ( - sm . getString ( STRING1 ) ) ; + sm . getString ( STRING1 , + f . getAbsolutePath ( ) ) ) ; } mainResources . cle...
Include invalid main resource location in error message
<nb> COMMENT COMMENT COMMENT - - COMMENT - COMMENT - COMMENT - COMMENT package NAMESPACE ; import NAMESPACE ;
remove oldschool comment
<nb> public abstract class JCVideoPlayer extends FrameLayout implements View . OnClickL SINGLE SINGLE cancelProgressTimer ( ) ; + progressBar . setProgress ( NUMBER0 ) ; SINGLE break ; } <nb> public abstract class JCVideoPlayer extends FrameLayout implements View . OnClickL IF_FULLSCREEN_FROM_NORMAL =...
fix small bug
<nb> public class StatementResource ImmutableList . Builder < RowIterable > pages = ImmutableList . builder ( ) ; SINGLE - int bytes = NUMBER0 ; + long bytes = NUMBER0 ; while ( bytes < DESIRED_RESULT_BYTES ) { Page page = exchangeClient . getNextPage ( maxWait ) ; if ( page == null ) {
Switch result bytes variable to long
<nb> public class DefaultLdapAuthoritiesPopulatorTests extends AbstractLdapServerTest public void setUp ( ) { dirCtxFactory = new DefaultInitialDirContextFactory ( ) ; dirCtxFactory . setUrl ( PROVIDER_URL ) ; + dirCtxFactory . setInitialContextFactory ( CONTEXT_FACTORY ) ; + dirCtxFactory . setExtraEnvVars (...
Set extra properties on InitialDirContextFactory and corrected group search filter
<nb> public final class Suppliers { this . function = function ; this . supplier = supplier ; } + @ override public T get ( ) { return function . apply ( supplier . get ( ) ) ; } + + @ override + public String toString ( ) { + return STRING0 + function + STRING1 + supplier + STRING2 ; + } + ...
Make Suppliers compose Function Supplier
<nb> public interface LocationIndex extends Storable < LocationIndex > int findID ( double lat , double lon ) ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT QueryResult ...
improved incorrect javadoc of LocationIndex
<nb> public class ConsistencyCheck extends RecordStore . Processor implements Runnable PropertyRecord prev = props . forceGetRecord ( prevId ) ; if ( ! prev . inUse ( ) ) fail |= inconsistent ( props , property , prev , STRING0 ) ; - if ( prev . getPrevProp ( ) != property . getId ( ) ) + if ( prev . getNextP...
Fixed a bug in the checker
<nb> public class IntervalTree < O extends Object > { IntervalData < O > results = null ; if ( index == center ) { for ( IntervalData < O > data : overlapStart ) { - IntervalData < O > temp = data . query ( index ) ; - if ( results == null && temp != null ) results = temp . copy ( ) ; - else if ( temp != nu...
Caught a bug in the stabbing query of the IntervalTree
<nb> public final class ClientPool implements Closeable { @ override public void close ( ) throws IOException { - for ( TachyonFS fs : mClients ) { - try { - fs . close ( ) ; - } catch ( TException e ) { - throw new IOException ( e ) ; + synchronized ( mClients ) { + for ( TachyonFS fs : mClients ) ...
fixed concurrency bug with client pool
<nb> public abstract class Edge implements Serializable { private void writeObject ( ObjectOutputStream out ) throws IOException , ClassNotFoundException { if ( fromv == null ) { - if ( this instanceof PlainStreetEdge ) - System . out . println ( ( ( PlainStreetEdge ) this ) . getGeometry ( ) ) ; System . o...
Remove println geometry if fromv tov is null
<nb> import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public class App { public static void main ( String [ ] args ) { <nb> import NAMESP...
Commented the Repository example code
<nb> class PacketReader { } } } - if ( ! startTLSReceived ) { + SINGLE + if ( ! startTLSReceived || ! connection . getConfiguration ( ) . isTLSEnabled ( ) ) { releaseConnectionIDLock ( ) ; } } <nb> public class XMPPConnection { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + Conn...
Fixed possible delay when TLS is not supported by the server
<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 NAM...
Removes unused instance variables
<nb> import NAMESPACE ; COMMENT COMMENT + COMMENT + COMMENT COMMENT @ notthreadsafe public class SwiftInputStream extends InputStream {
Adding invariant in comment
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; public class MocoTestHelper { private final Executor EXECUTOR ; <nb> public class MocoTestHelper { } public String postBytes ( String url , byte [ ] bytes ) throws IOExcep...
Added default content type header
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix missing import in javadoc test case
<nb> public class BruteForcePanel extends AbstractPanel implements BruteForceListenne bruteForce . stopScan ( ) ; bruteForce . clearList ( ) ; } - SINGLE - while ( activeScans . size ( ) > NUMBER0 ) { + SINGLE + for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { + if ( activeScans . size ( ) == NUMBER0 ) { ...
Changed the BruteForcePanel to not wait forever for the threads to terminate like done in the ScanPanel
<nb> class InputGenericCovariant7 return true ; } - public < A > boolean equals ( Object aObject ) + public boolean equals ( Object aObject ) { return false ; }
Covariant Equals Check compilable UT inputs
<nb> public class VirtualFileManagerImpl extends VirtualFileManagerEx implements Appl if ( ! asynchronous ) mySynchronousRefreshCount -- ; LOG . assertTrue ( myRefreshCount >= NUMBER0 && mySynchronousRefreshCount >= NUMBER0 ) ; - if ( mySynchronousRefreshCount == NUMBER0 ) { - myVirtualFileManagerListenerMult...
async refreshes may post just one afterRefreshFinish event
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
changed a shitload
<nb> public class TestSVMLightRecordFactory { } catch ( NumberFormatException e ) { } - assertEquals ( FLOAT0 , in_vector . getDouble ( NUMBER0 ) , FLOAT1 ) ; + assertEquals ( FLOAT0 , in_vector . getDouble ( NUMBER0 ) , FLOAT2 ) ; }
allow some leeway here
<nb> public class CentralAuthenticationServiceImplTests extends AbstractCentralAuthen getCentralAuthenticationService ( ) . destroyTicketGrantingTicket ( ticketId . getId ( ) ) ; } - @ test ( expected = AuthenticationException . class ) + @ test ( expected = RuntimeException . class ) public void disallowNu...
working on authentication context strategy
<nb> public final class StripeButton extends JToggleButton implements ActionListener } protected void processMouseEvent ( final MouseEvent e ) { + if ( e . isPopupTrigger ( ) ) return ; + + if ( e . getButton ( ) == MouseEvent . BUTTON2 ) { + myDecorator . fireHiddenSide ( ) ; + return ; + } + + i...
stripe button hide side
<nb> public class ZkUtils { public static class ZKConfig extends Config implements Serializable { static final long serialVersionUID = - NUMBER0 ; + @ key ( name = STRING0 ) public String zkRoot = STRING1 ; COMMENT COMMENT
Fixed zkRoot config key error
<nb> public class WindowAnimator { SINGLE boolean keyguardOn = mPolicy . isKeyguardShowingOrOccluded ( ) && mForceHiding != KEYGUARD_ANIMATING_OUT ; - return keyguardOn && hideWhenLocked ; + return keyguardOn && hideWhenLocked && ( win . getDisplayId ( ) == Display . DEFAULT_DISPLAY ) ; } private void u...
apply force hiding of window only when it is main display
<nb> public class DropboxSynchronizer implements ManagedService { public void activate ( ) { DropboxSynchronizer . instance = this ; - if ( ! isAuthenticated ( ) ) { + + if ( isAuthenticated ( ) ) { + startSynchronizationJobs ( ) ; + } else { try { startAuthentication ( ) ; } catch ( DbxException ...
refined startUp behaviour
<nb> public class AnnotationUtilEx { } } ) ; final int parameterIndex = byNameWorkAround > - NUMBER0 ? byNameWorkAround : method . getParameterList ( ) . getParameterIndex ( parameter ) ; - assert parameterIndex > NUMBER1 ; all . addAll ( Arrays . asList ( modifierList . getAnnotations ( ) ) ) ; SuperMethod...
remove incorrect assertion
<nb> 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 ; COMMENT COMMENT <nb> public class JDBCInputFor...
Removed redundant split generation in JDBC format after fixing unsplittabel input behavior
<nb> public class MulticastJoiner extends AbstractJoiner { } } ; node . multicastService . addMulticastListener ( listener ) ; - node . multicastService . send ( node . createJoinRequest ( false ) ) ; + node . multicastService . send ( node . createSplitBrainJoinMessage ( ) ) ; try { SplitBrainJoinMessage...
Multicast joiner should send SplitBrainJoinMessage when searching for other clusters
<nb> public abstract class FileTemplateManager { public static final int RECENT_TEMPLATES_SIZE = NUMBER0 ; @ nonnls - public static final String INTERNAL_HTML_TEMPLATE_NAME = STRING0 ; + public static final String INTERNAL_HTML_TEMPLATE_NAME = STRING1 ; @ nonnls - public static final String INTERNAL_HTML5...
Template not found error
<nb> public class QueryImpl < T > implements Query < T > { inner = new HashMap < String , Object > ( ) ; query . put ( prop , inner ) ; } - ( ( Map ) inner ) . put ( op . val ( ) , mappedValue ) ; + ( ( Map < String , Object > ) inner ) . put ( op . val ( ) , mappedValue ) ; } return this ; }
Fixed type on cast
<nb> public class PatternRuleTest { System . err . println ( STRING0 + lang + STRING1 + rule . getFullId ( ) ) ; COMMENT - PatternTestTools . failIfWhitespaceInToken ( rule . getPatternTokens ( ) , rule , lang ) ; + SINGLE + SINGLE PatternTestTools . warnIfRegexpSyntaxNotKosher ( rule . getPatternTokens...
comment out new whitespace test caused false alarms
<nb> public class FloatingActionButton extends ImageButton { mRecyclerView . setOnScrollListener ( onScrollListener ) ; } - private boolean hasLollipopApi ( ) { return Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ; } <nb> public abstract class ScrollDirectionDetector implements AbsListV...
Delete extra spaces
<nb> public class Neo4jHAPropertiesMustExistRuleTest File dbTuningFile = ServerTestUtils . createTempPropertyFile ( ) ; ServerTestUtils . writePropertyToFile ( Configurator . DB_TUNING_PROPERTY_FILE_KEY , dbTuningFile . getAbsolutePath ( ) , serverPropertyFile ) ; ServerTestUtils . writePropertyToFile ( Configura...
Corrected a typo in the test
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MockFSDirectoryService extends FsDirectoryService { CheckIndex . Status status = checkIndex . checkIndex ( ) ; if ( ! status . clean ) { Abs...
include dir listing when check index fails
<nb> public final class RuleContext extends TargetContext String attributeName = attr . getName ( ) ; Map < Label , ConfiguredTarget > ctMap = new HashMap < > ( ) ; for ( ConfiguredTarget prerequisite : prerequisiteMap . get ( attr ) ) { - ctMap . put ( prerequisite . getLabel ( ) , prerequisite ) ; + ctMap ....
Fix a tiny bug in alias handling
<nb> final class WindowState implements WindowManagerPolicy . WindowState { mOrientationChanging = false ; mLastFreezeDuration = ( int ) ( SystemClock . elapsedRealtime ( ) - mService . mDisplayFreezeTime ) ; + SINGLE + Slog . w ( TAG , STRING0 + this + + STRING1 ) ; + mService . mPendingRemove . add ( th...
Remove the window whose client process has died or become zombie
<nb> public class GlobalInspectionContextImpl implements GlobalInspectionContext { final VirtualFile virtualFile = file . getVirtualFile ( ) ; if ( virtualFile != null ) { incrementJobDoneAmount ( LOCAL_ANALYSIS , ProjectUtil . calcRelativeToProjectPath ( virtualFile , myProject ) ) ; + if ( SingleRootFileViewP...
skip local inspections for big files
<nb> public class ShellBolt implements IBolt { } private void die ( Throwable exception ) { - if ( _running ) { SINGLE - String processInfo = _process . getProcessInfoString ( ) + _process . getProcessTerminationInfoString ( ) ; - _exception = new RuntimeException ( processInfo , exception ) ; - LOG . err...
Addressed review comments
<nb> public class BlockedNumberContract { COMMENT COMMENT public static final String COLUMN_E164_NUMBER = STRING0 ; - - COMMENT - public static final String COLUMN_INDEX_STRIPPED = STRING1 ; - - COMMENT - public static final String COLUMN_INDEX_E164 = STRING2 ; } COMMENT
Remove the index columns from the blocked provider
<nb> public class NioEndpoint extends AbstractEndpoint { ExceptionUtils . handleThrowable ( letsHopeWeDontGetHere ) ; } } + } catch ( VirtualMachineError vme ) { + ExceptionUtils . handleThrowable ( vme ) ; } catch ( Throwable t ) { log . error ( STRING0 , t ) ; if ( socket != null ) {
NIO endpoint should not be swallowing Virtual machine errors
<nb> class FrameData { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT @ floatrange ( from = - NUMBER0 , to = NUMBER0 ) float getScrollProgress ( float dx ) { <nb> public class TouchEvent { frame . setTranslationY ( updatePosition . getTranslationY ( ) ) ; frame . setRo...
Remove unused logs resolve todo
<nb> public class OsmandMapTileView extends SurfaceView implements IMapDownloaderCall int h = getCenterPointY ( ) ; SINGLE - boolean moreDetail = getSettings ( ) . SHOW_MORE_MAP_DETAIL . get ( ) ; + moreDetail = getSettings ( ) . SHOW_MORE_MAP_DETAIL . get ( ) ; for ( int i = NUMBER0 ; i < layers . size (...
Prepare OsmandMapTileView now use nightMode setting
<nb> public class PushMojo extends AbstractAndroidMojo SINGLE SINGLE String filePath = file . getAbsolutePath ( ) . substring ( sourceFile . getAbsolutePath ( ) . length ( ) ) ; - filePath = filePath . replace ( System . getProperty ( STRING0 ) , STRING1 ) ; + filePath = filePath . replace ( System . getPrope...
fixed up codestyle of prior contribution to ensure build works
<nb> public final class StrictMode { } COMMENT - COMMENT + COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public Builder detectResourceMismatches ( ) { return enable ( DETECT_RESOURCE_MISMATCH ) ;
Add example for detectResourceMismatches
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ;
Removed unused imports
<nb> public class ConnectionPool { SINGLE return connection ; } catch ( Exception x ) { - throw new SQLException ( ) ; + SQLException s = new SQLException ( ) ; + s . initCause ( x ) ; + throw s ; } }
initialize root cause of an exception
<nb> public final class WorkDurationFactory implements BatchComponent , ServerComponen return settings . getInt ( CoreProperties . HOURS_IN_DAY ) ; } - COMMENT - COMMENT - COMMENT - public WorkDuration createFromSeconds ( long durationInSeconds ) { - return WorkDuration . createFromSeconds ( durationInS...
Fix rebase with master
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Set expiration policy for access tokens
<nb> import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class XMPPConnection { rosterVersioningSupported = true ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public long getPacketR...
Add setter and javadoc for packet reply timeout
<nb> public abstract class FirebaseLoginBaseActivity extends AppCompatActivity { mGoogleAuthHelper . login ( ) ; break ; case Facebook : - break ; case Twitter : - break ; + throw new UnsupportedOperationException ( ) ; } mChosenProvider = provider ; <nb> public abstract class FirebaseLoginBaseAct...
Unimplemented providers throw exception when used
<nb> public class HTTPServer extends ContentOracle { COMMENT COMMENT - COMMENT + COMMENT + public HTTPServer ( int port ) { + this ( port , false ) ; + } + + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public HTTPServer ( int port , boolean verbose ) { this . port = port ;
add compatibility constructor
<nb> import NAMESPACE ; COMMENT public class Descriptor { - public static final String LEGACY_VERSION = STRING0 ; + public static final String LEGACY_VERSION = STRING0 ; SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE public static final String CURRENT_VERSION = STRING1 ;...
add summary of sstable version changes to Descriptor
<nb> public class RosterExchange implements PacketExtension { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public void addRosterItem ( RosterEntry rosterEntry ) { RosterGroup rosterGroup = null ; <nb> public class RosterExchange implements PacketExtension { } COMMENT - COMMENT + COMME...
Fixed a couple of minor Javadoc errors warnings
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fix bad import
<nb> import NAMESPACE ; COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Add reference to Funnels from Funnel javadocs
<nb> public abstract class AbstractSctpChannelSink extends AbstractChannelSink { if ( ch instanceof SctpChannelImpl ) { SctpChannelImpl channel = ( SctpChannelImpl ) ch ; ChannelRunnableWrapper wrapper = new ChannelRunnableWrapper ( channel , task ) ; - channel . worker . executeInIoThread ( task ) ; + channe...
execute the wrapped Runnable
<nb> public class Node extends Spatial { SINGLE SINGLE SINGLE + + SINGLE + nodeClone . updateList = null ; + nodeClone . updateListValid = false ; SINGLE + return nodeClone ; }
Fix clone to account for the update list added for update
<nb> public class HookTest extends ORecordHookAbstract { @ test ( dependsOnMethods = STRING0 ) public void testHookUpdate ( ) { SINGLE + p . setValue ( p . getValue ( ) + NUMBER0 ) ; database . save ( p ) ; Assert . assertEquals ( callbackCount , NUMBER1 ) ; }
Changed the value to force saving
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; class ReplicatedMapConfigReadOnly extends ReplicatedMapConfig { <nb> class ReplicatedMapConfigReadOnly extends ReplicatedMapConfig { } @ override - public void setReplicatorExecutorService ( ExecutorService replicatorExecutorSe...
Fixed compile error
<nb> public class JmsConfiguration implements Cloneable { container . setAcceptMessagesWhileStopping ( acceptMessagesWhileStopping ) ; container . setExposeListenerSession ( exposeListenerSession ) ; + container . setSessionTransacted ( transacted ) ; if ( transacted ) { container . setSessionAcknowledgeMod...
Reverted the unintended removal of the call to container setSessionTransacted transacted
<nb> public class TaskQueryImpl extends AbstractQuery < TaskQuery , Task > implements Tas } protected List < String > getGroupsForCandidateUser ( String candidateUser ) { + SINGLE + SINGLE List < Group > groups = Context . getCommandContext ( ) . getGroupManager ( )
Added TODO for discussion of internal usage of IdentitySession
<nb> public class OStorageRemote extends OStorageAbstract implements OStorageProxy , O SINGLE int removedDeadConnections = NUMBER0 ; for ( OChannelBinaryAsynchClient n : new ArrayList < OChannelBinaryAsynchClient > ( networkPool ) ) { - if ( n != null && ! n . isConnected ( ) ) + if ( n != null && ! n . isCon...
Fixed issue with removing of network connections though connection is active
<nb> public class WordPress extends Application { SINGLE updatePushNotificationTokenIfNotLimited ( ) ; - SINGLE - sUpdateWordPressComBlogList . runIfNotLimited ( ) ; + if ( hasDotComToken ( mContext ) ) { + SINGLE + sUpdateWordPressComBlogList . runIfNotLimited ( ) ; + } SINGLE sUpdateCurrentBlo...
Only update WPComBlogList if the user has a valid DotCom token
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TestBackup } @ test - @ ignore + SINGLE public void backupIndexWithNoCommits ( ) throws Exception { GraphDatabaseService db = null...
Enabled ignored test
<nb> public class SalesforceSecurityListener extends HttpEventListenerWrapper { client . setInstanceUrl ( session . getInstanceUrl ( ) ) ; client . setAccessToken ( exchange ) ; } else { - exchange . addRequestHeader ( HttpHeaders . AUTHORIZATION , - STRING0 + currentToken ) ; + exchange . setRequestHeader ...
Fixed salesforce security listener to replace OAuth header
<nb> import NAMESPACE ; public class EmbeddedServletContainerAutoConfiguration { COMMENT - COMMENT + COMMENT COMMENT @ configuration @ conditionalonclass ( { Servlet . class , Tomcat . class } )
Fix typo in Servlet auto configuration Javadoc
<nb> public class Sequencer throw new NullPointerException ( STRING0 ) ; } + if ( availableCapacity < NUMBER0 ) + { + throw new IllegalArgumentException ( STRING1 ) ; + } + return claimStrategy . checkAndIncrement ( availableCapacity , NUMBER0 , gatingSequences ) ; } <nb> public final class Sequ...
Add some input checking to Sequencer
<nb> public class SmartList < E > extends AbstractList < E > { oldValue = ( E ) array [ index ] ; array [ index ] = element ; } - modCount ++ ; return oldValue ; }
SmartList set shouldn t increase modCount
<nb> class ClientForwardingTaskListener implements InternalTaskExecutionListener { COMMENT @ override public void afterExecute ( TaskInternal task , TaskStateInternal state ) { - long eventTime = endTime ( state ) ; - eventConsumer . dispatch ( new DefaultTaskFinishedProgressEvent ( eventTime , adapt ( task )...
FIx inspection warnings
<nb> public class RemoteTaskRunnerFactory implements TaskRunnerFactory curator , new SimplePathChildrenCacheFactory . Builder ( ) - . withCompressed ( remoteTaskRunnerConfig . isCompressZnodes ( ) ) + . withCompressed ( true ) . build ( ) , httpClient , strategy <nb> public class RemoteTaskRunnerConfi...
prefer druid curator compress to druid indexer runner compressZnodes
<nb> public class SelectedGPXFragment extends OsmAndListFragment { final TIntArrayList list = new TIntArrayList ( ) ; final Spinner colorSpinner = ( Spinner ) view . findViewById ( R . id . ColorSpinner ) ; - ColorDialogs . setupColorSpinner ( getActivity ( ) , getGpx ( ) . getColor ( NUMBER0 ) , colorSpinner ,...
try extra getColor
<nb> public class ReaderPostAdapter extends RecyclerView . Adapter < RecyclerView . ViewHol final ReaderPostDiscoverData discoverData = post . getDiscoverData ( ) ; if ( discoverData == null ) { postHolder . layoutDiscover . setVisibility ( View . GONE ) ; + return ; } postHolder . layoutDiscover . setVis...
Added missing return statement
<nb> public class TestRig { Parser parser = parserCtor . newInstance ( tokens ) ; parser . setErrorHandler ( new DiagnosticErrorStrategy < Token > ( ) ) ; - parser . getInterpreter ( ) . setTrace ( true ) ; if ( printTree || gui || psFile != null ) { parser . setBuildParseTree ( true ) ;
fix compile error
<nb> class StoredClientChannel { final String closeStr = close == null ? STRING0 : close . toString ( ) . replaceAll ( newline , newline + STRING1 ) ; return String . format ( STRING2 + STRING3 + - STRING4 + - STRING5 + + STRING6 + + STRING7 + STRING8 + STRING9 + STRING10 ,
Fix toString in payment channels for Coin conversion
<nb> public interface QueryHandler { COMMENT COMMENT COMMENT - public boolean createNativeQueryTyped ( ) ; + boolean createNativeQueryTyped ( ) ; COMMENT COMMENT
Remove redundant modifier
<nb> abstract public class ModelBuilder < M extends Model < M , P , O > , P extends Model . Param SINGLE for ( Key < Frame > k : predKeys ) { Frame fr = DKV . getGet ( k ) ; - if ( _parms . _keep_cross_validation_predictions ) Scope . untrack ( fr . keys ( ) ) ; - else fr . remove ( ) ; + if ( fr != null ) ...
missed NPE check