From f1724a2205c036080ecadbfc9a7da971b2713a09 Mon Sep 17 00:00:00 2001 From: asafbennatan Date: Mon, 14 Sep 2020 20:46:31 +0300 Subject: [PATCH] added toString to WrongDependencyVersion to solve issue #396 (#397) --- pf4j/src/main/java/org/pf4j/DependencyResolver.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 + '\'' + + '}'; + } } /** -- 2.39.5