From c45e595fcb9c6ad31b71e681bde744ceb527440c Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Mon, 22 Mar 2021 17:33:25 +0100 Subject: [PATCH] Update JavaParser and remove bug workaround. --- sdg-core/pom.xml | 4 ++-- .../main/java/es/upv/mist/slicing/nodes/VariableAction.java | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/sdg-core/pom.xml b/sdg-core/pom.xml index e027b85..fb6d5b1 100644 --- a/sdg-core/pom.xml +++ b/sdg-core/pom.xml @@ -34,12 +34,12 @@ com.github.javaparser javaparser-core - 3.19.0 + 3.20.2 com.github.javaparser javaparser-symbol-solver-core - 3.19.0 + 3.20.2 org.jgrapht diff --git a/sdg-core/src/main/java/es/upv/mist/slicing/nodes/VariableAction.java b/sdg-core/src/main/java/es/upv/mist/slicing/nodes/VariableAction.java index 9a0fabb..5c1b7e4 100644 --- a/sdg-core/src/main/java/es/upv/mist/slicing/nodes/VariableAction.java +++ b/sdg-core/src/main/java/es/upv/mist/slicing/nodes/VariableAction.java @@ -5,7 +5,6 @@ import com.github.javaparser.resolution.Resolvable; import com.github.javaparser.resolution.UnsolvedSymbolException; import com.github.javaparser.resolution.declarations.ResolvedMethodLikeDeclaration; import com.github.javaparser.resolution.declarations.ResolvedValueDeclaration; -import com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserSymbolDeclaration; import es.upv.mist.slicing.arcs.Arc; import es.upv.mist.slicing.arcs.pdg.DataDependencyArc; import es.upv.mist.slicing.graphs.Graph; @@ -42,8 +41,6 @@ public abstract class VariableAction { return PARAMETER; if (resolved.isVariable()) return LOCAL_VARIABLE; - if (resolved instanceof JavaParserSymbolDeclaration) - return LOCAL_VARIABLE; throw new IllegalArgumentException("Invalid resolved value declaration"); } -- GitLab