diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class Snackbar extends SnackbarLayout { @ override public void onDismiss ( View view , Object token ) { if ( view != null ) { - finish ( ) ; + dismiss ( false ) ; } } <nb> public class Snackbar extends SnackbarLayout { } public void dismiss ( ) { + dismiss ( mAnimated ) ; + } +...
Fixed issue where onDismiss did not get called if Snackbar is swiped
<nb> public abstract class AggregateFcts } ; COMMENT - COMMENT + COMMENT COMMENT public static final AggregateFunction sumFunctionForByte = new NativeAggregateFunction ( STRING0 , ByteType . instance , ByteType . instance ) <nb> public abstract class AggregateFcts } ; COMMENT - COMMENT + COM...
Fix javadoc in AggregateFcts
<nb> public abstract class LiquidDictionary liquids . put ( name , liquid ) ; return liquid ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static LiquidStack getLiquid ( String name ) + { + return liquids . get ( name ) ; + } ...
Added simple lookup function to LiquidDictionary
<nb> public class DefaultUrlMappingEvaluator implements UrlMappingEvaluator , ClassLoa Object [ ] args = ( Object [ ] ) arg ; final boolean isResponseCode = isResponseCode ( methodName ) ; if ( methodName . startsWith ( SLASH ) || isResponseCode ) { + SINGLE this . parameterValues = new HashMap ( ) ; try { ...
p Removing the duplicate line subversion merge does sometimes do this kind of thing
<nb> public class KMeans2 extends ColumnsJob { @ api ( help = STRING0 , filter = Default . class , json = true ) public long seed = new Random ( ) . nextLong ( ) ; - @ api ( help = STRING1 , filter = Default . class ) + @ api ( help = STRING1 , filter = Default . class , json = true ) public boolean drop_na...
Throw IllegalArgumentException if all columns are ignored
<nb> public class AssetDeserializer { ac . setType ( field . type ) ; for ( FieldNode fieldNode : field ) { - ac . put ( field . name , deserializeField ( fieldNode ) ) ; + ac . put ( fieldNode . name , deserializeField ( fieldNode ) ) ; } return ac ;
Fixed incorrect field names for objects
<nb> public class ObjectDecoderInputStream extends InputStream implements ObjectInput { private final DataInputStream in ; - private final ClassLoader classLoader ; private final int maxObjectSize ; + private final ClassResolver classResolver ; COMMENT COMMENT <nb> public class ObjectDecoderInputStr...
sharing classResolver cache across all CompactObjectInputStream s in the same way as we did in ObjectDecoder
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - interface ScrollDirectionListener { + public interface ScrollDirectionListener { void onScrollDown ( ) ; void onScrollUp ( ) ;
Make ScrollDirectionListener public
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MultiMap < K , V > extends LinkedHashMap < K , List < V > > { } elementsForKey . add ( value ) ; } + + public List < Pair < K , V > > getPairs ( ) { + List < Pair < K ...
add useful method to get a b pairs out
<nb> public class JetTestUtils { String expectedText = StringUtil . convertLineSeparators ( expected . trim ( ) ) ; String actualText = StringUtil . convertLineSeparators ( actual . trim ( ) ) ; if ( ! Comparing . equal ( expectedText , actualText ) ) { - throw new FileComparisonFailure ( STRING0 + expectedFile...
Corrected test error message
<nb> import NAMESPACE ; COMMENT COMMENT public class SearchingClassLoader extends ClassLoader { + + SINGLE + private final ClassLoader nextToSearch ; public SearchingClassLoader ( ClassLoader parent , ClassLoader nextToSearch ) { <nb> public interface MockMaker { TypeMockability isTypeMockable ( C...
Added some TODOs
<nb> public class PreconditionMessage { public static final String ERR_SEEK_PAST_END_OF_BLOCK = STRING0 ; public static final String ERR_SEEK_PAST_END_OF_FILE = STRING1 ; public static final String ERR_WRITE_BUFFER_NULL = STRING2 ; + public static final String INODE_TREE_UNINITIALIZED_IS_ROOT_ID = + STRING3 ;...
SMALLFIX Move precondition message into a PreconditionMessage constant
<nb> public class JavaToIOSMethodTranslator extends TreeVisitor { ITypeBinding nsObjectType = Types . resolveIOSType ( STRING0 ) ; IOSMethodBinding binding = IOSMethodBinding . newMethod ( - STRING1 , Modifier . PUBLIC , idType , type ) ; + STRING1 , Modifier . PUBLIC | BindingUtil . ACC_SYNTHETIC , idType , ...
Cleanup don t automatically assign the synthetic modifier for a new IOSMethodBinding
<nb> import NAMESPACE ; @ builder @ slf4j public class Features { + SINGLE public final static String LABEL = STRING0 ; public final static String LABEL_FEATURE_NAME = STRING1 ; public final static String MISS = STRING2 ; <nb> public class Features { static Pair < String , String > getFamily ( String ...
allow lower case since spark hql select will generate lower case label
<nb> public class HttpSessionContextIntegrationFilter implements InitializingBean , Fi SINGLE int contextWhenChainProceeded = SecurityContextHolder . getContext ( ) . hashCode ( ) ; - boolean filterApplied = true ; request . setAttribute ( FILTER_APPLIED , Boolean . TRUE ) ; <nb> public class HttpSessio...
Removed filterApplied boolean
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public class WPComMagicLinkFragment extends Fragment { public interface OnMagicLinkFragmentInteraction { <nb> public class WPComMagicLinkFragment extends Fragment { private static final String ARG_EMAIL_ADDRESS = STRI...
Making textview instead of button
<nb> public class FileInStream extends InputStream implements BoundedStream , Seekable COMMENT private long getCurrentBlockSize ( ) { SINGLE - if ( mFileLength < mBlockSize ) { + if ( mFileLength <= mBlockSize ) { return mFileLength ; } SINGLE - if ( mFileLength - mPos < mBlockSize ) { + if ( mFileL...
Fix edge cases
<nb> public class GBMTest extends TestUtil { GBMModel . GBMParameters parms = new GBMModel . GBMParameters ( ) ; if ( idx < NUMBER0 ) { parms . _convert_to_enum = false ; idx = ~ idx ; } else { parms . _convert_to_enum = true ; } parms . _train = fr . _key ; - parms . _valid = validation ? new Frame ( fr ) . _k...
turn on test
<nb> public final class RecommenderJob extends AbstractJob { addOption ( STRING0 , STRING1 , STRING2 , null ) ; addOption ( STRING3 , STRING4 , STRING5 , null ) ; addOption ( STRING6 , STRING7 , STRING8 - + STRING9 , null ) ; + + STRING10 , null ) ; addOption ( STRING11 , STRING12 , STRING13 , Boolean . FAL...
missing whitespace in Javadoc of RecommenderJob
<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 GroovyInsertHandler implements Insert...
insert after method name in return switch throw etc
<nb> import NAMESPACE ; COMMENT public class SoundLevelChangeEvent extends EventObject { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final int MAX_LEVEL = NUMBER0 ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final int MIN_LEVEL = NUMBER1 ; ...
Adds MIN and MAX values for sound levels
<nb> final class PutDataPointRpc implements TelnetRpc , HttpRpc { if ( metric . length ( ) <= NUMBER0 ) { throw new IllegalArgumentException ( STRING0 ) ; } - final long timestamp = Tags . parseLong ( words [ NUMBER1 ] ) ; + final long timestamp ; + if ( words [ NUMBER1 ] . contains ( STRING1 ) ) { + time...
Modify PutDataPointRpc java to accept millisecond timestamps with a period as
<nb> public class SelectBase extends AbstractBaseTest { public void Case ( ) { NumberExpression < Float > numExpression = employee . salary . floatValue ( ) . divide ( employee2 . salary . floatValue ( ) ) . multiply ( NUMBER0 ) ; NumberExpression < Float > numExpression2 = employee . id . when ( NUMBER1 ) . then...
Add assertion to sql case test
<nb> public enum ProposerState instance . phase1Timeout ( ballot ) ; context . getLogger ( ProposerState . class ) . debug ( - STRING0 + instanceId + STRING1 + instance . ballot + STRING0 + instance + STRING1 + instance . ballot + STRING2 ) ; for ( URI acceptor : instance . getAcceptors ( ) ) { <nb> p...
Sends booked instance payload for repropose after rejectPrepare
<nb> public class CallManager createCall ( stringContact ) ; } } + else if ( selectedPanel != null + && selectedPanel instanceof DialPanel ) + { + String stringContact = + phoneNumberCombo . getEditor ( ) . getItem ( ) . toString ( ) ; + createCall ( stringContact ) ; + } } else if ( buttonName ...
allow calling from dialpad
<nb> public class AsmClassGenerator extends ClassGenerator { } private static String getStaticFieldName ( ClassNode type ) { - if ( type . isArray ( ) ) return getStaticFieldName ( type . getComponentType ( ) ) ; - String name = STRING0 + BytecodeHelper . getClassInternalName ( type ) . replace ( STRING1 , ST...
reverting a faulty commit to ACG to avoid ClassCastExceptions
<nb> public class ReaderActivity extends WPActionBarActivity } @ override - protected void onStart ( ) { - super . onStart ( ) ; - - SINGLE - SINGLE + protected void onPostResume ( ) { + super . onPostResume ( ) ; + SINGLE if ( ! mHasPerformedPurge ) { mHasPerformedPurge = true ; ReaderDatab...
Moved initial update from ReaderActivity onResume to ReaderActivity onPostResume
<nb> public class OObjectSerializerHelper { final String vFieldName = fieldVersions . get ( pojoClass ) ; boolean versionConfigured = false ; if ( vFieldName != null ) { + versionConfigured = true ; Object ver = getFieldValue ( iPojo , vFieldName ) ; if ( ver != null ) { - versionConfigured = true ; SIN...
Fixed issue reported by Gernot Bauer about version in TX
<nb> public interface ReferencePublisher < E > void put ( E event ) ; COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ReferenceRingBuffer < E > extends RingBuffer < E > implements ReferencePu } COMMENT - COMMENT + COMMENT COMMENT @ override ...
Add some additional Javadoc comments
<nb> public final class MaterialContext { material . setBoolean ( STRING0 , Boolean . TRUE ) ; SINGLE - material . setBoolean ( STRING1 , diffuseShader == DiffuseShader . MINNAERT ) ; if ( ! transparent ) { diffuseColor . a = NUMBER0 ; } material . setColor ( STRING2 , diffuseColor ) ; - material . ...
fixed a crash that occured after changes in Materials
<nb> public class FolderList extends K9ListActivity public void onItemClick ( AdapterView parent , View v , int itemPosition , long id ) { MessageList . actionHandleFolder ( FolderList . this , mAccount , ( ( FolderInfoHolder ) mAdapter . getItem ( id ) ) . name , false ) ; - SINGLE } } ) ; registerForCon...
Delete obsolete commented out code
<nb> public class EditLog { UnderFileSystem ufs = UnderFileSystem . get ( path ) ; DataInputStream is = new DataInputStream ( ufs . open ( path ) ) ; - JsonParser parser = JsonObject . createObjectMapper ( ) . getJsonFactory ( ) . createJsonParser ( is ) ; + JsonParser parser = JsonObject . createObjectMapper...
remove deprecated warnings
<nb> package NAMESPACE ; - import static NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - public class MultiBufferBatchEventProcessor < ...
Remove unused imports
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class Action extends RuleElement { public Action ( OutputModelFactory factory , GrammarAST ast ) { super ( factory , ast ) ; RuleFunction rf = factory . getCurrentRuleFunction ...
Fix NPE when creating Action elements within an extension
<nb> public abstract class AbstractTracingAwareExecutorService implements TracingAwar return ( TraceSessionFutureTask < T > ) callable ; return new TraceSessionFutureTask < T > ( callable , null ) ; } - if ( callable instanceof java . util . concurrent . FutureTask ) + if ( callable instanceof FutureTask ) ...
fix cast guard to be of the c FutureTask type
<nb> public class SocketPacketWriteHandler implements ChannelHandler { public void process ( Packet packet ) throws UnauthorizedException , PacketException { try { JID recipient = packet . getTo ( ) ; - Session senderSession = sessionManager . getSession ( packet . getFrom ( ) ) ; if ( recipient == null || ( ...
Fixed error that prevented to send packets with empty FROM attribute
<nb> public interface BukkitScheduler { COMMENT public void cancelAllTasks ( ) ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public boolean isCurrentlyRunning ( int taskId ) ; + }
add function isCurrentlyRunning int taskId
<nb> public abstract class Visibility extends Transition { if ( mIsForcedVisibility ) { mView . setTransitionAlpha ( NUMBER0 ) ; } else { - mView . setTransitionVisibility ( mFinalVisibility ) ; + mView . setVisibility ( mFinalVisibility ) ; } } }
Have the final setVisibility cause a requestLayout
<nb> public class TestDateTimeFormatterBuilder extends TestCase { assertEquals ( dt , f . parseDateTime ( STRING0 ) ) ; } + public void test_printParseZoneBahiaBanderas ( ) { + DateTimeFormatterBuilder bld = new DateTimeFormatterBuilder ( ) + . appendPattern ( STRING1 ) . appendTimeZoneId ( ) ; + DateTime...
Add test case to investigate issue
<nb> public class ZygoteInit { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - private static void warmUpJcaProviders ( ) { - long startTime = SystemClock . uptimeMillis ( ) ; - Trace . traceBegin ( - Trace . TRACE_TAG_DALVIK , STRING0 ) ; - for ( Provider p : Security . getProvi...
remove extra copy of method DO NOT MERGE ANYWHERE
<nb> public class SubsamplingScaleImageView extends View { SubsamplingScaleImageView view = viewRef . get ( ) ; ImageRegionDecoder decoder = decoderRef . get ( ) ; Tile tile = tileRef . get ( ) ; - if ( decoder != null && tile != null && view != null && decoder . isReady ( ) ) { + if ( decoder != null && tile...
Skip loading of tiles that have gone off screen while queued for loading
<nb> COMMENT COMMENT - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Moved a test
<nb> public class Measurement int count = args . getInt ( STRING0 , NUMBER0 ) ; MeasureHopper hopper = new MeasureHopper ( ) ; - hopper . forDesktop ( ) . setEnableInstructions ( false ) ; + hopper . forDesktop ( ) ; if ( ! hopper . load ( graphLocation ) ) throw new IllegalStateException ( STRING1 + grap...
include instructions for measurement
<nb> public class Post implements Serializable { } public String getQuickPostType ( ) { - return quickPostType ; + return StringUtils . notNullStr ( quickPostType ) ; } COMMENT <nb> public class PostUploadService extends Service { } XMLRPCClientInterface client = XMLRPCFactory . instantiate ( blog...
Added notNullStr wrapper to getQuickPostType to be consistent with other string getters in the Post model
<nb> public class FreeTypeFontGenerator implements Disposable { heightsCount -- ; heights [ best ] = heights [ heightsCount ] ; + char tmpChar = characters [ best ] ; characters [ best ] = characters [ heightsCount ] ; + characters [ heightsCount ] = tmpChar ; } if ( stroker != null && ! incremental )...
Fix broken kerning for freetype fonts
<nb> package 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 ; public fi...
Avoid ANFE when nothing can handle a SEND intent like on an emulator
<nb> public class CustomTemplateCallback { private static List < TemplateImpl > getMatchingTemplates ( @ notnull String templateKey ) { TemplateSettings settings = TemplateSettings . getInstance ( ) ; - return settings . collectMatchingCandidates ( templateKey , settings . getDefaultShortcutChar ( ) , false ) ;...
zen coding can use all live templates indepentent of shortcut
<nb> public class MapConfig { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class DefaultRecordStore extends AbstractEvictableRecordStore implements record = nullIfExpired ( record , false ) ; if ( record != null ) { addMapEntrySet ( record . getKey ( ) , record...
add missing access stats call for the method getAll
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class NameValidator implements Validator { @ override public void validate ( FacesContext context , UIComponent component , Object value ) throws ValidatorException { System ....
Throwing appropriate ValidatorException
<nb> public class LocalIndexesFragment extends OsmandExpandableListFragment { for ( LocalIndexInfo info : getDownloadActivity ( ) . getLocalIndexInfos ( ) ) { listAdapter . addLocalIndexInfo ( info ) ; } - listAdapter . notifyDataSetChanged ( ) ; + listAdapter . sortData ( ) ; } ActionBar actionBar = getD...
Updated sort for local index
<nb> public class DroidGap extends PhonegapActivity { SINGLE SINGLE boolean reqOk = false ; - if ( url . indexOf ( this . ctx . baseUrl ) == NUMBER0 || isUrlWhiteListed ( url ) ) { + if ( url . startsWith ( STRING0 ) || url . indexOf ( this . ctx . baseUrl ) == NUMBER0 || isUrlWhiteListed ( url ) ) { reqOk ...
JSPrompt Security check should whitelist all file URIs too
<nb> public final class BlockAssertions } int [ ] ids = new int [ length ] ; for ( int i = NUMBER0 ; i < length ; i ++ ) { - ids [ i ] = length % dictionarySize ; + ids [ i ] = i % dictionarySize ; } return new DictionaryBlock ( length , builder . build ( ) , wrappedIntArray ( ids ) ) ; } <nb> public ...
Fix dictionary block creation in BlockAssertions
<nb> public abstract class CcBinary implements RuleConfiguredTargetFactory { CppLinkAction . symbolCountsFileName ( binaryPath ) ) ) ; } + if ( isLinkShared ( ruleContext ) ) { + linkActionBuilder . setLibraryIdentifier ( CcLinkingOutputs . libraryIdentifierOf ( binary ) ) ; + } + SINGLE SINGLE CppL...
Set the LibraryIdentifier before building the LTO Indexing link action
<nb> class EditVarConstraintsDialog extends DialogWrapper { } protected JComponent createCenterPanel ( ) { - JPanel panel = new JPanel ( new BorderLayout ( ) ) ; + final JPanel panel = new JPanel ( new BorderLayout ( ) ) ; panel . add ( editor . getComponent ( ) , BorderLayout . CENTER ) ; if ( ! title . ...
use a label instead of a text field
<nb> public abstract class Mustache { } String location = name + STRING0 + sb ; if ( ! name . startsWith ( STRING1 ) && missing . put ( location , true ) == null ) { - logger . warning ( STRING2 + location ) ; + final Object parent = s . getParent ( ) ; + logger . warning ( STRING2 + location + ( parent == ...
now show the parent as well when it encounters a missing value
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ReaderComment { public boolean hasAuthorUrl ( ) { return ! TextU...
Tweaked performance of comment display by skipping unnecessary HTML conversion
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TableStructure < ModelType extends Model > { mColumnDefinitions . add ( foreignKeyQueryBuilder ) ; } + } else if ( ! mPrimaryKeys . isEmpty ( ) || ! mForeig...
added log error for model views with primary keys or foreign keys
<nb> public class MigrationPlanAligner { private boolean isSamePlan ( PlanPhaseSpecifier plan0 , PlanPhaseSpecifier plan1 ) { if ( plan0 . getPriceListName ( ) . equals ( plan1 . getPriceListName ( ) ) && - plan0 . getProductName ( ) . equals ( plan1 . getProductName ( ) ) ) { + plan0 . getProductName ( ) . e...
Fix migration case when we move from XX annual
<nb> public class SpellCheckerSession { } mSpellCheckerInfo = info ; mSpellCheckerSessionListenerImpl = new SpellCheckerSessionListenerImpl ( mHandler ) ; - mInternalListener = new InternalListener ( ) ; + mInternalListener = new InternalListener ( mSpellCheckerSessionListenerImpl ) ; mTextServicesManager =...
Fix a warning from the binder
<nb> public class RenderTank extends RenderMultiTile < TileTank > { parts . add ( new RenderPartElement < > ( ( tile , part ) - > { part . sizeY = ( ( double ) tile . tank . getFluidAmount ( ) / tile . tank . getCapacity ( ) ) * FLOAT0 / FLOAT0 ; if ( part . sizeY != NUMBER0 ) { - part . sizeX = part . sizeZ = ...
Fix size of fluid in tank
<nb> public class InputMethodService extends AbstractInputMethodService { COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed method description for onKeyDown int keyCode KeyEvent event
<nb> public class MetadataStoreTest extends TestCase { int i = ( int ) ( Math . random ( ) * VoldemortState . values ( ) . length ) ; return ByteUtils . getBytes ( VoldemortState . values ( ) [ i ] . toString ( ) , STRING0 ) ; } else if ( MetadataStore . REBALANCING_STEAL_INFO . equals ( keyString ) ) { - int s...
Fixed the problem in Metadata store wherein we could have an empty rebalance partition info
<nb> public abstract class CommonClientConfigKey < T > implements IClientConfigKey < T > { public static final IClientConfigKey < String > RequestIdHeaderName = new CommonClientConfigKey < String > ( STRING0 ) { } ; - public static final IClientConfigKey < String > UseIPAddrForServer = new CommonClientConfigKey...
should have used boolean property
<nb> public class MapBasedTaskOutputCache implements TaskOutputCache { private final String description ; private final ConcurrentMap < String , byte [ ] > delegate ; - protected MapBasedTaskOutputCache ( String description , ConcurrentMap < String , byte [ ] > delegate ) { + public MapBasedTaskOutputCache ( ...
Make class public
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public class PasswordPolicyConfiguration { <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT public interface AccountStateHandler { COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT ...
Add since for new components
<nb> public abstract class ObjectCodec { protected ObjectCodec ( ) { } + SINGLE + @ override + public Version version ( ) { + return Version . unknownVersion ( ) ; + } + COMMENT COMMENT COMMENT
also provide default bogus impl of Versioned for ObjectCodec to avoid backwards incompatibility
<nb> import NAMESPACE ; public class EntityPassiveItem implements IPipedItem { - private static TreeMap < String , IPassiveItemContribution > contributions = new TreeMap < String , IPassiveItemContribution > ( ) ; + private TreeMap < String , IPassiveItemContribution > contributions = new TreeMap < String , I...
Remove static modifier from contributions inside EntityPassiveItem
<nb> public final class LocationRequest implements Parcelable { return mSmallestDisplacement ; } - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public void setWorkSource ( WorkSource workSource ) { mWorkSource = workSource ; ...
Add comments to new hidden API in LocationRequest
<nb> public class Raptor implements PathService { options . setMaxWalkDistance ( options . getMaxWalkDistance ( ) * NUMBER0 ) ; routeSet . bounder = new TargetBound ( options ) ; - } while ( options . getMaxWalkDistance ( ) < initialWalk * MAX_WALK_MULTIPLE ) ; + } while ( options . getMaxWalkDistance ( ) < i...
handle infinite walk
<nb> public class DiscoveryWithServiceDisruptionsIT extends ESIntegTestCase { logger . trace ( STRING0 , name , id , node , shard ) ; IndexResponse response = client . prepareIndex ( STRING1 , STRING2 , id ) . setSource ( STRING3 ) . setTimeout ( timeout ) . get ( timeout ) ; - assertThat ( response . getVersio...
Simplify doc creation check in acked indexing test
<nb> public class VirtualDirectoryImpl extends VirtualFileSystemEntry { myData . removeAdoptedName ( childName ) ; if ( indexInReal < NUMBER0 ) { insertChildAt ( child , indexInReal ) ; + ( ( PersistentFSImpl ) PersistentFS . getInstance ( ) ) . incStructuralModificationCount ( ) ; } SINGLE assertConsiste...
don t increment vfs structure mod count when findChild loads a new file into memory
<nb> public class RecoveryLogDeserializer implements LogReader < StoreChannel > @ override public boolean next ( Consumer < LogEntry , IOException > consumer ) throws IOException { - SINGLE long position = channel . position ( ) ; LogEntry entry = logEntryReader . readLogEntry ( channel ) ; <nb> public ...
Resolve and remove TODO
<nb> public class TestRMNodeTransitions { private RMNodeImpl getRunningNode ( ) { NodeId nodeId = BuilderUtils . newNodeId ( STRING0 , NUMBER0 ) ; RMNodeImpl node = new RMNodeImpl ( nodeId , rmContext , null , NUMBER0 , NUMBER0 , - null , null , null ) ; + null , null ) ; node . handle ( new RMNodeEvent ( n...
Fix minor merge conflict bobby
<nb> public class IndexCacheableQueryTests extends ElasticsearchTestCase { IndexReader reader = writer . getReader ( ) ; IndexSearcher searcher = newSearcher ( reader ) ; + reader = searcher . getIndexReader ( ) ; SINGLE searcher . setQueryCache ( cache ) ; searcher . setQueryCachingPolicy ( policy ) ; ...
TEST also close wrapped readers
<nb> public class MessageCryptoHelper { signatureBodyPart . writeTo ( out ) ; } catch ( Exception e ) { Log . e ( K9 . LOG_TAG , STRING0 , e ) ; + } finally { + try { + out . close ( ) ; + } catch ( IOException e ) { + SINGLE + } } } } ) . start ( ) ; <nb> public class MessageCryptoHelper { ...
close piped streams after use
<nb> public class TransactionalTopologyBuilder { private static class Component { public IRichBolt bolt ; - public int parallelism ; + public Integer parallelism ; public List < InputDeclaration > declarations = new ArrayList < InputDeclaration > ( ) ; public List < Map > componentConfs = new ArrayList < ...
allow null parallelism for components
<nb> public class Account implements BaseAccount mExpungePolicy = EXPUNGE_IMMEDIATELY ; mAutoExpandFolderName = STRING0 ; mMaxPushFolders = NUMBER0 ; - mChipColor = NUMBER1 ; + mChipColor = ( new Random ( ) ) . nextInt ( NUMBER2 ) + NUMBER3 ; goToUnreadMessageSearch = false ; searchableFolders = Searcha...
When instantiating an account set the default color to something
<nb> public class SymbolChecks { errMgr . grammarError ( ErrorType . ARG_RETVAL_CONFLICT , g . fileName , - ( ( GrammarAST ) r . ast . getChild ( NUMBER0 ) ) . token , + r . args . get ( key ) . token != null ? r . args . get ( key ) . token : ( ( GrammarAST ) r . ast . getChild ( NUMBER0 ) ) . token , key ...
Report conflicting argument error at specific location in input
<nb> public class ReferenceCountingEntityCache implements ReadyEntityCache { } public void discard ( final EntityBeanComponentInstance instance ) { - final CacheEntry entry = cache . get ( instance ) ; - if ( instance == entry . replacedInstance ) { - SINGLE - SINGLE - entry . replacedInstance = null ; ...
Fix NPE in ReferenceCountingEntityCache
<nb> public class PhoneStatusBar extends BaseStatusBar implements DemoMode , } } - private void clearAllNotifications ( ) { + public void clearAllNotifications ( ) { SINGLE int numChildren = mStackScroller . getChildCount ( ) ;
Making clearAllNotifications in PSB public
<nb> public class JsonStructureUtils { if ( ! async ) { jsonModel . mManager . getWritableDatabase ( ) . delete ( jsonModel . mTableStructure . getTableName ( ) , getPrimaryModelWhere ( jsonModel ) , null ) ; } else { - TransactionManager . getInstance ( ) . addTransaction ( new DeleteModelListTransaction < JSO...
cleaned up code
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class BasePhilmTabFragment extends BasePhilmMovieFragment { scheduleHideTabs ( ) ; } - mSlidingTabStrip . getBackgro...
Fix Tabs disappearing
<nb> public interface AgentBuilder { } , COMMENT + COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT REDEFINE { @ override
Added documentation to clarify use of redefinition type strategy
<nb> public class SSLConnection extends Activity { @ httpsclient HttpClient mHttpsClientTest3 ; + @ httpsclient ( trustStoreResName = STRING0 , keyStoreResName = STRING0 ) + HttpClient mHttpsClientTest4 ; + }
Add functional test on resName
<nb> public final class FormSourceCodeGenerator { ourContainerLayoutCodeGenerators . put ( UIFormXmlConstants . LAYOUT_FLOW , new FlowLayoutSourceGenerator ( ) ) ; ourContainerLayoutCodeGenerators . put ( UIFormXmlConstants . LAYOUT_CARD , new CardLayoutSourceGenerator ( ) ) ; ourContainerLayoutCodeGenerators . p...
fix multiple reporting of same error
<nb> public class DriverConnection implements AutoCloseable this . lastSmTimestamp = NUMBER0 ; final int termCapacity = rebuilders [ NUMBER0 ] . capacity ( ) ; + this . bufferLimit = termCapacity / NUMBER1 ; this . currentWindowSize = initialWindowSize ; this . currentWindowGain = currentWindowSize / NUMBER...
moved declarations around to be easier to try new options with
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IsolatedContext extends ContextWrapper { Handler handler , boolean updateImmediately ) { SINGLE } + + public Account [ ] getAccounts ( )...
Override getAccounts to return an empty AccountSet in MockAccountManager
<nb> public class ServiceCommandFactoryLoader implements CommandFactoryLookup { private ServiceLoader < CommandFactory > loader ; COMMENT - COMMENT + COMMENT + COMMENT COMMENT public ServiceCommandFactoryLoader ( ) { - this . loader = ServiceLoader . load ( CommandFactory . class , null ) ; + this ....
Use the Launcher class loader for the command lookup instead of the system class loader
<nb> final class Utils { if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . ICE_CREAM_SANDWICH ) { if ( uri . toString ( ) . startsWith ( ContactsContract . Contacts . CONTENT_LOOKUP_URI . toString ( ) ) ) { uri = ContactsContract . Contacts . lookupContact ( contentResolver , uri ) ; + if ( uri == null )...
Missing contact should return null immediately
<nb> public class TransportDeleteAction extends TransportReplicationAction < DeleteRequ IndexShard indexShard = indicesService . indexServiceSafe ( shardRequest . shardId . getIndex ( ) ) . getShard ( shardRequest . shardId . id ( ) ) ; Engine . Delete delete = indexShard . prepareDelete ( request . type ( ) , requ...
Fix typo in TransportDeleteAction shardOperationOnPrimary
<nb> package NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT + COMMENT COMMENT @ functionalinterface public interface QueryParser < QB extends QueryBuilder < QB > > { - COMMENT COMMENT COMMENT <nb> public interface QueryParser < QB extends QueryBuilder < QB > > { COMMENT COMME...
Remove getQueryPrototype from QueryParser
<nb> public class FileWatcher { } private void startupProcess ( final boolean restart ) throws IOException { - ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { - public void run ( ) { - Notifications . Bus . notify ( NOTIFICATION_GROUP . getValue ( ) . createNotification ( STRING0 ...
Make IDEA less cheerful
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JBTable extends JTable implements ComponentWithEmptyText , Component final RowSorter . SortKey sortKey = sortableModel . getDefaultSortKey ( ) ;...
use a singleton list
<nb> public class FileFilter { STRING0 , SINGLE STRING1 , SINGLE STRING2 , SINGLE - STRING3 , } ; static final String [ ] ignoreTestList = {
Remove http wml from the DumpRenderTree skipped list as this directory no longer exists
<nb> public class RequestHandler { private void resetBuilder ( RequestEnvelopeOuterClass . RequestEnvelope . Builder builder ) { builder . setStatusCode ( NUMBER0 ) ; builder . setRequestId ( NUMBER1 ) ; - if ( lastAuth != null && - lastAuth . getExpireTimestampMs ( ) > NUMBER2 && - lastAuth . getExpireTime...
Fix checkstyle for requestHandler
<nb> public class Bytestream extends IQ { @ override public XmlStringBuilder getChildElementXML ( ) { XmlStringBuilder xml = new XmlStringBuilder ( ) ; - xml . openElement ( IQ . QUERY_ELEMENT ) ; + xml . halfOpenElement ( IQ . QUERY_ELEMENT ) ; xml . xmlnsAttribute ( NAMESPACE ) ; switch ( getType ( ) ...
Fix Bytestream getChildElementXML returning invalid XML
<nb> public class Parser expr ) ; break ; } - case ( Token . LEFT_SQUARE_BRACKET ) : - { - break ; - } } return expr ;
removing from postfix expression since we re not doing array indexing
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LocalCreateDocumentMultiThreadIndexedSpeedTest extends OrientMultiT database . begin ( TXTYPE . NOTX ) ; synchronized ( L...
changed test to truncate the cluster before to start
<nb> public class IconGridActivity extends AppCompatActivity { SINGLE ArrayList < SampleItem > items = new ArrayList < > ( Iconics . getRegisteredFonts ( this ) . size ( ) ) ; - int count = NUMBER0 ; for ( ITypeface font : mFonts ) { SampleItem sampleItem = new SampleItem ( ) . withName ( font . getFontName...
remove obsolete code
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ xmlrootelement ( name = STRING0 ) + @ xmlrootelement ( name = STRING1 ) @ xmlaccessortype ( XmlAccessType . FIELD ) public class InterceptSendToEndpointDefinition extends OutputDefinition < InterceptSendToEndpointDefinition > { - SINGLE - SINGLE ...
Fixed minor naming mismatch in the DSL for interceptSendToEndpoint