diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> abstract class AbstractTable < R extends Record > extends AbstractFieldProviderQuer SINGLE @ override - public TableOptionalOnStep join ( TableLike < ? > table , JoinType type ) { + public final TableOptionalOnStep join ( TableLike < ? > table , JoinType type ) { return new JoinTable ( this , table , t...
Added missing final keyword
<nb> public class TestAbstractHttp11Processor extends TomcatBaseTest { tomcat . start ( ) ; - String request1 = STRING0 + + String request1 = STRING1 + STRING2 + getPort ( ) + STRING3 + STRING4 + STRING5 + <nb> public class TestAbstractHttp11Processor extends TomcatBaseTest { STRING6 + STRING3 ; ...
Discern the first and the second requests in the test case
<nb> public class ProjectWorkspace { SimpleFileVisitor < Path > copyDirVisitor = new SimpleFileVisitor < Path > ( ) { @ override public FileVisitResult visitFile ( Path path , BasicFileAttributes attrs ) throws IOException { - if ( attrs . size ( ) <= NUMBER0 ) { - SINGLE + SINGLE + SINGLE + SINGLE + ...
Fix a bug in ProjectWorkspace setUp
<nb> public final class UpdateChecker { for ( IdeaPluginDescriptor descriptor : descriptors ) { ( ( PluginNode ) descriptor ) . setRepositoryName ( host ) ; prepareToInstall ( buildNumber , downloaded , incompatiblePlugins , PluginDownloader . createDownloader ( descriptor ) , indicator ) ; - downloaded . put (...
show only plugins with new versions for update
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
added license header
<nb> public class Request implements HttpServletRequest SINGLE if ( _serverName != null ) return _serverName ; + + if ( _uri == null ) + throw new IllegalStateException ( STRING0 ) ; SINGLE _serverName = _uri . getHost ( ) ;
Throw IllegalStateException if Request uri is null on getServerName
<nb> import NAMESPACE ; public class GingerScroller extends ScrollerProxy { protected final OverScroller mScroller ; - private boolean mFirstScroll = false ; public GingerScroller ( Context context ) { mScroller = new OverScroller ( context ) ; <nb> public class GingerScroller extends ScrollerProxy { ...
Remove redundant variable which is always false
<nb> public class UrlMappingUtils { WebUtils . cleanupIncludeRequestAttributes ( request , toRestore ) ; } } - - - - - }
Removed extra Whitespace in UrlMappingUtils
<nb> public class TestsPacketsReceiver implements OutputPacketProcessor , Disposable { state . setMagitude ( myInstanceMagnitude ) ; state . initializeFrom ( reader ) ; testProxy . setState ( state ) ; - if ( state . isFinal ( ) && ! ( state instanceof FaultyState ) ) { - complete ( testProxy ) ; - } + co...
revert optimization in order to support custom runners which do not use special faulty state
<nb> public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc } private void removeTouchHighlight ( ) { - mWebViewCore . removeMessages ( EventHub . HIT_TEST ) ; + if ( mWebViewCore != null ) { + mWebViewCore . removeMessages ( EventHub . HIT_TEST ) ; + } mPrivateHandler . rem...
Add missing null check
<nb> public class SpringBootstrapCompilerAutoConfiguration extends CompilerAutoConfig STRING0 , STRING1 , STRING2 , + STRING3 , STRING4 , STRING5 , STRING6 ,
Add CopmonentScan to default imports in CLI
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FilterPlanNode implements PlanNode { SINGLE baseFilterOperator = new SortedInvertedIndexBasedFilterOperator ( ds ) ; } el...
removing the hasDictionary check from the filter plan node
<nb> public class ListGplayCardCABFragment extends BaseFragment { @ override public boolean onCreateActionMode ( ActionMode mode , Menu menu ) { super . onCreateActionMode ( mode , menu ) ; - mActionMode = mode ; + + mActionMode = mode ; SINGLE + + SINGLE MenuInflater inflater = mode . getMenuInflater...
Fixed doc on CardList Example
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> final class ImageEditorUI extends JPanel implements DataProvider { JPanel topPanel = new JPanel ( new BorderLayout ( ) ) ; topPanel . ad...
add border for info label
<nb> public final class Main { projectFilesystem , config , webServer , - console , consoleListener , buildRuleTypes , clientEnvironment ) ; <nb> public final class Main { ProjectFilesystem projectFilesystem , BuckConfig config , Optional < WebServer > webServer , - Console console , AbstractC...
Revert Revert Re enable integration tests that were disabled because of the inotify limit issue
<nb> public class RestrictedPreferenceHelper { public boolean setDisabledByAdmin ( EnforcedAdmin admin ) { final boolean disabled = ( admin != null ? true : false ) ; mEnforcedAdmin = admin ; - mPreference . setEnabled ( ! disabled ) ; + boolean changed = false ; if ( mDisabledByAdmin != disabled ) { mDis...
Call preference setEnabled only after updating disabledByAdmin state
<nb> public class Genrule extends DoNotUseAbstractBuildable implements Buildable { . set ( STRING0 , cmdExe ) ; } + public ImmutableList < Path > getSrcs ( ) { + return srcs ; + } + protected void addEnvironmentVariables ( ExecutionContext context , ImmutableMap . Builder < String , String > environme...
Expose srcs and AbstractGenruleStep for Xcode project generation
<nb> public class ParameterHintsPresentationManager implements Disposable { GraphicsConfig config = GraphicsUtil . setupAAPainting ( g ) ; int shadeRectHeight = Math . min ( NUMBER0 , r . height - NUMBER1 ) ; Color backgroundColor = attributes . getBackgroundColor ( ) ; - g . setColor ( ColorUtil . brighter ( b...
remove bright line at the top of parameter hint
<nb> public class PersistenceWindowPool this . mapMode = readOnly ? MapMode . READ_ONLY : MapMode . READ_WRITE ; setupBricks ( ) ; dumpStatus ( ) ; - System . out . println ( getStats ( ) . toString ( ) ) ; } COMMENT
Removed a System out
<nb> public class JavadocMethodCheckTest } ; verify ( c , fname , expected ) ; } + + public void testScopeAnonInnerWithResolver ( ) + throws Exception + { + final CheckConfiguration checkConfig = new CheckConfiguration ( ) ; + checkConfig . setClassname ( JavadocMethodCheck . class . getName ( ) ) ; ...
added test to increase code coverage of JavadocMethodCheck
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove unused import
<nb> public class StandardContext extends ContainerBase getServletContext ( ) ) ) ; } for ( int i = NUMBER0 ; i < instances . length ; i ++ ) { - if ( instances [ i ] == null ) - continue ; if ( ! ( instances [ i ] instanceof ServletContextListener ) ) continue ; ServletContextListener listener =
Remove null check as instanceof condition on the next line takes care of nulls
<nb> public class DescriptorRendererImpl implements DescriptorRenderer { SINGLE DeclarationDescriptor current = klass ; do { - if ( ( ( ClassDescriptor ) current ) . getKind ( ) != ClassKind . CLASS_OBJECT ) { - qualifiedNameElements . add ( current . getName ( ) ) ; - } + qualifiedNameElements . add ( cu...
Do not exclude default object names when rendering descriptors in short names mode
<nb> import NAMESPACE import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class ClassMember implements GroovyElementTypes { PsiBuilder . Marker constructorMarker = builder . mark ( ) ; ModifiersOptional . parse ( builder ) ; - IElementType co...
ConstructorDefinition parse returns GroovyElementType
<nb> public class CordovaPreferences { prefs . put ( name . toLowerCase ( Locale . ENGLISH ) , value ) ; } + public void set ( String name , boolean value ) { + set ( name , STRING0 + value ) ; + } + + public void set ( String name , int value ) { + set ( name , STRING0 + value ) ; + } + + publi...
Add non String overloades for CordovaPreferences set
<nb> public class ReactAppTestActivity extends FragmentActivity implements ReactInstanceManager . Builder builder = ReactTestHelper . getReactTestFactory ( ) . getReactInstanceManagerBuilder ( ) . setApplication ( getApplication ( ) ) - . setUseOldBridge ( true ) . setBundleAssetName ( bundleName ) SINGLE ...
Make new bridge default in OSS
<nb> public class UIUtil { } private static int THEME_BASED_TEXT_LCD_CONTRAST = NUMBER0 ; - private static int BEST_DARK_LCD_CONTRAST = NUMBER1 ; - private static int BEST_LIGHT_LCD_CONTRAST = NUMBER2 ; + private static int BEST_DARK_LCD_CONTRAST = NUMBER3 ; + private static int BEST_LIGHT_LCD_CONTRAST = ...
New lcd contrast values
<nb> public class CombinedMask implements Mask { } public CombinedMask ( List < Mask > masks ) { - masks . addAll ( masks ) ; + this . masks . addAll ( masks ) ; } public void add ( Mask mask ) {
Fix CombinedMask created with g mask commands
<nb> public final class CategoricalDecision extends Decision { @ override public boolean isPositive ( Example example ) { CategoricalFeature feature = ( CategoricalFeature ) example . getFeature ( getFeatureNumber ( ) ) ; - return feature == null ? defaultDecision : activeCategories . get ( feature . getValueID...
Handle case of new categorical value ID as one that doesn t exist in the BitSet
<nb> public class OCFile implements Parcelable , Comparable < OCFile > { COMMENT COMMENT public String getParentRemotePath ( ) { - return new File ( getRemotePath ( ) ) . getParent ( ) ; + String parentPath = new File ( getRemotePath ( ) ) . getParent ( ) ; + return ( parentPath . substring ( parentPath . l...
Fix parent path build
<nb> public final class ProcessManagerSlave { if ( shutdown . getAndSet ( true ) ) { return ; } - EXITER . start ( ) ; + final Thread thread = new Thread ( new Runnable ( ) { + public void run ( ) { + System . exit ( NUMBER0 ) ; + } + } ) ; + thread . setName ( STRING0 ) ; + thread . start ( ) ; ...
Do not create exit thread until exit time
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DefaultPomModuleDescriptorFileWriterTest { conf2ScopeMappingContainerMock , _dest ) ; assertTrue ( _dest . exists ( ) ) ; ...
Fixed failing tests under windows
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove Erroneous imports
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT @ incubating
Remove reference to API LongRunningOperation addBuildProgressListener BuildProgressListener listener
<nb> public class TestHttp2Section_6_8 extends Http2TestBase { SINGLE parser . readFrame ( true ) ; - SINGLE - System . err . println ( output . getTrace ( ) ) ; Assert . assertEquals ( STRING0 , output . getTrace ( ) ) ; output . clearTrace ( ) ; <nb> public class TestHttp2Section_6_8 extends Http2Te...
Remove debug code
<nb> public interface AgentBuilder { this . matchers = matchers ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public BatchAllocator withMinimumBatchSize ( int threshold ) { return Merging . of ( threshold , this ) ; }
Added missing documentation
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; <nb> public class JmsRouteRequestReplyTest extends CamelTestSupport { contextBuilders . put ( STRING0 , contextBuilderCorrelationID ) ; contextBuilders...
Skip test which may fail randomly
<nb> public class WebActivity extends BaseItemActivity { } getSupportFragmentManager ( ) . beginTransaction ( ) - . replace ( android . R . id . content , + . add ( R . id . content_frame , WebFragment . instantiate ( this , mItem ) , WebFragment . class . getName ( ) ) . commit ( ) ;
Render web fragment under toolbar
<nb> public class GoFileConfigDataSource { try { String configAsXml = trySavingConfig ( updatingCommand , configHolder , lastValidPartials ) ; validatedConfigHolder = internalLoad ( configAsXml , getConfigUpdatingUser ( updatingCommand ) , lastValidPartials ) ; - SINGLE - int previousValidPartialsCount = last...
Updated log message as cachedGoPartials lastValidPartials can change only inside a GoConfigWriteLock which the current thread has already acquired
<nb> import NAMESPACE ; import NAMESPACE ; public class IndexRangesRecalculationNotification implements NotificationType { - private static final String TITLE = STRING0 ; + private static final String TITLE = STRING1 ; private static final String DESCRIPTION = STRING2 ; private final Notification notifi...
Remove exclamation mark from title of IndexRangesRecalculationNotification
<nb> public class PsiPackageImpl extends PsiPackageBase implements PsiPackage , Querya private volatile CachedValue < PsiModifierList > myAnnotationList ; private volatile CachedValue < Collection < PsiDirectory > > myDirectories ; private volatile SoftReference < Set < String > > myPublicClassNamesCache ; - pr...
remove unnecessary lock in PsiPackageImpl
<nb> public class RefundProcessor extends ProcessorBase { List < RefundModelDao > existingRefunds = paymentDao . getRefundsForPayment ( paymentId ) ; for ( RefundModelDao cur : existingRefunds ) { - final BigDecimal existingPositiveAmount = cur . getAmount ( ) . negate ( ) ; + final BigDecimal existingPositiv...
Fix issue with refund sign
<nb> abstract class PageRenderer < T extends CompositeTestResults > extends TabbedPageRe } protected String asHtmlLinkEncoded ( String rawLink ) { - return rawLink . replaceAll ( STRING0 , STRING1 ) ; + return rawLink . replace ( STRING0 , STRING1 ) ; } }
Use a slightly more efficient method when generating links between test report pages
<nb> public @ interface Config { shadows . addAll ( Arrays . asList ( overlayConfig . shadows ( ) ) ) ; this . shadows = shadows . toArray ( new Class [ shadows . size ( ) ] ) ; - this . application = pick ( baseConfig . application ( ) , overlayConfig . application ( ) , null ) ; + this . application = pick ...
Fix Application class not being retained from base config
<nb> public final class UpgradeService { SINGLE final ProgressDialog dialog ; - if ( from < V4_0_6 && context instanceof Activity ) + if ( from < V4_4_0 && context instanceof Activity ) dialog = DialogUtilities . progressDialog ( context , context . getString ( R . string . DLG_upgrading ) ) ; else
Upgrade should show progress dialog
<nb> public class ZWaveController { public void initialize ( ) { this . enqueue ( new GetVersionMessageClass ( ) . doRequest ( ) ) ; this . enqueue ( new MemoryGetIdMessageClass ( ) . doRequest ( ) ) ; - this . enqueue ( new GetSucNodeIdMessageClass ( ) . doRequest ( ) ) ; this . enqueue ( new SerialApiGetCap...
Get controller capabilities before setting SUC
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ uriendpoint ( scheme = STRING0 , title = STRING1 , syntax = STRING2 , consumerClass = ChronicleEngineConsumer . class , label = STRING3 ) + @ uriendpoint ( scheme = STRING0 , title = STRING1 , syntax = STRING2 , consumerClass = ChronicleEngineConsumer . clas...
Fixed wrong label on chronicle
<nb> public class OsMoGroupsActivity extends OsmandExpandableListActivity implements final LayoutInflater inflater = LayoutInflater . from ( OsMoGroupsActivity . this ) ; View view = inflater . inflate ( R . layout . check_item_rel , null ) ; final CompoundButton check = ( CompoundButton ) view . findViewById ( R...
Fix on off
<nb> public class Options { private static boolean docCommentsEnabled = false ; private static boolean finalMethodsAsFunctions = true ; private static boolean removeClassMethods = false ; - SINGLE - private static boolean hidePrivateMembers = false ; + private static boolean hidePrivateMembers = true ; pr...
Changed hide private members default to true now that affected code has been updated
<nb> public final class Settings { STRING0 ; COMMENT + COMMENT + COMMENT + public static final String GTALK_SERVICE_WIFI_MAX_HEARTBEAT_INTERVAL_MS = + STRING1 ; + + COMMENT + COMMENT + COMMENT + public static final String GTALK_SERVICE_MIN_HEARTBEAT_INTERVAL_MS = + STRING2 ; + + COMMENT ...
add Gservices settings for adaptive heartbeat parameters and wifi heartbeat interval
<nb> public abstract class HystrixCommandMetrics extends HystrixMetrics { COMMENT COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> public class HystrixCommandMetricsSummary extends HystrixCommandMetrics { counter . updateRollingMax ( event , value ) ; } + public long getRol...
Revert Cleanup Javadoc for HystrixCommandMetrics
<nb> public class Server { final Server server = new Server ( systemDir ) ; - DOMConfigurator . configure ( STRING0 ) ; + if ( new File ( STRING0 ) . exists ( ) ) { + DOMConfigurator . configure ( STRING0 ) ; + } Logger . setFactory ( new Logger . Factory ( ) { @ override
Fixed bug in logging initialization compiler server
<nb> class BackupManagerService extends IBackupManager . Stub { pw . println ( STRING0 + ( mEnabled ? STRING1 : STRING2 ) + STRING3 + ( ! mProvisioned ? STRING4 : STRING5 ) + STRING6 + ( this . mPendingInits . size ( ) == NUMBER0 ? STRING4 : STRING5 ) + STRING7 ) ; - pw . println ( STRING8 + ( mAutoRestore : ST...
Fix the build
<nb> public class ReaderPostAdapter extends RecyclerView . Adapter < RecyclerView . ViewHol imgDiscoverAvatar = ( WPNetworkImageView ) layoutDiscover . findViewById ( R . id . image_discover_avatar ) ; txtDiscover = ( TextView ) layoutDiscover . findViewById ( R . id . text_discover ) ; + SINGLE if ( getPostL...
Fixed lint error about incorrectly setting text color
<nb> class VerifyingTransactionInterceptor implements TransactionInterceptor public void setStartEntry ( LogEntry . Start startEntry ) { this . startEntry = startEntry ; + if ( next != null ) + { + next . setStartEntry ( startEntry ) ; + } } public void setCommitEntry ( LogEntry . Commit commitEntry...
Respect the interceptors chain and set the commit and start entries to the following members
<nb> public class JAASMemoryLoginModule extends MemoryRealm implements LoginModule , R return ( false ) ; SINGLE - if ( ! subject . getPrincipals ( ) . contains ( principal ) ) + if ( ! subject . getPrincipals ( ) . contains ( principal ) ) { subject . getPrincipals ( ) . add ( principal ) ; + SINGLE + ...
Modify JAASMemoryLoginModule so it conforms to the contract with the JAASRealm regarding the representation of roles
<nb> abstract class AbstractZipCompressor implements ZipCompressor { private Zip64Mode zip64Mode ; public AbstractZipCompressor ( boolean allowZip64Mode ) { - zip64Mode = allowZip64Mode ? Zip64Mode . AsNeeded : Zip64Mode . Never ; + zip64Mode = allowZip64Mode ? Zip64Mode . AsNeeded : Zip64Mode . Never ; } ...
Remove unused property
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class ResponseTest { SINGLE } } + + @ test + public void testVariants ( ) { + List < String > encoding = Arrays . asList ( STRING...
Added test for ResponseBuilder variants
<nb> public class ServletOutputStreamImpl extends ServletOutputStream implements Buff this . written += len ; if ( contentLength != - NUMBER0 && this . written >= contentLength ) { state |= FLAG_CLOSED ; - SINGLE - SINGLE - if ( buffersToWrite == null ) { + if ( flushBufferAsync ( ) ) { channel . shutdo...
Revert Fix up issue with ServletOutputStream
<nb> public class TabPanel extends JPanel implements KeyListener { public TabPanel ( JTabbedPane tabbedPane , int myIndex ) { super ( false ) ; - this . setLayout ( new BorderLayout ( ) ) ; + BorderLayout borderLayout = new BorderLayout ( ) ; + borderLayout . setVgap ( NUMBER0 ) ; + this . setLayout ( bor...
Added gap to DisplayArea
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - SINGLE + @ ignore ( STRING0 ) @ suppresswarnings ( { STRING1 , STRING2 } ) public class TestPerf extends TestBase { static final double WriteFailFactor = FLOAT0 ;
disable this test until it can reviewed
<nb> public class DefaultHttpClient implements HttpClient { private Bootstrap baseBoostrap ; private ExecController execController ; + public DefaultHttpClient ( ByteBufAllocator byteBufAllocator , int maxContentLengthBytes , ExecController execController ) { + this ( new PooledHttpConfig ( ) , byteBufAllocat...
Maintaining backward compatibility for constructor args
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; - class CacheEntry extends SoftReference < CachedClassLoader > { + class CacheEntry extends WeakReference < CachedClassLoader > { private final ClassPath key ;
Fix accidental removal of WeakReference
<nb> import NAMESPACE ; import NAMESPACE ; public class RouteCalculationResult { + private static double distanceClosestToIntermediate = NUMBER0 ; SINGLE private final List < Location > locations ; private final List < RouteDirectionInfo > directions ; <nb> public class RouteCalculationResult { double...
Fixed intermediate points dissapear bug
<nb> public class WikiPageLocalServiceImpl extends WikiPageLocalServiceBaseImpl { expandoRowLocalService . deleteRows ( page . getPrimaryKey ( ) ) ; + SINGLE + + ratingsStatsLocalService . deleteStats ( + WikiPage . class . getName ( ) , page . getResourcePrimKey ( ) ) ; + SINGLE if ( page . isInT...
Now WikiPage delete the ratingstats
<nb> public class SwipeStack extends ViewGroup { mNumberOfStackedViews = attrs . getInt ( R . styleable . SwipeStack_stack_size , DEFAULT_STACK_SIZE ) ; mViewSpacing = - attrs . getInt ( R . styleable . SwipeStack_stack_spacing , DEFAULT_STACK_SPACING ) ; + attrs . getDimensionPixelSize ( R . styleable . Swip...
Get a dimension instead of raw pixels
<nb> public abstract class RealmBase extends LifecycleMBeanBase implements Realm { COMMENT COMMENT COMMENT - public String getX509UsernameRetrieverClassName ( ) - { + public String getX509UsernameRetrieverClassName ( ) { return x509UsernameRetrieverClassName ; } <nb> public abstract class RealmBase ...
Fix the brackets
<nb> public class GtasksSyncProvider extends SyncProvider < GtasksTaskContainer > { ListAction action = ( ( TaskModifier ) builder ) . done ( ) ; if ( remote == null || local . parentId != remote . parentId || local . priorSiblingId != remote . priorSiblingId ) taskService . executeListActions ( idList , action ,...
only transmit task edit if actual properties have changed
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed obsolete import
<nb> public abstract class DisplayListFragment < T extends BserObject & ListEngineItem , public void setOnScrollListener ( RecyclerView . OnScrollListener onScrollListener ) { this . onScrollListener = onScrollListener ; if ( collection != null ) { - collection . addOnScrollListener ( onScrollListener ) ; + c...
displyListFragment set only one scroll listener
<nb> public class MessageListFragment extends SherlockFragment implements OnItemClick super . onSaveInstanceState ( outState ) ; saveSelectedMessages ( outState ) ; + saveListState ( outState ) ; outState . putBoolean ( STATE_REMOTE_SEARCH_PERFORMED , mRemoteSearchPerformed ) ; - outState . putParcelable ...
Fix a potential NullPointerException when rotating the device twice
<nb> public interface TransactionManagementConfigurer { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface TransactionManagementConfigurer { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typo in TransactionManagementConfigurer Javadoc
<nb> public abstract class BaseQuery < T > implements Query < T > @ override public int getContextPriority ( int defaultValue ) { + if ( context == null ) { + return defaultValue ; + } Object val = context . get ( STRING0 ) ; if ( val == null ) { return defaultValue ; <nb> public abstract class Base...
fix broken unit tests
<nb> final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice { void changeMute ( boolean mute ) { assertRunOnServiceThread ( ) ; HdmiLogger . debug ( STRING0 , mute ) ; + synchronized ( mLock ) { + if ( mSystemAudioMute == mute ) { + HdmiLogger . debug ( STRING1 ) ; + return ; + } + } if ( ! isS...
Fix cyclic mute
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ConfigurationPropertiesBindingPostProcessorTests { } @ test + @ ignore ( STRING0 ) public void testValueBindingForDefaults ( ) throws Ex...
Ignore test that is WIP
<nb> public class RenderScript { } if ( useIOlib ) { - System . loadLibrary ( STRING0 ) ; - if ( ! rs . nLoadIOSO ( ) ) { + try { + System . loadLibrary ( STRING0 ) ; + } catch ( UnsatisfiedLinkError e ) { + useIOlib = false ; + } + if ( ! useIOlib || ! rs . nLoadIOSO ( ) ) { android . util . Lo...
Catch the exception if Java cannot find libRSSupportIO lib for
<nb> public class Post implements Serializable { return postContent ; } - public boolean isNew ( ) { - return getLocalTablePostId ( ) >= NUMBER0 ; + public boolean isPublished ( ) { + return ! getRemotePostId ( ) . isEmpty ( ) ; } public boolean isPublishable ( ) { - return ! ( isNew ( ) && getCon...
remove unused isNew method
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT @ bugpattern ( name = STRING0 , summary = STRING1 ,
Fix javadoc for SuppressWarningsDeprecated
<nb> public abstract class MapRenderingTypes { protected static class TagValuePattern { protected String tag ; protected String value ; + protected int substrSt = NUMBER0 ; + protected int substrEnd = NUMBER0 ; protected TagValuePattern ( String t , String v ) { this . tag = t ; this . value = v ;
Add substring for rendering types
<nb> public class DatabaseHelper extends SQLiteOpenHelper { synchronized ( this ) { SQLiteDatabase db = getWritableDatabase ( ) ; - String soundModelClause = SoundModelContract . KEY_MODEL_UUID + STRING0 - + modelUuid . toString ( ) ; + String soundModelClause = SoundModelContract . KEY_MODEL_UUID + STRING1...
Fix delete clause for sound model DB
<nb> public class AdminPropertiesService } return uri ; } - - private String getConfigValue ( String key ) - { - String k = configurationNamespace + key ; - String value = config . getString ( k ) ; - if ( value == null ) - { - throw new IllegalArgumentException ( STRING0 + k + STRING1 ) ; - } ...
Deleted some unused code
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MapDestroyTest extends HazelcastTestSupport { @ before public void setUp ( ) { TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory ( NUMBER0 ) ; - instance1 ...
Passes config to instance creation
<nb> public abstract class DataSet < T extends Entry > extends BaseDataSet < T > { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void setYVals ( List < T > yVals ) { + mYVals = yVals ; + notifyDataSetChanged ( ) ; + } + + COMMENT COMMENT COMMENT COMMENT
Make yVals settable
<nb> public class IndexShard extends AbstractIndexShardComponent { boolean wasActive = active . getAndSet ( false ) ; if ( wasActive ) { updateBufferSize ( IndexingMemoryController . INACTIVE_SHARD_INDEXING_BUFFER , IndexingMemoryController . INACTIVE_SHARD_TRANSLOG_BUFFER ) ; - logger . debug ( STRING0 ) ; +...
Simplify shard inactive logging
<nb> public class CassandraServer implements Cassandra . Iface Row row ; try { - row = StorageProxy . readProtocol ( command , ConsistencyLevel . ONE ) ; + row = StorageProxy . readProtocol ( command , consistency_level ) ; } catch ( IOException e ) {
pass consistency_level param from thrift to internals
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; public class SSLSynReplyTest extends SynReplyTest <nb> public class SSLSynReplyTest extends SynReplyTest @ before public void init ( ) { - try - { - getClass ( ) . getClas...
now NPN does not need an agent anymore
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMES...
Catch the right rejected execution exception
<nb> public class UILApplication extends Application { SINGLE SINGLE ImageLoaderConfiguration config = new ImageLoaderConfiguration . Builder ( getApplicationContext ( ) ) - . threadPoolSize ( NUMBER0 ) . threadPriority ( Thread . NORM_PRIORITY - NUMBER1 ) . memoryCacheSize ( NUMBER1 * NUMBER2 * NUMBER2 ) S...
delete redundant configuration option
<nb> import NAMESPACE ; public class FullyReadOnCloseInputStream extends FilterInputStream { private static final Logger LOGGER = Logger . get ( FullyReadOnCloseInputStream . class ) ; + private boolean closed = false ; public FullyReadOnCloseInputStream ( InputStream in ) { super ( in ) ; <nb> public c...
Make FullyReadOnCloseInputStream close only read once
<nb> public class TestArrayOperators assertFunction ( STRING0 , BOOLEAN , false ) ; assertFunction ( STRING1 , BOOLEAN , true ) ; assertFunction ( STRING2 , BOOLEAN , null ) ; + assertFunction ( STRING3 , BOOLEAN , null ) ; assertFunction ( STRING4 , BOOLEAN , true ) ; assertFunction ( STRING5 , BOOLEAN , f...
Adding additional test for contains when search value is NULL
<nb> class ASTSlice extends AST { } SINGLE SINGLE - Frame ary = env . peekAry ( ) ; SINGLE + Frame ary = env . pop0Ary ( ) ; SINGLE if ( ary . numCols ( ) != NUMBER0 ) throw new IllegalArgumentException ( STRING0 + ary . names ( ) ) ; Vec vec = ary . anyVec ( ) ; SINGLE
pop rows predicate vec
<nb> public abstract class MessagingFunction < VertexKey extends Comparable < VertexKey > , while ( edges . hasNext ( ) ) { Tuple next = ( Tuple ) edges . next ( ) ; - VertexKey k = next . getField ( NUMBER0 ) ; + VertexKey k = next . getField ( NUMBER1 ) ; outValue . f0 = k ; out . collect ( outValue ) ;...
Fixed erroneous propagation of messages for Spargel
<nb> class PropertyDerivations @ override public ActualProperties visitUnnest ( UnnestNode node , List < ActualProperties > inputProperties ) { - return Iterables . getOnlyElement ( inputProperties ) ; + Set < Symbol > passThroughInputs = ImmutableSet . copyOf ( node . getReplicateSymbols ( ) ) ; + + retu...
Fix property derivations issue for UNNEST
<nb> public final class Help STRING0 + STRING1 + STRING2 + - STRING3 + + STRING4 + STRING5 ; } }
Add full syntax for SHOW TABLES to help
<nb> public class WindowAnimator { mPendingLayoutChanges ) ; } mService . mFocusMayChange = true ; - } else if ( win . isReadyForDisplay ( ) && winAnimator . mAnimation == null ) { + } else if ( win . isReadyForDisplay ( ) ) { mForceHiding = true ; } } else if ( mPolicy . canBeForceHidden ( win , win . ...
Keep launcher screen from flashing over lockscreen
<nb> public abstract class Equivalence < T > { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix some typos in Equivalence
<nb> public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr final List < Object > keyParams = new ArrayList < Object > ( searchResultFieldsCount ) ; SINGLE for ( final String fieldName : indexDefinition . getFields ( ) . subList ( NUMBER0 , searchResultFieldsCount ) ) { - final Object ...
Fix exception in query on index with math expression
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> class Candidate implements RaftMessageHandler case ELECTION_TIMEOUT : { - log . info ( STRING0 , electionTimeout ) ; + lo...
fix wrong import
<nb> public abstract class MRTask < T extends MRTask < T > > extends DTask < T > implements Fo COMMENT COMMENT public void map ( Chunk cs [ ] ) { } - SINGLE + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void map ( Chunk cs [ ] , NewChunk nc ) { } public voi...
Enable back one variant of map function
<nb> public class HibernateSessionFlushingTests extends AbstractTransactionalJUnit4Sp private SessionFactory sessionFactory ; + protected int countRowsInPersonTable ( ) { + return countRowsInTable ( STRING0 ) ; + } + + protected void assertPersonCount ( int expectedCount ) { + assertEquals ( STRING1 ,...
Added assertPersonCount functionality for increased robustness