Skip to content

Commit

Permalink
Issue #326: Improve clarity of variable names and remove incorrect @d…
Browse files Browse the repository at this point in the history
…eprecated annotation.
  • Loading branch information
WimTibackx committed Nov 2, 2017
1 parent c1cde43 commit 0b37d59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Expand Up @@ -157,8 +157,8 @@ private SymbolReference<? extends ResolvedValueDeclaration> solveSymbolForFQN(St
return SymbolReference.unsolved(ResolvedValueDeclaration.class);
}

ResolvedReferenceTypeDeclaration superClass = typeSolver.solveType(fqn);
return new SymbolSolver(typeSolver).solveSymbolInType(superClass, symbolName);
ResolvedReferenceTypeDeclaration fqnTypeDeclaration = typeSolver.solveType(fqn);
return new SymbolSolver(typeSolver).solveSymbolInType(fqnTypeDeclaration, symbolName);
}

private String[] getInterfaceFQNs() {
Expand Down
Expand Up @@ -234,7 +234,6 @@ public boolean hasInternalType(String name) {
return this.internalTypes().stream().anyMatch(f -> f.getName().endsWith(name));
}

@Deprecated
public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver) {
for (CtField field : ctClass.getDeclaredFields()) {
if (field.getName().equals(name)) {
Expand All @@ -258,8 +257,8 @@ private SymbolReference<? extends ResolvedValueDeclaration> solveSymbolForFQN(St
return SymbolReference.unsolved(ResolvedValueDeclaration.class);
}

ResolvedReferenceTypeDeclaration superClass = typeSolver.solveType(fqn);
return new SymbolSolver(typeSolver).solveSymbolInType(superClass, symbolName);
ResolvedReferenceTypeDeclaration fqnTypeDeclaration = typeSolver.solveType(fqn);
return new SymbolSolver(typeSolver).solveSymbolInType(fqnTypeDeclaration, symbolName);
}

private String[] getInterfaceFQNs() {
Expand Down
Expand Up @@ -243,8 +243,8 @@ private SymbolReference<? extends ResolvedValueDeclaration> solveSymbolForFQN(St
return SymbolReference.unsolved(ResolvedValueDeclaration.class);
}

ResolvedReferenceTypeDeclaration superClass = typeSolver.solveType(fqn);
return new SymbolSolver(typeSolver).solveSymbolInType(superClass, symbolName);
ResolvedReferenceTypeDeclaration fqnTypeDeclaration = typeSolver.solveType(fqn);
return new SymbolSolver(typeSolver).solveSymbolInType(fqnTypeDeclaration, symbolName);
}

private String[] getInterfaceFQNs() {
Expand Down

0 comments on commit 0b37d59

Please sign in to comment.