diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class MapActivityLayers { OsmandApplication app = ( OsmandApplication ) getApplication ( ) ; final PoiFiltersHelper poiFilters = app . getPoiFilters ( ) ; final ContextMenuAdapter adapter = new ContextMenuAdapter ( activity ) ; + adapter . item ( R . string . shared_string_search ) . iconColor ( R ....
align poi filter order on both poi filter screens
<nb> public class HttpContinue { return false ; } if ( exchange . getConnection ( ) . getExtraBytes ( ) != null ) { - SINGLE + SINGLE SINGLE return false ; } <nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface JsrWebSocketMessages...
fix a few typos
<nb> public class StubTreeLoaderImpl extends StubTreeLoader { return fromIndices ; } - if ( ! canHaveStub ( vFile ) ) { - return null ; - } - try { final FileContent fc = new FileContentImpl ( vFile , vFile . contentsToByteArray ( ) ) ; fc . putUserData ( IndexingDataKeys . PROJECT , project ) ;
build stubs for library sources to avoid AST access for parameter name calculation
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT
Revert Remove spurious Override
<nb> public class Request { COMMENT COMMENT COMMENT + @ suppresswarnings ( STRING0 ) public < T > T attribute ( String attribute ) { return ( T ) servletRequest . getAttribute ( attribute ) ; }
Add SuppressWarnings annotation
<nb> public class DummyFileInputStream extends InputStream { } public int read ( ) { - return NUMBER0 ; + return NUMBER1 ; } public int read ( byte [ ] b ) { - return NUMBER0 ; + return b . length ; } public int read ( byte [ ] b , int off , int len ) { - return NUMBER0 ; + return len ; ...
create Dummy UnderFS
<nb> public final class WebmExtractor implements Extractor { int timecode = ( scratch . data [ NUMBER0 ] < < NUMBER1 ) | ( scratch . data [ NUMBER2 ] & NUMBER3 ) ; blockTimeUs = clusterTimecodeUs + scaleTimecodeToUs ( timecode ) ; boolean isInvisible = ( scratch . data [ NUMBER4 ] & NUMBER5 ) == NUMBER5 ; - boo...
Set the sync flag on all audio samples in WebM
<nb> public class JavaGenerator implements CodeGenerator ) ) ; sb . append ( String . format ( - indent + STRING0 + + indent + STRING1 + indent + STRING2 + indent + STRING3 + indent + STRING4 ) ) ; sb . append ( String . format ( - indent + STRING5 + + indent + STRING6 + indent + STRING2 + ...
Add sbe to front of blockLength and headerSize in group to avoid name conflicts
<nb> public class ScrollView extends FrameLayout { final int y = ( int ) ev . getY ( activePointerIndex ) ; int deltaY = mLastMotionY - y ; if ( dispatchNestedPreScroll ( NUMBER0 , deltaY , mScrollConsumed , mScrollOffset ) ) { - deltaY -= mScrollConsumed [ NUMBER1 ] + mScrollOffset [ NUMBER1 ] ; + deltaY -= ...
Fix nested prescrolling bug in ScrollView
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class AjpNioProcessor extends AbstractAjpProcessor < NioChannel > { super ( packetSize , endpoint ) ; response . setOutputBuffer ( new SocketOutputBuffer ( )...
Remove unused code
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class PlayApplicationPlugin implements Plugin <...
Don t use deprecated PluginContainer apply Class method in the newly added PlayApplicationPlugin
<nb> public class MagicNumberCheck extends Check { TokenTypes . LITERAL_NEW , TokenTypes . METHOD_CALL , TokenTypes . STAR , + TokenTypes . DIV , } ; static { <nb> class ComplexButNotFlagged SINGLE SINGLE public static final Integer DEFAULT_INT = new Integer ( NUMBER0 ) ; - public static final i...
Add DIV to list of allowed tokens in MagicNumber check
<nb> public class DefaultHttpDataFactory implements HttpDataFactory { requestFileDeleteMap . remove ( request ) ; } } + + @ override + public void cleanRequestHttpDatas ( HttpRequest request ) { + cleanRequestHttpData ( request ) ; + } + + @ override + public void cleanAllHttpDatas ( ) { + clean...
Revive the deleted methods in HttpDataFactory and deprecate them
<nb> public abstract class OverlayView extends RelativeLayout { private int layoutResId ; private int notificationId = NUMBER0 ; + protected Context mContext ; public OverlayView ( OverlayService service , int layoutResId , int notificationId ) { super ( service ) ; this . layoutResId = layoutResId ; ...
Add mContext to OverlayView
<nb> public class ResultSetModel { if ( executionSource != null && executionSource . getDataContainer ( ) instanceof DBSEntity ) { SINGLE for ( DBDAttributeBinding binding : this . attributes ) { - if ( binding instanceof DBDAttributeBindingMeta ) { - DBDPseudoAttribute pseudoAttribute = ( ( DBDAttributeBindi...
RowId detect fix
<nb> public final class ActivityStackSupervisor { null : lastStack . topRunningNonDelayedActivityLocked ( notTop ) ; if ( curTop != null && curTop . task != intentActivity . task ) { r . intent . addFlags ( Intent . FLAG_ACTIVITY_BROUGHT_TO_FRONT ) ; - if ( sourceRecord == null || sourceStack . topActivity ( ) ...
Compare tasks not activities
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CypherService { ExecutionResult result = executionEngine . execute ( parser . parse ( query ) , params ) ; return output . ok ( new CypherRe...
catching the Cypher exceptions correctly
<nb> public class PipelineInstanceModel implements PipelineInfo { private boolean isCurrentlyLocked ; private TrackingTool trackingTool ; private MingleConfig mingleConfig ; + private String comment ; private PipelineInstanceModel ( ) { stageHistory = new StageInstanceModels ( ) ; <nb> public class Pipe...
Add getComment method to PipelineInstanceModel
<nb> public class HibernateJpaAutoConfiguration extends JpaBaseConfiguration { COMMENT COMMENT COMMENT - private static final String [ ] WEBSHERE_JTA_PLATFORM_CLASSES = { + private static final String [ ] WEBSPHERE_JTA_PLATFORM_CLASSES = { STRING0 , STRING1 , } ; <nb> public class HibernateJpaAutoConf...
Fix typo in HibernateJpaAutoConfiguration
<nb> public interface World { public Block getBlockAt ( int x , int y , int z ) ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public int getBlockTypeIdAt ( int x , int y , int z ) ; + + COMMENT COMMENT COMMENT COMMENT
Added int getBlockTypeIdAt int x int y int z to World
<nb> public class ViewFlow extends AdapterView < Adapter > { } private View makeAndAddView ( int position , boolean addToEnd , View convertView ) { - View view = mAdapter . getView ( position , convertView , - ( convertView != null ? ( ViewGroup ) convertView . getParent ( ) - : this ) ) ; + View view = m...
Setting correct parent
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - COMMENT - COMMENT - COMMENT class NewShowcaseDrawer extends StandardShowcaseDrawer { private static final int ALPHA_60_PERCENT = NUMBER0 ; <nb> class NewShowcaseDrawer extends StandardShowcaseDrawer { return innerRadius ; } - @ ...
Remove bad doc message
<nb> public class BadUrlsSaver { } FileWriter writer = new FileWriter ( file ) ; BufferedWriter bufferedWriter = new BufferedWriter ( writer ) ; - int index = NUMBER0 ; for ( Map . Entry < String , String > entry : map . entrySet ( ) ) { if ( isSaveAlLMatterUrls ) { - bufferedWriter . write ( ( index ++ )...
remove some shit codes
<nb> public class ImmutableSettings implements Settings { try { return ( Class < ? extends T > ) getClassLoader ( ) . loadClass ( fullClassName ) ; } catch ( ClassNotFoundException e2 ) { - throw new NoClassSettingsException ( STRING0 + setting + STRING1 + get ( setting ) + STRING2 , e ) ; + throw new NoClass...
Throw correct ClassNotFoundException to debug classloader issues
<nb> public class TsurgeonTest extends TestCase { } catch ( TsurgeonParseException e ) { SINGLE } + + SINGLE + tsurgeon = Tsurgeon . parseOperation ( STRING0 ) ; + tregex = TregexPattern . compile ( STRING1 ) ; + try { + runTest ( tregex , tsurgeon , STRING2 , STRING2 ) ; + throw new AssertionError ...
Add another test for the new Tsurgeon operation
<nb> public class GelfChunkAggregator implements CodecAggregator { private static final long CHECK_PERIOD = NUMBER0 ; private final ConcurrentMap < String , ChunkEntry > chunks = Maps . newConcurrentMap ( ) ; - private final ConcurrentSkipListSet < ChunkEntry > sortedEvictionSet = new ConcurrentSkipListSet ( ) ...
Fix unchecked assignment in GelfChunkAggregator
<nb> public class ActionBarSherlockCompat extends ActionBarSherlock implements MenuBu public boolean dispatchPrepareOptionsMenu ( android . view . Menu menu ) { if ( DEBUG ) Log . d ( TAG , STRING0 + menu ) ; + if ( mActionMode != null ) + return false ; + mMenuIsPrepared = false ; if ( ! preparePanel (...
Don t show the overflow menu if in action mode
<nb> public class NotifyMyAndroid { return notifyMyAndroid ( apiKey , event , description ) ; } + @ actiondoc ( text = STRING0 , returns = STRING1 ) + public static boolean notifyMyAndroid ( + @ paramdoc ( name = STRING2 , text = STRING3 ) String event , + @ paramdoc ( name = STRING4 , text = STRING5 ) St...
Add an extra overload to the notifyMyAndroid action event description priority
<nb> public class ActionBarImpl extends ActionBar { break ; default : throw new IllegalStateException ( - STRING0 ) ; + STRING1 ) ; } }
Corrected method name setSelectedNavigationIndex to setSelectedNavigationItem in the exception message
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class VcsLogRefresherTest extends VcsLogPlatformTest { private List < String > myCommits ; - public static Test suite ( )...
remove the suite method added for debugging purposes
<nb> public class WebSocketFactory extends AbstractLifeCycle private int _maxTextMessageSize = NUMBER0 * NUMBER1 ; private int _maxBinaryMessageSize = - NUMBER2 ; + public WebSocketFactory ( Acceptor acceptor ) + { + this ( acceptor , NUMBER3 * NUMBER1 ) ; + } + public WebSocketFactory ( Acceptor acce...
Restored constructor that was removed used in CometD
<nb> public class IdeaJdkAnnotationsReflectedTest extends KotlinTestWithEnvironment { if ( ! declarationsWithMissingAnnotations . isEmpty ( ) ) { StringBuilder builder = new StringBuilder ( STRING0 ) ; for ( PsiModifierListOwner declaration : declarationsWithMissingAnnotations ) { - builder . append ( PsiFormat...
Ignore decompiler problem just show trouble declarations
<nb> public class RootbeerCompiler { RootbeerClassLoader . v ( ) . addRuntimeClass ( STRING0 ) ; RootbeerClassLoader . v ( ) . addRuntimeClass ( STRING1 ) ; RootbeerClassLoader . v ( ) . addRuntimeClass ( STRING2 ) ; + RootbeerClassLoader . v ( ) . addRuntimeClass ( STRING3 ) ; + RootbeerClassLoader . v ( ) ....
adding new runtime classes to RootbeerClassLoader
<nb> public class AbstractSObjectBase extends AbstractDTOBase { private ZonedDateTime LastModifiedDate ; private String LastModifiedById ; private ZonedDateTime SystemModstamp ; - private String LastActivityDate ; + private ZonedDateTime LastActivityDate ; private ZonedDateTime LastViewedDate ; private Zo...
Changed LastActivityDate to DateTime
<nb> public class SpringDebugBeforeTest extends CamelSpringTestSupport { private final List < String > before = new ArrayList < String > ( ) ; @ override + public boolean isUseDebugger ( ) { + SINGLE + return true ; + } + + @ override protected AbstractApplicationContext createApplicationContext ( )...
Fixed the test error of SpringDebugBeforeTest
<nb> public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { station . y = node . getLat ( ) ; station . spacesAvailable = capacity / NUMBER0 ; station . bikesAvailable = capacity / NUMBER0 ; + station . realTimeData = false ; bikeRentalService . addStation ( station ) ; BikeRentalStationVertex...
Add real time data flag on station
<nb> public class FlexLayout extends ViewGroup { queue . add ( stack . pop ( ) ) ; } } else { - if ( ! stack . empty ( ) ) { + while ( ! stack . empty ( ) ) { Operator o2 = stack . peek ( ) ; if ( op . assoc == Operator . ASSOC_LEFT && op . prec <= o2 . prec || op . assoc == Operator . ASSOC_RIGHT && op...
fix RPN parse bug Shunting yard algorithm
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AppCompatActivity extends FragmentActivity implements AppCompatCall super . onConfigurationChanged ( newConfig ) ; getDeleg...
Update display metrics when updating configuration
<nb> public abstract class JCVideoPlayer extends FrameLayout implements JCMediaPlayer if ( old != null ) { vp . removeView ( old ) ; } + if ( textureViewContainer . getChildCount ( ) > NUMBER0 ) { + textureViewContainer . removeAllViews ( ) ; + } try { Constructor < JCVideoPlayer > constructor = ( Const...
remove old textureview
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class WebFilter implements Filter { } if ( ! stickySession ) { - getClusterMap ( ) . addEntryListener ( new EntryAdapter < String , Object > ( ...
revert to entry listener usage
<nb> public class WakelockPowerCalculator extends PowerCalculator { } @ override - public void calculateApp ( BatterySipper app , BatteryStats . Uid u , long rawUptimeUs , - long rawRealtimeUs , int statsType ) { + public void calculateApp ( BatterySipper app , BatteryStats . Uid u , long rawRealtimeUs , ...
Fix issue with method parameter order
<nb> public class NetworkPolicyManagerService extends INetworkPolicyManager . Stub { private BroadcastReceiver mScreenReceiver = new BroadcastReceiver ( ) { @ override public void onReceive ( Context context , Intent intent ) { - synchronized ( mRulesLock ) { - SINGLE - SINGLE - mHandler . obtainMessage (...
Remove unnecessary locking for screen broadcasts
<nb> public class ThymeleafAutoConfiguration { if ( checkTemplateLocation ) { Resource resource = this . resourceLoader . getResource ( this . environment . getProperty ( STRING0 , DEFAULT_PREFIX ) ) ; - Assert . state ( resource . exists ( ) , STRING1 - + resource + STRING2 ) ; + Assert . state ( + resou...
Change exception message for missing Thymeleaf templates
<nb> public interface Seq < T > extends Traversable < T > , Function1 < Integer , T > { COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface Seq < T > extends Traversable < T > , Function1 < Integer , T > { COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT ...
Add note on padTo and leftPadTo
<nb> public abstract class AbstractSubViewAttributes < T extends AdapterView < ? > > extend if ( groupedAttributeDetails . hasAttribute ( visibilityAttribute ( ) ) ) { SubViewVisibilityAttribute visibilityAttribute = createVisibilityAttribute ( subView ) ; + visibilityAttribute . setView ( subView ) ; visibil...
Set the view as subView on the SubViewVisibilityAttribute
<nb> public class SegmentOnlineOfflineStateModelFactory extends StateModelFactory < Sta final String pathToPropertyStore = STRING0 + StringUtil . join ( STRING0 , resourceName , segmentId ) ; OfflineSegmentZKMetadata offlineSegmentZKMetadata = - new OfflineSegmentZKMetadata ( context . getManager ( ) . getHelix...
Fixed NPE on server due to path changes causing all segments to error out instead of coming online
<nb> public class ScLogFormatter sb . append ( record . getLevel ( ) . getLocalizedName ( ) ) ; sb . append ( STRING0 ) ; + SINGLE + sb . append ( STRING1 + record . getThreadID ( ) + STRING2 ) ; + SINGLE int lineNumber = inferCaller ( record ) ; String loggerName = record . getLoggerName ( ) ;
Add thread IDs to log messages
<nb> public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { name = STRING0 + node . getId ( ) ; int capacity = Integer . MAX_VALUE ; if ( node . hasTag ( STRING1 ) ) { - capacity = Integer . parseInt ( node . getTag ( STRING1 ) ) ; + try { + capacity = Integer . parseInt ( node . getTag ( STRI...
handle malformed capacity in OSM data
<nb> public class DrawableCrossFadeFactory implements TransitionFactory < Drawable > { COMMENT public static class Builder { private static final int DEFAULT_DURATION_MS = NUMBER0 ; - private int durationMillis = DEFAULT_DURATION_MS ; + private int durationMillis ; private ViewAnimationFactory < Drawable > ...
Fix PMD error in DrawableCrossFadeFactory
<nb> public final class BluetoothDeviceProfileState extends HierarchicalStateMachine SINGLE break ; } else { - if ( mHeadsetService != null && + if ( mHeadsetService != null && mHeadsetService . getPriority ( mDevice ) == BluetoothHeadset . PRIORITY_AUTO_CONNECT && mHeadsetService . getDevicesMatchingCo...
Fix some formatting issues
<nb> public class HighAvailabilityModeSwitcher implements HighAvailabilityMemberListe masterServer . getSocketAddress ( ) . getPort ( ) + STRING0 + config . get ( HaSettings . server_id ) ) ; clusterMemberAvailability . memberIsAvailable ( MASTER , haUri ) ; + msgLog . logMessage ( STRING1 + config . get ( HaSe...
Added a log statement for complete switch to master
<nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - public class HashJoinTest + public class HashJoinITCase { private static final AbstractInvokable MEM_OWNER = new DummyInvokable ( ) ;
Renamed class as well
<nb> public class CacheAutoConfiguration { @ override public void postProcessBeanFactory ( ConfigurableListableBeanFactory beanFactory ) throws BeansException { - for ( String name : beanFactory . getBeanNamesForType ( CacheAspectSupport . class ) ) { + for ( String name : beanFactory . getBeanNamesForType ( ...
Prevent bean early initialization
<nb> public class BreakpointManager implements JDOMExternalizable { } } - private synchronized void addBreakpoint ( Breakpoint breakpoint ) { + SINGLE + public synchronized void addBreakpoint ( Breakpoint breakpoint ) { myBreakpoints . add ( breakpoint ) ; myBreakpointsListForIteration = null ; if ( b...
make method public for Fabrique
<nb> public class IcsLinearLayout extends NineLinearLayout { } COMMENT + COMMENT + COMMENT + COMMENT + public void setDividerPadding ( int padding ) { + mDividerPadding = padding ; + } + + COMMENT + COMMENT + COMMENT + public int getDividerPadding ( ) { + return mDividerPadding ; + } +...
Adding missing set get DividerPadding methods
<nb> public class DeflectorInformation { List < Map < String , Object > > shards = Lists . newArrayList ( ) ; for ( Map . Entry < Integer , IndexShardStats > s : e . getValue ( ) . indexShards ( ) . entrySet ( ) ) { - Map < String , Object > shard = Maps . newHashMap ( ) ; + Iterator < ShardStats > iter =...
YOU BETTER BE JOKING
<nb> public abstract class SquidDatabase { } public MigrationFailedException ( String dbName , int oldVersion , int newVersion , Throwable throwable ) { - super ( STRING0 + dbName + STRING1 + oldVersion + STRING2 + newVersion , throwable ) ; + super ( STRING0 + dbName + STRING1 + oldVersion + STRING3 + newVer...
Fix message of MigrationFailedException
<nb> public final class ActivityManagerService extends ActivityManagerNative implemen SINGLE SINGLE SINGLE - static final int MAX_HIDDEN_APPS = NUMBER0 ; + static final int MAX_HIDDEN_APPS = NUMBER1 ; SINGLE SINGLE
Revert MAX_HIDDEN_APPS experiment
<nb> public class StreetVertexIndexServiceImpl implements StreetVertexIndexService { envelope . expandBy ( envelopeGrowthRate ) ; envelopeGrowthRate *= NUMBER0 ; - double bestDistance = Double . MAX_VALUE ; + if ( includeTransitStops ) { + double bestDistance = Double . MAX_VALUE ; List < Vertex > nearb...
Fixed small bug in StreetVertexIndexServiceImpl which was leading to a NPE under certain conditions
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
updated Java doc to reflect generation of AllArgsConstructor instead of RequiredArgsConstructor
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - public class LocalhostTest extends TestCase { public void testGetLocalhost ( ) {
Remove unused imports
<nb> public class GCMMessageService extends GcmListenerService { SINGLE builder . addAction ( action ) ; - SINGLE - builder . extend ( new NotificationCompat . WearableExtender ( ) . addAction ( action ) ) ; - } private void addCommentLikeActionForCommentNotification ( Context context , NotificationCo...
removed line that prevented like approve actions to appear on wearables
<nb> public class Dialog implements DialogInterface , Window . Callback , final SearchManager searchManager = ( SearchManager ) mContext . getSystemService ( Context . SEARCH_SERVICE ) ; + SINGLE + if ( ! searchManager . hasIdent ( ) ) { + return false ; + } + SINGLE SINGLE final ComponentName app...
Don t start search from a dialog if there is no activity associated with
<nb> public final class Realm extends BaseRealm { } } - protected void checkIfValid ( ) { - super . checkIfValid ( ) ; - } - @ override protected Map < RealmConfiguration , Integer > getLocalReferenceCount ( ) { return referenceCount . get ( ) ;
Remove empty override method
<nb> public class IndexPrimaryRelocationIT extends ESIntegTestCase { private static final int RELOCATION_COUNT = NUMBER0 ; + @ testlogging ( STRING0 ) public void testPrimaryRelocationWhileIndexing ( ) throws Exception { internalCluster ( ) . ensureAtLeastNumDataNodes ( randomIntBetween ( NUMBER1 , NUMBER2 ...
Add some debug logging to testPrimaryRelocationWhileIndexing
<nb> public @ interface JSR303Validation { String fieldKey ( ) default STRING0 ; public static final String KEY = STRING1 ; - public static final String MESSAGE = STRING2 ; + public static final String MESSAGE = STRING3 ; }
Fixed tiny spelling thing
<nb> import NAMESPACE ; COMMENT public class TermCountReducer extends MapReduceBase implements Reducer < Text , LongWritable , Text , LongWritable > { - private static int minSupport ; + private int minSupport ; @ override public void reduce ( Text key ,
Prevent edit of static var in configure
<nb> public class EncodedDataTypeTest STRING0 + STRING1 + STRING2 + + STRING3 + + STRING4 + STRING5 ; Map < String , Type > map = parseTestXmlWithMap ( STRING6 , testXmlString ) ; <nb> public class EncodedDataTypeTest assertThat ( valueOf ( map . get ( STRING7 ) . size ( ) ) , is ( valueOf ( NUMBER0...
Added tests for double and float types as primitiveType declarations
<nb> public abstract class DataSupport { return queryHandler . onFind ( modelClass , id ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public static synchronized < T > T findFirst ( Class < T > modelClass ) { QueryHandler queryHandler = new QueryHandler ( Connector ....
Add annotations on findFirst and findLast method
<nb> public class DnsUtilActivator StringBuilder sb = new StringBuilder ( ) ; sb . append ( STRING0 ) ; ResolverConfig config = ResolverConfig . getCurrentConfig ( ) ; - if ( config != null ) + if ( config != null && config . servers ( ) != null ) { for ( String s : config . servers ( ) ) {
Fix NPE during DNS config reload
<nb> public class Observable < T > { } COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Observable < T > { COMMENT COMMENT COMMENT + COMMENT COMMENT @ beta public final Observable < T > doOnRequest ( final Action1 < Long > onRequest ) { <nb> public clas...
add since section to doOnRequest javadocs
<nb> public final class MotionEventCompat { COMMENT COMMENT COMMENT - private static class ICSMotionEventVersionImpl extends GingerbreadMotionEventVersionImpl { + private static class ICSMotionEventVersionImpl extends HoneycombMr1MotionEventVersionImpl { @ override public int getButtonState ( MotionEvent ...
Fix class hierarchy in MotionEventCompat
<nb> public class MockEntitlementDaoMemory implements EntitlementDao , MockEntitlement @ override public void undoMigration ( UUID accountId ) { - } + synchronized ( events ) { + + List < SubscriptionBundle > allBundles = getSubscriptionBundleForAccount ( accountId ) ; + for ( SubscriptionBundle bundle ...
Add missing file
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; + import NAMESPACE ; - import NAMESPACE ; import NAMESPACE...
Re enable ignored tests in MockServletContextTests
<nb> public class Jobs extends Request { try { key = URLEncoder . encode ( str , STRING0 ) ; } catch ( UnsupportedEncodingException e ) { key = str ; } - return ( STRING1 . equals ( key ) || DKV . get ( Key . make ( str ) ) == null ) ? key : STRING2 + KEY + STRING3 + key + STRING4 + str + STRING5 ; + return (...
Fix links in job page
<nb> public class ExperimentalEventHandler extends BlazeCommandEventHandler { @ subscribe public void buildComplete ( BuildCompleteEvent event ) { stateTracker . buildComplete ( event ) ; + ignoreRefreshLimitOnce ( ) ; refresh ( ) ; buildComplete = true ; stopUpdateThread ( ) ;
ignore refresh limit on final progress bar change
<nb> public class HttpURI } COMMENT + public void parseConnect ( String uri ) + { + clear ( ) ; + _uri = uri ; + _path = uri ; + } + + COMMENT public void parse ( String uri , int offset , int length ) { clear ( ) ; <nb> class HttpChannelOverHttp extends HttpChannel implements HttpParser ....
Parsing issues with HttpURI
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ;
remove unused import in MocoWebTest class
<nb> class Parser implements TagConstants { COMMENT COMMENT COMMENT + @ suppresswarnings ( STRING0 ) SINGLE private boolean parseCustomTag ( Node parent ) throws JasperException { if ( reader . peekChar ( ) != STRING1 ) { <nb> class ParserController implements TagConstants { COMMENT COMMENT COMMEN...
Suppress some false positives
<nb> public class BombControl extends RigidBodyControl implements PhysicsCollisionLis private float forceFactor = NUMBER0 ; private ParticleEmitter effect ; private float fxTime = FLOAT0 ; + private float maxTime = FLOAT1 ; private float curTime = - FLOAT2 ; + private float timer ; public BombControl ( ...
add maxtime for BombControl
<nb> public class TableHistory extends AbstractTable { psContainsURI . executeQuery ( ) ; ResultSet rs = psContainsURI . getResultSet ( ) ; if ( rs . next ( ) ) { + rs . close ( ) ; SINGLE return true ; } rs . close ( ) ;
Fixed memory leak
<nb> final class ServiceRecord extends Binder { } Context ctx = null ; try { - ctx = ams . mContext . createPackageContext ( - appInfo . packageName , NUMBER0 ) ; + ctx = ams . mContext . createPackageContextAsUser ( + appInfo . packageName , NUMBER0 , new UserHandle ( userId ) ) ; Notification . Buil...
Fix the issue that App crash on startForeground
<nb> public class DBRef { final DBCollection coll = _db . getCollectionFromString ( _ns ) ; - _pointedTo = coll . find ( _id ) ; + _pointedTo = coll . findOne ( _id ) ; _loadedPointedTo = true ; return _pointedTo ; } <nb> public class ErrorTest { assert ( _db . getLastError ( ) . get ( STRING0 ) == ...
DBRef fix the compile breakage
<nb> package NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class NodeTraversor { } COMMENT - COMMENT + COMMENT COMMENT COMMENT public void traverse ( Node root ) {
Corrected documentation of NodeTraversor to reflect depth first order of node visitation
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IncrementalIndex implements Iterable < Row > , Closeable in . set ( row ) ; int rowOffset = facts . get ( key ) ; for ( i...
add back broken synch
<nb> public class SemanticGraph implements Serializable { } return nodes ; } + + public List < IndexedWord > getAllNodesByPartOfSpeechPattern ( String pattern ) { + Pattern p = Pattern . compile ( pattern ) ; + List < IndexedWord > nodes = new ArrayList < IndexedWord > ( ) ; + for ( IndexedWord vertex :...
removing dependency on constituent parser for coref
<nb> public class SecurityControllerImpl implements SecurityController { NetworkCapabilities networkCapabilities = mConnectivityManager . getNetworkCapabilities ( network ) ; if ( DEBUG ) Log . d ( TAG , STRING0 + network . netId + STRING1 + networkCapabilities ) ; - if ( networkCapabilities . hasTransport ( Ne...
Handle case when network has been lost
<nb> public final class Utils { } public static boolean isSpdyConnection ( final Connection c ) { - return SPDY . get ( c ) ; + Boolean result = SPDY . get ( c ) ; + return ( result != null ? result : false ) ; } }
Fix test failure
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT public class DefaultClassAnalysisCache extends MinimalPersistentCache < byte [ ] , ClassAnalysis > implements ClassAnalysisCache { public DefaultClassAnalysisCache ( CacheRepository cacheRepository ...
Documented current incremental java compilation caches
<nb> public class ReaderPostAdapter extends RecyclerView . Adapter < ReaderPostAdapter . Re holder . txtTag . setOnClickListener ( null ) ; } - SINGLE - boolean showComments = post . isWP ( ) && ( post . isCommentsOpen || post . numReplies > NUMBER0 ) ; + boolean showComments ; boolean showLikes ; if ( ...
Don t show comment icon in list view when logged out unless comments exist
<nb> public class KeyguardServiceDelegate { if ( ! context . bindServiceAsUser ( intent , mKeyguardConnection , Context . BIND_AUTO_CREATE , UserHandle . OWNER ) ) { if ( DEBUG ) Log . v ( TAG , STRING0 + KEYGUARD_CLASS ) ; + mKeyguardState . showing = false ; + mKeyguardState . showingAndNotHidden = false ; ...
Fix broken homekey on devices without keyguard
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + @ runwith ( HazelcastParallelClassRunner . class ) @ category ( { QuickTest . class , ParallelTest . class } ) public class UuidFilterTest { + private UuidFilter uuidFilter = new UuidFilter ( ) ; + @ requ...
Increased code coverage of UuidFilter
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener public boolean bringPointIntoView ( int offset ) { boolean changed = false ; + if ( mLayout == null ) return changed ; + int line = mLayout . getLineForOffset ( offset ) ; SINGLE
Fix NPE in bringPointIntoView
<nb> public class WelcomeActivity extends ThemeableActivity implements ICacheWordSubs Intent intent = getIntent ( ) ; - if ( intent != null ) + if ( intent != null && ( ! intent . getAction ( ) . equals ( Intent . ACTION_MAIN ) ) ) { handleIntentAPILaunch ( intent ) ; } <nb> public class WelcomeActivi...
don t finish activity on ACTION_MAIN intent
<nb> public class ProtobufAnnotationSerializer extends AnnotationSerializer { public CoreNLPProtos . DependencyGraph toProto ( SemanticGraph graph ) { CoreNLPProtos . DependencyGraph . Builder builder = CoreNLPProtos . DependencyGraph . newBuilder ( ) ; SINGLE - Set < IndexedWord > rootSet = new IdentityHashSet...
Add dependency trees rename to simple add documentation
<nb> public class RenderTargetTexture extends ATexture { public RenderTargetTexture ( String textureName ) { - super ( TextureType . RENDER_TARGET , textureName ) ; + this ( textureName , NUMBER0 , NUMBER0 ) ; } public RenderTargetTexture ( String textureName , int width , int height )
Missing fix from previous commit fixes NPE in object picking
<nb> public class GenerateMembersUtil { newMethod . getNameIdentifier ( ) . replace ( factory . createIdentifier ( method . getName ( ) ) ) ; } else { - newMethod = factory . createMethod ( method . getName ( ) , substituteType ( substitutor , returnType ) ) ; + final PsiType substitutedReturnType = substitut...
erase wildcards in return types during generation
<nb> public class DefaultPlatformManager implements PlatformManagerInternal , ModuleRe @ override public void exit ( ) { + SINGLE + SINGLE + vertx . clusterManager ( ) . leave ( ) ; if ( exitHandler != null ) { exitHandler . handle ( null ) ; }
Shutdown cluster manager before exit otherwise hazelcast non daemon threads will prevent exit
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - ...
Removing unused imports
<nb> class DataTable implements Disposable , Forceable { return result ; } - public void reclaimSpace ( long address , int len ) { + public void reclaimSpace ( int len ) { myWasteSize += len ; } <nb> public class Storage implements Disposable , Forceable { address = myRecordsTable . getAddress ( rec...
review by cdr Account lost space when overwriting records with data that do not fit existing space