diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> class VarCheck extends AbstractPostOrderCallback implements if ( NodeUtil . isFunctionExpression ( parent ) ) { SINGLE SINGLE - } else if ( ! ( scope . isLocal ( ) && ARGUMENTS . equals ( varName ) ) ) { + } else { + boolean isArguments = scope . isLocal ( ) && ARGUMENTS . equals ( varName ) ; SINGLE...
Fix a bug when no var is synthesized for arguments
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ActiveScanPanel extends ScanPanel implements ScanListenner , Scanner private static final long serialVersionUID = NUMBER0 ; - public static final String PANEL_NAME = S...
Corrected panel name
<nb> public class LanguageBasePlugin implements Plugin < Project > { public void execute ( Task task ) { Set < ? extends Task > taskDependencies = task . getTaskDependencies ( ) . getDependencies ( task ) ; - if ( taskDependencies . size ( ) == NUMBER0 && notBuildable . size ( ) > NUMBER0 ) { + if ( taskDepen...
Slightly simplify implementation of no buildable binaries assertion
<nb> package NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT COMMENT COMMENT + @ donotstrip public class RealtimeSinceBootClock implements MonotonicClock { private static final RealtimeSinceBootClock INSTANCE = new RealtimeSinceBootClock ( ) ; <nb> public class RealtimeSinceBoot...
Do not strip RealtimeSinceBootClock
<nb> public class EFragmentHandler extends BaseGeneratingAnnotationHandler < EFragmentH validatorHelper . isNotPrivate ( element , valid ) ; - validatorHelper . hasEmptyConstructor ( element , valid ) ; + validatorHelper . isAbstractOrHasEmptyConstructor ( element , valid ) ; validatorHelper . extendsFrag...
allow abstract fragments to have any kind of constructors
<nb> public class NIOConnection implements Connection { return sslSession . getPeerCertificates ( ) ; } } catch ( SSLPeerUnverifiedException e ) { - Log . warn ( STRING0 + session , e ) ; + if ( Log . isTraceEnabled ( ) ) { + SINGLE + Log . trace ( STRING1 + session , e ) ; + } } return new Certific...
Unavailability of optional certificates should cause WARN log statements
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AggregationQuery extends Query { if ( where != null ) { boolFilter = FilterMaker . explan ( where ) ; - filter = Aggreg...
use filtered query insead of aggregation filter when using WHERE and GROUP BY
<nb> public class MacJBTabs extends JBTabsImpl { boolean first = getLastLayoutPass ( ) . getPreviousFor ( selected ) == null ; boolean last = getLastLayoutPass ( ) . getNextFor ( selected ) == null ; - if ( first ) { + if ( first && ! isGhostsAlwaysVisible ( ) ) { shape . path . moveTo ( shape . labelLeftX ...
fix new tabs
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Utils { public static byte [ ] serialize ( Object obj ) { try { ByteArrayOutputStream bos = new ByteArrayOutputStream...
Add compression to serialization
<nb> public class Timer implements Metered , Sampling { } COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT public long stop ( ) { <nb> public class Timer implements Metered , Sampling { return elapsed ; } + COMMENT @ override public void close ( ) { stop ( ) ;
Updated javadoc in Timer Context
<nb> public class WordVectorSerializer COMMENT COMMENT private static Word2Vec readBinaryModel ( File modelFile ) - throws NumberFormatException , IOException , FileNotFoundException + throws NumberFormatException , IOException { InMemoryLookupTable lookupTable ; VocabCache cache ;
update word vectors
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT ...
Removed unused logger
<nb> public final class NotificationRecord { public void setContactAffinity ( float contactAffinity ) { mContactAffinity = contactAffinity ; + if ( mImportance < IMPORTANCE_HIGH && + mContactAffinity >= ValidateNotificationPeople . STARRED_CONTACT ) { + setImportance ( IMPORTANCE_HIGH , getPeopleExplanation...
boost starred people to at least high importance
<nb> public class ZWaveMultiInstanceCommandClass extends ZWaveCommandClass { CommandClass . ASSOCIATION , CommandClass . MULTI_INSTANCE_ASSOCIATION , CommandClass . CONFIGURATION , - CommandClass . CLOCK + CommandClass . CLOCK , + CommandClass . WAKE_UP ) ;
Add wakeup to list of classes not supporting multi instances
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Add link to ScalarTypes
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface SourceFunction < T > extends Function , Serializable { COMMENT COMMENT COMMENT - public static interface SourceC...
streaming Fix out of sync class level docs of SourceFunction
<nb> public class BluetoothService extends IBluetooth . Stub { Log . e ( TAG , STRING0 + i + STRING1 ) ; continue ; } - if ( name . equals ( STRING2 ) ) { + if ( name . equals ( STRING2 ) || name . equals ( STRING3 ) ) { StringBuilder str = new StringBuilder ( ) ; len = Integer . valueOf ( properties [ ++...
fixed parsing issue in BluetoothService so that it parses the UUID property correctly
<nb> public class FileMonitorTest extends TestCase { } protected void tearDown ( ) { - monitor . dispose ( ) ; + if ( monitor != null ) { + monitor . dispose ( ) ; + } } public void testNotifyOnFileCreation ( ) throws Exception {
Fix NPE on non windows platforms
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import N...
Starting MediaPickerActivity from Post editor
<nb> public class EditorColorsSchemeImpl extends AbstractColorsScheme implements Exte if ( fallbackKey == null ) return null ; if ( myAttributesMap . containsKey ( fallbackKey ) ) { TextAttributes fallbackAttributes = myAttributesMap . get ( fallbackKey ) ; - if ( fallbackAttributes != null && ! fallbackAttribu...
Return the last empty text attributes in a chain
<nb> public class AndroidRootUtil { @ nullable public static String getRenderscriptGenSourceRootPath ( @ notnull AndroidFacet facet ) { SINGLE - return getDefaultGenSourceRoot ( facet ) ; + return getAidlGenSourceRootPath ( facet ) ; } @ nullable public static String getBuildconfigGenSourceRootPath ( ...
generate renderscript files in aidl s root and buildconfig java in aapt s one
<nb> public class ResultMapping { private void validate ( ) { SINGLE if ( resultMapping . nestedQueryId != null && resultMapping . nestedResultMapId != null ) { - throw new IllegalStateException ( STRING0 + resultMapping . property ) ; + throw new IllegalStateException ( STRING1 + resultMapping . property ) ;...
Changed texts for exceptions ci skip
<nb> public class RecyclerViewOnScrollEventDistributor extends BaseRecyclerViewEventD } } + @ suppresswarnings ( STRING0 ) private static class InternalOnScrollListener extends RecyclerView . OnScrollListener { private WeakReference < RecyclerViewOnScrollEventDistributor > mRefDistributor ;
Suppress some deprecation warnings
<nb> public class SourceIndexBenchmarkTest { long nbLines = files . count . get ( ) * LINES_PER_FILE ; long throughputPerSecond = NUMBER0 * nbLines / period ; LOGGER . info ( String . format ( STRING0 , nbLines , period , throughputPerSecond ) ) ; - benchmark . expectBetween ( STRING1 , throughputPerSecond , NU...
Adjust performance test
<nb> public class DefaultBroadcaster implements Broadcaster { final AtmosphereResourceEventImpl event = ( AtmosphereResourceEventImpl ) token . resource . getAtmosphereResourceEvent ( ) ; final AtmosphereResourceImpl r = AtmosphereResourceImpl . class . cast ( token . resource ) ; final boolean willBeResumed = r ...
Move the getRequest call inside the try and make sure no exception is thrown
<nb> public class Engine { private static int m_bufferSize = NUMBER0 ; private Engine ( ) { - welcome ( ) ; + SINGLE methCla = new MethClaInterface ( ) ; methCla . engineNew ( m_sampleRate , m_bufferSize ) ; methCla . engineStart ( ) ;
remove welcome chatter not recommded for libraries never part of core libs
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix example WFS url
<nb> public enum ComparisonResultType { EQUAL , UNEQUAL , FROM_ONLY , - TO_ONLY + TO_ONLY , + NON_EXISTENT SINGLE }
Add a new comparison result type for when neither side has it
<nb> public class GetProcessor extends MethodProcessor { String returnTypeString = returnType . toString ( ) ; if ( returnType . getKind ( ) != TypeKind . VOID ) { - DeclaredType declaredReturnType = ( DeclaredType ) returnType ; - if ( returnTypeString . startsWith ( CanonicalNameConstants . RESPONSE_ENTIT...
Fix a ClassCastException
<nb> public class CropImageView extends FrameLayout { desiredHeight = mBitmap . getHeight ( ) ; } - int width = setOnMeasureSpec ( widthMode , widthSize , desiredWidth ) ; - int height = setOnMeasureSpec ( heightMode , heightSize , desiredHeight ) ; + int width = getOnMeasureSpec ( widthMode , widthSize , d...
Renamed the setOnMeasureSpec
<nb> public class PackageManagerService extends IPackageManager . Stub { SINGLE scanFlags |= SCAN_NO_DEX ; scanFlags |= SCAN_MOVE ; + + synchronized ( mPackages ) { + final PackageSetting ps = mSettings . mPackages . get ( pkgName ) ; + if ( ps == null ) { + res . setError ( INSTALL_FAILED_INTERNAL_ERRO...
Inherit ABI when moving existing install
<nb> import NAMESPACE ; import NAMESPACE ; public class XSettingsSecure extends XHook { + private static int mXPrivacyUid = NUMBER0 ; private XSettingsSecure ( String methodName , String restrictionName ) { super ( restrictionName , methodName , null ) ; <nb> public class XSettingsSecure extends XHook {...
Do not restrict Adnroid ID for XPrivacy
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ threadsafe public final class KeyValueMasterFactory implements MasterFactory { private static final Logger LOG = Lo...
Adding thread safety annotations for tachyon servers in keyvalue module
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT public abstract class AbstractXStreamWrapper implements DataFormat {
Removed empty version
<nb> public class XPathBuilder implements Expression , Predicate , NamespaceAware , Serv SINGLE COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class XPathBuilder implements Expression , Predicate , NamespaceAware , Serv } COMMENT - COMMENT + COMMENT COMMENT COMMENT COM...
Polished the Javadoc
<nb> public interface IdeActions { @ nonnls String ACTION_QUICK_JAVADOC = STRING0 ; @ nonnls String ACTION_QUICK_IMPLEMENTATIONS = STRING1 ; @ nonnls String ACTION_CHECKIN_PROJECT = STRING2 ; + @ nonnls String ACTION_FILE_STRUCTURE_POPUP = STRING3 ; @ nonnls String GROUP_USAGE_VIEW_POPUP = STRING4 ;
unify editor console tables header menus
<nb> public class AndroidDisplayer implements IDisplayer { STROKE = new Paint ( ) ; ALPHA_PAINT = new Paint ( ) ; UNDERLINE_PAINT = new Paint ( ) ; - UNDERLINE_PAINT . setStrokeWidth ( UNDERLINE_HEIGHT ) ; - PAINT . setTypeface ( Typeface . MONOSPACE ) ; + UNDERLINE_PAINT . setStrokeWidth ( UNDERLINE_HEIGHT...
initialize density value for caching canvas
<nb> public class NewChatActivity extends SherlockFragmentActivity implements View . On frag . onSelected ( mApp ) ; lastPos = pos ; + + mMenu . setGroupVisible ( R . id . menu_group_chats , true ) ; + + } + else + { + mMenu . setGroupVisible ( R . id . menu_group_chats , false ) ; + } } <...
make menu show on chatview pages
<nb> public interface CometEvent { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface CometEvent { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface CometEvent { COMMENT COMMENT COMMENT - COMMENT + COMME...
Add br tags to make it more readable
<nb> public class CompilerOptions { reportMissingOverride = level ; } - @ deprecated - public CheckLevel checkProvides ; - COMMENT COMMENT COMMENT <nb> public class CompilerOptions { checkSuspiciousCode = false ; checkTypes = false ; reportMissingOverride = CheckLevel . OFF ; - checkProvides...
Remove unused field
<nb> public class ZookeeperRegistryCenter implements CoordinatorRegistryCenter { if ( NUMBER0 != zkConfig . getSessionTimeoutMilliseconds ( ) ) { builder . sessionTimeoutMs ( zkConfig . getSessionTimeoutMilliseconds ( ) ) ; } - if ( NUMBER0 == zkConfig . getConnectionTimeoutMilliseconds ( ) ) { + if ( NUMBER0...
fix set ConnectionTimeoutMilliseconds bug at ZookeeperRegistryCenter
<nb> public class InputMethodManagerService extends IInputMethodManager . Stub mImeSwitcherNotification . sound = null ; mImeSwitcherNotification . vibrate = null ; Intent intent = new Intent ( Settings . ACTION_SHOW_INPUT_METHOD_PICKER ) ; - intent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK - | Intent . FL...
Change IME picker dialog from Activity to Broadcast
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + + public final class LoggedInputStream extends ...
Updated the description of LoggedInputStream
<nb> public abstract class TitanGraphPerformanceMemoryTest extends TitanGraphTestComm System . out . println ( STRING0 + ( rounds * commitSize * writeThreads . length ) + STRING1 + ( System . currentTimeMillis ( ) - start ) ) ; final int maxUID = uidCounter . get ( ) ; - final int trials = NUMBER0 ; + final i...
Further reduced testTransactionalMemory iterations
<nb> public class ClientMapTest extends HazelcastTestSupport { ClientConfig clientConfig = new ClientConfig ( ) ; clientConfig . getSerializationConfig ( ) - . addPortableFactory ( TestSerializationConstants . PORTABLE_FACTORY_ID , new PortableFactory ( ) { - public Portable create ( int classId ) { - retur...
Used assertOpenEventually in testAsyncPutWithTtl test
<nb> public class GrailsScriptRunner { List < Resource > potentialScripts ; List < Resource > allScripts = getAvailableScripts ( ) ; GantBinding binding = new GantBinding ( ) ; + binding . setVariable ( STRING0 , scriptName ) ; + setDefaultInputStream ( binding ) ; SINGLE
correctly set the scriptName
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fix refactoring snafu
<nb> public class WsWebSocketContainer registerSession ( endpoint , wsSession ) ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT wsFrameClient . star...
Improve comment wording
<nb> public class PhoneWindow extends Window implements MenuBuilder . Callback { } if ( hasFeature ( FEATURE_CONTENT_TRANSITIONS ) ) { SINGLE - throw new UnsupportedOperationException ( - STRING0 ) ; + Log . v ( TAG , STRING0 ) ; } mContentParent . addView ( view , params ) ; final Callback cb = getCa...
Reapply fix after bad merge
<nb> public class PackageManagerService extends IPackageManager . Stub { @ override public boolean getApplicationBlockedSettingAsUser ( String packageName , int userId ) { mContext . enforceCallingOrSelfPermission ( android . Manifest . permission . MANAGE_USERS , null ) ; + enforceCrossUserPermission ( Binder ...
Allow system process to call getApplicationBlockedAsUser
<nb> public class ServletRequestWrapper implements ServletRequest { COMMENT COMMENT COMMENT + COMMENT COMMENT public String getRealPath ( String path ) { <nb> public class HttpServletRequestWrapper extends ServletRequestWrapper implements COMMENT COMMENT COMMENT + COMMENT COMMENT public bool...
Deprecate wrapper methods that wrap deprecated methods
<nb> public class TvRecordingClient { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix a typo in the documentation
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class EscapeAction extends EditorAction { @ override public boolean isEnabled ( Editor editor , DataContext dataContext ) { SelectionModel selectionModel = editor ....
first remove editor selection then close the dialog
<nb> public class IdIndex extends FileBasedIndexExtension < IdIndexEntry , Integer > { } } ; - public static final boolean ourSnapshotMappingsEnabled = SystemProperties . getBooleanProperty ( STRING0 , false ) ; + public static final boolean ourSnapshotMappingsEnabled = SystemProperties . getBooleanProperty (...
enable snapshot mapping
<nb> public class JsonDataFormat extends DataFormatDefinition { setProperty ( camelContext , dataFormat , STRING0 , enableJaxbAnnotationModule ) ; } if ( moduleClassNames != null ) { - setProperty ( camelContext , dataFormat , STRING1 , moduleClassNames ) ; + setProperty ( camelContext , dataFormat , STRING2 ...
fix moduleClassNames attribute wiring in JSonDataFormat
<nb> public class ObjectPropertiesEditor extends AbstractDatabaseObjectEditor < DBSObje private SashForm sashForm ; private boolean activated = false ; private Composite propsPlaceholder ; + private TabbedFolderPageProperties propertiesPanel ; public ObjectPropertiesEditor ( ) { <nb> public class Object...
EntityEditor refresh affects properties
<nb> public class FrequencyAlight extends Edge implements OnBoardReverseEdge { if ( startTime >= NUMBER0 ) { SINGLE - int wait = ( int ) ( currentTime - sd . time ( startTime ) ) ; + int wait = ( int ) ( state0 . getTimeSeconds ( ) - sd . time ( startTime ) ) ; if ( wait < NUMBER0 ) LOG . error ( STRING0 ...
Fixed small bug where time was not updated correctly with minimum
<nb> import NAMESPACE import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class AuthorizationServerEndpointsConfiguration { return STRING0 + path ; } - @ configuration + @ component protected static class TokenKeyEndpointRegistrar impleme...
Switch Configuration to Component
<nb> public class SimpleStatefulSessionBean implements SimpleStatefulSessionLocal { entity . setName ( STRING0 ) ; entityManager . persist ( entity ) ; System . out . println ( STRING1 + entity . getName ( ) ) ; - entity = entityManager . find ( SimpleEntity . class , new Integer ( NUMBER0 ) ) ; + entity = en...
Fix JPA example
<nb> public final class ThreadSafeDoubleCheckLocking { public static ThreadSafeDoubleCheckLocking getInstance ( ) { SINGLE SINGLE + ThreadSafeDoubleCheckLocking result = instance ; + SINGLE if ( result == null ) { + SINGLE + SINGLE synchronized ( ThreadSafeDoubleCheckLocking . class ) { + SINGLE ...
Documented singleton double check idiom explaining the dynamics that happen on each step for better understanding
<nb> class IonRequestBuilder implements Builders . Any . B , Builders . Any . F , Builders . Any . } @ override + public Builders . Any . F setStreamBody ( InputStream inputStream ) { + setBody ( new StreamBody ( inputStream , - NUMBER0 ) ) ; + return this ; + } + + @ override public Builders . Any ...
add methods which don t take length for StreamBody
<nb> public final class Metadata { public static final String BINARY_HEADER_SUFFIX = STRING0 ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final BinaryMarshaller < byte [ ] > BINARY_BYTE_MARSHALLER = + new BinaryMarshaller < byte [ ] ...
Add simple BINARY_BYTE_MARSHALLER
<nb> public class ScrimController implements ViewTreeObserver . OnPreDrawListener { if ( ! mDozing || mPulseCallback != null ) { SINGLE - mPulseCallback . onPulseFinished ( ) ; + callback . onPulseFinished ( ) ; return ; }
Fix NPE found when pulsing and
<nb> public abstract class AbstractCommandLineRunner < A extends Compiler , private List < String > moduleRoots = ImmutableList . of ( ES6ModuleLoader . DEFAULT_FILENAME_PREFIX ) ; COMMENT - COMMENT - COMMENT - CommandLineConfig setCommonJSModulePathPrefix ( String prefix ) { - return setModuleRoots ( Imm...
Remove unused code in jscomp package
<nb> public class ActionBarImpl extends ActionBar { com . android . internal . R . id . lower_action_context_bar ) ; mAnimatorView = ( ViewAnimator ) decor . findViewById ( com . android . internal . R . id . action_bar_animator ) ; - mActionView . setContextView ( mUpperContextView ) ; - + if ( mActionVi...
In ActionBarImpl only use mActionView after we ve checked that it s non null
<nb> public abstract class AbstractDatabase implements Database { protected SqlStatement getCreateChangeLogSQL ( ) { return new CreateTableStatement ( null , getDatabaseChangeLogTableName ( ) ) - . addPrimaryKeyColumn ( STRING0 , STRING1 , new NotNullConstraint ( ) ) - . addPrimaryKeyColumn ( STRING2 , STRING...
made column sizes smaller for ID and Author
<nb> public class ForkingGradleExecuter extends AbstractGradleExecuter { if ( getExecutable ( ) != null ) { cmd = getExecutable ( ) . replace ( STRING0 , File . separatorChar ) ; } else { - cmd = String . format ( STRING1 , gradleHomeDir . getAbsolutePath ( ) ) ; + cmd = STRING2 ; } builder . executable (...
Revert this change
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RSConnectPublishButton extends Composite if ( manuallyHidden_ ) return false ; + + SINGLE + SessionInfo sessionInfo = session_ . getSe...
don t show the publish button for files in the root of website directories
<nb> public class WebSocketModule extends ReactContextBaseJavaModule { if ( client == null ) { SINGLE SINGLE - FLog . w ( - ReactConstants . TAG , - STRING0 + id ) ; - return ; } try {
Don t close WebSocket if it fails during connect
<nb> public class AprEndpoint extends AbstractEndpoint < Long > implements SNICallBack { SINGLE value = SSL . SSL_PROTOCOL_ALL ; } else { - for ( String protocol : sslHostConfig . getEnabledProtocols ( ) ) { + for ( String protocol : sslHostConfig . getProtocols ( ) ) { if ( Constants . SSL_PROTO_SSLv2Hello...
Avoid NPE on bind for APR when using SSL
<nb> public class WindowManagerService extends IWindowManager . Stub + STRING0 + w . mOutsets . toShortString ( ) + STRING1 + winAnimator . mSurfaceResized + STRING2 + configChanged - + STRING3 + dragResizingChanged ) ; + + STRING3 + dragResizingChanged + + STRING4 + w . mResizedWhileNotDragResizing ) ; }...
Force a relayout when task is resized while not drag resizing
<nb> abstract public class ShadowContext { return FILES_DIR ; } + @ implementation + public String [ ] fileList ( ) { + return getFilesDir ( ) . list ( ) ; + } + @ implementation public File getExternalCacheDir ( ) { EXTERNAL_CACHE_DIR . mkdir ( ) ; <nb> public class ContextTest { assertTrue (...
Added ShadowContext fileList
<nb> public class DaoAuthenticationProvider implements AuthenticationProvider , public boolean supports ( Class authentication ) { if ( UsernamePasswordAuthenticationToken . class . isAssignableFrom ( - authentication ) ) { + authentication ) + || ( DaoAuthenticationToken . class . isAssignableFrom ( authen...
Add correct supports method and tests
<nb> public class ZookeeperRegistryFactory extends AbstractRegistryFactory { @ override protected Registry createRegistry ( URL registryUrl ) { try { - int timeout = registryUrl . getIntParameter ( URLParamType . requestTimeout . getName ( ) , URLParamType . requestTimeout . getIntValue ( ) ) ; + int timeout ...
fix bug of zookeeper connect timeout
<nb> public class StandardWrapper COMMENT COMMENT COMMENT - protected boolean asyncSupported = true ; + protected boolean asyncSupported = false ; COMMENT COMMENT
Servlets do not support async by default
<nb> public class JapaneseTagger implements Tagger { } private AnalyzedToken asAnalyzedToken ( final String word ) { - if ( ! word . contains ( STRING0 ) ) { + String [ ] parts = word . split ( STRING0 ) ; + if ( parts . length != NUMBER0 ) { return new AnalyzedToken ( STRING0 , null , null ) ; } - St...
avoid array index out of bounds exception
<nb> public class RmdTemplateData option_default: STRING0 , option_nullable: true , option_list: [ STRING0 , STRING1 , STRING2 , STRING3 , - STRING4 , STRING5 , STRING6 , STRING7 , STRING8 ] + STRING4 , STRING5 , STRING6 , STRING8 ] } , { option_name: STRING9 ,
eliminate yeti theme
<nb> public class JsArrayUtil return out ; } + public static boolean jsArrayStringEqual ( JsArrayString first , + JsArrayString second ) + { + if ( first . length ( ) != second . length ( ) ) + return false ; + for ( int i = NUMBER0 ; i < first . length ( ) ; i ++ ) + { + if ( ! first . get ( i ) ...
add method to test for string array value equality
<nb> public class PipePowerWood extends Pipe implements IPowerReceptor { if ( tile instanceof TileGenericPipe ) { if ( ( ( TileGenericPipe ) tile ) . pipe == null ) { - System . out . println ( STRING0 ) ; continue ; SINGLE }
Removed random println waves at RichardG
<nb> public class Main { System . exit ( NUMBER0 ) ; } } catch ( Throwable ex ) { - LOGGER . error ( STRING0 , ex ) ; + LOGGER . debug ( STRING0 , ex ) ; Throwable rootCause = Throwables . getRootCause ( ex ) ; String causeMessage = rootCause . getMessage ( ) ; LogManager . shutdown ( ) ;
Changed the level on which errors on the main method of Stampede are logged
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BreakpointsFavoriteListProvider extends AbstractFavoritesListProvid public Breakp...
Fix ProjectImpl leak
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; COMMENT <nb> public class PredicateOperation extends OperationImpl < Boolean > implements Predic super ( Boolean . class , operator , args ) ; } + public PredicateOperation ( Operator < Boolean > operator , List < Expre...
added additional constructor
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixing link warning
<nb> public class AudioService extends IAudioService . Stub { return ; } synchronized ( mCurrentRcLock ) { - if ( ! mCurrentRcClientRef . get ( ) . equals ( rcse . mRcClientRef . get ( ) ) ) { + if ( ! rcse . mRcClientRef . get ( ) . equals ( mCurrentRcClientRef . get ( ) ) ) { SINGLE mCurrentRcClientInfo...
Prevent NPE when registering a remote control client
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; public final class ExpressionUtils { <nb> public final class ExpressionUtils public static Expression stripNonDeterministicConjuncts ( Expression expression ) { ...
Keep order of expressions when stripping non deterministic conjuncts
<nb> import NAMESPACE ; COMMENT COMMENT public class SpriteBatch implements Batch { - Mesh mesh ; + private Mesh mesh ; - float [ ] vertices ; + final float [ ] vertices ; int idx = NUMBER0 ; Texture lastTexture = null ; float invTexWidth = NUMBER0 , invTexHeight = NUMBER0 ;
Removed accidential changes in SpriteBatch
<nb> public class LocalMergeTaskTest extends CrateUnitTest { ListenableFuture < List < TaskResult > > allAsList = Futures . allAsList ( localMergeTask . result ( ) ) ; Bucket result = allAsList . get ( ) . get ( NUMBER0 ) . rows ( ) ; - assertThat ( result , contains ( isRow ( FLOAT0 , FLOAT0 ) , isRow ( ...
use correct thread pool size
<nb> public final class Config { public static final long MAM_MAX_CATCHUP = MILLISECONDS_IN_DAY / NUMBER0 ; public static final int MAM_MAX_MESSAGES = NUMBER1 ; - public static final long FREQUENT_RESTARTS_DETECTION_WINDOW = NUMBER2 * NUMBER3 * NUMBER3 * NUMBER4 ; SINGLE - public static final long FREQUENT_RE...
increase restart threshold
<nb> public enum AndroidExcludedRefs { } } , - INPUT_METHOD_MANAGER__SERVED_VIEW ( SDK_INT >= KITKAT && SDK_INT <= LOLLIPOP_MR1 ) { + INPUT_METHOD_MANAGER__SERVED_VIEW ( SDK_INT >= JELLY_BEAN && SDK_INT <= LOLLIPOP_MR1 ) { @ override void add ( ExcludedRefs . Builder excluded ) { SINGLE SINGLE
INPUT_METHOD_MANAGER__SERVED_VIEW observed also on JELLY_BEAN
<nb> public class CodeModelGenerator { public CodeModelGenerator ( Filer filer , String aaVersion ) { this . filer = filer ; - this . header = STRING0 - + STRING1 + aaVersion + STRING2 + this . header = STRING3 + + STRING1 + aaVersion + STRING4 + STRING5 ; }
Fix generated source header format
<nb> public class Reporter { STRING0 , STRING1 , STRING2 , - STRING3 , + STRING4 , STRING5 , STRING2 ) ) ; <nb> public class Reporter { STRING6 , STRING7 , STRING2 , - STRING8 , + STRING9 , STRING5 , STRING2 ) ) ; <nb> public class Reporter { STRING10 , STRING2 , STRING11 , -...
fixed a typo
<nb> public class TestInstanceNode extends SimpleApplication { private final Material [ ] materials = new Material [ NUMBER0 ] ; private Node instancedNode ; private float time = NUMBER1 ; - private boolean INSTANCING = false ; + private boolean INSTANCING = true ; public static void main ( String [ ] arg...
Fix crash in TestInstanceNode do you guys even test
<nb> public class AtomicFile { str = new FileOutputStream ( mBaseName ) ; } catch ( FileNotFoundException e ) { File parent = mBaseName . getParentFile ( ) ; - if ( ! parent . mkdir ( ) ) { + if ( ! parent . mkdirs ( ) ) { throw new IOException ( STRING0 + mBaseName ) ; } try {
Fix startWrite for cases where multiple levels parent directory is missing
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT COMMENT COMMENT + COMMENT COMMENT @ applicationscoped public class ActivitiServices { <nb> public class ActivitiServices { @ produces @ named @ appli...
Added CDI Producer Method for CommandExecutor
<nb> public class ScriptChunk { byte b = data [ NUMBER0 ] ; if ( b >= NUMBER1 && b <= NUMBER2 ) return opcode == OP_1 + b - NUMBER3 ; - if ( b == NUMBER4 ) + if ( ( b & NUMBER5 ) == NUMBER4 ) return opcode == OP_1NEGATE ; } if ( data . length < OP_PUSHDATA1 ) <nb> public class ScriptChunk { checkSta...
Fix bug revealed by static analysis
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class InfoAndProgressPanel extends JPanel implements CustomStatusBarWidge @ notnull private static Component getAnchor ( @ notn...
tweak transparent progress indicator position in case of tabbed editors
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GroovyDocumentationProvider implements CodeDocumentationProvider , E if ( element == null ) return null ; - String stan...
don t generate javadoc for light elements
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class ReachMiniSPT extends AbstractShortestPathTree { <nb> public class ReachMiniSPT extends AbstractShortestPathTree { COMMENT COMMENT COMMENT - public ReachMiniSPT ( ...
align MiniSPT with new SPT interface
<nb> public interface Graphics { COMMENT COMMENT public enum GraphicsType { - AndroidGL , LWJGL , Angle , WebGL , iOSGL , JGLFW , Mock , LWJGL3 + AndroidGL , LWJGL , WebGL , iOSGL , JGLFW , Mock , LWJGL3 } COMMENT
Removed the discontinued Angle backend from Graphics GraphicsType
<nb> static class TryExpr implements Expr { try { Var . pushThreadBindings ( dynamicBindings ) ; - LocalBinding lb = registerLocal ( sym , null , null ) ; + LocalBinding lb = registerLocal ( sym , + ( Symbol ) ( RT . second ( f ) instanceof Symbol ? RT . second ( f ) + : null ) , null ) ; Expr handler =...
propagate exception type to tag in catch clauses