diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class ByteUtils { COMMENT COMMENT public static String toHexString ( byte [ ] bytes ) { - StringBuffer buffer = new StringBuffer ( ) ; + StringBuilder buffer = new StringBuilder ( ) ; for ( byte b : bytes ) { String hex = Integer . toHexString ( b & NUMBER0 ) ; <nb> public class ByteUtils ...
Using StringBuilder v String Buffer
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AddAccount extends Activity { httpConn . setInstanceFollowRedirects ( true ) ; httpConn . setRequestMethod ( STRING0 ) ; ...
Added support for basic auth to the new signup rsd checks
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PatternRuleLoaderTest extends TestCase { assertTrue ( rules . size ( ) >= NUMBER0 ) ; final Rule demoRule1 = getRuleById ( STRING0 , rules ) ; assertEquals ( ...
extend test case a bit
<nb> public class BasicPopulation implements Population { SINGLE } - @ override @ postconstruct + @ override public void createIndividuals ( ) { SINGLE } <nb> public class CSVPopulation extends BasicPopulation { @ setter public boolean headers = true ; - @ postconstruct - public void loadInd...
convert remaining population classes from PostConstruct to setup calls
<nb> public class XmppConnectionService extends Service implements OnPhoneContactsLoa } public PgpEngine getPgpEngine ( ) { - if ( pgpServiceConnection . isBound ( ) ) { + if ( pgpServiceConnection != null && pgpServiceConnection . isBound ( ) ) { if ( this . mPgpEngine == null ) { this . mPgpEngine = new...
avoid npe when accessing the pgp connection service
<nb> public class FileBackend { return calcSampleSize ( options , size ) ; } - private int calcSampleSize ( BitmapFactory . Options options , int size ) { + public static int calcSampleSize ( BitmapFactory . Options options , int size ) { int height = options . outHeight ; int width = options . outWidth ;...
changed method signature of calcSampleSize
<nb> public class MacIntelliJComboBoxUI extends BasicComboBoxUI { setBorder ( JBUI . Borders . empty ( NUMBER0 , NUMBER1 ) ) ; } + @ override + public Color getBackground ( ) { + if ( ! isEnabled ( ) ) { + return Gray . xF8 ; + } + return super . getBackground ( ) ; + } + public void setText ( S...
disabled editable comboboxes should change text field background
<nb> public final class SwingScheduler extends Scheduler { @ override public Subscription schedule ( final Action0 action , long delayTime , TimeUnit unit ) { - long delay = unit . toMillis ( delayTime ) ; + long delay = Math . max ( NUMBER0 , unit . toMillis ( delayTime ) ) ; assertThatTheDelayIsValidForTh...
Negative schedule time now indicates immediate execution
<nb> public class EventBus implements IEventExceptionHandler public void unregister ( Object object ) { ArrayList < IEventListener > list = listeners . remove ( object ) ; + if ( list == null ) + return ; for ( IEventListener listener : list ) { ListenerList . unregisterAll ( busID , listener ) ;
Fix a possible crash in EventBus
<nb> class GlobalActions implements DialogInterface . OnDismissListener , DialogInterfac final AlertDialog . Builder ab = new AlertDialog . Builder ( mContext ) ; ab . setAdapter ( mAdapter , this ) - . setInverseBackgroundForced ( true ) - . setTitle ( R . string . global_actions ) ; + . setInverseBackgrou...
DO NOT MERGE Make the Phone options dialog use current language
<nb> public final class ResolvableType implements Serializable { @ override public int hashCode ( ) { int hashCode = ObjectUtils . nullSafeHashCode ( this . type ) ; - hashCode = hashCode * NUMBER0 + ObjectUtils . nullSafeHashCode ( this . variableResolver ) ; + hashCode = hashCode * NUMBER0 + ObjectUtils . n...
Fix ResolvableType hashCode generation
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ConfigureUtil { InvokeMethodResult invokeResult = new InvokeMethodResult ( ) ; dynamicObject . invokeMethod ( name , invokeResult , value ) ; if ( ! invokeResult . isFound ( ) )...
Fixed missing property exception thrown by ConfigureUtil configureByMap
<nb> public class HttpFields implements Iterable < HttpField > private class Itr implements Iterator < HttpField > { int _cursor ; SINGLE + int _last = - NUMBER0 ; public boolean hasNext ( ) { return _cursor != _size ; } - @ suppresswarnings ( STRING0 ) public HttpField next ( ) { int i = _c...
optimised HttpFields fixes
<nb> public final class ObjcCommon { COMMENT ImmutableList < PathFragment > headerSearchPaths ( ) { ImmutableList . Builder < PathFragment > paths = new ImmutableList . Builder < > ( ) ; - PathFragment packageFragment = ruleContext . getLabel ( ) . getPackageFragment ( ) ; + PathFragment packageFragment = +...
Fix objective C rules to work with external repositories
<nb> public class FrameworkCombinationTest { final ChunkIndex chunkIndex = new ChunkIndex ( ) ; Deduper deduper = new Deduper ( combination . chunker , combination . multiChunker , combination . transformer , Long . MAX_VALUE ) ; - deduper . deduplicate ( inputFiles , NUMBER0 , new DeduperListener ( ) { + ded...
Deleting extra argument in test
<nb> public class RunCamelMojo extends AbstractExecMojo { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT protected String dotFile ;
used lower case file name by default
<nb> public class OnTopMessage { private void init ( Activity activity , ViewGroup root ) { View v = activity . getLayoutInflater ( ) . inflate ( R . layout . on_top_message , root ) ; mLayout = ( LinearLayout ) v . findViewById ( R . id . otm_layout ) ; + mLayout . setClickable ( true ) ; mLayout . setVisibi...
set the PTR tip clickable
<nb> public class HystrixRequestEvents { cachedCount = cachingDetector . get ( key ) ; } ExecutionSignature signature ; - HystrixCollapserKey collapserKey = execution . getOriginatingCollapserKey ( ) ; - int collapserBatchCount = execution . getNumberCollapsed ( ) ; if ( cachedCount > NUMBER0 ) { SINGLE ...
remove dead code around fetching execution collapse info
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove unused imports
<nb> public class SimpleRoutingIT extends ESIntegTestCase { } } + @ awaitsfix ( bugUrl = STRING0 ) public void testRequiredRoutingMapping ( ) throws Exception { client ( ) . admin ( ) . indices ( ) . prepareCreate ( STRING1 ) . addAlias ( new Alias ( STRING2 ) ) . addMapping ( STRING3 , XContentFactory . ...
TEST Temporarily silence failing test
<nb> public class Movie extends PImage implements PConstants { protected void eosEvent ( ) { if ( repeat ) { - goToBeginning ( ) ; + if ( NUMBER0 < rate ) { + SINGLE + goToBeginning ( ) ; + } else { + SINGLE + goToEnd ( ) ; + } + + SINGLE + SINGLE + frameRate ( fps ) ; } else { playing...
Handling reverse playback at EOS event and restarting rate
<nb> public class QueuesTest { database . close ( ) ; } - @ test ( timeout = NUMBER0 ) + @ test ( timeout = NUMBER1 ) public void queueTakeRollback ( ) throws IOException , InterruptedException { File f = File . createTempFile ( STRING0 , STRING1 ) ; {
test failed on slow machine increase timeout
<nb> + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + package NAMESPACE ; import NAMESPACE ;
Fixing license header
<nb> public class WebAppContext extends ServletContextHandler implements WebAppClassL { super . setClassLoader ( classLoader ) ; - if ( ! ( classLoader instanceof WebAppClassLoader ) ) - { - Log . info ( STRING0 + toString ( ) ) ; - } + SINGLE + SINGLE + SINGLE + SINGLE if ( classLoader != nul...
remove info message pending further review
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed typo in comment
<nb> public class PropertiesUtil { } ; - COMMENT - COMMENT - COMMENT - @ deprecated - public static boolean isPropertyComplete ( final Project project , final ResourceBundle resourceBundle , final String propertyName ) { - return isPropertyComplete ( resourceBundle , propertyName ) ; - } - - pub...
remove unused old methods
<nb> import static NAMESPACE import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ;
Fix checkstyle problem
<nb> public class NSRSS20 extends Namespace { } else if ( second . equals ( CHANNEL ) ) { state . getFeed ( ) . setTitle ( content ) ; } else if ( second . equals ( IMAGE ) && third != null && third . equals ( CHANNEL ) ) { - state . getFeed ( ) . getImage ( ) . setTitle ( IMAGE ) ; + state . getFeed ( ) . ge...
Save correct image title
<nb> public class SmartTabLayout extends HorizontalScrollView { protected void onScrollChanged ( int l , int t , int oldl , int oldt ) { super . onScrollChanged ( l , t , oldl , oldt ) ; if ( onScrollChangeListener != null ) { - onScrollChangeListener . onScrollChanged ( l , t , oldl , oldt ) ; + onScrollChan...
Rename variable name and pass only x values of scrolling
<nb> public class TestCipher { if ( openSSLAlias . contains ( STRING0 ) ) { continue ; } - expectedCipherSuites . add ( openSSLAlias + STRING1 + cipher . getProtocol ( ) ) ; + expectedCipherSuites . add ( openSSLAlias + STRING1 + + cipher . getProtocol ( ) . getOpenSSLName ( ) ) ; } Set < String > una...
Take account of different protocol names returned by openssl ciphers v
<nb> class InfoResponse { private Boolean standby ; @ jsonproperty ( STRING0 ) private Boolean heating ; + @ jsonproperty ( STRING1 ) + private Boolean preHeat ; public BigDecimal getCurrentSetTemperature ( ) { return currentSetTemperature ; <nb> class InfoResponse { return heating ; } + publi...
neohub Set heating to on when preheat is on
<nb> public class LFWDataSetIterator extends RecordReaderDataSetIterator { COMMENT COMMENT public LFWDataSetIterator ( int batchSize , int numExamples , int [ ] imgDim , int numCategories , boolean useSubset , Random rng ) { - super ( new LFWLoader ( useSubset ) . getRecordReader ( imgDim [ NUMBER0 ] , imgDim [...
Pass num categores in iterator to limit file split
<nb> public final class BlockWorker extends WorkerBase { public void moveBlock ( long sessionId , long blockId , String tierAlias ) throws BlockDoesNotExistException , BlockAlreadyExistsException , InvalidWorkerStateException , WorkerOutOfSpaceException , IOException { + SINGLE BlockStoreLocation dst = BlockS...
Check move location before moving
<nb> public class XContentTypeOptionsScanner extends PluginPassiveScanner { @ override public void scanHttpResponseReceive ( HttpMessage msg , int id , Source source ) { - if ( msg . getResponseBody ( ) . length ( ) > NUMBER0 && ( HttpUserAgent . getBrowser ( msg . getRequestHeader ( ) . getHeader ( HttpHeader ...
removed the check for browser so we are consistant as with the xss protection header
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove unused import
<nb> public class TransactionalTopologyBuilder { public TransactionalTopologyBuilder ( String id , String spoutId , IPartitionedTransactionalSpout spout , Integer spoutParallelism ) { this ( id , spoutId , new PartitionedTransactionalSpoutExecutor ( spout ) , spoutParallelism ) ; + } + + public Transactiona...
add helper constructors to TransactionalTopologyBuilder
<nb> public class PyReplaceExpressionUtil implements PyElementTypes { return - priority ; } - @ notnull + @ nullable private static IElementType getOperationType ( @ notnull final PyElement expr ) { if ( expr instanceof PyBinaryExpression ) return ( ( PyBinaryExpression ) expr ) . getOperator ( ) ; retu...
Fixed nullable annotation
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
remove unused imports
<nb> public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzerEx implements Pers Collection < FileEditor > activeTextEditors = new THashSet < FileEditor > ( editors . size ( ) ) ; for ( Editor editor : editors ) { + if ( editor . isDisposed ( ) ) continue ; TextEditor textEditor = TextEditorProvider . ge...
Don t run code analysis for disposed editor
<nb> public class WindowManagerService extends IWindowManager . Stub SINGLE SINGLE SINGLE + if ( specs == null ) { + Slog . wtf ( TAG , STRING0 ) ; + return ; + } mTmpTaskIds . clear ( ) ; for ( int i = specs . length - NUMBER0 ; i >= NUMBER1 ; i -- ) { mTmpTaskIds . put ( specs [ i ] . taskId , NUM...
Fix crash with animation specs
<nb> public abstract class AbstractNioByteChannel extends AbstractNioChannel { } } else if ( msg instanceof FileRegion ) { FileRegion region = ( FileRegion ) msg ; - boolean done = false ; for ( int i = config ( ) . getWriteSpinCount ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) { long localFlushedAmount = doWrit...
Remove an unnecessary empty line
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT public abstract class Func extends Request2 { + static final int API_WEAVER = NUMBER0 ; SINGLE + static public DocGen . FieldDoc [ ] DOC_FIELDS ; SINGL...
Missing weaver markers
<nb> class TemplateListPanel extends JPanel { Collections . sort ( groups , new Comparator < TemplateGroup > ( ) { public int compare ( final TemplateGroup o1 , final TemplateGroup o2 ) { - return o1 . getName ( ) . compareTo ( o2 . getName ( ) ) ; + return o1 . getName ( ) . compareToIgnoreCase ( o2 . getNam...
sort live templates ignore case
<nb> public class DisambiguationRuleTest extends TestCase { final AnalyzedTokenReadings [ ] r = { readings } ; reading = new AnalyzedSentence ( r ) . toShortString ( STRING0 ) ; annotations = readings . getHistoricalAnnotations ( ) ; + int endPos = readings . getStartPos ( ) + readings . getToken ( ) . length (...
more verbose error message in case assert fails
<nb> public class BuildCraftCore extends BuildCraftMod { public static TreeMap < BlockIndex , PacketUpdate > bufferedDescriptions = new TreeMap < BlockIndex , PacketUpdate > ( ) ; public static final int trackedPassiveEntityId = NUMBER0 ; - public static boolean continuousCurrentModel ; public static Block sp...
removed obsolete property
<nb> import NAMESPACE ; class CollectionFilterer implements Filterer { SINGLE - protected static final Log logger = LogFactory . getLog ( BasicAclEntryAfterInvocationCollectionFilteringProvider . class ) ; + protected static final Log logger = LogFactory . getLog ( CollectionFilterer . class ) ; SINGLE
Added the right logger class in CollectionFilterer
<nb> class ConfigurationLoader SINGLE final String name = aAtts . getValue ( STRING0 ) ; - if ( name == null ) { - throw new SAXException ( STRING1 ) ; - } String value = aAtts . getValue ( STRING2 ) ; - if ( value == null ) { - throw new SAXException ( STRING3 + name ) ; - } SINGLE if ( mOver...
Removed unused code now that we have validation
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed unused import
<nb> public abstract class AbstractAndroidMojo extends AbstractMojo COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT protected File androidManifestFile ; <nb> public class ManifestUpdateMojo extends AbstractAndroidMojo private UsesSdk parsedUsesSdk ; COMMENT + COMMENT + COMMENT + COMMEN...
Create a copy of manifest file and use it further
<nb> public class StandaloneRunner { logger . info ( STRING0 , server . port ( ) ) ; } - public StandaloneRunner ( ) { - super ( ) ; - } - private Runner newRunner ( final Server server ) { if ( server instanceof HttpServer ) { return Runner . runner ( ( HttpServer ) server ) ;
removed unused constructor from standalone runner
<nb> public class OPropertyIndexDefinition extends OAbstractIndexDefinition { public Object getDocumentValueToIndex ( final ODocument iDocument ) { if ( OType . LINK . equals ( keyType ) ) { - SINGLE - final OIdentifiable identifiable = iDocument . rawField ( field ) ; + final OIdentifiable identifiable = i...
Revert optimized indexing of property of type link avoinding lazy loading
<nb> public final class BatteryStatsImpl extends BatteryStats { private static final int MAGIC = NUMBER0 ; SINGLE SINGLE - private static final int VERSION = NUMBER1 ; + private static final int VERSION = NUMBER2 ; private final File mFile ; private final File mBackupFile ; <nb> public final class Bat...
Fix a hang during bootup
<nb> public class Pool implements Jsonizable { COMMENT - Map < String , ReconCandidate > candidates = new HashMap < String , ReconCandidate > ( ) ; String line ; while ( ( line = reader2 . readLine ( ) ) != null ) { int equal = line . indexOf ( STRING0 ) ;
remove unused variable
<nb> class AppWidgetServiceImpl extends IAppWidgetService . Stub implements WidgetBacku widget . views = views ; } - scheduleNotifyUpdateAppWidgetLocked ( widget ) ; + scheduleNotifyUpdateAppWidgetLocked ( widget , views ) ; } } <nb> class AppWidgetServiceImpl extends IAppWidgetService . Stub implemen...
Fix a regression in partially updading app widgets
<nb> public class StatementFinalizer extends AbstractCreateStatementInterceptor { return statement ; } + @ suppresswarnings ( STRING0 ) SINGLE @ override public void closeInvoked ( ) { while ( statements . size ( ) > NUMBER0 ) {
Silence some unnecessary nags
<nb> public class SwipeDismissItemAnimator extends GeneralItemAnimator { final int reaction = item2 . getAfterSwipeReaction ( ) ; return ( ( result == RecyclerViewSwipeManager . RESULT_SWIPED_LEFT ) || - ( result == RecyclerViewSwipeManager . RESULT_SWIPED_RIGHT ) ) && + ( result == RecyclerViewSwipeManager ....
Fix a bug of SwipeDismissItemAnimator
<nb> public abstract class ContentResolver { COMMENT COMMENT public static void requestSync ( Account account , String authority , Bundle extras ) { + if ( extras == null ) { + throw new IllegalArgumentException ( STRING0 ) ; + } SyncRequest request = new SyncRequest . Builder ( ) . setSyncAdapter ( a...
Preserve CTS fail behaviour on null bundle for old API
<nb> public final class Bridge extends com . android . ide . common . rendering . api . Bridge { COMMENT private static LayoutLog sCurrentLog = sDefaultLog ; - private static final int LAST_SUPPORTED_FEATURE = Features . RENDER_ALL_DRAWABLE_STATES ; + private static final int LAST_SUPPORTED_FEATURE = Features...
Set support flag for custom layouts for RecyclerView
<nb> public final class ActiveServices { SINGLE SINGLE if ( mRestartingServices . remove ( r ) ) { + r . resetRestartCounter ( ) ; clearRestartingIfNeededLocked ( r ) ; }
bindService can t start up service process
<nb> public class StatementDecoratorInterceptor extends AbstractCreateStatementInterc } return createDecorator ( proxy , method , args , statement , constructor , sql ) ; } catch ( Exception x ) { + if ( x instanceof InvocationTargetException ) { + Throwable cause = x . getCause ( ) ; + if ( cause instanceo...
Improve processing of errors that are wrapped into InvocationTargetException
<nb> public abstract class ReactActivity extends Activity implements DefaultHardwareB } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + protected @ nullable Bundle getLaunchOptions ( ) { + return null ; + } + + COMMENT COMMENT COMMENT COMMENT <nb> public abstrac...
Provide a method to easily provide initial props to a ReactAndroid application
<nb> public class NetworkModHolder { try { - return ( Boolean ) checkHandler . invoke ( container , remoteVersions , side ) ; + return ( Boolean ) checkHandler . invoke ( container . getMod ( ) , remoteVersions , side ) ; } catch ( Exception e ) {
Check the mod not it s container in the check handler
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPA...
Remove use of import
<nb> public class ConnectivityManager { case NetworkCapabilities . NET_CAPABILITY_IMS : case NetworkCapabilities . NET_CAPABILITY_RCS : case NetworkCapabilities . NET_CAPABILITY_XCAP : + case NetworkCapabilities . NET_CAPABILITY_NOT_RESTRICTED : SINGLE continue ; default : SINGLE
Fix the marking of restricted network requests
<nb> public class ThymeleafAutoConfiguration { protected static class DataAttributeDialectConfiguration { @ bean + @ conditionalonmissingbean public DataAttributeDialect dialect ( ) { return new DataAttributeDialect ( ) ; } <nb> public class ThymeleafAutoConfiguration { protected static class Thymelea...
Add ConditionalOnBean to Thymeleaf dialect beans
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class DefaultBeanDefinitionDocumentReader implements BeanDefinitionDocume String [ ] specifiedProfiles = StringUtils . tokenizeToStringArray ( profileSpec , BeanDefinitionParserDelegate . MULTI_VALUE_ATTRIBUTE_DELIMITERS ) ; if ( !...
Log profile based exclusion of XML bean definition file
<nb> public class FrameCreator extends H2O . H2OCountedCompleter { _domain [ c ] = new String [ _createFrame . factors ] ; for ( int i = NUMBER0 ; i < _createFrame . factors ; ++ i ) { _domain [ c ] [ i ] = UUID . randomUUID ( ) . toString ( ) . subSequence ( NUMBER0 , NUMBER1 ) . toString ( ) ; + SINGLE + wh...
Don t allow pure number enums
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT
Fix Checkstyle issues
<nb> public class MapNotSerializable extends FieldConstraint { } } if ( valueClass != null ) { - if ( ! Serializable . class . isAssignableFrom ( keyClass ) ) { + if ( ! Serializable . class . isAssignableFrom ( valueClass ) ) { ve . add ( new ConstraintViolation ( Level . FATAL , mc , mf , getClass ( ) , ...
use correct reference in validation
<nb> import NAMESPACE ; COMMENT public class ShareUtils { - public static final String KEY_GETGLUE_COMMENT = STRING0 ; - - public static final String KEY_GETGLUE_IMDBID = STRING1 ; - protected static final String TAG = STRING2 ; public enum ShareMethod {
Drop unused constants
<nb> public class DiscoveryEnabledServer extends Server { private final InstanceInfo instanceInfo ; private final MetaInfo serviceInfo ; + public DiscoveryEnabledServer ( final InstanceInfo instanceInfo , boolean useSecurePort ) { + this ( instanceInfo , useSecurePort , false ) ; + } + public DiscoveryE...
Restore DiscoveryEnabledServer constructor to make it backward compatible
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT COMMENT public class BlockRegionComponent implements Component { + @ replicate public Region3i region = Region3i . EMPTY ; public boolean overrideBlockEntities = true ;
Fix interaction with door by replicating the BlockReginoComponent
<nb> public final class FirebaseMessage { return databaseError ; } - @ override - public String toString ( ) { - return STRING0 - + STRING1 + operation - + STRING2 + dataSnapshot - + STRING3 + previousChildName + STRING4 - + STRING5 + databaseError + STRING6 ; - } - public static class Builder...
Removed toString method
<nb> public class ChunkOptionsPopupPanel extends MiniPopupPanel public void onClick ( ClickEvent event ) { revert ( ) ; - init ( widget_ , position_ ) ; + hideAndFocusEditor ( ) ; } } ) ; buttonPanel . add ( revertButton ) ; <nb> public class ChunkOptionsPopupPanel extends MiniPopupPanel public void...
hide chunk options UI after revert
<nb> public final class DynamicRealm extends BaseRealm { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class Realm extends BaseRealm { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
remove non existing constants from docs
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ArrayBlockingQueue < E > extends AbstractQueue < E > final ReentrantLock lock = this . lock ; lock . lock ( ) ; try { - return itemAt ( takeIndex ) ; SINGLE + SINGLE + SINGLE + @ retainedl...
Ensure the result of peek is retained on the current thread
<nb> public class ReactTextShadowNode extends LayoutShadowNode { protected int mNumberOfLines = UNSET ; protected int mFontSize = UNSET ; - protected int mTextAlign = UNSET ; + protected int mTextAlign = Gravity . NO_GRAVITY ; private float mTextShadowOffsetDx = NUMBER0 ; private float mTextShadowOffset...
Fix UNSET problem for text alignment change
<nb> public class CreateXmlResourceDialog extends DialogWrapper { if ( newSelectedIndex >= NUMBER0 ) { myDirectoriesList . setSelectedIndex ( newSelectedIndex ) ; } + + if ( checkBoxList . size ( ) == NUMBER1 ) { + checkBoxList . get ( NUMBER0 ) . setSelected ( true ) ; + } } @ override
choose only values resource directory
<nb> public final class SuggestedFix { CompilerOptions compilerOptions = new CompilerOptions ( ) ; compilerOptions . setPreferSingleQuotes ( true ) ; compilerOptions . setLineLengthThreshold ( NUMBER0 ) ; + SINGLE + compilerOptions . setTrustedStrings ( true ) ; return new CodePrinter . Builder ( node ) ....
Set CompilerOptions setTrustedStrings to true thus preventing characters like and in strings from getting JS escaped on refactorings
<nb> class ContextImpl extends Context { mPackageInfo = packageInfo ; mResources = mPackageInfo . getResources ( mainThread ) ; - if ( container != null && container . getCompatibilityInfo ( ) . applicationScale != - mResources . getCompatibilityInfo ( ) . applicationScale ) { + if ( mResources != null && c...
Moving the application fails Activity Manager Crash on launching the app
<nb> public class Run COMMENT COMMENT COMMENT - protected Boolean debug ; + protected String debug ; - public Boolean isDebug ( ) + public String isDebug ( ) { return debug ; } <nb> public class RunMojo extends AbstractAndroidMojo COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT ...
fixed datatype for run debug value to string updated docs
<nb> public class MonotonicSession implements ServerSelectingSession { @ override public void close ( ) { if ( ! isClosed ( ) ) { - if ( connectionForReads != null ) { - connectionForReads . close ( ) ; - connectionForReads = null ; - } - if ( connectionForWrites != null ) { - connectionForWrites . cl...
Synchronize close method in MonotonicSession
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener + STRING0 + before + STRING1 + after + STRING2 + buffer ) ; if ( AccessibilityManager . getInstance ( mContext ) . isEnabled ( ) - && ! isPasswordInputType ( mInputType ) ) { + && ! isPasswordInputType ( mInputType ) + &...
TalkBack on Accessibility Options reads out passwords entered in during Lock screen
<nb> public class MetricsResource public Response getMeta ( String json ) { checkNotNull ( json ) ; + log . debug ( json ) ; try { File respFile = File . createTempFile ( STRING0 , STRING1 ) ;
added log statment
<nb> public class SplashProgress private static boolean disableSplash ( ) { File configFile = new File ( Minecraft . getMinecraft ( ) . mcDataDir , STRING0 ) ; + File parent = configFile . getParentFile ( ) ; + if ( ! parent . exists ( ) ) + parent . mkdirs ( ) ; + FileReader r = null ; enabled = fals...
Create config folder in SplashProgress if it does not exist
<nb> public abstract class AbstractDraggableSwipeableItemViewHolder extends RecyclerV private int mSwipeResult = RecyclerViewSwipeManager . RESULT_NONE ; private int mAfterSwipeReaction = RecyclerViewSwipeManager . AFTER_SWIPE_REACTION_DEFAULT ; private float mSwipeAmount ; - private float mMaxLeftSwipeAmount ;...
Fix default max swipable amount of AbstractDraggableSwipeableItemViewHolder
<nb> public class AddExchanges public PlanWithProperties visitIndexJoin ( IndexJoinNode node , PreferredProperties preferredProperties ) { List < Symbol > joinColumns = Lists . transform ( node . getCriteria ( ) , IndexJoinNode . EquiJoinClause : : getProbe ) ; - PlanWithProperties probeSource = node . getProbe...
Index join request local properties if no parent local properties
<nb> public class AndroidSdk COMMENT COMMENT COMMENT - public String getLintPath ( ) { + public String getLintPath ( ) + { return getPathForTool ( STRING0 ) ; }
fixed checkstyle error
<nb> public class KeyguardWidgetFrame extends FrameLayout { private float mBackgroundAlphaMultiplier = FLOAT0 ; private Drawable mBackgroundDrawable ; private Rect mBackgroundRect = new Rect ( ) ; - private static int mSmallWidgetHeight ; + private int mSmallWidgetHeight ; SINGLE SINGLE <nb> public cl...
Addressing a couple comments on previous CL
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DirectoryFragment extends Fragment if ( docs . size ( ) == NUMBER0 ) { SINGLE + + SINGLE + SINGLE + String displa...
Fix RTL issue in delete dialog
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAME...
Revert Revert Adding javadoc example on how to use HttpClient for a simple GET and POST request
<nb> public final class PrintManagerService extends SystemService { } if ( mContext . checkCallingPermission ( Manifest . permission . INTERACT_ACROSS_USERS_FULL ) != PackageManager . PERMISSION_GRANTED - || mContext . checkCallingPermission ( Manifest . permission . INTERACT_ACROSS_USERS ) + && mContext . ch...
Fix cross user permission checks in print manager service
<nb> public class AddShowTask extends AsyncTask < Void , Integer , Void > { if ( TheTVDB . addShow ( nextShow . tvdbid , watched , collection , mContext ) ) { SINGLE result = ADD_SUCCESS ; + + SINGLE + ShowTools . get ( mContext ) . sendIsRemoved ( nextShow . tvdbid , false ) ; } else { SINGLE result ...
If show was added successfully remove isRemoved flag on Hexagon
<nb> public class PGraphicsOpenGL extends PGraphics3D { COMMENT COMMENT COMMENT - public PGraphicsOpenGL ( int width , int height , PApplet iparent ) { - super ( width , height , iparent ) ; + public PGraphicsOpenGL ( int width , int height , PApplet parent ) { + super ( width , height , parent ) ; SI...
add getContext method and a tweak or two for javadoc
<nb> public class Person { return null ; } - SINGLE + SINGLE + SINGLE try { long personID = Long . parseLong ( json . getString ( STRING0 ) ) ; Person person = new Person ( personID , localTableBlogId ) ;
Improves a small comment in the viewerFromJSON method
<nb> public class API { } String response = exception . toString ( format , getOptionsParamApi ( ) . isIncErrorDetails ( ) ) ; - msg . setResponseBody ( response ) ; + msg . getResponseBody ( ) . setCharset ( getCharset ( contentType ) ) ; + msg . getResponseBody ( ) . setBody ( response ) ; } try { ...
Change API to return the error s content in expected encoding
<nb> public class MaximizeSkiGates { int val1 = NUMBER0 , val2 = NUMBER0 ; SINGLE if ( ( isRight && gates [ current ] < prevItem ) || ( ! isRight && gates [ current ] > prevItem ) ) { + SINGLE val1 = NUMBER1 + solution ( gates , remainingDirectionChanges , current + NUMBER1 , isRight , gates [ current ] , dpM...
adding some comments
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Added version tag
<nb> public class ReactRootView extends SizeMonitoringFrameLayout implements RootView @ override protected void onMeasure ( int widthMeasureSpec , int heightMeasureSpec ) { - int widthMode = MeasureSpec . getMode ( widthMeasureSpec ) ; - int heightMode = MeasureSpec . getMode ( heightMeasureSpec ) ; - - i...
Remove ReactRootView s MeasureSpec assertion
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
eliminate eclipse warning