Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove redundant variable
Browse files Browse the repository at this point in the history
Alberto committed Jan 15, 2025
1 parent 14b99c5 commit d76bcef
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -83,8 +83,7 @@ public ObjectGenerator(
.collect(Collectors.toList()));
Map<TypeId, TypeDeclaration> typeDeclarationsWithOverrides = ImmutableMap.<TypeId, TypeDeclaration>builder()
.putAll(generatorContext.getTypeDeclarations())
.putAll(overriddenTypeDeclarations(
generatorContext, reservedTypeNames, allEnrichedProperties, isTopLevelClass))
.putAll(overriddenTypeDeclarations(generatorContext, reservedTypeNames, allEnrichedProperties))
.buildKeepingLast();
Map<EnrichedObjectProperty, EnrichedObjectProperty> propertyOverrides = overridePropertyTypes(
className, generatorContext, allEnrichedProperties, typeDeclarationsWithOverrides);
@@ -117,10 +116,7 @@ public ObjectGenerator(
@Override
public List<TypeDeclaration> getInlineTypeDeclarations() {
return new ArrayList<>(overriddenTypeDeclarations(
generatorContext,
reservedTypeNames,
new ArrayList<>(objectPropertyGetters.values()),
isTopLevelClass)
generatorContext, reservedTypeNames, new ArrayList<>(objectPropertyGetters.values()))
.values());
}

@@ -168,8 +164,7 @@ private static ImplementsInterface applyPropertyOverridesIfNecessary(
private static Map<TypeId, TypeDeclaration> overriddenTypeDeclarations(
AbstractGeneratorContext<?, ?> generatorContext,
Set<String> reservedTypeNames,
List<EnrichedObjectProperty> enrichedObjectProperties,
boolean isTopLevelClass) {
List<EnrichedObjectProperty> enrichedObjectProperties) {
Set<String> allReservedTypeNames = new HashSet<>(reservedTypeNames);
Map<TypeId, TypeDeclaration> overriddenTypeDeclarations = new HashMap<>();
Set<String> propertyNames = new HashSet<>();

0 comments on commit d76bcef

Please sign in to comment.