aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasafbennatan <asafbennatan@gmail.com>2020-09-14 20:46:31 +0300
committerGitHub <noreply@github.com>2020-09-14 20:46:31 +0300
commitf1724a2205c036080ecadbfc9a7da971b2713a09 (patch)
treeab7b87878fd23b0159f6b7d7f46329658e067bc0
parent971aa2e58d83b7f54b34df87518f5730720bfe82 (diff)
downloadpf4j-f1724a2205c036080ecadbfc9a7da971b2713a09.tar.gz
pf4j-f1724a2205c036080ecadbfc9a7da971b2713a09.zip
added toString to WrongDependencyVersion to solve issue #396 (#397)
-rw-r--r--pf4j/src/main/java/org/pf4j/DependencyResolver.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/pf4j/src/main/java/org/pf4j/DependencyResolver.java b/pf4j/src/main/java/org/pf4j/DependencyResolver.java
index 45005e2..866eb93 100644
--- a/pf4j/src/main/java/org/pf4j/DependencyResolver.java
+++ b/pf4j/src/main/java/org/pf4j/DependencyResolver.java
@@ -267,6 +267,15 @@ public class DependencyResolver {
return requiredVersion;
}
+ @Override
+ public String toString() {
+ return "WrongDependencyVersion{" +
+ "dependencyId='" + dependencyId + '\'' +
+ ", dependentId='" + dependentId + '\'' +
+ ", existingVersion='" + existingVersion + '\'' +
+ ", requiredVersion='" + requiredVersion + '\'' +
+ '}';
+ }
}
/**