Skip to content

Commit

Permalink
factor: adjust codeStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
kaml8 committed Oct 31, 2022
1 parent 6ddbcb2 commit 08d43a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/spoon/reflect/path/impl/CtPathImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public <T extends CtElement> List<T> evaluateOn(CtElement... startNode) {

@Override
public CtElement evaluateOnShadowModel() {
List<String> cls_name_list = new LinkedList<>();
List<String> classRoleNameList = new LinkedList<>();
CtType<?> ctType = null;
for (CtPathElement element : elements) {
if (element instanceof CtRolePathElement) { // search by CtRolePathElement
Expand All @@ -54,9 +54,9 @@ public CtElement evaluateOnShadowModel() {
if (val != null) {
if (CtRole.SUB_PACKAGE.equals(((CtRolePathElement) element).getRole())
|| CtRole.CONTAINED_TYPE.equals(((CtRolePathElement) element).getRole())) {
cls_name_list.add(val);
classRoleNameList.add(val);
}
Class<?> cls = getJdkClass(String.join(".", cls_name_list));
Class<?> cls = getJdkClass(String.join(".", classRoleNameList));
if (cls != null) {
if (ctType == null) {
ctType = new TypeFactory().get(cls);
Expand Down

0 comments on commit 08d43a9

Please sign in to comment.