diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAME...
remove redundant imports
<nb> public class StatementParsing extends Parsing implements ITokenTypeRemapper { } builder . advanceLexer ( ) ; + reportParseStatementError ( builder , firstToken ) ; + } + + protected void reportParseStatementError ( PsiBuilder builder , IElementType firstToken ) { if ( firstToken == PyTokenTypes . I...
restore parser after not closed tags
<nb> public final class MeasuresFilters { return null ; } for ( Measure measure : measures ) { + Characteristic measureCharacteristic = measure . getCharacteristic ( ) ; if ( measure . getClass ( ) . equals ( Measure . class ) && measure . getMetric ( ) . equals ( metric ) && measure . getPersonId ( ) == ...
Fix quality flaws
<nb> public class SettingsGeneralActivity extends SettingsBaseActivity { getString ( R . string . lang_vi ) + incompleteSuffix , getString ( R . string . lang_cy ) + incompleteSuffix , } ; registerListPreference ( settings . PREFERRED_LOCALE , screen , entries , entrieValues ) ; + SINGLE + if ( ! R . string ....
Latin Display language in menu title
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> class RollupStats extends DTask < RollupStats >...
Put in a Cliff fix for him
<nb> 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 DependencyResolvingClasspath extends AbstractFileCollect...
Remove unused method
<nb> public class PostHighlightingPass extends TextEditorHighlightingPass { if ( dclType == null || dclType . length ( ) == NUMBER0 ) dclType = LangBundle . message ( STRING0 ) ; String message = MessageFormat . format ( SYMBOL_IS_NOT_USED , dclType , unusedDcl . getName ( ) ) ; - HighlightInfo highlightInfo = ...
adding unused symbol type two times
<nb> public class BytesRefColumnReference extends FieldCacheExpression < IndexFieldData @ override public void setNextReader ( AtomicReaderContext context ) { super . setNextReader ( context ) ; - values = indexFieldData . load ( context ) . getBytesValues ( true ) ; + values = indexFieldData . load ( context...
do not require pre build hashes in BytesRefColumnReference
<nb> package NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> ...
Ignoring problematic tests on OSX
<nb> public class Debugger implements VMEventListener { if ( ! t . isSuspended ( ) || t . frameCount ( ) == NUMBER0 ) { return STRING0 ; } - return t . frame ( NUMBER0 ) . thisObject ( ) . referenceType ( ) . name ( ) ; + ObjectReference ref = t . frame ( NUMBER0 ) . thisObject ( ) ; + return ref == null ? ...
Fix crash when entering static methods
<nb> public class RenderRefinery extends TileEntitySpecialRenderer implements IInvent GL11 . glPushMatrix ( ) ; GL11 . glTranslatef ( NUMBER0 , NUMBER1 , FLOAT0 ) ; func_110628_a ( FluidRenderer . getFluidSheet ( liquidResult ) ) ; + FluidRenderer . colorFluid ( liquidResult ) ; GL11 . glCallList ( list3 [ ( ...
Adds Missed call for color
<nb> public class MkdirOptionsTest { conf . set ( Constants . USER_FILE_UNDER_STORAGE_TYPE_DEFAULT , ufsType . toString ( ) ) ; ClientContext . reset ( conf ) ; - MkdirOptions options = MkdirOptions . defaults ( ) ; Assert . assertFalse ( options . isRecursive ( ) ) ;
SMALLFIX Fix style
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class ThemeWebActivity extends WPWebViewActivity { public static final String IS_CURRE...
Cleaning up imports
<nb> public class FileDataStorageManager implements DataStorageManager { OCFile file = null ; if ( c . moveToFirst ( ) ) { file = createFileInstance ( c ) ; - c . close ( ) ; } + c . close ( ) ; return file ; } <nb> public class FileDataStorageManager implements DataStorageManager { OCFile file = ...
moving cursor close to correct place
<nb> public class ImapResponseParser { response . mCompleted = true ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Added Javadoc comment
<nb> public class CqlClusterImpl implements com . netflix . astyanax . Cluster , SeedHostLis } public void shutdown ( ) { - cluster . shutdown ( ) ; + cluster . close ( ) ; } @ override <nb> public class CqlKeyspaceImpl implements Keyspace , SeedHostListener { @ override public void shutdown ( )...
fixing code after java driver upgrade
<nb> public class ChatRoomIrcImpl LOGGER . debug ( STRING0 + name + STRING1 ) ; } + SINGLE + SINGLE return this . parentProvider . getPersistentPresence ( ) . findOrCreateContactByID ( name ) ; }
Identified improvement for contact presence
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class KMeansGridTest extends TestUtil { try { fr = parse_test_file ( STRING0 ) ; fr . remove ( STRING1 ) . remove ( ) ; + DKV . put ( fr ) ; ...
update kmeans grid search junit
<nb> public class DummyCandidate { return index ; } + SINGLE + + public DummyCandidate ( ) { + this ( NUMBER0 ) ; + } + public DummyCandidate ( int index ) { this . index = index ; }
Added a dummy constructor to appease weird no no arg constructor error that showed up with Diablo JDK
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + public final class ModelFactory { private static final...
Add SuppressWarnings deprecation for spline
<nb> public class ManifestUpdateMojo extends AbstractAndroidMojo FileWriter writer = null ; try { + manifestFile . getParentFile ( ) . mkdirs ( ) ; writer = new FileWriter ( manifestFile , false ) ; if ( doc . getXmlEncoding ( ) != null && doc . getXmlVersion ( ) != null ) { <nb> public class ManifestUp...
create directory for updatedManifestFile
<nb> public class Utils { public static void printConfusionMatrix ( StringBuilder sb , long [ ] [ ] cm , String [ ] domain , boolean html ) { assert ( cm != null ) ; assert ( domain != null ) ; - assert ( domain . length + NUMBER0 == cm . length ) ; SINGLE for ( int i = NUMBER1 ; i < cm . length ; ++ i ) asse...
Remove invalid assertion
<nb> import NAMESPACE ; public class WorkerIdGeneratorEntry implements JournalEntry { private final long mNextWorkerId ; - public WorkerIdGeneratorEntry ( long nextContainerId ) { - mNextWorkerId = nextContainerId ; + public WorkerIdGeneratorEntry ( long nextWorkerId ) { + mNextWorkerId = nextWorkerId ; ...
Fix parameter name
<nb> class InsertRequest extends WriteRequest { this . document = document ; } - InsertRequest ( final com . mongodb . operation . InsertRequest < DBObject > insertRequest ) { - this ( insertRequest . getDocument ( ) ) ; - } - public DBObject getDocument ( ) { return document ; }
Removed unused constructor in InsertRequest
<nb> public class StreamsTest extends LoggedIn { @ test public void addingStreamRulesWorks ( ) { - running ( testServer ( NUMBER0 ) , new Runnable ( ) { + running ( testServer ( NUMBER1 ) , new Runnable ( ) { public void run ( ) { Result r = login ( testBrowser ( driver ) , serverStub , STRING0 , STRING1 ...
try another fake server port
<nb> public abstract class PsiFileImpl extends ElementBase implements PsiFileEx , PsiF if ( tree != null ) { myTreeElementPointer = tree ; tree . clearCaches ( ) ; - tree . putUserData ( STUB_TREE_IN_PARSED_TREE , null ) ; } synchronized ( myStubLock ) { myStub = null ; + if ( tree != null ) { + tre...
correctly re schedule file for indexing after PCE
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class HazelcastParametersRunnerFactory implements ParametersRunnerFactory {
Add details about parallel serial test execution logic
<nb> public class StoreFiles SINGLE for ( String fileName : fileNames ) { - new File ( fromDirectory , fileName ) . renameTo ( new File ( toDirectory , fileName ) ) ; + moveFile ( fileName , fromDirectory , toDirectory ) ; + moveFile ( fileName + STRING0 , fromDirectory , toDirectory ) ; } } + + pri...
Move id files as well as the store files themselves
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DefaultGrailsApplication implements GrailsApplication { throw new RuntimeException ( e ) ; } } - - public File loadGroovyFile ( String ...
removed unneeded extra method
<nb> public class ProtocolProviderServiceIrcImpl COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT protected void setCurrentRegistrationState ( RegistrationState regState )
fix cruisecontrol reported javadoc warning
<nb> public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2 < TestShel throw new RuntimeException ( STRING0 ) ; } - TestShellActivity activity = ( TestShellActivity ) getActivity ( ) ; + final TestShellActivity activity = ( TestShellActivity ) getActivity ( ) ; Log . v ( LOGTAG , STRING1 ...
call clearCache from UI thread
<nb> package NAMESPACE ; COMMENT public class ConfigurationException extends Exception { + private static final long serialVersionUID = - NUMBER0 ; + public ConfigurationException ( String message ) { super ( message ) ; <nb> package NAMESPACE ; COMMENT public class InvalidEndpointTypeException ex...
add generated serials to exception classes
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import s...
Removed obsolete imports
<nb> COMMENT COMMENT COMMENT - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ;
move test case to the same package as the rule it tests
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class Animator implements Cloneable { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT - public void setTarget ( Object target ) { + pub...
Clarify docs around weak references to animator targets
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import static NAMESPACE ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Add some javadoc to org sonar api conf PropertyDef
<nb> public class OpencrxCoreUtils extends SyncProviderUtilities { SINGLE } - public Metadata newMetadata ( ) { + public Metadata newMetadata ( long forTask ) { Metadata metadata = new Metadata ( ) ; metadata . setValue ( Metadata . KEY , OPENCRX_ACTIVITY_METADATA_KEY ) ; + metadata . setValue ( Metadat...
Changed OpencrxCoreUtils to fix metadata bug
<nb> public class HttpBinding extends AbstractActiveBinding < HttpBindingProvider > impl if ( needsUpdate ) { - logger . debug ( STRING0 , itemName ) ; + logger . debug ( STRING1 , itemName ) ; String response = HttpUtil . executeUrl ( STRING2 , url , headers , null , null , timeout ) ;
fixed logging message
<nb> public interface LdapUserDetails extends UserDetails { COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT Attributes getAttributes ( ) ;
Improved Javadoc comment
<nb> public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr } } - if ( compiledFilter == null || Boolean . TRUE . equals ( compiledFilter . evaluate ( record , null , context ) ) ) + if ( compiledFilter == null || evaluateRecord ( record ) ) return handleResult ( record , true ) ; ...
Fixed bug on LET when indexes were used
<nb> final class Manager extends Handler { if ( crouton . isShowing ( ) ) { ( ( ViewGroup ) crouton . getView ( ) . getParent ( ) ) . removeView ( crouton . getView ( ) ) ; } - + removeAllMessagesForCrouton ( crouton ) ; SINGLE <nb> public class CroutonDemo extends Activity implements OnClickListener ...
adds workaround for Context leak in Crouton
<nb> public class NearbyBeaconsFragment extends ListFragment float pwsTripTime = mUrlToPwsTripTime . get ( url ) / FLOAT0 ; String pwsTripTimeString = STRING0 + getString ( R . string . metadata_debug_pws_trip_time_prefix ) - + new DecimalFormat ( STRING1 ) . format ( pwsTripTime ) + STRING2 + url ; + + new D...
android Remove unhelpful url from debug display
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public abstract class InplaceIntroduceParameterUI extends IntroduceParameterSett if ( myOccurrences . length > NUMBER0 && ! myIsInvokedOnDeclarat...
update replace all
<nb> public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton { } public int compare ( VcsFileRevision o1 , VcsFileRevision o2 ) { - return o1 . getRevisionDate ( ) . compareTo ( o2 . getRevisionDate ( ) ) ; + return Comparing . compare ( o1 . getRevisionDate ( ) , o2 . getRevisionDate ( ) ) ;...
NPE when listing history for repository rott with some areas you have no rights for
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class XMPPServer { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public STUNService get...
Removing obsolete STUN module references
<nb> public class PlanJSONDumpGenerator { case SORTED_GROUP : locString = STRING0 ; break ; + case ALL_GROUP : + locString = STRING1 ; + break ; case HYBRIDHASH_BUILD_FIRST : locString = STRING2 + child1name + STRING3 ; break ;
Added ALL_GROUP strategy to PlanJSONDumpGenerator
<nb> public class ScriptOperator extends Operator < ScriptDesc > implements if ( bl != null && bl . length ( ) > NUMBER0 ) { String [ ] bls = bl . split ( STRING0 ) ; for ( String b : bls ) { - b . replaceAll ( STRING1 , STRING2 ) ; blackListedConfEntries . add ( b ) ; } }
ScriptOperator replaceAll uses unescaped dot and result is not assigned Alexander Pivovarov via Gunther Hagleitner
<nb> public class TypeMap { STRING0 , STRING1 , STRING2 , + STRING3 , STRING4 , STRING5 , STRING6 ,
Missed required type id for a junit
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT public class AddShowTask extends AsyncTask < Void , Integer , Void > { private static final int ADD_ALREADYEXISTS = NUMBER0 ;
Add description of AddTask
<nb> public class TestWatcherTest { } } ; + @ suppresswarnings ( STRING0 ) @ test public void succeeds ( ) { throw new AssumptionViolatedException ( STRING1 ) ; <nb> public class TestWatcherTest { } } ; + @ suppresswarnings ( STRING0 ) @ test public void fails ( ) { throw new AssumptionVio...
Ignore deprecation warnings for AssumptionViolatedException
<nb> package NAMESPACE ; public class Constants { - public static final String MOCK_FILE_NAME_KEY = STRING0 ; public static final String BUNDLE_URL = STRING1 ; public static final String WEEX_SAMPLES_KEY = STRING2 ; public static final String WEEX_TPL_KEY = STRING3 ; - public static final String ASSETS_...
android update Constants java
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + public class ErrorMessage { private final int code ; private final String message ; <nb> public class ErrorMessage { this ( code , message , null ) ; } - public ErrorMessage ( int code , String message , String details ) { ...
Add facility to deserialize an instance of ErrorMessage from JSON
<nb> public final class AuthTokenImpl implements AuthToken , Serializable { } public boolean isAnonymous ( ) { - return username != null ; + return username == null ; } }
Fixed lame bug
<nb> public class SimpleQueueServiceSample { SINGLE System . out . println ( STRING0 ) ; - String messageRecieptHandle = messages . get ( NUMBER0 ) . getReceiptHandle ( ) ; - sqs . deleteMessage ( new DeleteMessageRequest ( myQueueUrl , messageRecieptHandle ) ) ; + String messageReceiptHandle = messages . g...
Fix typo in variable name
<nb> public class AprEndpoint extends AbstractEndpoint < Long > { } SINGLE while ( pollerRunning && connectionCount . get ( ) < NUMBER0 && - addList . size ( ) < NUMBER0 ) { + addList . size ( ) < NUMBER0 && closeList . size ( ) < NUMBER0 ) { SINGLE try { if ( getSoTimeout ( ) > NUMBER1 && pollerRunning...
If there are sockets to close close them rather than waiting for the
<nb> public class GraphTableCell { public String getText ( ) { return text ; } + + public ReadOnlyList < Ref > getRefsToThisCommit ( ) { + return refsToThisCommit ; + } }
add method GraphTableCell getRefsToThisCommit
<nb> public abstract class AbstractDebugger implements SmackDebugger { this . reader = new ObservableReader ( reader ) ; readerListener = new ReaderListener ( ) { public void read ( String str ) { - log ( STRING0 + connection . getConnectionCounter ( ) + STRING1 + str ) ; + log ( STRING2 + connection . getCon...
Remove extra whitespace in AbstractDebugger
<nb> public abstract class BaseMultiLayerNetwork implements Serializable , Persistable dimensionCheck ( ) ; applyTransforms ( ) ; + synchonrizeRng ( ) ; initCalled = true ; }
auto synchronize rng
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; public class RuleIndexMediumTest { @ classrule - public static ServerTester tester = new ServerTester ( ) ...
fix quality flaw
<nb> public final class NodeFactoryImpl extends NodeFactory return NodeNames . ANALYZER_ELEMENTS_NAME ; case NodeTypes . TOKENIZER_NODE : return NodeNames . TOKENIZER_NODE_NAME ; - case NodeTypes . TOKEN_FILTER_NODE : - return NodeNames . TOKEN_FILTER_NODE_NAME ; case NodeTypes . TOKEN_FILTER_LIST : retur...
remove stale references
<nb> final class SettingsTreeView extends JComponent implements Disposable , OptionsEd myBuilder = new MyBuilder ( new SimpleTreeStructure . Impl ( myRoot ) ) ; myBuilder . setFilteringMerge ( NUMBER0 , null ) ; + setMinimumSize ( new Dimension ( NUMBER1 , NUMBER2 ) ) ; Disposer . register ( this , myBuilder ...
Set minimum size for the Settings tree
<nb> public class RPubsUploadDialog extends ModalDialogBase SINGLE htmlGenerator . generateRPubsHtml ( - title , commentTextArea_ . getText ( ) . trim ( ) , new CommandWithArg < String > ( ) { + title , getCommentText ( ) , new CommandWithArg < String > ( ) { @ override public void execute ( String html...
prevent null ref in rpubs upload
<nb> class ConfigThread extends Thread { private Configuration config ; private boolean done = false ; - private JLanguageTool langTool ; private ConfigurationDialog cfgDialog ; ConfigThread ( final Language docLanguage , final Configuration config ) {
deleting unused field
<nb> public class HazelSessionFacade extends StandardSessionFacade { public HazelSessionFacade ( HazelSession session ) { super ( session ) ; + this . session = session ; } public List < HazelAttribute > getTouchedAttributes ( long requestId ) {
set overwritten private session at constructer
<nb> import NAMESPACE ; COMMENT public class GradleConflictControlFactory { - @ notnull private final GradleLibraryDependencyConflictControlFactory myLibraryFactory ; + @ notnull private final GradleLibraryDependencyConflictControlFactory myLibraryDependencyFactory ; + @ notnull private final GradleCommonDe...
Gradle support cannot update IDEA projects once one of build gradle files changes
<nb> class RelationPlanner Analysis . JoinInPredicates joinInPredicates = analysis . getJoinInPredicates ( node ) ; SINGLE - if ( joinInPredicates != null ) { - leftPlanBuilder = appendSemiJoins ( leftPlanBuilder , joinInPredicates . getLeftInPredicates ( ) ) ; - rightPlanBuilder = appendSemiJoins ( rightPl...
Remove unneeded null check from RelationPlanner visitJoin
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class CardThumbnail extends BaseCard { public void setSendBroadcastAfterAttach ( boolean sendBroadcastAfterAttach ) { this . sendBroadcastAfterAttach = sendBroadcastAfterAttach ; } + ...
Added the method getCardThumbnailView in CardThumbnail
<nb> public class SCRAMSHA1Mechanism extends SASLMechanism { SINGLE serverKey = hmac ( saltedPassword , SERVER_KEY_BYTES ) ; - SINGLE - serverSignature = hmac ( serverKey , authMessage ) ; - SINGLE clientKey = hmac ( saltedPassword , CLIENT_KEY_BYTES ) ; <nb> public class SCRAMSHA1Mechanism extends ...
Always calculate serverSignature
<nb> public class PeerGroupTest extends TestWithPeerGroup { } ) ; SINGLE inbound ( p3 , inv ) ; + Threading . waitForUserCode ( ) ; assertEquals ( tx , event [ NUMBER0 ] ) ; assertEquals ( NUMBER1 , tx . getConfidence ( ) . numBroadcastPeers ( ) ) ; assertTrue ( tx . getConfidence ( ) . wasBroadcastBy ( p...
Fix a race
<nb> public abstract class PowerOfTwoQuantizedTable < VALUE > implements Table < VALUE > @ override public String toString ( ) { - return format ( STRING0 , getClass ( ) . getSimpleName ( ) , + return format ( STRING1 , getClass ( ) . getSimpleName ( ) , capacity , size , size / ( ( double ) capacity ) ) ; ...
Fixed toString format
<nb> COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
library Small tweak on copyright header for clarity
<nb> public final class TachyonBlockStoreTest { Mockito . verify ( mBlockStoreContext ) . acquireMasterClient ( ) ; Mockito . verify ( mBlockStoreContext ) . releaseMasterClient ( mMasterClient ) ; } - } + }
Fix checkstyle issue
<nb> public class SqlSessionFactoryBuilder { } public SqlSessionFactory build ( Reader reader , String environment , Properties props ) { - return build ( reader , environment , props , null ) ; + return build ( reader , environment , props , new Configuration ( ) ) ; } public SqlSessionFactory build ( ...
update also the constructor with Reader
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; + im...
used POJO json in moco for dynamic request matcher factory
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT COMMENT - public class ChartAxis implements IChartAxis { + public class ChartAxis implements IChartAxis , Serializable { + + private static final long serialVersionUID = NUMBER0 ; + private AxisAlignment alignme...
Make ChartAxis serializable
<nb> public class GenericAStar { continue ; double remaining_w = computeRemainingWeight ( heuristic , v , target , options ) ; - if ( remaining_w < NUMBER0 ) { + if ( remaining_w < NUMBER0 || Double . isInfinite ( remaining_w ) ) { continue ; } double estimate = v . getWeight ( ) + remaining_w ;
ignore edge traverse result when heuristic is infinite
<nb> public class Configuration { return MoreObjects . toStringHelper ( this ) . add ( STRING0 , server ) . add ( STRING1 , logging ) + . add ( STRING2 , metrics ) . toString ( ) ; } }
Add metrics to Configuration toString
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
removed unused import
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; <nb> public class ListingWs implements WebService { . setHandler ( new ...
Remove debug log
<nb> public final class BatteryStatsImpl extends BatteryStats { for ( endIndex = startIndex ; endIndex < len && wlBuffer [ endIndex ] != STRING0 && wlBuffer [ endIndex ] != STRING1 ; endIndex ++ ) ; - endIndex ++ ; SINGLE + SINGLE + if ( endIndex < len ) { + endIndex ++ ; SINGLE + } String [ ] nameS...
Fix a crash in BatteryStatsImpl due to a previous fix
<nb> public class HtmlCompletionData extends XmlCompletionData { return true ; } + protected void setCaseInsensitive ( final boolean caseInsensitive ) { + myCaseInsensitive = caseInsensitive ; + } + protected ElementFilter createTagCompletionFilter ( ) { return new ElementFilter ( ) { public boolean...
supporting el css js completion in jsp
<nb> public class PaymentManager { flush ( ) ; } - @ suppresswarnings ( - STRING0 ) + @ suppresswarnings ( STRING0 ) public UserCashOut performCashOut ( double amount , Player player ) throws AmountMoreThanBalanceException { Session ses = HibernateSessionFactory . currentSession ( ) ;
Fixed test data
<nb> public class CallParticipantPanel Component fullScreenButtonBar = createButtonBar ( true , buttons ) ; - fullScreenButtonBar . setPreferredSize ( new Dimension ( NUMBER0 , NUMBER1 ) ) ; - return fullScreenButtonBar ; }
Reduce full screen button panel size
<nb> public final class LiteBlockingWaitStrategy implements WaitStrategy } } } + + @ override + public String toString ( ) + { + return STRING0 + + STRING1 + processorNotifyCondition + + STRING2 ; + } } <nb> public class TimeoutBlockingWaitStrategy implements WaitStrategy } } + @ overr...
Add toString methods on more blocking wait strategies
<nb> public class RotateAnimation3D extends Animation3D { mTransformable3D . setOrientation ( Quaternion . slerp ( ( float ) mInterpolatedTime , mQuatFrom , mQuat , true ) ) ; } } - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - public RotateAnimation3D ( Number3D fromRotate , ...
Removed deprecated constructor
<nb> public class InfoAndProgressPanel extends JPanel implements CustomStatusBarWidge @ override public RelativePoint recalculateLocation ( Balloon object ) { Component c = getAnchor ( pane ) ; - return new RelativePoint ( c , new Point ( c . getWidth ( ) - NUMBER0 , c . getHeight ( ) - NUMBER1 ) ) ; + return...
tweak bound a bit for transparent progress indicator
<nb> public class DebuggerExpressionComboBox extends DebuggerEditorImpl { } public void setItem ( Object item ) { - final Object currentItem = getItem ( ) ; - if ( currentItem == null || ! currentItem . equals ( item ) ) { - super . setItem ( createDocument ( ( TextWithImports ) item ) ) ; - } + super ....
correctly set context in debugger combos
<nb> public class MultiLayerNetwork implements Serializable , Classifier , Layer { ret . update ( this ) ; } catch ( Exception e ) { - throw new IllegalStateException ( STRING0 ) ; + throw new IllegalStateException ( STRING1 , e ) ; } return ret ; } <nb> public class MultiLayerNetwork implements Seria...
Fix network cloning no input
<nb> public class SQLiteQueryBuilder String userColumn = projectionIn [ i ] ; String column = mProjectionMap . get ( userColumn ) ; - if ( column == null ) { - throw new IllegalArgumentException ( - STRING0 + projectionIn [ i ] ) ; - } else { + if ( column != null ) { projection [ i ] = column ; + c...
Allow caller supplied column aliases in queries even when a projection map is used
<nb> public class UndertowInputStream extends InputStream { @ override public int read ( ) throws IOException { - byte [ ] data = new byte [ NUMBER0 ] ; - read ( data ) ; - return data [ NUMBER1 ] ; + byte [ ] b = new byte [ NUMBER0 ] ; + int read = read ( b ) ; + if ( read == - NUMBER0 ) { + return...
Fix input stream bug
<nb> public class PaymentMethodJson { } @ override public List < PaymentMethodKVInfo > getProperties ( ) { - List < PaymentMethodKVInfo > result = new LinkedList < PaymentMethodPlugin . PaymentMethodKVInfo > ( ) ; - for ( PaymentMethodProperties cur : pluginInfo . getProperties ( ) ) { - result . add ( new ...
Fix regression issue in PaymentMethod tests
<nb> public class MaxCulBinding extends AbstractActiveBinding < MaxCulBindingProvider > MaxCulMsgType msgType = BaseMsg . getMsgType ( data ) ; if ( pairMode && msgType == MaxCulMsgType . PAIR_PING ) { + logger . debug ( STRING0 ) ; COMMENT PairPingMsg pkt = new PairPingMsg ( data ) ; COMMENT
added extra log message
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + @ entity @ table ( name = STRING0 ) @ suppresswarnings ( STRING1 ) <nb> public class ApplicationSettings extends AbstractModel { @ column ( length = NUMBER0 ) private String announcement ; + @ jsonignore pub...
ignore utility method for de serialization
<nb> public final class DrmInitData implements Comparator < SchemeData > , Parcelable { SINGLE private int hashCode ; + COMMENT + COMMENT + COMMENT public DrmInitData ( List < SchemeData > schemeDatas ) { this ( false , schemeDatas . toArray ( new SchemeData [ schemeDatas . size ( ) ] ) ) ; } + CO...
Add some missing Javadoc from the drm package
<nb> public class TransactionalGraphTestSuite extends TestSuite { assertEquals ( STRING0 , v1 . getProperty ( STRING1 ) ) ; } + graph . shutdown ( ) ; } public void testBulkTransactionsOnEdges ( ) {
Add missing graph shutdown in txn graph test
<nb> public class ActivitiesWebServiceMediumTest { SINGLE WsTester . TestRequest request = tester . wsTester ( ) . newGetRequest ( ActivitiesWebService . API_ENDPOINT , SearchAction . SEARCH_ACTION ) ; WsTester . Result result = request . execute ( ) ; - System . out . println ( STRING0 + result . outputAsStrin...
fix quality flaw output
<nb> public class HiveClient break ; case DOUBLE : if ( value . isEmpty ( ) ) { - builder . put ( columnHandle , NUMBER0 L ) ; + builder . put ( columnHandle , FLOAT0 ) ; } else { builder . put ( columnHandle , parseDouble ( value ) ) ;
Fix HiveClient representation of Double in Partition keys
<nb> public final class JdkFutureAdapters { return ; } + SINGLE adapterExecutor . execute ( new Runnable ( ) { @ override public void run ( ) { <nb> public final class JdkFutureAdapters { COMMENT COMMENT getUninterruptibly ( delegate ) ; - } catch ( Error e ) { - throw e ; } catch ( Throwabl...
remove special Error handling from JdkFutureAdapters
<nb> public abstract class GrTypeDefinitionImpl extends GroovyBaseElementImpl < GrTypeD final GroovyFile groovyFile = ( GroovyFile ) file ; if ( groovyFile . isScript ( ) ) return false ; final GrTypeDefinition [ ] typeDefinitions = groovyFile . getTypeDefinitions ( ) ; - if ( typeDefinitions . length > NUMBER0...
When renaming Groovy class also rename the file if their names are equal
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT COMMENT <nb> public final class Globals { COMMENT public static final String JASPER_XML_BLOCK_EXTERNAL_INIT_PARAM = STRING0 ; - - @ deprecated SINGLE - public static final boolean IS_ORACLE_JVM = JreVendor . IS_ORACLE_...
Remove deprecated code