diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed superfluous imports
<nb> import NAMESPACE ; COMMENT COMMENT public class Sha256Hash implements Serializable { + private static final long serialVersionUID = NUMBER0 ; + private byte [ ] bytes ; public static final Sha256Hash ZERO_HASH = new Sha256Hash ( new byte [ NUMBER1 ] ) ;
Add a serialVersionUID to Sha256Hash
<nb> public class CoyoteAdapter implements Adapter { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT public class Http11InputBuffer implements InputBuffer { <nb> public abstract class Abst...
Fix Javadoc errors reported by Buildbot
<nb> class FindExportableNodes extends AbstractPostOrderCallback { break ; case Token . VAR : + case Token . LET : + case Token . CONST : if ( parent . isScript ( ) ) { if ( n . getFirstChild ( ) . hasChildren ( ) && ! n . getFirstChild ( ) . getFirstChild ( ) . isAssign ( ) ) { <nb> public final clas...
Updated GenerateExports to allow export annotations on top level let const declarations
<nb> COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix copyright information
<nb> public class CollectHighlightsUtil { final VirtualFile file = psiFile . getVirtualFile ( ) ; if ( file == null ) return false ; final ProjectFileIndex projectFileIndex = ProjectRootManager . getInstance ( psiFile . getProject ( ) ) . getFileIndex ( ) ; - return ! projectFileIndex . isInSource ( file ) && !...
do not treat lib sources as sources to analyse
<nb> public class PojoMethodMapping { SINGLE if ( indexString != - NUMBER0 ) { mh = new PojoMessageHandlerAsyncString ( pojo , m , session , - params , indexString , false , indexSession , - indexBoolean ) ; + params , indexString , false , indexBoolean , + indexSession ) ; } else if ( indexByteArray !=...
Fix swapped parameters
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface DirectoryProjectGenerator < T > { T showGenerationSettings ( final VirtualFile baseDir ) throws ProcessCanceledException ; COMMENT - COMMENT + COMMENT COMMENT @ nullable Icon getLogo ( ) ;
change java doc
<nb> public class JmsComponent extends DefaultComponent < JmsExchange > implements Appli private static final String DEFAULT_QUEUE_BROWSE_STRATEGY = STRING0 ; private JmsConfiguration configuration ; private ApplicationContext applicationContext ; - private Requestor requestor ; + private volatile Requestor r...
Fix thread safety issue
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> static int getMatchingParams ( String methodName , ArrayList < Class [ ] > paramlists , I matchIdx = i ; tied = false ; } - else if ( ! subsumes ( para...
don t count identical param types as problem tie in getMatchingParams use any
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; } } + @ suppresswarnings ( STRING0 ) + @ testonly + public String currentContext ( ) { + String mark...
get string with parser context during debug
<nb> public class ShadowView { @ implementation public void onAnimationEnd ( ) { - try { - Method onAnimationEnd = realView . getClass ( ) . getDeclaredMethod ( STRING0 , new Class [ NUMBER0 ] ) ; - onAnimationEnd . invoke ( realView ) ; - } catch ( Exception e ) { - throw new RuntimeException ( e ) ; ...
Fix stack overflow
<nb> SINGLE SINGLE SINGLE + SINGLE package NAMESPACE ; <nb> public class HostProcess implements Runnable { this . pluginFactory = pluginFactory ; httpSender = new HttpSender ( connectionParam , true , HttpSender . ACTIVE_SCANNER_INITIATOR ) ; httpSender . setUser ( this . user ) ; + int maxNumbe...
Changed HostProcess to set a name to the threads created for active scanning
<nb> class EntityGraphValidator { if ( ! referencedElement . isPresent ( ) ) { validator . warning ( STRING0 + - attribute . referencedColumn ( ) + STRING1 + attribute ) ; + referenced . get ( ) . typeName ( ) + STRING1 + attribute ) ; } else { SINGLE referenced . get ( ) . attributes ( ) . values ( ) ....
Fix empty name in error message
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PsiMethodImpl extends JavaStubPsiElement < PsiMethodStub > implements public PsiClass getContainingClass ( ) { PsiElement...
decouple PsiMethodImpl from JspClass
<nb> public class SessionSetting { } private boolean isAnyResponse ( ) { - return request == null ; + return request == null && mount == null && proxy == null && redirectTo == null ; } @ override <nb> public class SessionSetting { private ResponseHandler getResponseHandler ( ) { if ( response ==...
added more conditions to any response setting
<nb> public class FileFilter { ignoreResultList . add ( STRING0 ) ; SINGLE ignoreResultList . add ( STRING1 ) ; SINGLE ignoreResultList . add ( STRING2 ) ; SINGLE - ignoreResultList . add ( STRING3 ) ; SINGLE - ignoreResultList . add ( STRING4 ) ; SINGLE ignoreResultList . add ( STRING5 ) ; SINGLE ignoreR...
Reclassify failing multi touch tests in DumpRenderTree ignore list
<nb> + 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 TestMapperWelcomeFiles extends TomcatBaseTest { appDir . getAbsolutePath ( ) ) ; ctxt . setReplaceWelcomeFiles ( true ) ; ctxt . addWelcomeFile ( STRING0 ) ; - SINGLE + SINGLE ctxt . addWelcomeFile ( STRING1 ) ; tomcat . start ( ) ; <nb> public class TestMapperWelcomeFiles extends To...
Correct a typo
<nb> public class RetriableFileCopyCommand extends RetriableCommand { compareFileLengths ( sourceFileStatus , tmpTargetPath , configuration , bytesRead ) ; SINGLE - if ( bytesRead != NUMBER0 ) - compareCheckSums ( sourceFS , sourceFileStatus . getPath ( ) , targetFS , tmpTargetPath ) ; + if ( bytesRead != N...
Fix formatting issue
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ;
Applying IntelliJ s Optimize imports to the clients module
<nb> import NAMESPACE ; COMMENT public class NetworkTopologyStrategy extends AbstractReplicationStrategy { - private IEndpointSnitch snitch ; - private Map < String , Integer > datacenters ; + private final IEndpointSnitch snitch ; + private final Map < String , Integer > datacenters ; private static fi...
add missing finals
<nb> public class PsiTreeUtil { while ( true ) { if ( parent == null ) return false ; if ( parent . equals ( ancestor ) ) return true ; - if ( stopAtFileLevel && parent instanceof PsiFile ) return false ; + if ( stopAtFileLevel && parent instanceof PsiFile ) { + final PsiElement context = parent . getContex...
correctly intersecting scope with injected elements
<nb> public class Italian extends Language { } public Contributor [ ] getMaintainers ( ) { - return null ; + final Contributor contributor = new Contributor ( STRING0 ) ; + return new Contributor [ ] { contributor } ; } public Set < String > getRelevantRuleIDs ( ) {
adding Paolo Bianchini as language maintainer
<nb> public class ReplacePathToMacroMap extends PathMacroMap { int occurrenceOfPath = caseSensitive ? text . indexOf ( path , i ) : StringUtil . indexOfIgnoreCase ( text , path , i ) ; if ( occurrenceOfPath >= NUMBER0 ) { int endOfOccurence = occurrenceOfPath + path . length ( ) ; - if ( ! isWindowsRoot && endO...
Allow mapping of Path Variable to jar file
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; ...
Spell out imports previous change mistakenly stared ninja utils
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SkyQueryEnvironment extends AbstractBlazeQueryEnvironment < Target > { SINGLE TargetPatternValue value = ( TargetPatternVal...
Remove unnecessary use of ResolvedTargets in SkyQueryEnvironment
<nb> public class Gossiper implements IFailureDetectionEventListener , GossiperMBean { throw new AssertionError ( e ) ; } - logger . warn ( STRING0 , endpoint ) ; + logger . warn ( STRING1 , endpoint ) ; } public boolean isKnownEndpoint ( InetAddress endpoint )
Alter the wording of assassination end logging
<nb> public class MessageListFragment extends SherlockFragment implements OnItemClick } } - SINGLE + SINGLE if ( selected || K9 . useBackgroundAsUnreadIndicator ( ) ) { int res ; if ( selected ) { <nb> public class MessageListFragment extends SherlockFragment implements OnItemClick TypedValue outVal...
Fix message list item background color
<nb> public class HttpContinue { COMMENT COMMENT public static boolean requiresContinueResponse ( final HttpServerExchange exchange ) { - if ( ! exchange . isHttp11 ( ) ) { + if ( ! exchange . isHttp11 ( ) || exchange . isResponseStarted ( ) ) { return false ; } if ( exchange . getConnection ( ) instanc...
Don t send a HTTP continue response if the response has already started
<nb> public class PluginInfo { return version ; } + + public static String getQualifiedGoal ( String goal ) + { + StringBuilder builder = new StringBuilder ( ) + . append ( groupId ) + . append ( COLON ) + . append ( artifactId ) + . append ( COLON ) + . append ( version ) + . append ( COLON )...
added method to produce goal name for specifc version of plugin
<nb> public class CompileStack implements Opcodes { HashMap _stackVariables ; LinkedList _temporaryVariables = new LinkedList ( ) ; LinkedList _usedVariables = new LinkedList ( ) ; - MethodVisitor _mv ; HashMap _superBlockNamedLabels ; HashMap _currentBlockNamedLabels ; <nb> public class CompileStack im...
removes unneeded class variable
<nb> package NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; import NAMESPACE ;
Removed unnecessary import
<nb> public abstract class MediaBrowserService extends Service { COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT public final Bundle getBrowserRootHints ( ) { if ( mCurConnection == null ) {
Add more explanation on getBrowserRootHints
<nb> public class MapTileLayer extends BaseMapLayer { } public void drawTileMap ( Canvas canvas , RotatedTileBox tileBox ) { + ITileSource map = this . map ; if ( map == null ) { return ; }
Fix NPE bug
<nb> public final class UpgradeService { STRING0 , STRING1 , STRING2 , + STRING3 , + STRING4 , STRING5 , STRING6 , STRING7 ,
added entries to update message
<nb> public class BitmapDrawable extends Drawable { public void setTileModeXY ( Shader . TileMode xmode , Shader . TileMode ymode ) { final BitmapState state = mBitmapState ; - if ( state . mTileModeX != xmode || state . mTileModeY != ymode ) { + if ( state . mPaint . getShader ( ) == null || + state . mTil...
Build the BitmapShader if it hasn t been built yet
<nb> public class LongDistancePathService implements PathService { private static final Logger LOG = LoggerFactory . getLogger ( LongDistancePathService . class ) ; + private static final double DEFAULT_MAX_WALK = NUMBER0 ; + private static final double CLAMP_MAX_WALK = NUMBER1 ; + private GraphService gr...
set default walk distance and clamp in long distance path service
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT public class DigestAuthenticator extends LoginAuthenticator ...
Digest Auth supports out of order nc
<nb> public abstract class ServerToClientMessage { return new UserData ( json ) ; else if ( TYPE_DOUBLE_CHECK . equals ( json ) ) return new DoubleCheck ( json ) ; - else if ( TYPE_DEBUG . equals ( json ) ) + else if ( TYPE_DEBUG . equals ( type ) ) return new Debug ( json ) ; return null ;
Fixed typo preventing Debug messages
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> abstract class AbstractBaseReplicatedRecordStore < K , V > if ( registrations . size ( ) > NUMBER0 ) { EntryEvent event = new EntryEvent...
Replicated map should evaluate registered event filter while publishing events
<nb> public class DownloadView extends LinearLayout { btnInstall . setVisibility ( View . GONE ) ; progressBar . setVisibility ( View . VISIBLE ) ; txtInfo . setVisibility ( View . VISIBLE ) ; - if ( mInfo . totalSize <= NUMBER0 ) { + if ( mInfo . totalSize <= NUMBER0 || mInfo . status != DownloadManager . ST...
adjust status text for pending paused downloads
<nb> import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
fix compile errors
<nb> public class TasksManagerDemoActivity extends AppCompatActivity { holder . taskActionBtn . setEnabled ( true ) ; - final int status = TasksManager . getImpl ( ) . getStatus ( model . getId ( ) ) ; if ( TasksManager . getImpl ( ) . isReady ( ) ) { + final int status = TasksManager . getImpl ( ) . getS...
get the status after the service is connected in task manager page
<nb> class XMLLightweightParser { char [ ] buf = charBuffer . array ( ) ; buffer . append ( buf ) ; + SINGLE + if ( STRING0 == buffer . charAt ( NUMBER0 ) && STRING0 == buffer . charAt ( buffer . length ( ) - NUMBER1 ) ) { + if ( STRING1 . equals ( buffer . toString ( ) . trim ( ) ) ) { + SINGLE + buffe...
Detect buffers with empty content and just delete empty content
<nb> public class Scheduler { return true ; } + public boolean runTasks ( int howMany ) { + if ( enqueuedTaskCount ( ) < howMany ) { + return false ; + } + + while ( howMany > NUMBER0 ) { + PostedRunnable postedRunnable = postedRunnables . remove ( NUMBER0 ) ; + currentTime = postedRunnable . sche...
add Scheduler runTasks method
<nb> public class HttpInputStream extends BufferedInputStream { int oneByte = - NUMBER0 ; boolean eoh = false ; boolean neverReadOnce = true ; - StringBuffer sb = new StringBuffer ( NUMBER1 ) ; + StringBuilder sb = new StringBuilder ( NUMBER1 ) ; do { oneByte = super . read ( ) ; <nb> public class Htt...
made method static final and used StringBuilder for better performance
<nb> public class SipRegistrarConnection if ( grantedExpiration <= NUMBER0 || requestedExpiration <= NUMBER0 ) { setRegistrationState ( RegistrationState . UNREGISTERED - , RegistrationStateChangeEvent . REASON_NOT_SPECIFIED + , RegistrationStateChangeEvent . REASON_CHANGE_REQUESTED_BY_USER , STRING0 ) ; ...
set a REASON_CHANGE_REQUESTED_BY_USER code to the unregister event when caused by us
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BackgroundTaskLocalServiceTest { return taskContext ; } - private static Log _log = LogFactoryUtil . getLog ( - ...
remove unused variable
<nb> public interface JGroupsMessages { @ message ( id = NUMBER0 , value = STRING0 ) String notFound ( String resource ) ; - @ message ( id = NUMBER1 , value = STRING1 ) + @ message ( id = NUMBER1 , value = STRING2 ) IllegalStateException duplicateNodeName ( String name ) ; @ message ( id = NUMBER2 , va...
minor logging fix
<nb> public class ClientConsoleApp implements EntryListener , ItemListener , MessageLis ClientConfig clientConfig ; try { - clientConfig = new XmlClientConfigBuilder ( STRING0 ) . build ( ) ; + clientConfig = new XmlClientConfigBuilder ( ) . build ( ) ; } catch ( IllegalArgumentException e ) { clientConfi...
removed setting client xml implicitly for ClientConsoleApp
<nb> public class PostUploadService extends Service { private Object uploadFileHelper ( XMLRPCClient client , Object [ ] params , File tempFile ) { try { - try { - return client . call ( STRING0 , params , tempFile ) ; - } catch ( XMLRPCException e ) { - mErrorMessage = context . getResources ( ) . getStr...
uploadFileHelper now uses a single try catch finally
<nb> public class CompilerUIConfigurable implements SearchableConfigurable { myCbUseCompileServer . setVisible ( ApplicationManager . getApplication ( ) . isInternal ( ) ) ; myPatternLegendLabel . setText ( STRING0 + STRING1 + - STRING2 + - STRING3 + - STRING4 + + STRING5 + + STRING6 + + STRING7 + S...
kb a more comprehensive source root syntax description in compiler resource patterns
<nb> public class TaskExecutor } if ( level < NUMBER0 ) { - result = Long . compare ( threadUsageNanos . get ( ) , threadUsageNanos . get ( ) ) ; + result = Long . compare ( threadUsageNanos . get ( ) , o . threadUsageNanos . get ( ) ) ; } else { result = Long . compare ( lastRun . get ( ) , o . lastRun...
Fix broken PrioritizedSplitRunner compareTo
<nb> public class OStressTesterCommandLineParserTest { fail ( ) ; } catch ( Exception ex ) { - ex . printStackTrace ( ) ; assertTrue ( ex . getMessage ( ) . contains ( String . format ( OErrorMessages . COMMAND_LINE_PARSER_TX_GREATER_THAN_CREATES , NUMBER0 , NUMBER1 ) ) ) ; }
removed forgotten debug print
<nb> public abstract class WebSocketProcessor implements Serializable { WebSocketEventListener . class . cast ( l ) . onMessage ( event ) ; break ; case HANDSHAKE : - WebSocketEventListener . class . cast ( l ) . onMessage ( event ) ; + WebSocketEventListener . class . cast ( l ) . onHandshake ( event ) ; b...
Fix typo when calling callback
<nb> public class EigenvectorCentrality implements Statistics , LongTask { if ( max != NUMBER0 ) { sumChanged += Math . abs ( centralityValues [ k ] - ( tempValues [ k ] / max ) ) ; centralityValues [ k ] = tempValues [ k ] / max ; + } else { + centralityValues [ k ] = FLOAT0 ; } if ( isCanceled ) { ret...
Fix eigenvector centrality tests
<nb> public class DefaultRegistry implements Registry { if ( object == null ) { throw new NotInRegistryException ( type ) ; } else { - return null ; + return object ; } }
Actually return the registry entry not null
<nb> public class DefaultJvmApiSpec implements JvmApiSpec { private final Set < JvmPackageName > exports = new HashSet < JvmPackageName > ( ) ; private final DefaultDependencySpecContainer dependencies = new DefaultDependencySpecContainer ( ) ; + @ override public void exports ( String value ) { final JvmPa...
Add missing Override to DefaultJvmApiSpec
<nb> public final class HeartbeatThread implements Runnable { String msg = STRING0 ; LOG . error ( STRING1 , msg , threadName , e ) ; mTimer = new SleepingTimer ( threadName , intervalMs ) ; - } finally { - executor . close ( ) ; } }
Fix early executor cleanup
<nb> public abstract class TWLanedLayoutManager extends TWLayoutManager { return ; } - final boolean canRestore = canUseLanes ( mLanesToRestore ) ; - if ( canRestore ) { - mLanes = mLanesToRestore ; - mItemEntries = mItemEntriesToRestore ; - } - - mLanesToRestore = null ; - mItemEntriesToRestore =...
library Restore lane state in onLayoutChildren
<nb> class MetaImpl implements Meta , Serializable { meta ( ) . getSchemas ( ) , SINGLE - SQLDataType . VARCHAR , SINGLE - SQLDataType . VARCHAR SINGLE + SQLDataType . VARCHAR SINGLE ) ; for ( String name : schemas . getValues ( NUMBER0 , String . class ) ) {
Fixed a regression for Oracle
<nb> public class MailAttachmentRedeliveryTest extends CamelTestSupport { DataHandler handler = out . getIn ( ) . getAttachment ( STRING0 ) ; assertNotNull ( STRING1 , handler ) ; - if ( isJava16 ( ) ) { - assertEquals ( STRING2 , handler . getContentType ( ) ) ; - } else { - assertEquals ( STRING3 , hand...
Fixed test on CI boxes
<nb> public class CommonContext implements AutoCloseable public static String generateEmbeddedDirName ( ) { final String randomDirName = UUID . randomUUID ( ) . toString ( ) ; - String aeronDirName = IoUtil . tmpDirName ( ) + STRING0 + File . separator + randomDirName ; + String aeronDirName = IoUtil . tmpDir...
Updated CommonContext java to use tmp aeron RAND rather than tmp aeron RAND
<nb> import NAMESPACE ; import NAMESPACE ; - public class SpringTransaction implements Transaction { - public final TransactionStatus tx ; + class SpringTransaction implements Transaction { + final TransactionStatus tx ; - public SpringTransaction ( TransactionStatus tx ) { + SpringTransaction ( Tra...
Reduced visibility of example class
<nb> public class MustacheCompiler { return result ; } - private void writeText ( StringBuilder sb , String text ) { + protected void writeText ( StringBuilder sb , String text ) { if ( text . length ( ) != NUMBER0 ) { text = text . replace ( STRING0 , STRING1 ) ; text = text . replace ( STRING2 , STRIN...
allow the text to be filtered
<nb> public interface InputFile extends InputPath { String absolutePath ( ) ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT @ override File file ( ) ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT @ override
Improve InputFile javadoc
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix misleading JavaDoc in ProfileAnnotationConfigTestSuite
<nb> class EmbeddedGraphDbImpl } return handler ; } + + void addShellApp ( Class < ? > app ) + { + shellService . addApp ( app ) ; + } private class SyncHookFactory implements TxEventSyncHookFactory { <nb> class ShellService return false ; } } + + void addApp ( Class < ? > app ) + { ...
Exposed a method for adding more shell apps
<nb> public class GrailsDomainClassMappingContext extends AbstractMappingContext { return null ; } - @ override public void setCanExpandMappingContext ( boolean canExpandMappingContext ) { SINGLE } <nb> public class GrailsDomainClassPersistentEntity implements PersistentEntity { isInitialized = true ;...
remove Override from some interface method impls
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RaptorModule binder . bind ( RaptorSessionProperties . class ) . in ( Scopes . SINGLETO...
Remove duplicate binding for ShardManager
<nb> import NAMESPACE ; public class SplitterStreamCacheTest extends ContextTestSupport { private static final String TEST_FILE = STRING0 ; - protected int numMessages = NUMBER0 ; + protected int numMessages = NUMBER1 ; public void testSendStreamSource ( ) throws Exception { MockEndpoint resultEndpoint ...
Fixed test on other platforms
<nb> COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix compilation error due to empty p tag
<nb> public class AntlrParserPlugin extends ASTHelper implements ParserPlugin , Groovy VariableExpression leftExpression = new VariableExpression ( name , type ) ; configureAST ( leftExpression , paramNode ) ; - Expression rightExpression = ConstantExpression . NULL ; + Expression rightExpression = null ; i...
revert a change to avoid creation of multiple methods when all parameters are requiered
<nb> public class Moco { } public static ResponseHandler proxy ( final String url ) { - return new ProxyResponseHandler ( toUrl ( url ) , Failover . EMPTY_FAILOVER ) ; + return proxy ( url , Failover . EMPTY_FAILOVER ) ; } public static ResponseHandler proxy ( final String url , Failover failover ) {
used overload proxy method rather than create new object
<nb> class ConfigurableSocketFactory extends SocketFactory implements Configurable { return socket ; } - @ override public Configuration getConf ( ) { return this . configuration ; } - @ override public void setConf ( Configuration conf ) { this . configuration = conf ; this . socketReceiveBuffe...
Removed the Override annotations from methods to avoid compilation errors
<nb> public class SMWorldEditListener extends PluginListener { WorldEdit worldEdit = WorldEdit . getInstance ( ) ; try { - if ( worldEdit . getCommands ( ) . containsKey ( split [ NUMBER0 ] ) ) { + SINGLE + if ( split [ NUMBER0 ] . equals ( STRING0 ) ) { + split [ NUMBER0 ] = STRING1 ; + } + + if ( ...
Fixed a bug that made command checking case sensitive
<nb> public class GradleRemoveIdeEntityAction extends AbstractGradleSyncTreeNodeActio GradleProjectStructureNode < ? > node = iterator . next ( ) ; GradleProjectStructureNodeDescriptor < ? extends GradleEntityId > descriptor = node . getDescriptor ( ) ; if ( descriptor . getAttributes ( ) == GradleTextAttributes ...
Remove action probably should be disabled for outdated librariesw
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class KeyValueFormat { } } - public static < K , V > Map < K , V > parse ( String data , Converter < K > keyConverter , Converter < V > va...
fix quality flaws KeyValueFormat parse can accept null data
<nb> public final class AnalyticsTracker { SITE_SETTINGS_DELETE_SITE_PURCHASES_SHOW_CLICKED , SITE_SETTINGS_DELETE_SITE_REQUESTED , SITE_SETTINGS_DELETE_SITE_RESPONSE_OK , - SITE_SETTINGS_DELETE_SITE_RESPONSE_ERROR + SITE_SETTINGS_DELETE_SITE_RESPONSE_ERROR , + ABTEST_START } private static final List...
Adding AB testing started tracking
<nb> public class DnsDiscovery extends MultiplexingDiscovery { } private static List < PeerDiscovery > buildDiscoveries ( NetworkParameters params , String [ ] seeds ) { - List < PeerDiscovery > discoveries = new ArrayList < PeerDiscovery > ( seeds . length ) ; - for ( String seed : seeds ) - discoveries . ...
Prevent null pointer exception if DNS seeds parameter is null
<nb> public class FileConsumerAutoCreateDirectoryTest extends ContextTestSupport { } ) ; fail ( STRING0 ) ; } catch ( FileNotFoundException e ) { - assertEquals ( STRING1 , e . getMessage ( ) ) ; + assertTrue ( e . getMessage ( ) . startsWith ( STRING2 ) ) ; } SINGLE
Fixed test on windows box
<nb> import NAMESPACE ; public class RightMenuSample extends Activity { - private static final String STATE_MENUDRAWER = STRING0 ; - private static final String STATE_ACTIVE_POSITION = STRING1 ; - private static final String STATE_CONTENT_TEXT = STRING2 ; + private static final String STATE_MENUDRAWER = S...
Correct copy paste laziness
<nb> public class CaptivePortalLoginActivity extends Activity { @ override public void onReceivedSslError ( WebView view , SslErrorHandler handler , SslError error ) { - Log . w ( TAG , STRING0 ) ; + Log . w ( TAG , STRING1 + error . getPrimaryError ( ) + STRING2 + + SINGLE + Uri . parse ( error . getUrl ...
Log SslErrors from captive portal sign in app
<nb> public class XaLogicalLog else { ReadableByteChannel logChannel = getLogicalLogOrMyselfCommitted ( version , NUMBER0 ) ; - ByteBuffer buf = ByteBuffer . allocate ( NUMBER1 ) ; - long [ ] header = readAndAssertLogHeader ( buf , logChannel , version ) ; - committedTx = header [ NUMBER2 ] ; - logHeaderC...
Ensures closing of log
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT public abstract class AbstractFileSetCheck implements FileSetCheck
Added some comments hopefully helpful
<nb> public class SaveNewsListTask extends AsyncTask < Void , Void , Void > { String date = newsList . get ( NUMBER0 ) . getDate ( ) ; List < DailyNews > originalData = dataSource . newsOfTheDay ( date ) ; - boolean isDataUnchanged = originalData == null || originalData . equals ( newsList ) ; - if ( ! isDa...
Fix save data issue
<nb> public class TFS extends FileSystem { private TachyonFS mTFS = null ; private String mTachyonHeader = null ; + COMMENT + COMMENT + COMMENT + public TachyonFS getTachyonFS ( ) { + return mTFS ; + } + @ override public FSDataOutputStream append ( Path cPath , int bufferSize , Progressable pro...
Return low level client API in case FileSystem users need it
<nb> public abstract class IntroduceVariableBase extends IntroduceHandlerBase impleme public static PsiExpression getSelectedExpression ( final Project project , final PsiFile file , final int startOffset , final int endOffset ) { PsiExpression tempExpr ; final PsiElement elementAt = PsiTreeUtil . findCommonParen...
do not suggest selections outside psi expression
<nb> public class Neo4jHAPropertiesMustExistRuleTest @ rule public TemporaryFolder folder = new TemporaryFolder ( ) ; - SINGLE - public static final String CONFIG_KEY_OLD_SERVER_ID = STRING0 ; - public static final String CONFIG_KEY_OLD_COORDINATORS = STRING1 ; + SINGLE + private static final String CON...
Remove old unnecessary configuration property from the test
<nb> public final class Internal { COMMENT COMMENT public static boolean inMilliseconds ( final byte [ ] qualifier , - final byte offset ) { + final int offset ) { return inMilliseconds ( qualifier [ offset ] ) ; }
Fix Internal inMilliseconds where the offset was a byte instead
<nb> public final class LanguageAction extends CallableSystemAction { private void setLanguage ( Language language ) { String homePath ; - if ( Utilities . isMac ( ) ) { + if ( Utilities . isMac ( ) || Utilities . isUnix ( ) ) { homePath = System . getProperty ( STRING0 ) ; } else { homePath = System . ...
Fix language switching on Linux
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ProducteevControlSet implements TaskEdi...
If user cancels new dashboard creation bring em back to old selection
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class IntRange extends AbstractList implements Range { + public class IntRange extends AbstractList < Integer > implements Range < Integer > { COMMENT COMMENT <nb> public class IntRange extends AbstractList implements Range { COMMENT COMMENT...
IntRange should be of type List Integer
<nb> public class RecentsPanelView extends RelativeLayout implements OnItemClickListe mPreloadTasksRunnable = new Runnable ( ) { public void run ( ) { - setVisibility ( INVISIBLE ) ; - refreshRecentTasksList ( ) ; + if ( ! mShowing ) { + setVisibility ( INVISIBLE ) ; + refreshRecentTasksList ( ) ; + }...
Fix bug where recents stopped showing up
<nb> public final class ProtocolNegotiators { COMMENT COMMENT COMMENT - AbstractBufferingHandler ( ChannelHandler . . . handlers ) { + protected AbstractBufferingHandler ( ChannelHandler . . . handlers ) { this . handlers = handlers ; }
Allowing AbstractBufferingHandler to be extended
<nb> public class ProcessEntryPointTest { SINGLE entryPoint . getShutdownHook ( ) . start ( ) ; + + SINGLE + Runtime . getRuntime ( ) . removeShutdownHook ( entryPoint . getShutdownHook ( ) ) ; + while ( process . getState ( ) != State . STOPPED ) { Thread . sleep ( NUMBER0 ) ; }
Fix computation of JaCoCo coverage of module sonar process
<nb> public final class Lineage implements JournalEntryRepresentable { COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT
Remove duplicated javadoc param in lineage
<nb> public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton impleme } result . add ( new RefreshFileHistoryAction ( ) ) ; if ( ! myIsStaticAndEmbedded ) { - result . add ( new MyToggleAction ( ) ) ; + result . add ( new MyShowDetailsAction ( ) ) ; } if ( ! popup && supportsTree ( ) ) {...
file history rename MyToggleAction to MyShowDetailsAction
<nb> public abstract class Representation this . type = new RepresentationType ( type ) ; } + public RepresentationType getRepresentationType ( ) + { + return this . type ; + } + abstract String serialize ( RepresentationFormat format , URI baseUri , ExtensionInjector extensions ) ;
added getRepresentationType to Representation