diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class ParticipantsApplication { bbbInGW . setUserStatus ( room , userid , status , value ) ; } - public boolean participantJoin ( String roomName , String userid ) { SINGLE - log . debug ( STRING0 + userid + STRING1 + roomName ) ; - bbbInGW . userJoin ( roomName , userid ) ; - return true ; ...
remove unused code
<nb> public class GitVcs extends AbstractVcs < CommittedChangeList > { } @ override + @ calledinawt public void enableIntegration ( ) { - GitRootDetectInfo detectInfo = new GitRootDetector ( myProject ) . detect ( ) ; - new GitIntegrationEnabler ( myProject , myGit , myPlatformFacade ) . enable ( detectIn...
perform actions on the pooled thread
<nb> public class IndexDatabase { xrefFile . getAbsolutePath ( ) ) ; } - SINGLE - SINGLE - SINGLE - parent . delete ( ) ; + SINGLE + if ( parent . delete ( ) ) { + log . fine ( STRING0 + parent . getAbsolutePath ( ) ) ; + } setDirty ( ) ; } <nb> public class IndexDatabase { SINGLE SING...
Fixed newly introduced FindBugs warnings
<nb> public class ExecuteGradleCommandClientProtocol implements ClientProcess . Protoco String details = GradlePluginLord . getGradleExceptionMessage ( buildResult . getFailure ( ) , gradle . getStartParameter ( ) . getShowStacktrace ( ) ) ; output += details ; - client . sendMessage ( ProtocolConstants . EXECU...
Don t manually box primitive value
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - public interface Animals extends Creature { } + public interface Animals extends Creature { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public int getAge ( ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void...
Added new set get age methods to Animals
<nb> public class MessageHistoryServiceImpl } } - return new LinkedList ( result ) . subList ( NUMBER0 , count ) ; + LinkedList resultAsList = new LinkedList ( result ) ; + + int toIndex = count ; + if ( toIndex > resultAsList . size ( ) ) + toIndex = resultAsList . size ( ) ; + + return resultAsL...
Fix message history finder methods findFirstAfter
<nb> public class SharedBuffer return getBufferResult . getFuture ( ) ; } - public synchronized List < Page > getPagesInternal ( DataSize maxSize , long sequenceId ) + private synchronized List < Page > getPagesInternal ( DataSize maxSize , long sequenceId ) { long maxBytes = maxSize . toBytes ( ) ; Lis...
Change internal method to be private
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public enum RuleFieldValidator { - CLASS_RULE_VALIDATOR ( ClassRule . class , true ) , RULE_VALIDATOR ( Rule . class , - false ) ; + COM...
added Javadoc for RuleFieldValidator
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Updated copyright date range
<nb> class BeeLineOpts implements Completer { String [ ] names = propertyNames ( ) ; for ( int i = NUMBER0 ; names != null && i < names . length ; i ++ ) { + Object o = beeLine . getReflector ( ) . invoke ( this , STRING0 + names [ i ] , new Object [ NUMBER0 ] ) ; props . setProperty ( PROPERTY_PREFIX + names...
Fix the Beeline set and save command in order to avoid the NullPointerException Shinichi Yamashita via Xuefu Zhang
<nb> public class FilterInvocationDefinitionSourceEditor extends PropertyEditorSuppor source . setMappings ( mappings ) ; } - setValue ( source ) ; + setValue ( source . getDecorated ( ) ) ; } }
Fix failing tests keeping old behaviour
<nb> public abstract class ScheduledPollConsumer extends DefaultConsumer implements R } catch ( Exception re ) { throw ObjectHelper . wrapRuntimeCamelException ( re ) ; } + } catch ( Error e ) { + SINGLE + log . fatal ( STRING0 + this + STRING1 + getEndpoint ( ) . getEndpointUri ( ) + STRING2 + e . getMessa...
Scheduled consumer now log java lang Error at FATAL level before rethrowing
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SearchWhileCreatingIndexTests extends AbstractIntegrationTest { @ test @ slow + @ awaitsfix ( bugUrl = STRING0 ) public void testIndexCausesIndexCreation ( ) throws Exceptio...
disable SearchWhileCreatingIndexTests for now fix is already in the pipeline
<nb> public class DynamicToolWindowWrapper implements ProjectComponent { DefaultMutableTreeNode classNode = ( DefaultMutableTreeNode ) rootNode . getFirstChild ( ) ; while ( classNode != null ) { - if ( classNode . isLeaf ( ) ) return ; + if ( classNode . isLeaf ( ) ) { + classNode = ( DefaultMutableTreeNod...
filter repaint tree after typing item text in the filter field
<nb> class ZoomManager { SINGLE SINGLE SINGLE - final float zoomOverviewScale = getZoomOverviewScale ( ) ; - final float newScale = ( mInZoomOverviewBeforeSizeChange ) ? - zoomOverviewScale : Math . max ( mActualScale , zoomOverviewScale ) ; + float newScale = mActualScale ; + if ( mWebView . getSetting...
Fix zoom overview width and postscale for non wide viewport mode
<nb> public final class CaptureActivity extends Activity implements SurfaceHolder . Cal if ( copyToClipboard && ! resultHandler . areContentsSecure ( ) ) { ClipboardManager clipboard = ( ClipboardManager ) getSystemService ( CLIPBOARD_SERVICE ) ; - clipboard . setText ( displayContents ) ; + if ( displayConte...
Maybe avoid one more NPE
<nb> public class RobinEngine extends AbstractIndexShardComponent implements Engine { if ( flushNeeded ) { flushNeeded = false ; - long time = System . currentTimeMillis ( ) ; try { long translogId = translogIdGenerator . incrementAndGet ( ) ; translog . newTransientTranslog ( translogId ) ; <nb> public...
d oh remove debug out
<nb> public class VCardProvider implements IQProvider { code = nodeName ; } } - if ( code == null || value == null ) continue ; + if ( value == null ) continue ; + if ( code == null ) + code = STRING0 ; if ( STRING1 . equals ( type ) ) { vCard . setPhoneHome ( code , value ) ; }
VCardProvider should treat tel code element optional
<nb> public class MigrationCommitServiceTest final String msg = getAssertMessage ( migration , service ) ; + assertFalse ( service . getBeforeEvents ( ) . isEmpty ( ) ) ; + assertFalse ( service . getCommitEvents ( ) . isEmpty ( ) ) ; + final PartitionMigrationEvent beforeEvent = service . getBeforeEvents...
Fix assertion in MigrationCommitServiceTest
<nb> public final class Constants { public static final String LOGGER_TYPE = System . getProperty ( TACHYON_LOGGER_TYPE , STRING0 ) ; public static final String ACCESS_LOGGER_TYPE = System . getProperty ( TACHYON_ACCESS_LOGGER_TYPE , STRING0 ) ; - public static final boolean DEBUG = Boolean . valueOf ( System ....
Used Boolean parseBoolean to return primitive value directly
<nb> public class Launcher { frame = new DroppableFrame ( ) { public void fileDropped ( File file ) { String fileName = file . getName ( ) ; - if ( fileName . endsWith ( STRING0 ) ) { + if ( fileName . endsWith ( STRING1 ) ) { installPlugin ( file ) ; } } <nb> public class Launcher { SINGLE try ...
Fixed small launcher bug
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + + import NAMESPACE ; import NAMESPACE ; public class RunBefores extends Statement { <nb> public class RunBefores extends Statement { @ override public void evaluate ( ) throws Throwable { - fElement . runBefores ( fTarget ) ; + List <...
Cleaned up TestElement
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ImageUtils return imageIcon ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static B...
add the possibility to decorate the main window
<nb> public class DefaultBinary implements Binary { this . name = name ; this . project = project ; this . compilers = project . getExtensions ( ) . getByType ( CompilerRegistry . class ) ; - this . sourceSets = new DefaultDomainObjectSet ( SourceSet . class ) ; + this . sourceSets = new DefaultDomainObjectSe...
Fixed a warning
<nb> import NAMESPACE ; public class NotificationsDetailActivity extends ActionBarActivity implements CommentActions . OnNoteCommentActionListener { private static final String ARG_TITLE = STRING0 ; + private static final String DOMAIN_WPCOM = STRING1 ; @ override public void onCreate ( Bundle savedInstan...
Only authenticate the web view if we know for sure the Url is on WordPress com
<nb> public class BukkitConfiguration extends LocalConfiguration { noOpPermissions = config . getBoolean ( STRING0 , false ) ; - LocalSession . MAX_HISTORY_SIZE = Math . max ( NUMBER0 , config . getInt ( STRING1 , NUMBER0 ) ) ; + LocalSession . MAX_HISTORY_SIZE = Math . max ( NUMBER1 , config . getInt ( STRIN...
Removed minimum cap on history size
<nb> public class Sha256Hash implements Serializable { COMMENT COMMENT public static Sha256Hash hashFileContents ( File f ) throws IOException { - SINGLE - return create ( ByteStreams . toByteArray ( new FileInputStream ( f ) ) ) ; + FileInputStream in = new FileInputStream ( f ) ; + try { + return crea...
Close the temporary FileInputStream created in Sha256Hash hashFileContents
<nb> public class ContributionManagerDialog { static final String ANY_CATEGORY = Language . text ( STRING0 ) ; JFrame dialog ; - String title ; ContributionFilter filter ; JComboBox categoryChooser ; JScrollPane scrollPane ; <nb> public class ContributionManagerDialog { . showYesNoQuestion ( editor , ...
Remove unused title in ContributionManagerDialog
<nb> import NAMESPACE ; COMMENT public abstract class JsonProviderFactory { + private static Class defaultProvider = null ; + public static JsonProviderFactory factory = new JsonProviderFactory ( ) { @ override protected JsonProvider create ( ) { - return new JsonSmartJsonProvider ( ) ; + JsonProvid...
Updated JsonProviderFactory to set up default provider
<nb> public class MaterialDialog extends DialogBase implements View . OnClickListener , return this ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public Builder setAdapter ( ListAdapter adapter ) { this . adapter = adapter ; return this ;
Add doc to setAdapter in materialdialog
<nb> public final class Message extends Stanza implements TypedCloneable < Message > { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public Message ( Jid to , ExtensionElement extensionElement ) { + this ( to ) ; + addExtension ( extensionElement ) ; + } + + COMME...
Add convinient constructors for Message and Presence
<nb> public class LdapGroupMappingMigration extends Periodical { @ override public void doRun ( ) { final LdapSettings ldapSettings = ldapSettingsService . load ( ) ; - ldapSettings . setGroupMapping ( ldapSettings . getGroupMapping ( ) ) ; - try { - ldapSettingsService . save ( ldapSettings ) ; - cluster...
Fix NPE in LdapGroupMappingMigration if no LDAP settings exist
<nb> public class BookCollection extends AbstractBookCollection { final Book book = getBookByFile ( file ) ; if ( book != null ) { saveBook ( book ) ; + getHash ( book ) ; } }
calculate hash on adding book
<nb> import NAMESPACE ; COMMENT public class TemporalMesh extends Geometry { private static final Logger LOGGER = Logger . getLogger ( TemporalMesh . class . getName ( ) ) ; - + COMMENT + private static final double MINIMUM_BONE_WEIGHT = FastMath . DBL_EPSILON ; + COMMENT protected final BlenderContex...
very small wight values caused severe animation artifacts
<nb> public final class Route { public Route ( Address address , Proxy proxy , InetSocketAddress inetSocketAddress , String tlsVersion ) { this ( address , proxy , inetSocketAddress , - tlsVersion . equals ( STRING0 ) ? TlsConfiguration . PREFERRED : TlsConfiguration . FALLBACK ) ; + tlsVersion . equals ( STR...
Fix inverted condition on Route s forwarding constructor
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PersistedServiceImpl implements PersistedService { doc . put ( x . getKey ( ) , ( ( DateTime ) x . getValue ( ) ) . toDate ( ...
serialize NodeID to String in MonogDB to fix dead letter queuing
<nb> public abstract class HttpConnection implements Connection if ( cookieStore != null ) { URI uri = request . getURI ( ) ; + StringBuilder cookies = null ; if ( uri != null ) - { - StringBuilder cookies = convertCookies ( cookieStore . get ( uri ) , null ) ; - cookies = convertCookies ( request . get...
HTTPS request with IP host and HTTP proxy throws IllegalArgumentException
<nb> public class Twitter extends Activity { Ion . with ( imageView ) SINGLE . placeholder ( R . drawable . twitter ) - SINGLE - . animateIn ( R . anim . fadein ) SINGLE . load ( imageUrl ) ; <nb> public class TwitterGson extends Activity { Ion . with ( imageView ) SINGLE . placeholder ( R . dra...
use the default animation in the twitter samples
<nb> public class DiffContentFactoryImpl extends DiffContentFactory { if ( file == null ) { throw new IOException ( STRING0 ) ; } + file . refresh ( true , false ) ; return file ; } }
refresh file after modifying it s content
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ experimentalapi ( STRING0 ) @ threadsafe public interface ServerCallHandler < RequestT , ResponseT > { COMMENT
Make ServerCallHandler non experimental
<nb> public interface SharedLibraryBinarySpec extends NativeLibraryBinarySpec { COMMENT COMMENT COMMENT - public interface TasksCollection extends BinaryTasksCollection { + interface TasksCollection extends BinaryTasksCollection { COMMENT COMMENT COMMENT <nb> public interface StaticLibraryBinarySpec e...
Removed unnecessary modifiers from interface methods
<nb> import NAMESPACE ; COMMENT COMMENT public class SemVer implements Comparable < SemVer > { + public static final SemVer UNKNOWN = new SemVer ( STRING0 , NUMBER0 , NUMBER0 , NUMBER0 ) ; + private final String myRawVersion ; private final int myMajor ; private final int myMinor ; <nb> public class S...
asynchronously update versions in listeners update node interpreters dialog
<nb> public class ResequencerEngine < E > { } public void start ( ) { - timer = new Timer ( ExecutorServiceHelper . getThreadName ( STRING0 , STRING1 ) , true ) ; + timer = new Timer ( ExecutorServiceHelper . getThreadName ( STRING2 , STRING1 ) , true ) ; } COMMENT
Fixed the unit test error of StreamResequencerTest and ResequencerEngineTest
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class GroovyModuleConverterProvider extends ConverterProvider { @ notnull @ override - public ProjectConverter createConverter ( ) { + public ProjectConverter createConver...
converting packaging related parts of javaee facets to artifacts
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class RestletMultiMethodsEndpointTest extends RestletTestSupport { } @ test + public void testPutMethod ( ) throws Exception { + HttpResponse response = ...
enhanced unit test to include HttpPut example
<nb> public class ParallelGatewayTest extends PluggableActivitiTestCase { . processInstanceId ( pi . getId ( ) ) . list ( ) ; for ( HistoricActivityInstance h : history ) { - if ( h . getActivityId ( ) . equals ( STRING0 ) || h . getActivityId ( ) . equals ( STRING0 ) ) { + if ( h . getActivityId ( ) . equals...
remove duplicate condition in if statement
<nb> public interface Net { public static final String POST = STRING0 ; public static final String PUT = STRING1 ; public static final String DELETE = STRING2 ; - public static final String OPTIONS = STRING3 ; - public static final String HEAD = STRING4 ; - public static final String TRACE = STRING5 ; - p...
Removed the new HTTP methods
<nb> public class CompletionProgressIndicator extends ProgressIndicatorBase implement CompletionContributor . getActionShortcut ( IdeActions . ACTION_CHOOSE_LOOKUP_ITEM_REPLACE ) + STRING0 ) ; } - myLookup . addAdvertisement ( CompletionContributor . getActionShortcut ( IdeActions . ACTION_LOOKUP_DOWN ) + STRIN...
reword the ctrl arrows hint don t show it for one line editors
<nb> public class MetaClassImpl implements MetaClass , MutableMetaClass { } for ( final MetaMethod method : getNewMetaMethods ( c ) ) { + if ( method . getName ( ) . equals ( STRING0 ) && ! method . getDeclaringClass ( ) . equals ( theCachedClass ) ) continue ; if ( ! newGroovyMethodsSet . contains ( method )...
prevent constructors from being inherited by EMC
<nb> public class XmlTreeBuilderTest { Document doc = tb . parse ( xml , STRING0 ) ; assertEquals ( STRING1 , TextUtil . stripNewlines ( doc . html ( ) ) ) ; + assertEquals ( doc . getElementById ( STRING2 ) . absUrl ( STRING3 ) , STRING4 ) ; + } + + @ test + public void testPopToClose ( ) { + SINGLE ...
Added test coverage for XML parser
<nb> public abstract class Lexer extends Recognizer < Integer , LexerATNSimulator > COMMENT public String _text ; + public Lexer ( ) { } + public Lexer ( CharStream input ) { this . _input = input ; }
add default ctor to Lexer
<nb> public class DescendantTokenCheckTest extends BaseCheckTestSupport checkConfig . addAttribute ( STRING0 , STRING1 ) ; final String [ ] expected = { - STRING2 , + STRING3 , } ; verify ( checkConfig , getPath ( STRING4 ) , expected ) ; <nb> public class MissingSwitchDefaultCheckTest public void t...
Missing Switch Check compilable UT inputs
<nb> public class MUCItem implements NamedElement { xml . optAttribute ( STRING0 , getAffiliation ( ) ) ; xml . optAttribute ( STRING1 , getJid ( ) ) ; xml . optAttribute ( STRING2 , getNick ( ) ) ; - if ( role != null && role != MUCRole . none ) { - xml . attribute ( STRING3 , getRole ( ) ) ; - } + xml ....
Always include role in MUCItem if it s set
<nb> public class InsetFrameLayout extends FrameLayout { } public void setInsetBackgroundColor ( int color ) { - setInsetBackground ( new ColorDrawable ( NUMBER0 & color ) ) ; + setInsetBackground ( new ColorDrawable ( color ) ) ; } private void setInsetBackground ( Drawable background ) {
Fix last commit
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class WPMainActivity extends Activity mViewPager . setAdapter ( mTabAdapter ) ; mConnectionBar = ( TextView ) findViewById ( R ...
Tapping connection bar now hides it then re checks connection after a brief delay
<nb> public class UsbManager { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class UsbManager { COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT public static final String EXTRA_PERMISSION_GRANTED = ST...
Fix broken Javadoc links
<nb> public class ClsFileImpl extends ClsRepositoryPsiElement < PsiClassHolderFileStub > @ notnull public static CharSequence decompile ( @ notnull VirtualFile file ) { PsiManager manager = PsiManager . getInstance ( DefaultProjectFactory . getInstance ( ) . getDefaultProject ( ) ) ; - StringBuilder buffer = ne...
read action in default decompiler
<nb> public abstract class AbstractChannel extends DefaultAttributeMap implements Cha COMMENT COMMENT private static Integer allocateId ( Channel channel ) { - int idVal = - Math . abs ( System . identityHashCode ( channel ) ) ; - if ( idVal >= NUMBER0 ) { + int idVal = System . identityHashCode ( channel )...
Fix unnecessary application of Math abs
<nb> public class MoviesActivity extends BaseTopActivity { maybeAddTraktTabs ( ) ; } + @ override + protected void onResume ( ) { + super . onResume ( ) ; + + supportInvalidateOptionsMenu ( ) ; + } + private void maybeAddTraktTabs ( ) { int currentTabCount = tabsAdapter . getCount ( ) ; boolea...
Invalidate menu when returning to movies
<nb> public class InstructionList implements Iterable < Instruction > formatter . setTimeZone ( tz ) ; String header = STRING0 - + STRING1 + + STRING2 + STRING3 + STRING4 + STRING5 + STRING6 - + STRING7 + tzHack ( formatter . format ( startTimeMillis ) ) + STRING8 + + STRING9 + tzHack ( formatter ...
validate gpx again
<nb> public class JsonExportTask extends AsyncTask < Void , Void , Integer > { public interface EpisodesQuery { String [ ] PROJECTION = new String [ ] { Episodes . _ID , Episodes . NUMBER , Episodes . ABSOLUTE_NUMBER , Episodes . WATCHED , - Episodes . COLLECTED , Episodes . TITLE , Episodes . FIRSTAIREDMS , Ep...
Fix crash since including episode dvd number in small dump
<nb> public class ZWaveNodeStageAdvancer implements ZWaveEventListener { if ( currentStage . isStaticComplete ( ) ) { SINGLE SINGLE - logger . debug ( STRING0 ) ; + logger . debug ( STRING0 , node . getNodeId ( ) ) ; setCurrentStage ( currentStage . getNextStage ( ) ) ; } else { <nb> public class ZWav...
Fix logging error
<nb> public final class HttpRemoteTask try { long currentRequestStartNanos ; synchronized ( HttpRemoteTask . this ) { - SINGLE - SINGLE currentRequest = null ; sendPlan . set ( value . isNeedsPlan ( ) ) ; - SINGLE - SINGLE currentRequestStartNanos = HttpRemoteTask . this . currentRequestStartNanos ;...
Remove unnecessary inspection suppression
<nb> public class TachyonFramework { switch ( status . getState ( ) ) { case TASK_FAILED : SINGLE - case TASK_LOST : SINGLE + case TASK_LOST : SINGLE case TASK_ERROR : if ( status . getTaskId ( ) . getValue ( ) . equals ( String . valueOf ( mMasterTaskId ) ) ) { mMasterCount -- ;
SMALLFIX Fix spacing
<nb> public class ThreadPools { SINGLE SINGLE SINGLE - synchronized ( threadPools ) { + synchronized ( this ) { final ScheduledExecutorService lastChance = threadPools . get ( name ) ; if ( lastChance == null ) { final ScheduledExecutorService service = <nb> public class ThreadPools { COMMENT COMM...
Don t lock on ConcurrentHashMap
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LineTooltipRenderer implements TooltipRenderer { return ; } if ( e . getEventType ( ) == HyperlinkEvent . EventType . ACT...
add external link support editor tooltips
<nb> public class ShowParameterInfoHandler implements CodeInsightActionHandler { if ( item != null ) { for ( ParameterInfoHandler handler : handlers ) { if ( handler . couldShowInLookup ( ) ) { - showLookupEditorHint ( handler . getParametersForLookup ( item , context ) , editor , project , handler ) ; + fina...
fixed handling of empty descriptors for lookup
<nb> public class NaiveBayes extends SupervisedModelBuilder < NaiveBayesModel , NaiveBaye if ( _parms . _eps_sdev < NUMBER0 ) error ( STRING0 , STRING1 ) ; if ( _parms . _min_prob < FLOAT0 ) error ( STRING2 , STRING3 ) ; if ( _parms . _eps_prob < NUMBER0 ) error ( STRING4 , STRING5 ) ; + hide ( STRING6 , STRING...
Ignore certain parameters that are not applicable class balancing max CM size etc
<nb> public class NokogiriHelpers { } public static boolean isUTF8 ( String encoding ) { + if ( encoding == null ) return true ; SINGLE int ret = Charset . forName ( encoding ) . compareTo ( Charset . forName ( STRING0 ) ) ; return ret == NUMBER0 ; }
Adds null check to isUTF8 method
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class ProxyServer { public enum Protocol { - HTTP ( STRING0 ) , HTTPS ( STRING1 ) , NTLM ( STRING2 ) , KERBE...
Add SPNEGo as supported as well
<nb> public class SwipeDismissListViewTouchListener implements View . OnTouchListener { public SwipeDismissListViewTouchListener ( AbsListView listView , OnDismissCallback callback ) { ViewConfiguration vc = ViewConfiguration . get ( listView . getContext ( ) ) ; mSlop = vc . getScaledTouchSlop ( ) ; - mMinFlin...
Tweaked minFlingVelocity in swipe dismiss listener
<nb> public class DismissViewButton extends Button { public DismissViewButton ( Context context , AttributeSet attrs , int defStyleAttr , int defStyleRes ) { super ( context , attrs , defStyleAttr , defStyleRes ) ; - mAnimatedDismissDrawable = ( AnimatedVectorDrawable ) getContext ( ) . getResources ( ) . getDr...
Fixed a bug when resolving theme attributes
<nb> public class ContainerUtil extends ContainerUtilRt { } COMMENT + COMMENT + COMMENT + COMMENT + @ notnull + public static < T > List < T > concat ( boolean appendTail , @ notnull List < ? extends T > list , T . . . values ) { + return appendTail ? concat ( list , list ( values ) ) : concat ( list ...
Add another ContainerUtil concat overloading
<nb> public class CharTableImpl implements CharTable { @ notnull public CharSequence doIntern ( @ notnull CharSequence text ) { - CharSequence interned = getStaticInterned ( text . toString ( ) ) ; + CharSequence interned = getStaticInterned ( text ) ; if ( interned != null ) { return interned ; } <nb...
don t call toString without need to avoid garbage
<nb> public class RestNodesAction extends AbstractCatAction { } else { table . addCell ( STRING0 ) ; } - final Map < String , String > serviceAttributes = info . getServiceAttributes ( ) ; + final Map < String , String > serviceAttributes = info == null ? null : info . getServiceAttributes ( ) ; if ( servic...
prevent NPEs in case there are multiple client nodes
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
eliminate ecilpse warning
<nb> public class EntityCapsManager extends Manager { DiscoverInfo discoverInfo = new DiscoverInfo ( ) ; discoverInfo . setType ( IQ . Type . result ) ; - discoverInfo . setNode ( getLocalNodeVer ( ) ) ; sdm . addDiscoverInfoTo ( discoverInfo ) ; + SINGLE + SINGLE currentCapsVersion = generateVerifica...
Set localNodeVer after currentCapsVersion is set
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ ignore public class ScriptProcessorTest { @ test
remove some test
<nb> import NAMESPACE ; COMMENT COMMENT public class ZeppelinHubRepo implements NotebookRepo { - private static final Logger LOG = LoggerFactory . getLogger ( ZeppelinhubRestApiHandler . class ) ; + private static final Logger LOG = LoggerFactory . getLogger ( ZeppelinHubRepo . class ) ; private static fina...
Fix logger class name to correct one
<nb> public interface TraversalDescription COMMENT COMMENT TraversalDescription reverse ( ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + Traverser traverse ( Node startNode ) ; COMMENT COMMENT <nb> public final class Trav...
Added TraversalDescription traverse Node again for backwards binary compatibiliy
<nb> public class CustomBoundsDialog extends javax . swing . JPanel { } else { NumberFormat f = NumberFormat . getInstance ( Locale . ENGLISH ) ; f . setGroupingUsed ( false ) ; + f . setMaximumFractionDigits ( NUMBER0 ) ; minTextField . setText ( f . format ( model . getMin ( ) ) ) ; maxTextField . setText...
Fix timeline bounds dialog accuracy problem
<nb> public class ReaderPostTable { COMMENT COMMENT public static ReaderBlogIdPostIdList getBlogIdPostIdsInBlog ( long blogId , int maxPosts ) { - String sql = STRING0 ; + String sql = STRING1 ; if ( maxPosts > NUMBER0 ) { sql += STRING2 + Integer . toString ( maxPosts ) ;
Use empty tag name n getBlogIdPostIdsInBlog
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> final class ClientMetadataHelper { JarURLConnection jarURLConnection = ( JarURLConnection ) jarUrl . openConnection ( ) ; Manifest manifest = jarURLConnect...
Make sure that getting driver version won t fail with any exception
<nb> COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class DNSResolver { public final HostAddress lookupHostAddress ( String name , int port , List < HostAddress > failedAddresses , DnssecMode dnssecMode ) { checkIfDnssecRequestedAndSupported ( dnssecMode ) ; List ...
Fix IllegalArgumentException on DNS lookup if XMPP domain is wrong
<nb> public class MemberInfo implements ChangeEvent , Serializable { return STRING0 + STRING1 + clusterID + STRING2 + date + - STRING3 + partitions + STRING4 + time + STRING5 + totalMemory + STRING6 + freeMemory +
Changed toString implementation
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + public class RDFConfig { public static final String URI = STRING0 ; <nb> public class RDFConfig { new ConfigOption < String [ ] > ( RDF_ROOT , STRING1 , STRING2 + ...
Allow empty list of RDF as properties URIs
<nb> public class ParserAnnotator extends SentenceAnnotator { @ override protected void doOneSentence ( Annotation annotation , CoreMap sentence ) { SINGLE - if ( noSquash && sentence . get ( TreeCoreAnnotations . TreeAnnotation . class ) != null ) { + if ( noSquash && + sentence . get ( TreeCoreAnnotations...
Fix bug in nosquash option to parser annotator
<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 ; import NAMESPACE ; <nb> public class ProxyCont...
fixed a typo in proxy container deserializer
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class EditContractIntention extends BaseIntentionAction { finally { token . finish ( ) ; } + DaemonCodeAnalyzer . getInstance ( project ) . res...
restart highlighting after contract change
<nb> public class Ping do { HISTOGRAM . reset ( ) ; + System . gc ( ) ; System . out . println ( STRING0 + NUMBER_OF_MESSAGES + STRING1 ) ; sendPingAndReceivePong ( aeron , NUMBER_OF_MESSAGES ) ; <nb> public class Ping { pongConnectionLatch = new CountDownLatch ( NUMBER0 ) ; final DataHandler data...
Improved warmup semantics for ping pong latency test
<nb> public class ClassLister private static String fixJarEntryClassName ( String entryName ) { entryName = entryName . replace ( File . separatorChar , STRING0 ) ; + entryName = entryName . replace ( STRING1 , STRING0 ) ; return trimFromClassEnding ( entryName ) ; }
Fixed a windows specific issue where the classes wouldn t be found
<nb> public class EvictionTest extends HazelcastTestSupport { COMMENT @ test public void testIssue585SetWithoutTTL ( ) throws InterruptedException { - IMap < String , String > map = createSimpleMap ( ) ; + final IMap < String , String > map = createSimpleMap ( ) ; - String key = STRING0 ; + final String...
Refactored test testIssue585SetWithoutTTL
<nb> public class Memory extends Pointer { COMMENT COMMENT public Pointer share ( long offset ) { - return share ( offset , getSize ( ) - offset ) ; + return share ( offset , size ( ) - offset ) ; } COMMENT <nb> public class Memory extends Pointer { clear ( size ) ; } - COMMENT - public bool...
remove deprecated methods
<nb> public abstract class UsefulTestCase extends TestCase { CodeStyleSettings codeStyleSettings = getCurrentCodeStyleSettings ( ) ; codeStyleSettings . getIndentOptions ( StdFileTypes . JAVA ) ; - checkSettingsEqual ( myOldCodeStyleSettings , codeStyleSettings , STRING0 ) ; - codeStyleSettings . clearCodeSty...
restore settings after fail
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FileManagerImpl implements FileManager { @ nullable public PsiFile findFile ( @ notnull VirtualFile vFile ) { if ( vFile ...
remove unnecessary usage of ProjectEx
<nb> public class Main SINGLE if ( xmls . contains ( arg ) ) { - System . out . println ( STRING0 + arg + STRING1 ) ; - System . out . println ( STRING2 ) ; + System . err . println ( STRING0 + arg + STRING1 ) ; + System . err . println ( STRING2 ) ; } xmls . add ( arg ) ; }
Making warning show on System err
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CallPanel { if ( ! SwingUtilities . isEventDispatchThread ( ) ) { - SwingUtilities . invokeLater ( new Runnable ( ) + try { - publi...
Fixes call conference creation from Tools menu
<nb> public class GenerateSQLContributor extends CompoundContributionItem { log . warn ( e ) ; } activeEditor . setFocus ( ) ; - } else { - UIUtils . setClipboardContents ( DBeaverUI . getActiveWorkbenchShell ( ) . getDisplay ( ) , TextTransfer . getInstance ( ) , sql ) ; } + UIUtils . setClipboardContent...
Always copy generated sql to clipboard
<nb> public class MainNetParams extends NetworkParameters { STRING0 , SINGLE STRING1 , SINGLE STRING2 , SINGLE - STRING3 , SINGLE } ; }
Don t use my DNS seed
<nb> public class MethodCallHandler extends AbstractExpressionHandler { findSubtreeLines ( lines , getMainAst ( ) . getFirstChild ( ) , true ) ; final int firstCol = lines . firstLineCol ( ) ; final int lineStart = getLineStart ( getFirstAst ( getMainAst ( ) ) ) ; - if ( lineStart != firstCol ) { - indentLeve...
Flip negated if else