diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class RemoteExternalSystemProjectResolverImpl < S extends ExternalSystemExe public DataNode < ProjectData > resolveProjectInfo ( @ notnull final ExternalSystemTaskId id , @ notnull final String projectPath , final boolean isPreviewMode , - ExternalSystemExecutionSettings settings ) + final S setti...
Fixed bug where Gradle settings were not updated on each project sync
<nb> public class JetLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSetti consumer . showCustomOption ( JetCodeStyleSettings . class , STRING0 , STRING1 , CodeStyleSettingsCustomizable . SPACES_AROUND_OPERATORS ) ; - consumer . showCustomOption ( JetCodeStyleSettings . class , STRING2 , STRING3 , ...
Swapped some CodeStyle options because must first be before then after
<nb> public class TestAll implements Test { long secondsSpent = ( currTime - myLastTestStartTime ) / NUMBER0 ; Thread currentThread = getCurrentThread ( ) ; if ( ! mySavingMemorySnapshot ) { - if ( secondsSpent > IdeaTestCase . ourTestTime * myLastTestTestMethodCount ) { + if ( false && secondsSpent > IdeaTes...
don t interrupt test by out of time
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public class DerivedColumnNoTransformationTest { private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper ( ) ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPAC...
Create replacement job in thirdeye hadoop
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class HttpConfigurable implements PersistentStateComponent < HttpCon...
provide NTCredentials in case we encounter NTLM proxy
<nb> public class DbConnectionManager { stmt . close ( ) ; } } - SINGLE - SINGLE - if ( version >= NUMBER0 ) { + SINGLE + SINGLE + SINGLE + if ( i >= NUMBER0 ) { stmt = con . createStatement ( ) ; stmt . execute ( STRING0 + i + STRING1 ) ; stmt . close ( ) ;
Modified jiveVersion update logic
<nb> public class DefaultFsDirectoryService extends FsDirectoryService { @ override protected Directory newFSDirectory ( Path location , LockFactory lockFactory ) throws IOException { - return new FileSwitchDirectory ( PRIMARY_EXTENSIONS , new MMapDirectory ( location , lockFactory ) , new NIOFSDirectory ( loca...
don t listAll twice
<nb> public class TerminalSshModule extends LineCommandAdapter implements CommandRunt if ( dialog . isOK ( ) ) { answer . set ( dialog . getPassword ( ) ) ; } - SINGLE - SINGLE } } ;
Removed implemented TODO items
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> public class DistributedExecutorService implements ManagedService , RemoteService if ( uuid != null ) { submittedTasks . put ( uuid , processor ) ; } - executionService . ex...
Send RejectedExecutionException immediately if call is rejected
<nb> public class EditPostActivity extends AppCompatActivity implements EditorFragmen mediaFile . setTitle ( mediaTitle ) ; mediaFile . setFilePath ( imageUri . toString ( ) ) ; if ( imageUri . getEncodedPath ( ) != null ) { - mediaFile . setVideo ( MediaUtils . isVideo ( imageUri . toString ( ) ) ) ; + media...
Classify newly captured videos as videos
<nb> public class TaskMutator { } public void assertMutable ( String listname , PropertyChangeEvent evt ) { + if ( task . getState ( ) . isConfigurable ( ) ) { + return ; + } + String method = null ; if ( evt instanceof ObservableList . ElementEvent ) { switch ( ( ( ObservableList . ElementEvent ) e...
Don t construct error message for mutations on task actions when an exception is not going to be thrown
<nb> public class AndroidSdkTest { @ test public void validPlatformsAndApiLevels ( ) { SINGLE - final AndroidSdk sdk16 = new AndroidSdk ( new File ( sdkTestSupport . getEnv_ANDROID_HOME ( ) ) , STRING0 ) ; + final AndroidSdk sdk19 = new AndroidSdk ( new File ( sdkTestSupport . getEnv_ANDROID_HOME ( ) ) , STRI...
Clarify variable name
<nb> public class SampleApplicationPlugin implements ApplicationComponent { COMMENT COMMENT public void initComponent ( ) { - System . out . println ( STRING0 ) ; + SINGLE } COMMENT COMMENT COMMENT public void disposeComponent ( ) { - System . out . println ( STRING1 ) ; + SINGLE } COMME...
commented print statement
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - public class BailErrorStrategy extends DefaultErrorStrategy < Token > { + public class BailErrorStrategy < Symbol > extends DefaultErrorStrategy < Symbol > { COMMENT COMMENT COMMENT COMMENT COMMENT @ override - public void recover ( BaseRecogniz...
Add type parameter to BailErrorStrategy since the class may safely be used with any type of recognizer
<nb> public class TestTextureArrayCompressed extends SimpleApplication COMMENT public static void main ( String [ ] args ) { - TestTextureArray app = new TestTextureArray ( ) ; + TestTextureArrayCompressed app = new TestTextureArrayCompressed ( ) ; app . start ( ) ; }
Fix incorrect class name in TestTextureArrayCompressed
<nb> public final class ActivityManagerService extends ActivityManagerNative SINGLE SparseArray < ProcessRecord > procs = mProcessNames . getMap ( ) . get ( processName ) ; if ( procs == null ) return null ; - final int N = procs . size ( ) ; - for ( int i = NUMBER0 ; i < N ; i ++ ) { - if ( UserHandle . is...
Prevent system uid component from running in an app process
<nb> public class ReactorServerHttpRequest extends AbstractServerHttpRequest { @ override public Flux < DataBuffer > getBody ( ) { - return this . channel . receive ( ) - . retain ( ) SINGLE - . map ( dataBufferFactory : : wrap ) ; + return this . channel . receive ( ) . retain ( ) . map ( this . dataBuff...
Remove FIXME on retain in ReactorServerHttpRequest
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class MockMvcRequestBuilders { COMMENT COMMENT public static RequestBuilder asyncDispatch ( final MvcResult mvcResult ) { + + SINGLE + mvcResult . getAsyncResult ( ) ; + return new RequestBuilder ( ) { @ overri...
Ensure result ready in asyncDispatch in MockMvc
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AbstractColQuery < SubType extends AbstractColQuery < SubType > > impleme return _this ; } - public InnerQuery . Metada...
added DefaultMetadata and QueryMetadata
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PieData extends ChartData < IPieDataSet > { : null : label . equals ( mDataSets . get ( NUMBER0 ) . getLabel ( ) ) ? mDataSets . get ( NUMBER0 ) : null ; } + @ override + public Entry getEntry...
Fix issue in selection callback
<nb> public class IOSDeviceTarget extends AbstractIOSTarget { } @ override + public boolean canLaunchInPlace ( ) { + return false ; + } + + @ override protected List < SDK > getSDKs ( ) { return listSDKs ( ) ; } <nb> public class IOSSimulatorTarget extends AbstractIOSTarget { } @ override ...
Fixed problem with JAR files that couldn t be found when launching iOS apps on device and simulator
<nb> public class ExprNodeColumnDesc extends ExprNodeDesc implements Serializable { if ( ! typeInfo . equals ( dest . getTypeInfo ( ) ) ) { return false ; } + if ( tabAlias != null && dest . tabAlias != null ) { + if ( ! tabAlias . equals ( dest . tabAlias ) ) { + return false ; + } + } return true ; ...
this affects trait Propagation in Joins Harish Butani via Gunther Hagleitner
<nb> public class EndlessScrollHelper < Model > extends EndlessRecyclerOnScrollListener COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Reworded funny javadoc
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class LanguageToolSupport { return STRING0 ; } return String . format ( STRING1 , - url . toExternalForm ( ) , STRING2 ) ; + url . toExternalForm ( )...
show the URL not just external link
<nb> public class DeepLearning extends Job . ValidatedJob { COMMENT private void unlock_data ( ) { source . unlock ( self ( ) ) ; - if ( validation != null && ! source . _key . equals ( validation . _key ) ) + if ( validation != null && source . _key != null && validation . _key != null && ! source . _key . e...
Add NPE checks
<nb> public final class RingBuffer < E > extends RingBufferFields < E > implements Cursored { return elementAt ( sequence ) ; } - COMMENT - COMMENT - COMMENT - @ deprecated - public E getPreallocated ( long sequence ) - { - return get ( sequence ) ; - } - - COMMENT - COMMENT - COMMENT - ...
Remove deprecated methods
<nb> public abstract class DebugProcessImpl implements DebugProcess { public void run ( ) { ThreadReferenceProxyImpl thread = context . getThread ( ) ; try { - try { + SINGLE if ( LOG . isDebugEnabled ( ) ) { final VirtualMachineProxyImpl virtualMachineProxy = getVirtualMachineProxy ( ) ; virtualMachine...
remove expensive assertion
<nb> public class SubqueriesBase extends AbstractBaseTest { } @ test - @ excludein ( { DERBY , H2 , HSQLDB , SQLITE } ) + @ excludein ( { CUBRID , DERBY , H2 , HSQLDB , SQLITE } ) public void List_In_Query ( ) { QEmployee employee2 = new QEmployee ( STRING0 ) ; query ( ) . from ( employee )
excluded Cubrid in test
<nb> public final class Throwables { COMMENT COMMENT COMMENT - @ beta @ gwtincompatible SINGLE public static < X extends Throwable > void throwIfInstanceOf ( Throwable throwable , Class < X > declaredType ) throws X { <nb> public final class Throwables { COMMENT COMMENT COMMENT - @ beta public...
Remove Beta from Throwables throwIfInstanceOf and throwIfUnchecked
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
add licence info
<nb> public class AssetDumper { } if ( outputDir != null ) { + if ( Files . notExists ( outputDir ) ) { + Files . createDirectories ( outputDir ) ; + } + String className = ClassID . getNameForID ( classID , true ) ; String fileName = String . format ( STRING0 , className ) ; Path file = outputDir ....
Added directory creation
<nb> final class DecodeFormatManager { PRODUCT_FORMATS . add ( BarcodeFormat . UPC_E ) ; PRODUCT_FORMATS . add ( BarcodeFormat . EAN_13 ) ; PRODUCT_FORMATS . add ( BarcodeFormat . EAN_8 ) ; - PRODUCT_FORMATS . add ( BarcodeFormat . RSS14 ) ; + PRODUCT_FORMATS . add ( BarcodeFormat . RSS_14 ) ; ONE_D_FORMATS...
Standardized the naming of our barcode formats and alphabetized them
<nb> public class TilePump extends TileBuildCraft implements IMachine , IPowerReceptor @ override public boolean isActive ( ) { BlockIndex next = getNextIndexToPump ( false ) ; - return isPumpableFluid ( next . x , next . y , next . z ) ; + + if ( next != null ) { + return isPumpableFluid ( next . x , nex...
isActive method could give NullPointerException
<nb> public class AuthTimeoutTest } } - @ test ( groups = STRING0 ) + @ test ( groups = STRING0 , enabled = false ) public void basicAuthTimeoutTest ( ) throws Exception { setUpServer ( Constraint . __BASIC_AUTH ) ; <nb> public class AuthTimeoutTest } } - @ test ( groups = STRING0 ) + @ test...
Disable those tests for now as they aren t predictable
<nb> public class MakefileHelper { try { + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + String classifier = artifact . getClassifier ( ) ; + if ( STRING0 . equals ( artifact . getType ( ) ) ) + { + classifier = ndkArchitecture ; + if ( artifact . getClassifier ...
Fix the HAR resolution will only work for armabi at this particular moment but fixes the samples build
<nb> public final class H2O { public String aws_credentials ; SINGLE public String keepice ; SINGLE public String soft = null ; SINGLE - SINGLE - public String random_udp_drop = STRING0 ; SINGLE + public String random_udp_drop = null ; SINGLE public int pparse_limit = Integer . MAX_VALUE ; public String...
Disable random_udp_drop by default
<nb> public class CommentDetailFragment extends Fragment implements NotificationFragm mBtnSpamComment . setOnClickListener ( new View . OnClickListener ( ) { @ override public void onClick ( View v ) { - moderateComment ( CommentStatus . SPAM ) ; + if ( mBtnSpamComment . getText ( ) . equals ( + getString (...
Add unspam action in comments
<nb> class StateMerger { } DfaMemoryStateImpl copy = state . createCopy ( ) ; - copy . flushVariable ( var ) ; copy . setVariableState ( var , varStateWithoutType ) ; complementaryStates . add ( state ) ; <nb> class Some { o . hashCode ( ) ; } + private void getOwnerClass ( PsiElement element ) ...
when merging states by instanceof don t forget null equivalence
<nb> public class ZooClient extends AbstractZooKeeperManager public String getRoot ( ) { States state = zooKeeper . getState ( ) ; - System . out . println ( STRING0 + state + STRING1 + state . isAlive ( ) ) ; SINGLE byte [ ] rootData = null ;
Removed an unecessary System out
<nb> public class LazyValidatorFactory implements ValidatorFactory { @ override public void close ( ) { - getDelegate ( ) . close ( ) ; + SINGLE + if ( delegate != null ) { + getDelegate ( ) . close ( ) ; + } } }
Avoid unintended initialization when closing
<nb> public final class KeyboardShortcutInfo implements Parcelable { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT public KeyboardShortcutInfo ( CharSequence label , int keycode , int modifiers ) { this ( label , null , keycode , modifiers ) ; <nb> public fina...
Improve KeyboardShortcutInfo documentation for Modifiers
<nb> public final class SearchSourceBuilder extends ToXContentToBytes implements Writ } COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT public void parseXContent ( XContentParser parser , QueryParseContext context , AggregatorParsers aggParsers ) throws IOException { XContentParser . Token t...
Make excuses for SearchSourceBuilder parseXContent
<nb> public class DefaultChartProvider implements ChartProvider { chart . getStyleManager ( ) . setLegendBackgroundColor ( bkgndLegend ) ; Color bkgndChart = new Color ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER1 ) ; chart . getStyleManager ( ) . setChartBackgroundColor ( bkgndChart ) ; + + Font x = chart . getSty...
Shorten legend line length and decrease legend font size
<nb> public class ELExpressionFactoryProcessor implements DeploymentUnitProcessor { @ override public void undeploy ( final DeploymentUnit deploymentUnit ) { final Module module = deploymentUnit . getAttachment ( Attachments . MODULE ) ; - FactoryFinderCache . clearClassLoader ( module . getClassLoader ( ) ) ; ...
Add null check just in case OSGI has taken over everything
<nb> public class ColumnRiverFeeder < T , R extends PipelineRequest , P extends Pipeline < @ override public void executeTask ( Map < String , Object > map ) throws Exception { logger . info ( STRING0 , map ) ; - createRiverContext ( STRING1 , STRING2 , map ) ; + createRiverContext ( STRING1 , getName ( ) , m...
used getName instead of hardcoded value feeder
<nb> import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; COMMENT <nb> public class GenerateSourcesMojo extends AbstractAndroidMojo Set < String > androidArtifacts = new HashSet < String > ( ) { { - addAll ( Arrays . asList ...
Add AAR as an Android Project type
<nb> public class Contact extends ImEntity implements Parcelable { public boolean equals ( Object other ) { - return other instanceof Contact && mAddress . getAddress ( ) . equals ( ( ( Contact ) other ) . mAddress . getAddress ( ) ) ; + return other instanceof Contact && mAddress . getBareAddress ( ) . equal...
make sure Contact is comparing bare addresses
<nb> public class LinearQuadTree < T extends LinearQuadTree . Item > implements QuadTree < T @ override public Collection < T > search ( Bounds searchBounds ) { - SINGLE - return null ; + Collection < T > collection = new ArrayList < T > ( ) ; + SINGLE + return collection ; } }
Wrote search method
<nb> class ContinuousTaskStatusFetcher private final RequestErrorTracker errorTracker ; private final RemoteTaskStats stats ; - @ guardedby ( STRING0 ) private final AtomicLong currentRequestStartNanos = new AtomicLong ( ) ; @ guardedby ( STRING0 )
Fix IntelliJ warnings in ContinuousTaskStatusFetcher
<nb> public final class FileSystemMasterTest { . createDirectory ( new AlluxioURI ( STRING0 ) , CreateDirectoryOptions . defaults ( ) ) ; Assert . fail ( STRING1 ) ; } catch ( FileAlreadyExistsException e ) { + Assert . assertEquals ( + ExceptionMessage . FILE_ALREADY_EXISTS . getMessage ( new AlluxioURI ( ST...
Fix empty catch
<nb> public class CppGenerator implements CodeGenerator return String . format ( STRING0 + STRING1 + + STRING2 + STRING3 + STRING4 + STRING5 + <nb> public class CppGenerator implements CodeGenerator STRING6 + STRING7 + STRING8 + + STRING9 + STRING10 + STRING11 + STRING12 + <nb> public cl...
fix up enum generation to account for being called from composites
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class EditScopesDialog extends SettingsDialog { } @ override - protected void doOKAction ( ) { + public void doOKAction ( ) { Object selectedObject = myConfigurable . getSelectedObject ( ) ; mySelectedScope = selectedObject...
make doOkAction public
<nb> public class RouteAnimation { current . setSpeed ( meters / intervalTime * coeff ) ; } current . setTime ( System . currentTimeMillis ( ) ) ; - if ( ! current . hasAccuracy ( ) ) { + if ( ! current . hasAccuracy ( ) || Double . isNaN ( current . getAccuracy ( ) ) ) { current . setAccuracy ( NUMBER0 ) ;...
Fix issue route animation with gpx routing
<nb> import NAMESPACE ; public final class SquidRuleRepository extends RuleRepository { private AnnotationRuleParser ruleParser ; - public SquidRuleRepository ( ) { + public SquidRuleRepository ( AnnotationRuleParser ruleParser ) { super ( SquidConstants . REPOSITORY_KEY , Java . KEY ) ; setName ( SquidCo...
Use injected AnnotationRuleParser
<nb> public class PrintingMessageCollector implements MessageCollector { } errStream . println ( text ) ; } - groupedMessages . put ( location . getPath ( ) , text ) ; + else { + groupedMessages . put ( location . getPath ( ) , text ) ; + } } public void printToErrStream ( ) {
Avoid printing logging messages twice
<nb> public class DataTable { } this . raw = Collections . unmodifiableList ( raw ) ; } - + private DataTable ( List < DataTableRow > gherkinRows , List < List < String > > raw , TableConverter tableConverter ) { this . gherkinRows = gherkinRows ; this . tableConverter = tableConverter ;
removed leading spaces on empty line
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SpringFileAntPathMatcherFileFilterTest extends AbstractJUnit38Sprin TestSupport ....
Fix up CS errors
<nb> public class ExpandableNotificationRow extends ActivatableNotificationView { protected void onLayout ( boolean changed , int left , int top , int right , int bottom ) { super . onLayout ( changed , left , top , right , bottom ) ; updateMaxHeights ( ) ; + if ( mSettingsIconRow != null ) { + mSettingsIconR...
Fix a crash when setting vertical gear location and content view null
<nb> public class BaseInstanceFactory < T > implements InstanceFactory < T > { if ( managedPublicType ) { throw new IllegalArgumentException ( String . format ( STRING0 , publicType ) ) ; } - if ( implementationType == null ) { - throw new IllegalArgumentException ( String . format ( STRING1 , publicType ) ) ...
Remove spurious implementation type check from BaseInstanceFactory
<nb> public class AppSettingsFragment extends PreferenceFragment implements OnPrefere Configuration conf = res . getConfiguration ( ) ; SINGLE Locale currentLocale = LanguageUtils . getCurrentDeviceLanguage ( WordPress . getContext ( ) ) ; + Locale newLocale = WPPrefUtils . languageLocale ( languageCode ) ; ...
Comparing with device locale instead of configuration locale
<nb> public class SimUtilsTest extends TestCase { assertEquals ( NUMBER0 , IccUtils . cdmaBcdByteToInt ( ( byte ) NUMBER1 ) ) ; SINGLE - assertEquals ( NUMBER2 , IccUtils . gsmBcdByteToInt ( ( byte ) NUMBER3 ) ) ; + assertEquals ( NUMBER2 , IccUtils . cdmaBcdByteToInt ( ( byte ) NUMBER3 ) ) ; COMMENT CO...
Fix CDMA BCD unit test
<nb> package NAMESPACE ; public abstract class ProjectGenerationEvent extends AbstractBuckEvent { @ override - public boolean isRelatedTo ( BuckEvent event ) { - if ( ! ( event instanceof ProjectGenerationEvent ) ) { - return false ; - } - - return true ; - } - - @ override public String getVa...
Fix the build again
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class XmlCompletionData extends CompletionData { if ( completionChar == STRING0 ) { template . addTextSegment ( STRING1 ) ; tem...
does not insert end of tag for single html tag
<nb> public class DemoCameraFragment extends CameraFragment implements ( ( ViewGroup ) results . findViewById ( R . id . camera ) ) . addView ( cameraView ) ; zoom = ( SeekBar ) results . findViewById ( R . id . zoom ) ; - + zoom . setKeepScreenOn ( true ) ; + return ( results ) ; }
added setKeepScreenOn to demo
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - SINGLE public class Mockito extends Matchers { private static final Reporter REPORTER = new Reporter ( ) ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class MockitoAnnotations {
fixed javadoc removed TODO
<nb> public class AarMojo extends AbstractAndroidMojo + File . separator + STRING0 ; AaptCommandBuilder commandBuilder = new AaptCommandBuilder ( ) + . packageResources ( ) . makePackageDirectories ( ) . forceOverwriteExistingFiles ( ) . setPathToAndroidManifest ( androidManifestFile . getAbsolutePath ( )...
added the required first option of package to the invocation of aaptcommandbuilder
<nb> public class OpenID4JavaConsumer implements OpenIDConsumer { List < OpenIDAttribute > fetchAxAttributes ( Message authSuccess , List < OpenIDAttribute > attributesToFetch ) throws OpenIDConsumerException { - if ( ! authSuccess . hasExtension ( AxMessage . OPENID_NS_AX ) ) { + if ( attributesToFetch == nu...
Added null check for attributesToFetch in OpenID4JavaConsumer
<nb> public class OrbitContainer SINGLE Set < ComponentState > comps = new LinkedHashSet < > ( components . values ( ) ) ; - SINGLE + SINGLE for ( ComponentState state : comps ) { - if ( state . instance == null && state . isSingleton && Startable . class . isAssignableFrom ( state . implClass ) ) + i...
Instantiating singletons at the container startup
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - class Reflector { + final class Reflector { COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - class SaripaarFieldsComparator implements Comparator < Field > { + final class SaripaarFieldsComparator implements Comparator < Fiel...
Reflector Make class final
<nb> public class TextField extends Widget implements Disableable { public void next ( boolean up ) { Stage stage = getStage ( ) ; if ( stage == null ) return ; - getParent ( ) . localToStageCoordinates ( tmp1 . set ( getX ( ) , getY ( ) ) ) ; TextField current = this ; while ( true ) { + current . getPar...
Fixed focus traversal
<nb> public class EnglishGrammaticalStructureTest extends TestCase { STRING0 + STRING1 + STRING2 + - STRING3 + - STRING4 + + STRING5 + + STRING6 + STRING7 , STRING8 + STRING9 + STRING10 +
The latest change returned these results to their original form
<nb> public class FileFilter { SINGLE SINGLE SINGLE + ignoreResultList . add ( STRING0 ) ; SINGLE + ignoreResultList . add ( STRING1 ) ; SINGLE ignoreResultList . add ( STRING2 ) ; SINGLE ignoreResultList . add ( STRING3 ) ; SINGLE ignoreResultList . add ( STRING4 ) ; SINGLE
Update DRT ignore list
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT public class SchemaMapper { + private static final JsonNodeFactory NODE_FACTORY = JsonNodeFa...
use a JsonNodeFactory to create ObjectNodes
<nb> public class LdapTestServer { String apacheWorkDir = System . getProperty ( STRING0 ) ; if ( apacheWorkDir == null ) { - apacheWorkDir = System . getProperty ( STRING1 + File . separator + STRING2 ) ; + apacheWorkDir = System . getProperty ( STRING1 ) + File . separator + STRING2 ; } File workingDi...
Corrected mistake in reading java io tmpdir
<nb> public class JettyPolicyRuntimeTest extends TestCase evaluator . put ( STRING0 , MavenTestingUtils . getBasedir ( ) . getAbsolutePath ( ) ) ; evaluator . put ( STRING1 , MavenTestingUtils . getBasedir ( ) . getAbsolutePath ( ) ) ; + + System . out . println ( STRING2 + MavenTestingUtils . getBasedir ( ) ...
Adding some debug to test case that is failing
<nb> public class JSONHttpRequest extends HttpRequest < JsonNode > { JsonParser jp = jf . createJsonParser ( responseContent ) ; future . set ( jp . readValueAsTree ( ) ) ; } catch ( Exception e ) { - future . setException ( new IOException ( STRING0 + getURI ( ) + STRING1 + responseContent . substring ( NUMBER...
be more careful about the error messages
<nb> public class UserAuthorizationProcessingFilter extends AbstractAuthenticationPro private String tokenIdParameterName = STRING0 ; private OAuthVerifierServices verifierServices ; private boolean require10a = true ; - - protected UserAuthorizationProcessingFilter ( String s ) { - super ( s ) ; + + pu...
apply default processes url
<nb> public abstract class AbstractPlugin implements Plugin , Comparable < Object > { String replaced = msg . getRequestBody ( ) . toString ( ) ; replaced = replaced . replace ( encoder . getURLEncode ( antiCsrfToken . getValue ( ) ) , encoder . getURLEncode ( tokenValue ) ) ; msg . setRequestBody ( replaced ) ; ...
Added getTokensFromResponse method
<nb> import NAMESPACE ; public boolean validate ( ) { if ( targetOMA != null ) { Spatial nodeTarget = ( Spatial ) blenderContext . getLoadedFeature ( targetOMA , LoadedFeatureDataType . LOADED_FEATURE ) ; + if ( nodeTarget == null ) { + LOGGER . log ( Level . WARNING , STRING0 , name ) ; + return false ; ...
fixed a bug that caused a bone constraint to be properly validated even though its bone target was not defined
<nb> public final class KeymasterDefs { public static final int KM_TAG_USER_ID = KM_INT | NUMBER0 ; public static final int KM_TAG_USER_SECURE_ID = KM_LONG_REP | NUMBER1 ; public static final int KM_TAG_NO_AUTH_REQUIRED = KM_BOOL | NUMBER2 ; - public static final int KM_TAG_USER_AUTH_ID = KM_INT_REP | NUMBER3 ;...
Rename KM_TAG_USER_AUTH_ID to KM_TAG_USER_AUTH_TYPE
<nb> public class CharSeqTest { assertThat ( t . removeAll ( of ( STRING0 , STRING1 ) ) ) . isSameAs ( t ) ; } + SINGLE + + @ test + public void shouldRemoveAllElementsByPredicateFromNil ( ) { + assertThat ( empty ( ) . removeAll ( Character : : isDigit ) ) . isSameAs ( empty ( ) ) ; + } + + @ tes...
Add test to CharSeq
<nb> public final class Es6TypedToEs6Converter } } break ; - case Token . ENUM : - case Token . VAR : - builder . addSuppression ( STRING0 ) ; - break ; case Token . LET : child . setType ( Token . VAR ) ; break ; <nb> public final class Es6TypedToEs6ConverterTest extends CompilerTestCase { enab...
Remove suppress duplicate from transpiled
<nb> public class WifiScanner { ( ( ParcelableScanResults ) msg . obj ) . getResults ( ) ) ; return ; case CMD_SINGLE_SCAN_COMPLETED : - Log . d ( TAG , STRING0 ) ; + if ( DBG ) Log . d ( TAG , STRING0 ) ; removeListener ( msg . arg2 ) ; break ; default :
Remove trivial GScan logs
<nb> public class WebViewUpdateService extends SystemService { return ; } - synchronized ( WebViewUpdateService . this ) { - mNumRelroCreationsFinished ++ ; - checkIfRelrosDoneLocked ( ) ; + long callingId = Binder . clearCallingIdentity ( ) ; + try { + synchronized ( WebViewUpdateService . this ) { ...
Call webview updating logic with the system UID when setup done
<nb> public class CookbookRunner { tests . add ( H2OCookbook . class ) ; tests . add ( FrameCookbook . class ) ; tests . add ( cookbook . GroupedQuantilesCookbook . class ) ; - + tests . add ( VecChunkDemo . class ) ; + tests . add ( KeyDemo . class ) ; + SINGLE + SINGLE + SINGLE SINGLE SINGLE S...
Modified cookbook runner
<nb> public class SipAudioCall { } private void grabWifiHighPerfLock ( ) { - COMMENT if ( mWifiHighPerfLock == null ) { Log . v ( TAG , STRING0 ) ; mWifiHighPerfLock = ( ( WifiManager ) <nb> public class SipAudioCall { . createWifiLock ( WifiManager . WIFI_MODE_FULL_HIGH_PERF , TAG ) ; mWifiHighPerf...
Activate the wifi high perf
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Util { setPermissions ( out . getAbsolutePath ( ) , NUMBER0 , Process . myUid ( ) , Process . myUid ( ) ) ; licenseFile ...
Suppress java io FileNotFoundException permission denied support info
<nb> public class ToggleDrawable extends Drawable { private final ArrayList < Bezier > mEnd = new ArrayList < > ( ) ; private final ArrayList < Bezier > mCurrent = new ArrayList < > ( ) ; + public ToggleDrawable ( Context context ) { + this ( context , NUMBER0 , R . style . ToggleDrawable ) ; + } + publ...
added simple constructor
<nb> public class IdeEventQueue extends EventQueue { @ nullable static AccessToken startActivity ( AWTEvent e ) { if ( ourTransactionGuard == null && appIsLoaded ( ) ) { - ourTransactionGuard = ( TransactionGuardImpl ) TransactionGuard . getInstance ( ) ; + if ( ApplicationManager . getApplication ( ) != null...
don t do transaction stuff after the application is disposed
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class ExifInterface { SINGLE public static final int WHITEBALANCE_AUTO = NUMBER0 ; public static final int WHITEBALANCE_MANUAL = NUMBER1 ; + private static SimpleDate...
Fix timezone issue to comply with EXIF standard
<nb> public final class FormEncodingBuilderTest { formEncoding . writeTo ( buffer ) ; assertEquals ( expected , buffer . readUtf8 ( ) ) ; } + + @ test public void buildEmptyForm ( ) throws Exception { + RequestBody formEncoding = new FormEncodingBuilder ( ) . build ( ) ; + + String expected = STRING0 ; ...
Relaxed FormEncodingBuilder to allow building empty forms
<nb> public abstract class ODatabaseWrapperAbstract < DB extends ODatabase > implements } public OLevel1RecordCache getLevel1Cache ( ) { - checkOpeness ( ) ; return underlying . getLevel1Cache ( ) ; } public OLevel2RecordCache getLevel2Cache ( ) { - checkOpeness ( ) ; return getStorage ( ) . getLeve...
Fixed problem on database reusing from the pool
<nb> public class ViewDragHelper { } final View toCapture = findTopChildUnder ( ( int ) x , ( int ) y ) ; - if ( slopCheck ( toCapture , dx , dy ) && + if ( toCapture != null && slopCheck ( toCapture , dx , dy ) && tryCaptureViewForDrag ( toCapture , pointerId ) ) { break ; }
Fix crash caused by ViewDragHelper
<nb> public class HAGraphDb extends AbstractGraphDatabase COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class HAGraphDb extends AbstractGraphDatabase } catch ( IOException e ) { - msgLog . logMessage ( + getMessageLog ( ) . logMessage ( STRING0 + socketAdd...
Compilation error missing method
<nb> public abstract class Recycler < T > { } ; private static final AtomicInteger ID_GENERATOR = new AtomicInteger ( Integer . MIN_VALUE ) ; private static final int OWN_THREAD_ID = ID_GENERATOR . getAndIncrement ( ) ; - SINGLE - private static final int DEFAULT_INITIAL_MAX_CAPACITY = NUMBER0 ; + private s...
Set Recycler DEFAULT_INITIAL_MAX_CAPACITY to a more sane value
<nb> public abstract class BasicVertexCentricQueryBuilder < Q extends BaseVertexQuery < Q return queryOnlyGivenVertex ; } + public boolean hasQueryOnlyLoaded ( ) { return queryOnlyLoaded ; } + COMMENT COMMENT COMMENT <nb> public class VertexCentricQueryBuilder extends BasicVertexCentricQueryBuilder < ...
Fixes introduced regression when enabling property pre loading
<nb> public abstract class AsyncCall implements Future , Runnable { protected abstract void call ( ) ; public void run ( ) { - try { - ThreadContext . get ( ) . setCallContext ( callContext ) ; - call ( ) ; - } catch ( Throwable ignored ) { - } + ThreadContext . get ( ) . setCallContext ( callContext ...
allow error logging in async calls
<nb> public class BuildTargetParser { shortName = shortName . substring ( NUMBER0 , hashIndex ) ; } - String fullyQualifiedName = String . format ( STRING0 , baseName , shortName ) ; + String fullyQualifiedName = new StringBuilder ( baseName . length ( ) + shortName . length ( ) + NUMBER1 ) + . append ( bas...
Optimize BuildTargetParser string formatting
<nb> public class Request implements HttpServletRequest { return parametersParsed ; } - COMMENT - COMMENT - COMMENT - public boolean getAvailable ( ) { - return ( inputBuffer . available ( ) > NUMBER0 ) ; - } - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT public boolean is...
Remove unused code
<nb> public class BuildCraftCore { @ eventhandler public void loadConfiguration ( FMLPreInitializationEvent evt ) { - Version . check ( ) ; - bcLog . setParent ( FMLLog . getLogger ( ) ) ; bcLog . info ( STRING0 + Version . getVersion ( ) ) ; bcLog . info ( STRING1 ) ; <nb> public class BuildCraftCore...
Add a config property for update check