Toggle navigation
Home
java.util.Optional to java.util.List
No. of Instances - 3
No. of Commits - 2
No. of Projects - {'javaparser'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Jdk
Mapping:
Add or Remove Method invocation
Optional.ofNullable(pattern.getConstraint().getDescrs().iterator().next())
to
descrs.stream()
scopes.get()
to
scopes
Optional.empty()
to
ImmutableList.of()
searchFunctionFactory.isPresent()
to
searchFunctionFactories.isEmpty()
searchFunctionFactory.isPresent()
to
searchFunctionFactories.isEmpty()
searchFunctionFactory
to
ImmutableList.copyOf(searchFunctionFactories)
isSingleRowValuesWithNoColumns(values.get())
to
isSingleRowValuesWithNoColumns(values.get(0))
selectByName
to
selectByOrganizationUuid
Update Anonymous class
{ @Override public Optional<Expression> onSuccess( DrlxParseSuccess drlxParseResult){ return Optional.of(generateLambdaWithoutParameters(drlxParseResult.getUsedDeclarations(),drlxParseResult.getExpr())); } @Override public Optional<Expression> onFail( DrlxParseFail failure){ return Optional.empty(); } }
to
{ @Override public Optional<Expression> onSuccess( DrlxParseSuccess drlxParseResult){ return Optional.of(generateLambdaWithoutParameters(drlxParseResult.getUsedDeclarations(),drlxParseResult.getExpr())); } @Override public Optional<Expression> onFail( DrlxParseFail failure){ return Optional.empty(); } }
Rename Variable
parseCondition
to
parseConditions
details
to
blockTags
details
to
blockTags
details
to
blockTags
bucket
to
buckets
bucket
to
buckets
bucket
to
buckets
bucket
to
buckets
bucket
to
buckets
bucket
to
buckets
bucket
to
buckets
bucket
to
buckets
bucket
to
buckets
bucket
to
buckets
bucket
to
buckets
searchFunctionFactory
to
searchFunctionFactories
searchFunctionFactory
to
searchFunctionFactories
searchFunctionFactory
to
searchFunctionFactories
searchFunctionFactory
to
searchFunctionFactories
searchFunctionFactory
to
searchFunctionFactories
searchFunctionFactory
to
searchFunctionFactories
searchFunctionFactory
to
searchFunctionFactories
searchFunctionFactory
to
searchFunctionFactories
searchFunctionFactory
to
searchFunctionFactories
searchFunctionFactory
to
searchFunctionFactories
searchFunctionFactory
to
searchFunctionFactories
searchFunctionFactory
to
searchFunctionFactories
searchFunctionFactory
to
searchFunctionFactories
searchFunctionFactory
to
searchFunctionFactories
getConstructor
to
getConstructorDependencies
groupDtoOptional
to
groups
Other
tokens
to
tokens
builder.build()
to
builder.build()
==
to
!=
==
to
!=
Cascading Type Change (Similar)
Optional<HiveBucketing.HiveBucket>
to
List<HiveBucketing.HiveBucket>
Optional<GroupDto>
to
List<GroupDto>
Rename Method invocation
getBucket
to
getBuckets