diff
stringlengths 38
1.78k
| msg_token
stringlengths 9
190
|
|---|---|
<nb> public class WorkspaceFactory {
private Environment createWorkspaceEnv (
Builder builder , RuleClassProvider ruleClassProvider , String installDir ) {
Environment workspaceEnv = new Environment ( ) ;
+ MethodLibrary . setupMethodEnvironment ( workspaceEnv ) ;
RuleFactory ruleFactory = new RuleFactory ( ruleClassProvider ) ;
for ( String ruleClass : ruleFactory . getRuleClassNames ( ) ) {
|
Add the default BUILD language functions to the WORKSPACE file
|
<nb> public class ChangeSet implements Conditional {
}
for ( CheckSum validCheckSum : validCheckSums ) {
+ if ( validCheckSum . toString ( ) . equalsIgnoreCase ( STRING0 ) ) {
+ return true ;
+ }
if ( currentMd5Sum . equals ( validCheckSum ) ) {
return true ;
}
|
Added support for validCheckSum any validCheckSum
|
<nb>
package 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 NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
+ import NAMESPACE ;
+
public class SparkTestUtil {
private int port ;
|
removed unused import
|
<nb> public class UpdateStatement implements SqlStatement {
private String convertToString ( Object newValue , Database database ) {
String sqlString ;
- if ( newValue == null ) {
+ if ( newValue == null || newValue . toString ( ) . equalsIgnoreCase ( STRING0 ) ) {
sqlString = STRING0 ;
} else if ( newValue instanceof String && database . shouldQuoteValue ( ( ( String ) newValue ) ) ) {
sqlString = STRING1 + newValue + STRING1 ;
|
handle NULL values correctly
|
<nb> public class Environment {
final DropwizardResourceConfig jerseyConfig = new DropwizardResourceConfig ( metricRegistry ) ;
this . servletContext = new ServletContextHandler ( ) ;
+ servletContext . setClassLoader ( Thread . currentThread ( ) . getContextClassLoader ( ) ) ;
this . servletEnvironment = new ServletEnvironment ( servletContext ) ;
this . adminContext = new ServletContextHandler ( ) ;
+ adminContext . setClassLoader ( Thread . currentThread ( ) . getContextClassLoader ( ) ) ;
this . adminEnvironment = new AdminEnvironment ( adminContext , healthCheckRegistry ) ;
this . lifecycleEnvironment = new LifecycleEnvironment ( ) ;
|
Set servlet context class loaders
|
<nb>
COMMENT
package 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 ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
COMMENT
package 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 ;
import NAMESPACE ;
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
|
Replace com google api etc with com google common collect
|
<nb> public interface SubsystemRegistration {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- ManagementResourceRegistration registerDeploymentModel ( DescriptionProvider descriptionProvider ) ;
-
- COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class ExtensionRegistry {
}
@ override
- @ suppresswarnings ( STRING0 )
- public ManagementResourceRegistration registerDeploymentModel ( final DescriptionProvider descriptionProvider ) {
- assert descriptionProvider != null : STRING1 ;
- PathElement pathElement = PathElement . pathElement ( ModelDescriptionConstants . SUBSYSTEM , name ) ;
- return registerDeploymentModel ( new SimpleResourceDefinition ( pathElement , descriptionProvider ) ) ;
- }
-
- @ override
public ManagementResourceRegistration registerDeploymentModel ( ResourceDefinition resourceDefinition ) {
assert resourceDefinition != null : STRING2 ;
final ManagementResourceRegistration deploymentsReg = deploymentsRegistration ;
|
Remove registerDeploymentModel final DescriptionProvider descriptionProvider
|
<nb> public final class ExpressionFormatter
@ override
protected String visitExists ( ExistsPredicate node , Boolean unmangleNames )
{
- return STRING0 + formatSql ( node . getSubquery ( ) , unmangleNames ) + STRING1 ;
+ return STRING2 + formatSql ( node . getSubquery ( ) , unmangleNames ) + STRING3 ;
}
@ override
|
Fix formating EXISTS predicate
|
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ExpressionReader {
if ( lines . contains ( null ) )
return true ;
- ArrayDeque < Character > brackets = new ArrayDeque < Character > ( ) ;
+ LinkedList < Character > brackets = new LinkedList < Character > ( ) ;
for ( Character character : characters ) {
if ( openBrackets . contains ( character ) ) {
brackets . push ( character ) ;
|
changed to linked list in expression reader
|
<nb> public class TfsShell implements Closeable {
System . out . println ( STRING0 ) ;
System . out . println ( STRING1 ) ;
System . out . println ( STRING2 ) ;
- System . out . println ( STRING3 ) ;
System . out . println ( STRING4 ) ;
System . out . println ( STRING5 ) ;
System . out . println ( STRING6 ) ;
|
Remove unused request command from shell help
|
<nb> public class DefaultAnimationHandler extends MenuAnimationHandler {
animation . setInterpolator ( new OvershootInterpolator ( FLOAT0 ) ) ;
animation . addListener ( new SubActionItemAnimationListener ( menu . getSubActionItems ( ) . get ( i ) , ActionType . OPENING ) ) ;
- lastAnimation = animation ;
+ if ( i == NUMBER0 ) {
+ lastAnimation = animation ;
+ }
SINGLE
animation . setStartDelay ( ( menu . getSubActionItems ( ) . size ( ) - i ) * LAG_BETWEEN_ITEMS ) ;
|
set the last animation correctly for DefaultAnimationHandler
|
<nb> public class UserManager implements IQResultListener {
@ override
public void propertyDeleted ( String property , Map params ) {
- SINGLE
+ if ( STRING0 . equals ( property ) ) {
+ initProvider ( ) ;
+ }
}
@ override
|
Allow reset of UserProvider
|
<nb> public interface AgentBuilder {
if ( typeInitializer != null ) {
typeInitializer . getClass ( ) . getMethod ( STRING0 , Class . class ) . invoke ( typeInitializer , type ) ;
} else {
- Logger . getAnonymousLogger ( ) . warning ( STRING1 + type + STRING2 + identification ) ;
+ Logger . getAnonymousLogger ( ) . warning ( STRING1 + type + STRING3 + identification ) ;
}
}
<nb> public interface AgentBuilder {
COMMENT
public static void register ( String name , ClassLoader classLoader , int identification , Object typeInitializer ) {
if ( TYPE_INITIALIZERS . put ( new Nexus ( name , classLoader , identification ) , typeInitializer ) != null ) {
- Logger . getAnonymousLogger ( ) . warning ( STRING4 + identification + STRING5 + name ) ;
+ Logger . getAnonymousLogger ( ) . warning ( STRING6 + identification + STRING5 + name ) ;
}
}
|
Clarified names of texts within agent logging
|
<nb> public interface OSGIConfig extends KillbillConfig {
SINGLE
STRING0 +
STRING1 +
- STRING2 )
+ STRING3 )
public String getSystemBundleExportPackages ( ) ;
SINGLE
|
add exported version for org osgi service log
|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class Length implements Function {
JSONArray array = ( JSONArray ) model ;
return Integer . valueOf ( array . size ( ) ) ;
}
+ else if ( model instanceof Map ) {
+ return Integer . valueOf ( ( ( Map ) model ) . size ( ) ) ;
+ }
return null ;
}
}
<nb> public class JSONEntityFunctionTest extends BaseFunctionTest {
verifyFunction ( STRING0 , NUMBER_SERIES , NUMBER0 ) ;
}
+
+ @ test
+ public void testLengthOfStructure ( ) {
+ verifyFunction ( STRING1 , BATCH_JSON , NUMBER1 ) ;
+ }
+
COMMENT
COMMENT
COMMENT
|
added case for length of map or JSONArray of values
|
<nb> public final class FragmentedMp4Extractor implements Extractor {
} else {
sampleCompositionTimeOffsetTable [ i ] = NUMBER0 ;
}
- sampleDecodingTimeTable [ i ] = ( cumulativeTime * NUMBER1 ) / timescale ;
+ sampleDecodingTimeTable [ i ] = Util . scaleLargeTimestamp ( cumulativeTime , NUMBER1 , timescale ) ;
sampleSizeTable [ i ] = sampleSize ;
sampleIsSyncFrameTable [ i ] = ( ( sampleFlags > > NUMBER2 ) & NUMBER3 ) == NUMBER0
&& ( ! workaroundEveryVideoFrameIsSyncFrame || i == NUMBER0 ) ;
|
Fix overflow for DASH live streams using large timescales
|
<nb> public class CrossBuildInMemoryCachingScriptClassCache {
private byte [ ] hashFor ( ScriptSource source ) {
File file = source . getResource ( ) . getFile ( ) ;
- String hash ;
if ( file != null && file . exists ( ) ) {
CachingFileSnapshotter . FileInfo snapshot = snapshotter . snapshot ( file ) ;
return snapshot . getHash ( ) ;
|
Removed unused lvar
|
<nb> public class SourceWindowManager implements PopoutDocEvent . Handler ,
@ override
public boolean execute ( )
{
- if ( window . isClosed ( ) ||
+ if ( window == null ||
+ window . isClosed ( ) ||
pSatelliteManager_ . get ( ) . getSatelliteWindowObject (
event . getName ( ) ) == null )
{
|
treat null windows as closed when detecting source window closure
|
<nb> public class XMLProperties {
}
SINGLE
for ( String value : values ) {
- element . addElement ( childName ) . setText ( value ) ;
+ Element childElement = element . addElement ( childName ) ;
+ if ( value . startsWith ( STRING0 ) ) {
+ childElement . addCDATA ( value . substring ( NUMBER0 , value . length ( ) - NUMBER1 ) ) ;
+ }
+ else {
+ childElement . setText ( value ) ;
+ }
}
saveProperties ( ) ;
<nb> public class XMLProperties {
element = element . element ( propName [ i ] ) ;
}
SINGLE
- element . setText ( value ) ;
+ if ( value . startsWith ( STRING0 ) ) {
+ element . addCDATA ( value . substring ( NUMBER0 , value . length ( ) - NUMBER1 ) ) ;
+ }
+ else {
+ element . setText ( value ) ;
+ }
SINGLE
saveProperties ( ) ;
|
Added support for storing CDATA
|
<nb> public abstract class CompoundButton extends Button implements Checkable {
}
COMMENT
+ COMMENT
+ COMMENT
+ @ override
+ public void onResolveDrawables ( @ resolvedlayoutdir int layoutDirection ) {
+ super . onResolveDrawables ( layoutDirection ) ;
+ if ( mButtonDrawable != null ) {
+ mButtonDrawable . setLayoutDirection ( layoutDirection ) ;
+ }
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT
|
Resolve CompoundButton s foreground drawable for layout direction change
|
<nb> public class EntityRegistry
{
if ( EntityList . field_75626_c . containsKey ( entityClass ) )
{
- FMLLog . warning ( STRING0 , Loader . instance ( ) . activeModContainer ( ) . getModId ( ) , entityClass ) ;
+ ModContainer activeModContainer = Loader . instance ( ) . activeModContainer ( ) ;
+ String modId = STRING1 ;
+ if ( activeModContainer != null )
+ {
+ modId = activeModContainer . getModId ( ) ;
+ }
+ else
+ {
+ FMLLog . severe ( STRING2 ) ;
+ Thread . dumpStack ( ) ;
+ }
+ FMLLog . warning ( STRING0 , modId , entityClass ) ;
return ;
}
id = instance ( ) . validateAndClaimId ( id ) ;
|
Fix up mods trying to register entities outside of modloading
|
<nb> public class SeriesGuideDatabase extends SQLiteOpenHelper {
String LIST_ITEMS_COLUMNS = STRING0 ;
String LIST_ITEMS_COLUMNS_INTERNAL = STRING1 ;
String SHOWS_COLUMNS = LIST_ITEMS_COLUMNS
- + STRING2 ;
- String SHOWS_COLUMNS_INTERNAL = STRING3 ;
+ + STRING4 ;
+ String SHOWS_COLUMNS_INTERNAL = STRING5 ;
String SEASONS_COLUMNS = LIST_ITEMS_COLUMNS
- + STRING6 ;
+ + STRING7 ;
String EPISODES_COLUMNS = LIST_ITEMS_COLUMNS
- + STRING8 ;
+ + STRING9 ;
}
interface References {
|
Modify list query to include more columns for next episode text
|
<nb> public class EC2MetadataUtils {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public String getSubnetId ( ) {
+ return getData ( STRING0 ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public String getVpcIPv4CidrBlock ( ) {
+ return getData ( STRING1 ) ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT
|
add getSubnetId and getVpcIPv4CidrBlock
|
<nb> public class StringTypeTest {
assertEquals ( true , expected2 . equals ( new StringType ( STRING0 ) ) ) ;
assertEquals ( false , expected1 . equals ( new StringType ( STRING0 ) ) ) ;
assertEquals ( false , expected2 . equals ( new StringType ( STRING1 ) ) ) ;
+
+ assertEquals ( true , expected1 . equals ( STRING1 ) ) ;
+ assertEquals ( false , expected1 . equals ( STRING0 ) ) ;
}
}
|
allow equality check of StringType with java lang String
|
<nb> public class StatsGenerator {
BufferedReader dataReader = new BufferedReader ( new FileReader ( dataFileName ) ) ;
SINGLE
- String [ ] headers = dataReader . readLine ( ) . split ( STRING0 ) ;
- int numColumns = headers . length ;
+ String [ ] columns = dataReader . readLine ( ) . split ( STRING0 ) ;
+ int numColumns = columns . length ;
for ( int i = NUMBER0 ; i < numColumns ; ++ i ) {
statisticsList . add ( new DescriptiveStatistics ( ) ) ;
<nb> public class StatsGenerator {
}
for ( int i = NUMBER0 ; i < numColumns ; i ++ ) {
- LOGGER . info ( STRING1 , statisticsList . get ( i ) . toString ( ) . replace ( STRING2 , STRING3 ) ) ;
+ LOGGER . info ( STRING4 , columns [ i ] , statisticsList . get ( i ) . toString ( ) . replace ( STRING2 , STRING3 ) ) ;
}
}
|
Added column name in report
|
<nb> public class LanguageManagerDialog implements ActionListener {
}
@ override
public String getDescription ( ) {
- return STRING0 ; SINGLE
+ return STRING1 ; SINGLE
}
}
|
adapt the displayed file name pattern to the filter actually used
|
<nb> import NAMESPACE ;
import NAMESPACE ;
public abstract class GoRunConfigurationBase < RunningState extends GoRunningState >
- extends ModuleBasedConfiguration < GoModuleBasedConfiguration > implements RunConfigurationWithSuppressedDefaultRunAction {
+ extends ModuleBasedConfiguration < GoModuleBasedConfiguration > implements RunConfigurationWithSuppressedDefaultRunAction ,
+ RunConfigurationWithSuppressedDefaultDebugAction {
private static final String WORKING_DIRECTORY_NAME = STRING0 ;
private static final String GO_PARAMETERS_NAME = STRING1 ;
|
Disable debug for go run configurations
|
<nb> public class Compiler extends AbstractCompiler {
SINGLE
public void optimize ( ) {
+ List < PassFactory > optimizations = getPassConfig ( ) . getOptimizations ( ) ;
+ if ( optimizations . isEmpty ( ) ) {
+ return ;
+ }
+
SINGLE
SINGLE
SINGLE
<nb> public class Compiler extends AbstractCompiler {
if ( options . getCheckDeterminism ( ) ) {
phaseOptimizer . setPrintAstHashcodes ( true ) ;
}
- phaseOptimizer . consume ( getPassConfig ( ) . getOptimizations ( ) ) ;
+ phaseOptimizer . consume ( optimizations ) ;
phaseOptimizer . process ( externsRoot , jsRoot ) ;
phaseOptimizer = null ;
}
|
Don t run the normalization pass if the using transpileOnly
|
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class Actor < Message , V > extends LightweightThread < V > {
SINGLE
SINGLE
+ public Channel < Message > getMaibox ( ) {
+ return ( Channel < Message > ) mailbox ;
+ }
+
protected Message receive ( ) throws SuspendExecution {
for ( ; ; ) {
checkThrownIn ( ) ;
|
Actor exposes access to mailbox for sending only
|
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- final class LoadPackagesAsyncTask extends AsyncTask < Void , Void , List < AppInfo > > {
+ final class LoadPackagesAsyncTask extends AsyncTask < Object , Object , List < AppInfo > > {
private static final String [ ] PKG_PREFIX_WHITELIST = {
STRING0 ,
<nb> final class LoadPackagesAsyncTask extends AsyncTask < Void , Void , List < AppInfo > > {
}
@ override
- protected List < AppInfo > doInBackground ( Void . . . objects ) {
+ protected List < AppInfo > doInBackground ( Object . . . objects ) {
List < AppInfo > labelsPackages = new ArrayList < > ( ) ;
PackageManager packageManager = activity . getPackageManager ( ) ;
Iterable < ApplicationInfo > appInfos = packageManager . getInstalledApplications ( NUMBER0 ) ;
|
Fix problem on some platforms with AsyncTask array arg type
|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import static NAMESPACE ;
<nb> public class GitTestRepo extends TestRepo {
}
private void cloneBundleToFolder ( File from , File workingDir ) {
- git ( workingDir ) . cloneFrom ( inMemoryConsumer ( ) , from . getAbsolutePath ( ) ) ;
+ GitCommand git = git ( workingDir ) ;
+ InMemoryStreamConsumer outputStreamConsumer = inMemoryConsumer ( ) ;
+ int returnValue = git . cloneFrom ( outputStreamConsumer , from . getAbsolutePath ( ) ) ;
+ if ( returnValue != NUMBER0 ) {
+ throw new RuntimeException ( String . format ( STRING0 , git . workingRepositoryUrl ( ) , returnValue , outputStreamConsumer . getAllOutput ( ) ) ) ;
+ }
}
private GitCommand git ( File workingDir ) {
|
Adding verbosity to test git repo cloning
|
<nb> public final class ParseDataset extends Job < Frame > {
_packedDomains [ i ] = packDomain ( _perColDomains [ i ] ) ;
i ++ ;
}
- Log . trace ( STRING0 ) ;
+ Log . trace ( STRING1 ) ;
}
@ override
|
Improves trace message
|
<nb> class SonosZonePlayer {
coordinator . stop ( ) ;
SINGLE
- coordinator . setCurrentURI ( STRING0 + remotePlayer . getUdn ( ) , STRING1 ) ;
+ coordinator . setCurrentURI ( STRING0 + remotePlayer . getUdn ( ) . getIdentifierString ( ) , STRING1 ) ;
SINGLE
coordinator . setMute ( STRING2 ) ;
|
fix bug in PlayLine functionality
|
<nb> public class MulticastProcessor extends ServiceSupport implements AsyncProcessor
COMMENT
COMMENT
COMMENT
- protected ExecutorService createAggregateExecutorService ( String name ) {
+ protected synchronized ExecutorService createAggregateExecutorService ( String name ) {
return camelContext . getExecutorServiceStrategy ( ) . newThreadPool ( this , name , NUMBER0 , Integer . MAX_VALUE ) ;
}
<nb> public class RecipientList extends ServiceSupport implements AsyncProcessor {
RecipientListProcessor rlp = new RecipientListProcessor ( exchange . getContext ( ) , producerCache , iter , getAggregationStrategy ( ) ,
isParallelProcessing ( ) , getExecutorService ( ) , isStreaming ( ) , isStopOnException ( ) , getTimeout ( ) ) {
@ override
- protected ExecutorService createAggregateExecutorService ( String name ) {
+ protected synchronized ExecutorService createAggregateExecutorService ( String name ) {
SINGLE
if ( aggregateExecutorService == null ) {
aggregateExecutorService = super . createAggregateExecutorService ( STRING0 ) ;
|
Fixed recipient list in parallel mode creating a new thread pool for aggregator background task
|
<nb> public class PreviewTextFragment extends FileFragment {
public static boolean canBePreviewed ( OCFile file ) {
final List < String > unsupportedTypes = new LinkedList < String > ( ) ;
unsupportedTypes . add ( STRING0 ) ;
+ unsupportedTypes . add ( STRING1 ) ;
unsupportedTypes . add ( STRING2 ) ;
unsupportedTypes . add ( STRING3 ) ;
unsupportedTypes . add ( STRING4 ) ;
unsupportedTypes . add ( STRING5 ) ;
unsupportedTypes . add ( STRING6 ) ;
- return ( file != null && file . isDown ( ) && file . isText ( ) && ! unsupportedTypes . contains ( file . getMimetype ( ) ) ) ;
+ return ( file != null && file . isDown ( ) && file . isText ( ) &&
+ ! unsupportedTypes . contains ( file . getMimetype ( ) ) &&
+ ! unsupportedTypes . contains ( file . getMimeTypeFromName ( ) )
+ ) ;
}
COMMENT
|
Fixed text preview filter to take into account local knowledge about MIME types
|
<nb> public class MetricInstrumentedStore implements KeyColumnValueStore {
public KeyIterator call ( ) throws StorageException {
KeyIterator ki = backend . getKeys ( query , txh ) ;
if ( null != p ) {
- return MetricInstrumentedIterator . of ( ki , p + STRING0 + M_ITERATOR ) ;
+ return MetricInstrumentedIterator . of ( ki , p + STRING0 + M_GET_KEYS + STRING0 + M_ITERATOR ) ;
} else {
return ki ;
}
<nb> public class MetricInstrumentedStore implements KeyColumnValueStore {
public KeyIterator call ( ) throws StorageException {
KeyIterator ki = backend . getKeys ( query , txh ) ;
if ( null != p ) {
- return MetricInstrumentedIterator . of ( ki , p + STRING0 + M_ITERATOR ) ;
+ return MetricInstrumentedIterator . of ( ki , p + STRING0 + M_GET_KEYS + STRING0 + M_ITERATOR ) ;
} else {
return ki ;
}
|
Fix broken getSlice iterator Metric names
|
<nb> public class RobolectricTestRunnerSelfTest {
@ test
@ config ( qualifiers = STRING0 )
public void internalBeforeTest_testValuesResQualifiers ( ) {
- String expectedQualifiers = STRING0 + TestRunners . WithDefaults . SDK_TARGETED_BY_MANIFEST ;
- assertThat ( RuntimeEnvironment . getQualifiers ( ) ) . isEqualTo ( expectedQualifiers ) ;
+ assertThat ( RuntimeEnvironment . getQualifiers ( ) ) . contains ( STRING0 ) ;
}
@ test
|
Fix test assumptions to be agnostic of any default qualifiers set
|
<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 ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+
+ import NAMESPACE ;
public class GateItemRenderer implements IItemRenderer {
<nb> public class GateItemRenderer implements IItemRenderer {
private void render ( ItemRenderType type , ItemStack stack ) {
GL11 . glPushMatrix ( ) ;
GL11 . glDisable ( GL11 . GL_LIGHTING ) ;
+ GL11 . glEnable ( GL11 . GL_ALPHA_TEST ) ; SINGLE
IIcon icon = ItemGate . getLogic ( stack ) . getIconItem ( ) ;
renderItem . renderIcon ( NUMBER0 , NUMBER0 , icon , NUMBER1 , NUMBER1 ) ;
|
Fixed gates rendering incorrectly in GUIs
|
<nb> public class PrestoResultSet
new DateTimeParser [ ] {
DateTimeFormat . forPattern ( STRING0 ) . getParser ( ) ,
DateTimeFormat . forPattern ( STRING1 ) . getParser ( ) ,
- }
- )
+ } )
. toFormatter ( )
. withOffsetParsed ( ) ;
private static final DateTimeFormatter TIMESTAMP_FORMATTER = DateTimeFormat . forPattern ( STRING2 ) ;
- private static final DateTimeFormatter TIMESTAMP_WITH_TIME_ZONE_FORMATTER = new DateTimeFormatterBuilder ( )
+ private static final DateTimeFormatter TIMESTAMP_WITH_TIME_ZONE_FORMATTER = new DateTimeFormatterBuilder ( )
. append ( DateTimeFormat . forPattern ( STRING3 ) . getPrinter ( ) ,
new DateTimeParser [ ] {
DateTimeFormat . forPattern ( STRING4 ) . getParser ( ) ,
DateTimeFormat . forPattern ( STRING3 ) . getParser ( ) ,
- }
- )
+ } )
. toFormatter ( )
. withOffsetParsed ( ) ;
|
Fix formatting of PrestoResultSet
|
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class MutableCommit implements Commit {
}
public void setParents ( @ notnull List < Commit > parents ) {
- this . parents = parents ;
+ this . parents = OneElementList . shortlyList ( parents ) ;
}
@ notnull
|
add usage OneElementList in MutableCommit
|
<nb> public abstract class WindowOrientationListener {
SINGLE
SINGLE
SINGLE
- private final int [ ] MAX_TRANSITION_TILT = new int [ ] { MAX_TILT , MAX_TILT , NUMBER0 , MAX_TILT } ;
+ private final int [ ] MAX_TRANSITION_TILT = new int [ ] { MAX_TILT , MAX_TILT , MAX_TILT } ;
SINGLE
SINGLE
|
Fix a minor bug in transitions to left edge up landscape
|
<nb> public class GBM extends SharedTree < GBMModel , GBMModel . GBMParameters , GBMModel . GBM
case bernoulli :
if ( _nclass != NUMBER0 COMMENT )
error ( STRING0 , STRING1 ) ;
- else if ( _response != null )
+ else if ( _response != null ) {
SINGLE
_initialPrediction = Math . log ( mean / ( FLOAT0 - mean ) ) ;
+ if ( _offset != null ) throw H2O . unimpl ( STRING2 ) ;
+ }
break ;
case multinomial :
if ( ! isClassifier ( ) ) error ( STRING0 , STRING3 ) ;
|
Add unimpl for offset bernoulli Need to fix the initial value
|
<nb> public final class ClientAuthenticationHandler extends AbstractPreAndPostProcess
return new HandlerResult (
this ,
new BasicCredentialMetaData ( credential ) ,
- this . principalFactory . createPrincipal ( userProfile . getId ( ) , userProfile . getAttributes ( ) ) ) ;
+ this . principalFactory . createPrincipal ( id , userProfile . getAttributes ( ) ) ) ;
}
}
|
fixed merge issue
|
<nb> public final class BluetoothAdapter {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
public static final String EXTRA_STATE =
STRING0 ;
<nb> public final class BluetoothAdapter {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
public static final String EXTRA_PREVIOUS_STATE =
STRING1 ;
<nb> public final class BluetoothSap implements BluetoothProfile {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class BluetoothSap implements BluetoothProfile {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
|
Fix make update api
|
<nb> public class ObjectMapperFactory {
COMMENT
COMMENT
public ObjectMapper build ( JsonFactory factory ) {
- final ObjectMapper mapper = new ObjectMapper ( factory ) ;
+ return configure ( new ObjectMapper ( factory ) ) ;
+ }
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public ObjectMapper build ( ) {
+ return build ( new JsonFactory ( ) ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public ObjectMapper configure ( ObjectMapper mapper ) {
for ( Module module : modules ) {
mapper . registerModule ( module ) ;
}
<nb> public class ObjectMapperFactory {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public ObjectMapper build ( ) {
- return build ( new JsonFactory ( ) ) ;
- }
-
- COMMENT
COMMENT
COMMENT
COMMENT
|
Add ObjectMapperFactory configure
|
<nb> public class SubProcessParser implements BpmnXMLConstants {
if ( ATTRIBUTE_VALUE_FALSE . equalsIgnoreCase ( exclusiveString ) ) {
notExclusive = true ;
}
-
- boolean forCompensation = false ;
- String compensationString = xtr . getAttributeValue ( ACTIVITI_EXTENSIONS_NAMESPACE , ATTRIBUTE_ACTIVITY_ISFORCOMPENSATION ) ;
- if ( ATTRIBUTE_VALUE_TRUE . equalsIgnoreCase ( compensationString ) ) {
- forCompensation = true ;
- }
-
+
subProcess . setAsynchronous ( async ) ;
subProcess . setNotExclusive ( notExclusive ) ;
- subProcess . setForCompensation ( forCompensation ) ;
if ( StringUtils . isNotEmpty ( xtr . getAttributeValue ( null , ATTRIBUTE_DEFAULT ) ) ) {
subProcess . setDefaultFlow ( xtr . getAttributeValue ( null , ATTRIBUTE_DEFAULT ) ) ;
}
|
Revert IsForCompensation Support for SubProcess Parsing
|
<nb> public class TerrainLodControl extends AbstractControl {
}
if ( cameras != null ) {
- if ( cameraLocations . isEmpty ( ) && ! cameras . isEmpty ( ) ) {
- for ( Camera c : cameras ) SINGLE
- {
- cameraLocations . add ( c . getLocation ( ) ) ;
- }
+ cameraLocations . clear ( ) ;
+ for ( Camera c : cameras ) SINGLE
+ {
+ cameraLocations . add ( c . getLocation ( ) ) ;
}
updateLOD ( cameraLocations , lodCalculator ) ;
}
|
TerrainLodControl no longer caches camera positions
|
<nb> public class AjpAprProcessor extends AbstractAjpProcessor < Long > {
try {
SINGLE
if ( ! readMessage ( requestHeaderMessage , ! keptAlive ) ) {
- SINGLE
- SINGLE
- SINGLE
break ;
}
SINGLE
|
Remove comment to align with BIO and NIO to aid future refactoring
|
<nb> public class GrailsCoreDependencies {
if ( java5compatible ) {
compileDependencies = new ArrayList < Dependency > ( compileDependencies ) ;
- runtimeDependencies . add ( new Dependency ( STRING0 , STRING1 , jaxbVersion , true ) ) ;
+ compileDependencies . add ( new Dependency ( STRING0 , STRING1 , jaxbVersion , true ) ) ;
}
}
|
fix problem adding dependency to wrong scope
|
<nb> public interface AsyncLoadingCache < K , V > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
|
Improve AsyncLoadingCache getAll JavaDoc
|
<nb> public class Artifact
return owner ;
}
+ @ skylarkcallable ( name = STRING0 , structField = true , allowReturnNones = true ,
+ doc = STRING1
+ )
+ public Label getOwnerLabel ( ) {
+ return owner . getLabel ( ) ;
+ }
+
COMMENT
COMMENT
COMMENT
<nb> public class ArtifactTest {
}
@ test
+ public void testEmptyLabelIsNone ( ) throws Exception {
+ Artifact artifact = new Artifact ( new PathFragment ( STRING2 ) , rootDir ) ;
+ assertThat ( artifact . getOwnerLabel ( ) ) . isNull ( ) ;
+ }
+
+ @ test
public void testComparison ( ) throws Exception {
PathFragment aPath = new PathFragment ( STRING2 ) ;
PathFragment bPath = new PathFragment ( STRING3 ) ;
|
Expose artifact owner label to Skylark
|
<nb> public class PLWJGL extends PGL {
RGBA4 = GL11 . GL_RGBA4 ;
RGB5_A1 = GL11 . GL_RGB5_A1 ;
RGB565 = ARBES2Compatibility . GL_RGB565 ;
+ RGB8 = GL11 . GL_RGB8 ;
+ RGBA8 = GL11 . GL_RGBA8 ;
+ ALPHA8 = GL11 . GL_ALPHA8 ;
READ_ONLY = GL15 . GL_READ_ONLY ;
WRITE_ONLY = GL15 . GL_WRITE_ONLY ;
<nb> public class PLWJGL extends PGL {
READ_FRAMEBUFFER = GL30 . GL_READ_FRAMEBUFFER ;
DRAW_FRAMEBUFFER = GL30 . GL_DRAW_FRAMEBUFFER ;
- RGBA8 = GL11 . GL_RGBA8 ;
DEPTH24_STENCIL8 = GL30 . GL_DEPTH24_STENCIL8 ;
DEPTH_COMPONENT = GL11 . GL_DEPTH_COMPONENT ;
|
added a couple of missing GL constants
|
<nb> public class Androlib {
}
public static String getVersion ( ) {
- return VERSION ;
+ return ApktoolProperties . get ( STRING0 ) ;
}
private File [ ] parseUsesFramework ( Map < String , Object > usesFramework )
<nb> public class Androlib {
new String [ ] { STRING1 , STRING2 } ;
private final static String [ ] APP_RESOURCES_FILENAMES =
new String [ ] { STRING2 , STRING3 } ;
- private final static String VERSION = STRING4 ;
}
|
read version from apktool properties
|
<nb> public class NestedScrollView extends FrameLayout implements NestedScrollingPare
return true ;
}
- COMMENT
- COMMENT
- COMMENT
- if ( getScrollY ( ) == NUMBER0 && ! ViewCompat . canScrollVertically ( this , NUMBER1 ) ) {
- return false ;
- }
-
switch ( action & MotionEventCompat . ACTION_MASK ) {
case MotionEvent . ACTION_MOVE : {
COMMENT
|
Allow NestedScrollView to always intercept touches
|
<nb> class TypeRepr {
@ override
public ClassType read ( @ notnull DataInput in ) throws IOException {
final AbstractType read = delegate . read ( in ) ;
- assert read instanceof ClassType ;
- return ( ClassType ) read ;
+ if ( read instanceof ClassType ) {
+ return ( ClassType ) read ;
+ }
+ throw new IOException ( STRING0 + ClassType . class . getName ( ) + STRING1 + ( read == null ? STRING2 : read . getClass ( ) . getName ( ) ) ) ;
}
} ;
}
|
throw proper exception for better recovery from corrupted storages
|
<nb> public class UsageStatsService extends SystemService implements
mAppIdleParoled = paroled ;
if ( DEBUG ) Slog . d ( TAG , STRING0 + mAppIdleParoled ) ;
if ( paroled ) {
+ postParoleEndTimeout ( ) ;
+ } else {
mLastAppIdleParoledTime = checkAndGetTimeLocked ( ) ;
postNextParoleTimeout ( ) ;
}
<nb> public class UsageStatsService extends SystemService implements
if ( timeSinceLastParole > mAppIdleParoleIntervalMillis ) {
if ( DEBUG ) Slog . d ( TAG , STRING1 ) ;
setAppIdleParoled ( true ) ;
- SINGLE
- postParoleEndTimeout ( ) ;
} else {
if ( DEBUG ) Slog . d ( TAG , STRING2 ) ;
postNextParoleTimeout ( ) ;
<nb> public class UsageStatsService extends SystemService implements
if ( ! deviceIdle
&& timeSinceLastParole >= mAppIdleParoleIntervalMillis ) {
if ( DEBUG ) Slog . i ( TAG , STRING3 ) ;
- postNextParoleTimeout ( ) ;
setAppIdleParoled ( true ) ;
} else if ( deviceIdle ) {
if ( DEBUG ) Slog . i ( TAG , STRING4 ) ;
|
Fix parole scheduling bugs
|
<nb> public class FileManagerImpl implements FileManager {
public PsiFile getCachedPsiFile ( @ notnull VirtualFile vFile ) {
ApplicationManager . getApplication ( ) . assertReadAccessAllowed ( ) ;
LOG . assertTrue ( vFile . isValid ( ) ) ;
- LOG . assertTrue ( ! myDisposed ) ;
+ if ( myDisposed ) {
+ LOG . error ( STRING0 + myManager . getProject ( ) ) ;
+ }
if ( ! myInitialized ) return null ;
dispatchPendingEvents ( ) ;
|
added error message to assertion
|
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BitmapFontLoader extends AsynchronousAssetLoader < BitmapFont , Bitmap
textureParams . magFilter = parameter . magFilter ;
}
- AssetDescriptor descriptor = new AssetDescriptor ( data . getImagePath ( i ) , Texture . class , textureParams ) ;
-
+ AssetDescriptor descriptor = new AssetDescriptor ( resolve ( data . getImagePath ( i ) ) , Texture . class , textureParams ) ;
deps . add ( descriptor ) ;
}
return deps ;
|
Use same resolver for dependencies
|
<nb> public class StandardSession implements ISession , Parser . Listener , ISession . Cont
}
else
{
- stream . updateCloseState ( data . isClose ( ) ) ;
if ( stream . isClosed ( ) )
removeStream ( stream ) ;
}
<nb> public class StandardStream implements IStream
@ override
public void data ( DataInfo dataInfo )
{
- SINGLE
- SINGLE
- SINGLE
+ updateCloseState ( dataInfo . isClose ( ) ) ;
session . data ( this , dataInfo ) ;
}
|
Fixed update of stream closed status in case of data frames
|
<nb> public class JmeDesktopSystem extends JmeSystemDelegate {
case Canvas :
ctxClazz = ( Class < ? extends JmeContext > ) Class . forName ( STRING0 ) ;
break ;
+ case OffscreenSurface :
+ ctxClazz = ( Class < ? extends JmeContext > ) Class . forName ( STRING1 ) ;
+ break ;
default :
throw new IllegalArgumentException ( STRING2 + type ) ;
}
|
Respect the JmeContext Type for OffscreenSurface value when the JmeSystem gets a request for a context
|
<nb> public class ReplicaSetStatus {
sb . append ( STRING0 ) . append ( _setName . get ( ) ) ;
sb . append ( STRING1 ) . append ( new Date ( _updater . getNextResolveTime ( ) ) . toString ( ) ) ;
sb . append ( STRING2 ) . append ( _replicaSetHolder ) ;
+ sb . append ( STRING3 ) . append ( updaterIntervalMS ) ;
+ sb . append ( STRING4 ) . append ( updaterIntervalNoMasterMS ) ;
+ sb . append ( STRING5 ) . append ( slaveAcceptableLatencyMS ) ;
+ sb . append ( STRING6 ) . append ( inetAddrCacheMS ) ;
+ sb . append ( STRING7 ) . append ( latencySmoothFactor ) ;
+ sb . append ( STRING8 ) ;
return sb . toString ( ) ;
}
|
Added static field value to ReplicaSetStatus toString
|
<nb> public class BlurDialogFragment extends DialogFragment {
@ override
public void onResume ( ) {
super . onResume ( ) ;
- if ( mBlurredBackgroundView == null ) {
+ if ( mBlurredBackgroundView == null || getRetainInstance ( ) ) {
mBluringTask = new BlurAsyncTask ( ) ;
mBluringTask . execute ( ) ;
}
|
Fix blurring when Fragment is retained
|
<nb> import NAMESPACE
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BeanPropertyTest {
@ test
public void testGet2 ( ) throws Exception {
- try {
- JournalContentUtil . getJournalContent ( ) ;
-
- Assert . fail ( ) ;
- }
- catch ( SecurityException se ) {
- }
+ LanguageUtil . getLanguage ( ) ;
}
@ test
public void testGet3 ( ) throws Exception {
- LanguageUtil . getLanguage ( ) ;
+ LanguageUtil . getLocale ( STRING0 ) ;
}
@ test
<nb> public class BeanPropertyTest {
}
@ test
- public void testGet5 ( ) throws Exception {
- LanguageUtil . getLocale ( STRING0 ) ;
- }
-
- @ test
public void testSet1 ( ) throws Exception {
try {
EntityCache entityCache = EntityCacheUtil . getEntityCache ( ) ;
|
remove references from portal tests
|
<nb> public class PeopleListFragment extends Fragment {
}
@ override
+ public long getItemId ( int position ) {
+ Person person = getPerson ( position ) ;
+ if ( person == null ) {
+ return - NUMBER0 ;
+ }
+ return person . getPersonID ( ) ;
+ }
+
+ @ override
public PeopleViewHolder onCreateViewHolder ( ViewGroup parent , int viewType ) {
View view = mInflater . inflate ( R . layout . people_list_row , parent , false ) ;
|
Optimize PeopleAdapter by using stable ids
|
<nb> public class DefaultPassConfig extends PassConfig {
}
}
+ SINGLE
+ SINGLE
+ if ( options . smartNameRemoval ) {
+ passes . add ( smartNamePass2 ) ;
+ }
+
if ( options . collapseAnonymousFunctions ) {
passes . add ( collapseAnonymousFunctions ) ;
}
<nb> public class DefaultPassConfig extends PassConfig {
}
} ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ private final PassFactory smartNamePass2 =
+ new PassFactory ( STRING0 , true ) {
+ @ override
+ protected CompilerPass createInternal ( final AbstractCompiler compiler ) {
+ return new CompilerPass ( ) {
+ @ override
+ public void process ( Node externs , Node root ) {
+ NameAnalyzer na = new NameAnalyzer ( compiler , false ) ;
+ na . process ( externs , root ) ;
+ na . removeUnreferenced ( ) ;
+ }
+ } ;
+ }
+ } ;
COMMENT
private PassFactory inlineSimpleMethods =
|
Reapply second run of smart name removal after smart name removal fixes
|
<nb> public class FieldValueFactorFunction extends ScoreFunction {
@ override
public String toString ( ) {
- if ( this == NONE ) {
- return STRING0 ;
- }
return super . toString ( ) . toLowerCase ( Locale . ROOT ) ;
}
}
|
Fix malformed query generation
|
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
SINGLE
SINGLE
|
Document WebView Metrics opt out API
|
<nb>
COMMENT
package NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
|
Removed unused import
|
<nb> public class SourceLineResultSetIteratorTest {
public void should_ignore_lines_already_handled ( ) throws Exception {
db . prepareDbUnit ( getClass ( ) , STRING0 ) ;
- SourceLineResultSetIterator iterator = SourceLineResultSetIterator . create ( dbClient , db . openConnection ( ) ,
- NUMBER0 ) ;
+ SourceLineResultSetIterator iterator = SourceLineResultSetIterator . create ( dbClient , connection , NUMBER0 ) ;
assertThat ( iterator . hasNext ( ) ) . isFalse ( ) ;
}
<nb> public class SourceLineResultSetIteratorTest {
public void parse_empty_file ( ) throws Exception {
db . prepareDbUnit ( getClass ( ) , STRING1 ) ;
- SourceLineResultSetIterator iterator = SourceLineResultSetIterator . create ( dbClient , db . openConnection ( ) , NUMBER1 L ) ;
+ SourceLineResultSetIterator iterator = SourceLineResultSetIterator . create ( dbClient , connection , NUMBER1 L ) ;
assertThat ( iterator . hasNext ( ) ) . isTrue ( ) ;
SourceLineResultSetIterator . SourceFile file = iterator . next ( ) ;
assertThat ( file . getFileUuid ( ) ) . isEqualTo ( STRING2 ) ;
|
Fix DB connection leak
|
<nb> final class SVDPreference extends GenericPreference {
SVDPreference ( long userID , long itemID , float value , double cache ) {
super ( userID , itemID , value ) ;
- Preconditions . checkArgument ( ! Double . isNaN ( cache ) , STRING0 + cache ) ;
- this . cache = cache ;
+ setCache ( cache ) ;
}
public double getCache ( ) {
<nb> final class SVDPreference extends GenericPreference {
}
public void setCache ( double value ) {
- Preconditions . checkArgument ( ! Double . isNaN ( value ) , STRING0 + value ) ;
+ Preconditions . checkArgument ( ! Double . isNaN ( value ) , STRING1 ) ;
this . cache = value ;
}
|
Avoid a String allocation per Tamas
|
<nb> public class StackingPopupDispatcherImpl extends StackingPopupDispatcher impleme
if ( ! popup . canClose ( ) ) {
return false ;
}
+
+ SINGLE
+ if ( MenuSelectionManager . defaultManager ( ) . getSelectedPath ( ) . length > NUMBER0 ) {
+ return false ;
+ }
+
popup . cancel ( mouseEvent ) ;
}
|
click on context menu item outside of the popup shouldn t close it
|
<nb> public class NavigationBarView extends LinearLayout {
final static boolean NAVBAR_ALWAYS_AT_RIGHT = true ;
+ SINGLE
+ final static boolean SLIPPERY_WHEN_DISABLED = true ;
+
final static boolean ANIMATE_HIDE_TRANSITION = false ; SINGLE
protected IStatusBarService mBarService ;
<nb> public class NavigationBarView extends LinearLayout {
final boolean disableBack = ( ( disabledFlags & View . STATUS_BAR_DISABLE_BACK ) != NUMBER0 ) ;
final boolean disableSearch = ( ( disabledFlags & View . STATUS_BAR_DISABLE_SEARCH ) != NUMBER0 ) ;
- setSlippery ( disableHome && disableRecent && disableBack ) ;
+ if ( SLIPPERY_WHEN_DISABLED ) {
+ setSlippery ( disableHome && disableRecent && disableBack && disableSearch ) ;
+ }
if ( ! mScreenOn && mCurrentView != null ) {
ViewGroup navButtons = ( ViewGroup ) mCurrentView . findViewById ( R . id . nav_buttons ) ;
|
Fix Google Now on lockscreen
|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class DecompiledNavigationUtils {
VirtualFile virtualFile = findVirtualFileContainingDescriptor ( project , referencedDescriptor ) ;
- if ( virtualFile == null ||
- ! DecompiledUtilsKt . isKotlinJvmCompiledFile ( virtualFile ) &&
- ! DecompiledUtilsKt . isKotlinJsMetaFile ( virtualFile ) ) return null ;
+ if ( virtualFile == null ) return null ;
PsiFile psiFile = PsiManager . getInstance ( project ) . findFile ( virtualFile ) ;
if ( ! ( psiFile instanceof KotlinClsFileBase ) ) {
|
Removed unnecessary long checks
|
<nb> public class GroupByQueryHelper
@ override
public List accumulate ( List accumulated , T in )
{
+ if ( in == null ) {
+ throw new ISE ( STRING0 ) ;
+ }
accumulated . add ( in ) ;
return accumulated ;
}
|
add null check early to catch root cause
|
<nb> public class MinimalExpandableExampleActivity extends AppCompatActivity {
for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
MyGroupItem group = new MyGroupItem ( i , STRING0 + i ) ;
for ( int j = NUMBER0 ; j < NUMBER2 ; j ++ ) {
- group . children . add ( new MyChildItem ( i , STRING1 + i ) ) ;
+ group . children . add ( new MyChildItem ( j , STRING1 + j ) ) ;
}
mItems . add ( group ) ;
}
|
Fix wrong child item initialization bug in minimal expandable demo
|
<nb> public class SlidingUpPanelLayout extends ViewGroup {
COMMENT
COMMENT
COMMENT
- private PanelState mLastNotDraggingSlideState = null ;
+ private PanelState mLastNotDraggingSlideState = DEFAULT_SLIDE_STATE ;
COMMENT
COMMENT
|
Have a default state for mLastNotDraggingSlideState
|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MapStoreTest extends HazelcastTestSupport {
}
@ test
- @ category ( SlowTest . class )
+ @ category ( ProblematicTest . class )
public void testIssue1085WriteBehindBackupWithLongRunnigMapStore ( ) throws InterruptedException {
Config config = new Config ( ) ;
String name = STRING0 ;
|
move testIssue1085WriteBehindBackupWithLongRunnigMapStore to ProblematicTest category
|
<nb> public abstract class MediaCodecTrackRenderer extends SampleSourceTrackRenderer
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
- protected void onOutputFormatChanged ( android . media . MediaFormat outputFormat ) {
+ protected void onOutputFormatChanged ( android . media . MediaFormat outputFormat )
+ throws ExoPlaybackException {
SINGLE
}
|
Allow onOutputFormatChanged to throw ExoPlaybackException
|
<nb>
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
+ COMMENT
COMMENT
-
package NAMESPACE ;
import NAMESPACE ;
|
Fix license header for SimpleQueryParser
|
<nb> public class CreateSimpleGraph {
WebResource resource = Client . create ( ) . resource ( propertyUri ) ; SINGLE
ClientResponse response = resource . accept ( MediaType . APPLICATION_JSON ) . type ( MediaType . APPLICATION_JSON ) . entity ( toJsonStringLiteral ( propertyValue ) ) . put ( ClientResponse . class ) ;
- SINGLE
System . out . println ( String . format ( STRING0 , propertyUri , response . getStatus ( ) ) ) ;
+ SINGLE
}
private static void checkDatabaseIsRunning ( ) {
|
Moved some output code into a snippet
|
<nb> public class Block extends Message {
if ( transactions . isEmpty ( ) )
throw new VerificationException ( STRING0 ) ;
maybeParseTransactions ( ) ;
+ if ( this . getMessageSize ( ) > MAX_BLOCK_SIZE )
+ throw new VerificationException ( STRING1 ) ;
checkTransactions ( ) ;
checkMerkleRoot ( ) ;
checkSigOps ( ) ;
|
Verify MAX_BLOCK_SIZE in verifyTransactions
|
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
|
Fix a Javadoc error
|
<nb> public class DreamManagerService
public ComponentName [ ] getDreamComponents ( ) {
SINGLE
String names = Settings . Secure . getString ( mContext . getContentResolver ( ) , SCREENSAVER_COMPONENTS ) ;
- return componentsFromString ( names ) ;
+ return names == null ? null : componentsFromString ( names ) ;
}
SINGLE
|
Handle missing db value
|
<nb> public class BottomBar extends FrameLayout implements View . OnClickListener , View
}
}
- @ override
- protected void onSizeChanged ( int w , int h , int oldw , int oldh ) {
- super . onSizeChanged ( w , h , oldw , oldh ) ;
- Log . d ( STRING0 , STRING1 ) ;
- }
-
private void updateSelectedTab ( int newPosition ) {
final boolean notifyMenuListener = mMenuListener != null && mItems instanceof BottomBarTab [ ] ;
final boolean notifyRegularListener = mListener != null ;
|
Removed testing code
|
<nb>
COMMENT
COMMENT
COMMENT
- http: SINGLE
+ COMMENT
COMMENT
COMMENT
COMMENT
|
Fix license header
|
<nb> public final class ProjectCustomDashboard extends DashboardTemplate {
return dashboard ;
}
- private void addFirstColumn ( Dashboard dashboard ) {
+ private static void addFirstColumn ( Dashboard dashboard ) {
dashboard . addWidget ( STRING0 , NUMBER0 ) ;
dashboard . addWidget ( STRING1 , NUMBER0 ) ;
dashboard . addWidget ( STRING2 , NUMBER0 ) ;
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
|
Fix minor quality flaws
|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RadiosResource extends RestResource {
inputData . put ( STRING0 , rir . radioId ( ) ) ;
}
- final Input mongoInput = new InputImpl ( inputData ) ;
+ final Input mongoInput = inputService . create ( inputData ) ;
SINGLE
final String id = inputService . save ( mongoInput ) ;
|
Replacing reference to implementation class with call to service
|
<nb> public class ConferenceChatSession
ChatRoom chatRoom = chatRoomWrapper . getChatRoom ( ) ;
chatRoom . removeMemberPresenceListener ( this ) ;
chatRoom . removePropertyChangeListener ( this ) ;
+ chatRoom . removeConferencePublishedListener ( this ) ;
if ( ConfigurationUtils . isLeaveChatRoomOnWindowCloseEnabled ( ) )
{
|
Removes ConferencePublishedListener when chat window is closed
|
<nb> public class ApiComponentGeneratorMojo extends AbstractApiMethodBaseMojo {
}
}
- SINGLE
- if ( ! aliases . isEmpty ( ) ) {
- final List < ApiMethodAlias > apiAliases = api . getAliases ( ) ;
- if ( apiAliases . isEmpty ( ) ) {
- api . setAliases ( aliases ) ;
- } else {
- apiAliases . addAll ( aliases ) ;
- }
+ SINGLE
+ if ( ! aliases . isEmpty ( ) && api . getAliases ( ) . isEmpty ( ) ) {
+ api . setAliases ( aliases ) ;
}
}
|
Allow users to override API method aliases per proxy
|
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public class S3Client extends DB {
<nb> public class S3Client extends DB {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
|
added doc about fieldlength and fieldcount
|
<nb> public interface UsersResources {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
|
Fixed Wrong javadoc for twitter api UserResources lookupUsers
|
<nb> public class OIndexManager extends ODocumentWrapperNoClass {
SINGLE
create ( ) ;
- document . reset ( ) ;
( ( ORecordId ) document . getIdentity ( ) ) . fromString ( document . getDatabase ( ) . getStorage ( ) . getConfiguration ( ) . indexMgrRecordId ) ;
super . load ( STRING0 ) ;
return this ;
<nb> public class OSchema extends ODocumentWrapperNoClass {
@ override
@ suppresswarnings ( STRING1 )
public OSchema load ( ) {
- document . reset ( ) ;
( ( ORecordId ) document . getIdentity ( ) ) . fromString ( document . getDatabase ( ) . getStorage ( ) . getConfiguration ( ) . schemaRecordId ) ;
return super . load ( STRING0 ) ;
}
|
Fixed bug on remote schema loading with cache
|
<nb> public class XaLogicalLog
readAndAssertLogHeader ( buffer , fileChannel , currentVersion ) ;
if ( xidIdentMap . size ( ) > NUMBER0 )
{
- fileChannel . position ( getFirstStartEntry ( endPosition ) ) ;
+ long firstEntryPosition = getFirstStartEntry ( endPosition ) ;
+ fileChannel . position ( firstEntryPosition ) ;
+ msgLog . logMessage ( STRING0 +
+ firstEntryPosition ) ;
}
LogEntry entry ;
SINGLE
<nb> public class XaLogicalLog
firstEntryPosition = entry . getStartPosition ( ) ;
}
}
- msgLog . logMessage ( STRING0 +
- firstEntryPosition ) ;
return firstEntryPosition ;
}
|
Fixed problem with message log spam during large transactions
|
<nb> public class FileResource implements Resource {
if ( res == - NUMBER0 ) {
SINGLE
pooled . free ( ) ;
+ IoUtils . safeClose ( fileChannel ) ;
callback . onComplete ( exchange , sender ) ;
return ;
}
|
Add missing close call
|
<nb>
package NAMESPACE ;
public class EventException extends Exception {
- private final Throwable cause ;
+ private static final long serialVersionUID = NUMBER0 ;
+ private final Throwable cause ;
COMMENT
COMMENT
<nb> package NAMESPACE ;
COMMENT
COMMENT
public class InvalidDescriptionException extends Exception {
- private final Throwable cause ;
+ private static final long serialVersionUID = NUMBER1 ;
+ private final Throwable cause ;
COMMENT
COMMENT
<nb> package NAMESPACE ;
COMMENT
COMMENT
public class InvalidPluginException extends Exception {
- private final Throwable cause ;
+ private static final long serialVersionUID = - NUMBER2 ;
+ private final Throwable cause ;
COMMENT
COMMENT
|
Added private static final UID
|
<nb> public class Http11AprProtocol extends AbstractHttp11Protocol < Long > {
@ override
protected String getNamePrefix ( ) {
- return ( STRING0 ) ;
+ if ( isSSLEnabled ( ) ) {
+ return ( STRING1 ) ;
+ } else {
+ return ( STRING0 ) ;
+ }
}
<nb> public class Http11Nio2Protocol extends AbstractHttp11JsseProtocol < Nio2Channel >
@ override
protected String getNamePrefix ( ) {
- return ( STRING2 ) ;
+ if ( isSSLEnabled ( ) ) {
+ return ( STRING3 ) ;
+ } else {
+ return ( STRING2 ) ;
+ }
}
<nb> public class Http11NioProtocol extends AbstractHttp11JsseProtocol < NioChannel > {
@ override
protected String getNamePrefix ( ) {
- return ( STRING4 ) ;
+ if ( isSSLEnabled ( ) ) {
+ return ( STRING5 ) ;
+ } else {
+ return ( STRING4 ) ;
+ }
}
|
Tweak connector names to make it clearer if SSL has been enabled
|
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class ModuleTestCase extends ESTestCase {
+ public abstract class ModuleTestCase extends ESTestCase {
COMMENT
public void assertBinding ( Module module , Class to , Class clazz ) {
|
Make module testcase abstract to appease test naming convetion checks
|
<nb> public class DashMapFragment extends DashBaseFragment implements IMapDownloaderC
if ( view == null ) {
return ;
}
- Bitmap image = getMyApplication ( ) . getResourceManager ( ) . getRenderer ( ) . getBitmap ( ) ;
- ImageView map = ( ImageView ) view . findViewById ( R . id . map_image ) ;
+ final Bitmap image = getMyApplication ( ) . getResourceManager ( ) . getRenderer ( ) . getBitmap ( ) ;
+ final ImageView map = ( ImageView ) view . findViewById ( R . id . map_image ) ;
if ( image != null ) {
- map . setImageBitmap ( image ) ;
+ getActivity ( ) . runOnUiThread ( new Runnable ( ) {
+ @ override
+ public void run ( ) {
+ map . setImageBitmap ( image ) ;
+ }
+ } ) ;
+
}
}
|
Fixed bug with MapFragment sets image in wrong thread
|
<nb> public class StringUtils {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static boolean isFullJID ( String jid ) {
+ if ( parseName ( jid ) . length ( ) <= NUMBER0 || parseServer ( jid ) . length ( ) <= NUMBER0
+ || parseResource ( jid ) . length ( ) <= NUMBER0 ) {
+ return false ;
+ }
+ return true ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT
|
Added isFullJID helper in StringUtils
|
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
mLastY = Integer . MIN_VALUE ;
}
- if ( performButtonActionOnTouchDown ( ev ) && ( mTouchMode == TOUCH_MODE_DOWN ) ) {
+ if ( mTouchMode == TOUCH_MODE_DOWN && mMotionPosition != INVALID_POSITION
+ && performButtonActionOnTouchDown ( ev ) ) {
removeCallbacks ( mPendingCheckForTap ) ;
}
}
|
Not create context menu when mouse right click outside list grid items
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.