diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class WindowManagerService extends IWindowManager . Stub mWallpaperTarget = oldW ; foundW = oldW ; foundI = oldI ; - mLowerWallpaperTarget = null ; - mUpperWallpaperTarget = null ; } SINGLE SINGLE <nb> public class WindowManagerService extends IWindowManager . Stub set . addAnimation ( s...
Set detached wallpaper on the scale up animation
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Snackbar extends SnackbarLayout { root . addView ( this , params ) ; + bringToFront ( ) ; + + if ( Build . VERSION...
bring Snackbar to front after attaching to parent Activity
<nb> public class Location implements Cloneable { } @ override - protected Location clone ( ) { + public Location clone ( ) { return new Location ( world , x , y , z , yaw , pitch ) ; } }
Made Location clone public
<nb> public class Request throw new IllegalStateException ( STRING0 ) ; } - if ( asyncContext == null ) { + if ( asyncContext == null ) { asyncContext = new AsyncContextImpl ( this ) ; - } else if ( asyncContext . isStarted ( ) ) { - throw new IllegalStateException ( STRING1 ) ; } asyncContext . s...
AsyncContext will throw exception
<nb> public interface RILConstants { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT SINGLE SINGLE int OEM_ERROR_1 = NUMBER0 ;
Add RIL Error code list
<nb> public class DataServerIntegrationTest { @ parameterized.parameters public static Collection < Object [ ] > data ( ) { SINGLE - List < Object [ ] > list = new ArrayList < Object [ ] > ( ) ; + List < Object [ ] > list = new ArrayList < > ( ) ; list . add ( new Object [ ] { IntegrationTestConstants . NET...
SMALLFIX Removed explicit type argument in DataServerIntegrationTest
<nb> public abstract class AbstractListBuilder { } } - public final Object getParentElement ( ) { + public final AbstractTreeNode getParentElement ( ) { return myCurrentParent ; }
Assert statement formatting
<nb> public class VcsHistoryDialog extends DialogWrapper implements DataProvider { } private JComponent createComments ( final JComponent addComp ) { - final Splitter splitter = new Splitter ( false ) ; - final JLabel label = new JLabel ( STRING0 ) { - @ override - public Dimension getPreferredSize ( ) { ...
do not set explicit preferred size for label
<nb> public class DalvikBitmapFactory { try { CloseableReference < Bitmap > bitmapRef = decodeJPEGFromPooledByteBuffer ( jpgRef , jpgRef . get ( ) . size ( ) ) ; - Bitmap underlying = bitmapRef . get ( ) ; - for ( int x = NUMBER0 ; x < underlying . getWidth ( ) ; x ++ ) { - for ( int y = NUMBER0 ; y < under...
Replace loop with eraseColor
<nb> public class WebSocketSession extends ContainerLifeCycle implements Session , Web @ override public void close ( int statusCode , String reason ) { - connection . close ( statusCode , CloseStatus . trimMaxReasonLength ( reason ) ) ; + connection . close ( statusCode , reason ) ; } COMMENT
Removing redudant close reason trim handled elsewhere now
<nb> public interface TypeDescription extends TypeDefinition , TypeVariableSource { COMMENT TypeDescription CLASS = new ForLoadedType ( Class . class ) ; + COMMENT + COMMENT + COMMENT TypeDescription THROWABLE = new ForLoadedType ( Throwable . class ) ; COMMENT
Added missing javadoc
<nb> public abstract class Parser extends Recognizer < Token , ParserATNSimulator < Token > public void removeParseListener ( ParseListener < Token > l ) { if ( l == null ) return ; - if ( _parseListeners != null ) _parseListeners . remove ( l ) ; + if ( _parseListeners != null ) { + _parseListeners . remov...
Set the listeners list back to null if all listeners are removed from it
<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub { && getActiveAdminUncheckedLocked ( adminReceiver , userHandle ) != null ) { throw new IllegalArgumentException ( STRING0 ) ; } + if ( policy . mRemovingAdmins . contains ( adminReceiver ) ) { + throw new IllegalArgumentExceptio...
Remove the admin from the removing list when refreshing that admin
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + @ test ( singleThreaded = true ) public class TestShardRecovery { private StorageService storageService ; <nb> public class TestShardRecovery File file = storageService . getStorageFile ( shardUuid ) ; File backupFi...
Fix shard recovery tests
<nb> public abstract class DocGen { public static void createReSTFilesInCwd ( ) { createFile ( STRING0 , new ImportFiles ( ) . ReSTHelp ( ) ) ; + createFile ( STRING1 , new ImportFiles2 ( ) . ReSTHelp ( ) ) ; + createFile ( STRING2 , new Parse2 ( ) . ReSTHelp ( ) ) ; } public static void main ( String [...
Added some more pages
<nb> public class ResReferenceValue extends ResIntValue { } public ResReferenceValue ( ResPackage package_ , int value , boolean theme ) { - super ( value ) ; + super ( value , STRING0 ) ; mPackage = package_ ; mTheme = theme ; }
added type name
<nb> public class SystemTable QueryFilter filter = QueryFilter . getNamesFilter ( decorate ( ByteBufferUtil . bytes ( table ) ) , new QueryPath ( INDEX_CF ) , ByteBufferUtil . bytes ( indexName ) ) ; - return cfs . getColumnFamily ( filter ) != null ; + return ColumnFamilyStore . removeDeleted ( cfs . getColu...
Have isIndexBuilt expunge all tombstones
<nb> public class YamlSettingsLoaderTests extends ESTestCase { ElasticsearchParseException e = expectThrows ( ElasticsearchParseException . class , ( ) - > { Settings . builder ( ) . loadFromPath ( tmp ) ; } ) ; - assertTrue ( e . getMessage ( ) , e . getMessage ( ) . contains ( STRING0 ) ) ; + assertTrue ( e...
Check more complete exception message for missing setting value
<nb> public final class NfcBarcode extends BasicTagTechnology { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public byte [ ] getBarcode ( ) { switch ( mType ) {
Fixed text and Kovio links
<nb> public class SearchDialog extends Dialog { try { SINGLE SINGLE - Log . i ( LOG_TAG , STRING0 + intent . toUri ( NUMBER0 ) ) ; getContext ( ) . startActivity ( intent ) ; SINGLE SINGLE
Removed intent logging from SearchDialog java
<nb> public class ProviderManager extends AbstractAuthenticationManager implements In public void afterPropertiesSet ( ) throws Exception { checkIfValidList ( this . providers ) ; Assert . notNull ( this . messages , STRING0 ) ; - doAddExtraDefaultExceptionMappings ( DEFAULT_EXCEPTION_MAPPINGS ) ; + doAddExtr...
Made afterPropertiesSet use instance variable instead of static variable
<nb> public class SQLiteQueryBuilder COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT @ deprecated
Fix build broken documentation link
<nb> public class BdbStorageEngine implements StorageEngine < ByteArray , byte [ ] > { VectorClock clock = new VectorClock ( valueEntry . getData ( ) ) ; Occured occured = value . getVersion ( ) . compare ( clock ) ; if ( occured == Occured . BEFORE ) - throw new ObsoleteVersionException ( STRING0 + throw new...
Improve obsolete version exception message
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class LayoutAnimationControllerAssert extends + public final class LayoutAnimationControllerAssert extends AbstractLayoutAnimationControllerAssert < LayoutAnimationControllerAssert , LayoutAnimationController > { public LayoutAnimationControllerAsse...
Make LayoutAnimationControllerAssert final as the documentation suggests
<nb> import NAMESPACE ; public class ActFmInvoker { COMMENT - private static final String URL = STRING0 ; + private static final String URL = STRING1 ; private static final String APP_ID = STRING2 ; private static final String APP_SECRET = STRING3 ;
Updated ip address of localhost
<nb> public class Observable < T > { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Observable < T > { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Observable < T > { COMMENT COMMENT COMMENT - COM...
Fix typos in javadoc comments
<nb> public final class TSDB { } else { async_config = new org . hbase . async . Config ( ) ; } - async_config . overrideConfig ( STRING0 , + async_config . overrideConfig ( STRING1 , config . getString ( STRING2 ) ) ; - async_config . overrideConfig ( STRING3 , + async_config . overrideConfig ( STRING4...
Fix property names for the AsyncHBase config in the TSDB ctor
<nb> public class Wallet implements Serializable , BlockChainListener , PeerFilterProvi } } } - if ( takeAction ) { + if ( takeAction && ! doubleSpentTxns . isEmpty ( ) ) { killTx ( tx , doubleSpentTxns ) ; } return ! doubleSpentTxns . isEmpty ( ) ;
don t call killTx if it has no work to do cleans up a misleading log line
<nb> public class TransitIndexBuilder implements GraphBuilderWithGtfsDao { final int minutesInDay = NUMBER0 * NUMBER1 ; boolean [ ] minutes = new boolean [ minutesInDay ] ; for ( StopTime stopTime : dao . getAllStopTimes ( ) ) { - minutes [ ( stopTime . getDepartureTime ( ) / NUMBER1 ) % minutesInDay ] = true ;...
handle empty arrival departure times
<nb> public class PlanJSONDumpGenerator { case HYBRIDHASH_BUILD_SECOND : locString = STRING0 + child2name + STRING1 ; break ; + + case HYBRIDHASH_BUILD_FIRST_CACHED : + locString = STRING2 + child1name + STRING1 ; + break ; + case HYBRIDHASH_BUILD_SECOND_CACHED : + locString = STRING2 + child2name + S...
Fix missing strategy constants in JSON dump generator
<nb> public class TvView extends SurfaceView { if ( mSession != null ) { release ( ) ; } + mSessionCallback = null ; } COMMENT
Make mSessionCallback null in TvView unbindTvInput
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT public class MatchFunction implements FunctionImplementation < Function > { public static final String NAME = STRING0 ;
add note to func
<nb> - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - package NAMESPACE ; import NAMESPACE ; <nb> public class OperatorOnBa...
Fixed file comment larger timeout for a test
<nb> public class Es6ToEs3Converter implements NodeTraversal . Callback , HotSwapCompile case Token . ARRAY_PATTERN : case Token . FOR_OF : case Token . OBJECT_PATTERN : + case Token . SUPER : + cannotConvertYet ( n , Token . name ( n . getType ( ) ) ) ; + SINGLE + SINGLE + return false ; } return t...
Added super check
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class ServerListDownloader { @ override public void run ( ) { try { - status = STRING0 ; + status = STRING1 ; @ suppresswarnings ( STRING2 ) Type entryListType = new TypeToken < Li...
Added more exception handling for invalid server lists
<nb> public final class CopyFromLocalCommand extends AbstractShellCommand { } COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT private void copyFromLocalDirs ( File srcDir , AlluxioURI dstPath ) throws IOException...
Fix code checkstyle
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GridCellImpl implements GridCell { @ override protected SingleRowLayout createSingleRowLayout ( ) ...
hide tabs in execution ui if there are too many of them
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class InputCreated { @ jsonproperty public abstract String id ( ) ; - public static InputCreated create ( String id ) { + @ jsoncreator + public static InputCreated cre...
Making DTO deserializable
<nb> public class BackupTool } catch ( ToolFailureException e ) { - if ( e . getCause ( ) != null ) - { - e . getCause ( ) . printStackTrace ( System . out ) ; - } - + System . out . println ( STRING0 ) ; exitFailure ( e . getMessage ( ) ) ; } } <nb> public class BackupTool } catch ( Misma...
Suppress stack traces for known backup exceptions
<nb> public class PrivacyManager { SINGLE boolean fallback = true ; boolean restricted = false ; - if ( context != null && uid != cUidAndroid ) + if ( context != null ) try { SINGLE ContentResolver contentResolver = context . getContentResolver ( ) ; <nb> package NAMESPACE ; import NAMESPACE ; imp...
Send usage data for Android
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public interface KeyValuePartitionWriter extends Closeable , Cancelable { throws Allu...
Set the max size of a block in CreateFileOptions when creating a partition file in key value store
<nb> public class RemoteImageLoaderHandler extends Handler { remoteImageLoaderViewAdapter . setErrorDrawable ( errorDrawable ) ; } + public View getView ( ) { + return remoteImageLoaderViewAdapter . getView ( ) ; + } + + public void setView ( View view ) { + remoteImageLoaderViewAdapter . setView ( vi...
Created getter setter for view field on RemoteImageLoaderHandler
<nb> public class HiveSchemaHelper { if ( confVarStr == null || confVarStr . isEmpty ( ) ) { throw new IOException ( STRING0 + confVar . varname ) ; } - return confVarStr ; + return confVarStr . trim ( ) ; } public interface NestedScriptParser {
Hive SchemaTool does not tolerate leading spaces in JDBC url Chen Xin Yu via Ashutosh Chauhan
<nb> public class PreferencesFrame { JLabel preferenceHintLabel = new JLabel ( STRING0 + Language . text ( STRING1 ) + STRING2 ) ; preferenceHintLabel . setForeground ( Color . gray ) ; - SINGLE + SINGLE okButton = new JButton ( Preferences . PROMPT_OK ) ; okButton . addActionListener ( new ActionListen...
Removed extra space
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; COMMENT COMMENT <nb> public class AdminSoakTestRunner public static void main ( String [ ] args ) throws Exception { + SINGLE + if ( STRING0 . equals ( System . getProperty ( STRING1 ) ) ) + { ...
force the use of shm to avoid saturating disk I O
<nb> public class BladeWebContext { return ctx . get ( ) ; } + public static void setContext ( ServletContext context ) { + BladeWebContext bladeWebContext = new BladeWebContext ( ) ; + bladeWebContext . context = context ; + ctx . set ( bladeWebContext ) ; + } + public static void setContext ( Serv...
add set ServletContext method
<nb> public class FileContentQueue { } SINGLE - while ( ! myContentLoadingThreadTerminated ) { + do { try { - result = myLoadedContentsQueue . poll ( NUMBER0 , TimeUnit . MILLISECONDS ) ; + result = myLoadedContentsQueue . poll ( NUMBER1 , TimeUnit . MILLISECONDS ) ; if ( result != null ) break ; } ...
fixed race with loading last content fixes unfinished CacheUpdater problem
<nb> public class PyRemotePackageManagerImpl extends PyPackageManagerImpl { } } } ) ; - throw new PyExecutionException ( helperPath , args , STRING0 + - LAUNCH_VAGRANT + - STRING1 , fixes ) ; + throw new PyExecutionException ( helperPath , args , STRING2 , fixes ) ; } else { throw new PyExecutionExc...
Removed the action link from the description of the problem
<nb> public class BinaryHttpResponseHandler extends AsyncHttpResponseHandler { break ; case FAILURE_MESSAGE : response = ( Object [ ] ) msg . obj ; - handleFailureMessage ( ( Throwable ) response [ NUMBER0 ] , response [ NUMBER1 ] . toString ( ) ) ; + handleFailureMessage ( ( Throwable ) response [ NUMBER0 ] ...
The failure message should have the response in a byte array
<nb> public class ClassySharkPanel extends JPanel } @ override + public void onSettingsButtonPressed ( ) { + + } + + @ override public void displayArchive ( File binaryArchive ) { silverGhost . setBinaryArchive ( binaryArchive ) ; <nb> public class Toolbar extends JToolBar { private JButton bu...
Adds callbacks for settings
<nb> public class ChunkedOutput implements PackOutput , MessageBoundaryHook this . buffer = channel . alloc ( ) . buffer ( this . bufferSize , this . bufferSize ) ; } + SINGLE + SINGLE @ override - public PackOutput flush ( ) throws IOException + public synchronized PackOutput flush ( ) throws IOExcepti...
Fix netty buffer leak
<nb> public class DistributedMergeTask implements Task < Object [ ] [ ] > { @ override public void onFailure ( Throwable t ) { + if ( t instanceof RemoteTransportException ) { + t = t . getCause ( ) ; + } for ( ListenableFuture < Object [ ] [ ] > result : results ) { ( ( SettableFuture < Object [ ] [ ] ...
throw right exception
<nb> public class ISOPeriodFormat { if ( iStandard == null ) { iStandard = new PeriodFormatterBuilder ( ) . appendLiteral ( STRING0 ) - . printZeroRarely ( ) . appendYears ( ) . appendSuffix ( STRING1 ) . appendMonths ( )
Remove uneccessary call
<nb> public final class LwjglGraphics implements Graphics { major = Integer . parseInt ( STRING0 + version . charAt ( NUMBER0 ) ) ; minor = Integer . parseInt ( STRING0 + version . charAt ( NUMBER1 ) ) ; - if ( config . useGL20 && major >= NUMBER1 ) { + if ( config . useGL20 && ( major >= NUMBER1 || version ....
fixed LwjglGraphisc special case for idiotic Mesa drivers that report the GLX version before the OpenGL version
<nb> public class AsyncHttpClient { private static final String LOGTAG = STRING0 ; private static class CancelableImpl extends SimpleFuture < AsyncHttpResponse > { - public Cancellable socketCancelable ; public AsyncSocket socket ; @ override <nb> public class AsyncHttpClient { if ( ! super . cancel (...
use the SimpleFuture parent pattern
<nb> public class StatementResource ( columns . size ( ) == NUMBER0 ) && ( columns . get ( NUMBER1 ) . getType ( ) . equals ( StandardTypes . BIGINT ) ) ) { Iterator < List < Object > > iterator = data . iterator ( ) ; if ( iterator . hasNext ( ) ) { - updateCount = ( ( Number ) iterator . next ( ) ) . longValu...
Fix update count fetch in StatementResource
<nb> import static NAMESPACE ; public class BlockTransformExtentTest { - private final Transform ROTATE_90 = new AffineTransform ( ) . rotateY ( - NUMBER0 ) ; - private final Transform ROTATE_NEG_90 = new AffineTransform ( ) . rotateY ( NUMBER0 ) ; + private static final Transform ROTATE_90 = new AffineTran...
Add static to some fields on BlockTransformExtentTest
<nb> public class NetworkUtils { COMMENT COMMENT public static String trimV4AddrZeros ( String addr ) { + if ( addr == null ) return null ; String [ ] octets = addr . split ( STRING0 ) ; if ( octets . length != NUMBER0 ) return addr ; StringBuilder builder = new StringBuilder ( NUMBER1 ) ;
Fix NPE in trimV4AddrZeros
<nb> public class Model implements Disposable { public static abstract class ManagedInstance implements Disposable { COMMENT public final Model model ; - protected boolean disposed ; protected ManagedInstance ( final Model model ) { if ( model == null ) throw new GdxRuntimeException ( STRING0 ) ; <nb> p...
Remove useless code
<nb> public class JythonManager { public void execScriptFromResource ( @ nonnls String resourcePath ) { final InputStream stream = getClass ( ) . getClassLoader ( ) . getResourceAsStream ( resourcePath ) ; - if ( stream != null ) { SINGLE + try { + myInterpreter . execfile ( stream ) ; + } + finally { ...
remove incorrect null check
<nb> public final class BatchLayer < K , M , U > implements Closeable { sparkConf . setIfMissing ( STRING0 , STRING1 ) ; sparkConf . setIfMissing ( STRING2 , Integer . toString ( uiPort ) ) ; + SINGLE + sparkConf . setIfMissing ( STRING3 , STRING1 ) ; + sparkConf . setIfMissing ( STRING4 , STRING1 ) ; + ...
Prioritize user classpath
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class AddOnActivity extends FragmentActivity { if ( AddOnService . POWER_PACK_PACKAGE . equals ( addOn . getPackageName ( ) ) ) { if ( addOnService . hasPowerPack ( ) ) ...
Don t add things to the addons list if they don t have market links
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class MemberImpl implements Member , HazelcastInstanceAware , Identif public void writeData ( ObjectDataOutput out ) throws IOException { addr...
Added missing attribute copy
<nb> public class Windowed < T > { public String toString ( ) { return STRING0 + value + STRING1 + window . start ( ) + STRING2 ; } + + @ override + public boolean equals ( Object obj ) { + if ( obj == this ) + return true ; + + if ( ! ( obj instanceof Windowed ) ) + return false ; + + Windowe...
add equals and hashCode to Windowed
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Spinner extends AbsSpinner implements OnClickListener { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + C...
Throw exception when a bad adapter is passed to Spinner
<nb> public class AnnotationTypeMatcher < T extends AnnotationDescription > extends Elem COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public AnnotationTypeMatcher ( ElementMatcher < ? super TypeDescription > matcher ) { this . matcher = matcher ;
Fixed broken javadoc
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; public class VcsException extends Exception { - - private static final Logger LOG = Logger . getInstance ( STRING0 ) ; public static final VcsException [ ] EMPTY_ARRAY = new VcsExcept...
Don t log VCS exceptions unless asked to
<nb> import NAMESPACE ; import static NAMESPACE ; + SINGLE public class NPEOnAnyClassMatcherAutounboxTest extends TestBase { interface Foo { <nb> public class NPEOnAnyClassMatcherAutounboxTest extends TestBase { @ test public void shouldNotThrowNPE ( ) { Foo f = mock ( Foo . class ) ; + f . bar ...
Fixed a failing test
<nb> public class FragmentCollection implements ClassObject { public static String getConfigurationName ( ConfigurationTransition config ) { return ( config == ConfigurationTransition . HOST ) ? STRING0 : STRING1 ; } - } + + @ override + public String toString ( ) { + return getConfigurationName ( confi...
Add some basic print debugging support to fragment collections
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - SINGLE + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT @ path ( STRING0 ) public class TileService extends RoutingResource { <nb> public class TileService extends RoutingResource { RenderReq...
add comments explaining that timesurfaces are now needed for travel time tiles
<nb> public class JavaMethodCallElement extends LookupItem < PsiMethod > implements Type } final String qname = myContainingClass . getQualifiedName ( ) ; - String location = StringUtil . isEmpty ( qname ) ? STRING0 : STRING1 + StringUtil . getPackageName ( qname ) + STRING2 ; + String location = ! myCanImpor...
rev nik don t show packages for instance methods
<nb> public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr } } } else { - OMultiCollectionIterator < OIdentifiable > finalResult = new OMultiCollectionIterator < OIdentifiable > ( ) ; + final OMultiCollectionIterator < OIdentifiable > finalResult = new OMultiCollectionIterator < OId...
fixed issue on expand reported in ML
<nb> package 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 NAMESPACE ; import NA...
remove unused imports
<nb> public class PersistedServiceImpl implements PersistedService { SINGLE if ( x . getValue ( ) instanceof Map ) { + x . setValue ( Maps . newHashMap ( ( Map < String , Object > ) x . getValue ( ) ) ) ; fieldTransformations ( ( Map < String , Object > ) x . getValue ( ) ) ; continue ; }
Ensure we use a mutable map to persist data
<nb> public class OStorageLocal extends OStorageLocalAbstract { boolean forceListBased , final Object . . . iParameters ) { checkOpeness ( ) ; + lock . acquireExclusiveLock ( ) ; try { final OCluster cluster ; if ( iClusterName != null ) { <nb> public class OStorageLocal extends OStorageLocalAbstract { ...
Added synchronization statements in OStorageLocal addCluster to fix a concurrency problem on db open index rebuild
<nb> public class AvailableSettings { COMMENT COMMENT COMMENT + SINGLE public static final String ALIAS_SPECIFIC_LOCK_MODE = STRING0 ; COMMENT <nb> public class AvailableSettings { COMMENT COMMENT COMMENT + SINGLE public static final String FLUSH_MODE = STRING1 ; COMMENT
Add comment on why some settings use the org hibernate prefix while others don t
<nb> public class VcsLogFiltererImpl implements VcsLogFilterer { } } - private VisiblePack getVisiblePack ( VisiblePack visiblePack , List < Request > requests ) { + @ nullable + private VisiblePack getVisiblePack ( @ nullable VisiblePack visiblePack , @ notnull List < Request > requests ) { RefreshReques...
add Nullable NotNull annotations
<nb> public class TestAttributeSet implements AttributeSet { return NUMBER0 ; } if ( resourceExtractor != null ) { - return resourceExtractor . getResourceId ( value ) ; + Integer i = resourceExtractor . getResourceId ( value ) ; + if ( i != null ) return i ; } return NUMBER0 ; } <nb> public class T...
Handle incorrect or missing style attribute
<nb> import NAMESPACE ; @ threadsafe public final class RetryHandlingBlockMasterClient extends AbstractMasterClient implements BlockMasterClient { - private BlockMasterClientService . Client mClient = null ; + + COMMENT + private BlockMasterClientService . Client mClient ; COMMENT COMMENT
Remove redundant initialization in RetryHandlingBlockMasterClient java
<nb> public class BuildRuleResolver { addToIndex ( buildRule . getBuildTarget ( ) , buildRule ) ; return buildRule ; } - - public < T extends BuildRule > T buildAndAddToIndex ( BuildRuleBuilder < T > builder ) { - T buildRule = builder . build ( this ) ; - addToIndex ( buildRule . getBuildTarget ( ) , bui...
Kill BuildRuleResolver buildAndAddToIndex
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public final class OperatorTakeUntil < T , E > implements Operator < T , T > { @ override public Subscriber < ? super T > call ( final Subscriber < ? super T > child ) { - ...
Make TakeUntil obey Rx contract
<nb> public abstract class Parser extends Recognizer < Token , ParserATNSimulator > { _errHandler . reset ( this ) ; _ctx = null ; _syntaxErrors = NUMBER0 ; + matchedEOF = false ; setTrace ( false ) ; _precedenceStack . clear ( ) ; _precedenceStack . push ( NUMBER0 ) ;
reset new boolean
<nb> public class JedisPool extends Pool < Jedis > { null ) ; } - public JedisPool ( String host , int port ) { + public JedisPool ( final String host , final int port ) { super ( new Config ( ) , new JedisFactory ( host , port , Protocol . DEFAULT_TIMEOUT , null ) ) ; } + public JedisPool ( final S...
Add JedisPool constructor that takes only host string
<nb> public class ClientRegistry public static void registerKeyBinding ( KeyBinding key ) { - Minecraft . func_71410_x ( ) . field_71474_y . field_151456_ac = ArrayUtils . add ( Minecraft . func_71410_x ( ) . field_71474_y . field_151456_ac , key ) ; + Minecraft . func_71410_x ( ) . field_71474_y . field_7432...
Fix the keybinding array to the right one
<nb> public class TestSqlStageExecution SINGLE try { - future1 . get ( NUMBER0 , TimeUnit . SECONDS ) ; + future1 . get ( NUMBER1 , TimeUnit . SECONDS ) ; } catch ( TimeoutException e ) { SINGLE <nb> public class TestSqlStageExecution @ override public int getQueuedPartitionedSplitCount ( ) { ...
Fix race condition in TestSqlStateExecution
<nb> public final class Rule { COMMENT COMMENT @ deprecated - public void setEnabled ( Boolean enabled ) { + public Rule setEnabled ( Boolean enabled ) { throw new UnsupportedOperationException ( STRING0 ) ; }
Fix quality flaw
<nb> public class JerseyEnvironment { public void setUrlPattern ( String urlPattern ) { config . setUrlPattern ( urlPattern ) ; } + + public ResourceConfig getResourceConfig ( ) { + return config ; + } }
Add access to the Jersey ResourceConfig
<nb> public class AtmosphereProviders { public StringReader getStringReader ( Class type , Type genericType , Annotation [ ] annotations ) { - if ( ! type . getClass ( ) . isAssignableFrom ( Broadcaster . class ) ) { + if ( ! Broadcaster . class . isAssignableFrom ( type ) ) { return null ; } <nb> pub...
Fix DefaultValue regression
<nb> public class ExpectedTypesProvider { if ( className != null && className . startsWith ( STRING0 ) ) { if ( parameterType instanceof PsiClassType ) { PsiType typeArg = PsiUtil . substituteTypeParameter ( parameterType , CommonClassNames . JAVA_LANG_CLASS , NUMBER0 , true ) ; - if ( typeArg != null && TypeCo...
don t abuse erasure which should leave wildcard types as is
<nb> public class JSONArray { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public String [ ] getStringArray ( ) { String [ ] outgoing = new String [ size ( ) ] ; <nb> public class JSONArray { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public int [ ] getIntArray ( ) { in...
Added reference for all JSONArray get and set methods
<nb> public class PaneManager { public void onValueChange ( ValueChangeEvent < PaneConfig > evt ) { - ArrayList < LogicalWindow > newPanes = createPanes ( evt . getValue ( ) ) ; + ArrayList < LogicalWindow > newPanes = createPanes ( validateConfig ( evt . getValue ( ) ) ) ; panes_ = newPanes ; left_ . rep...
Fix blank right panes on boot when old UI prefs are present
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public interface Future < T > extends Value < T > {
Updated author tag
<nb> public class ShadowSQLiteDatabase { throw new RuntimeException ( STRING0 , e ) ; } + SINGLE SQLiteCursor cursor = new SQLiteCursor ( null , null , null , null ) ; - shadowOf ( cursor ) . setResultSet ( resultSet , sql ) ; + shadowOf ( cursor ) . setResultSet ( resultSet , sqlBody ) ; return cursor ...
Fixed bug preventing selectionArgs on rawQuery from working properly
<nb> public class MainActivity extends ActionBarActivity implements WeekView . MonthCha SINGLE mWeekView . setEventLongPressListener ( this ) ; + + SINGLE + SINGLE + setupDateTimeInterpreter ( false ) ; } <nb> public class MainActivity extends ActionBarActivity implements WeekView . MonthCha SIN...
Fix date interpreter in the sample app
<nb> public class PApplet extends Applet mouseExited ( ) ; } - + COMMENT + COMMENT + COMMENT public void mouseWheel ( ) { } - + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public void mouseWheel ( MouseEvent event ) { mouseWheel ( ) ; }
Add wheelMouse to reference
<nb> public class BlockGenericPipe extends BlockContainer implements ITextureProvider if ( pipe != null ) { return pipe . getConstructor ( int . class ) . newInstance ( key ) ; } else { - System . err . printf ( STRING0 ) ; + System . err . printf ( STRING1 + key + STRING2 ) ; } } catch ( Throwable t ) ...
Added the key to error message
<nb> public class DecodingProcessor implements EventHandler < MessageEvent > { final Timer . Context decodeTimeCtx = parseTime . time ( ) ; final long decodeTime ; try { + SINGLE + SINGLE if ( codec instanceof MultiMessageCodec ) { messages = ( ( MultiMessageCodec ) codec ) . decodeMessages ( raw ) ; } ...
Add comment about why the instanceof is needed
<nb> public class ElasticsearchConfiguration { @ uripath @ metadata ( required = STRING0 ) private String clusterName ; - @ uriparam ( enums = STRING1 ) @ metadata ( required = STRING0 ) + @ uriparam ( enums = STRING2 ) @ metadata ( required = STRING0 ) private String operation ; @ uriparam private Stri...
Add an operation to know if an index exists or not
<nb> public class VariableInplaceRenamer { protected void revertState ( ) { CommandProcessor . getInstance ( ) . executeCommand ( myProject , new Runnable ( ) { public void run ( ) { + final Editor topLevelEditor = InjectedLanguageUtil . getTopLevelEditor ( myEditor ) ; ApplicationManager . getApplication ( )...
commit correct document
<nb> public class FileFilter { SINGLE STRING0 , SINGLE SINGLE - STRING1 SINGLE + STRING1 , SINGLE SINGLE + STRING2 , SINGLE + SINGLE } ; static void fillIgnoreResultList ( ) {
temporarily skip simple cross origin progress events html for now