aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/zwobble/couscous/frontends/java/JavaReader.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/zwobble/couscous/frontends/java/JavaReader.java b/src/main/java/org/zwobble/couscous/frontends/java/JavaReader.java
index 41ee30d..c63cbb3 100644
--- a/src/main/java/org/zwobble/couscous/frontends/java/JavaReader.java
+++ b/src/main/java/org/zwobble/couscous/frontends/java/JavaReader.java
@@ -336,12 +336,12 @@ public class JavaReader {
.ifPresent(field -> readField(body, scope, type, field));
tryCast(TypeDeclaration.class, declaration)
- .ifPresent(typeDeclaration -> classes.add(readNestedTypeDeclaration(type, typeDeclaration)));
+ .ifPresent(typeDeclaration -> classes.add(readNestedTypeDeclaration(typeDeclaration)));
}
return body.build();
}
- private TypeNode readNestedTypeDeclaration(ScalarType outerType, TypeDeclaration typeDeclaration) {
+ private TypeNode readNestedTypeDeclaration(TypeDeclaration typeDeclaration) {
TypeNode typeNode = readTypeDeclaration(typeDeclaration);
// TODO: can we remove duplication of scope creation with readTypeDeclaration()?
Scope scope = topScope.enterClass(typeNode.getName());