This is an automated email from the ASF dual-hosted git repository. nfilotto pushed a commit to branch CAMEL-18864/drop-support-of-classes-p2 in repository https://gitbox.apache.org/repos/asf/camel.git
commit 144bdcb5520f7e8664f91d07654975b540ed5ebb Author: Nicolas Filotto <[email protected]> AuthorDate: Tue Jan 10 09:19:55 2023 +0100 CAMEL-18864: java-joor-dsl - Remove method Helper#asClassName --- .../java/org/apache/camel/dsl/java/joor/Helper.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/dsl/camel-java-joor-dsl/src/main/java/org/apache/camel/dsl/java/joor/Helper.java b/dsl/camel-java-joor-dsl/src/main/java/org/apache/camel/dsl/java/joor/Helper.java index b2342c6e17c..70ac21efe2d 100644 --- a/dsl/camel-java-joor-dsl/src/main/java/org/apache/camel/dsl/java/joor/Helper.java +++ b/dsl/camel-java-joor-dsl/src/main/java/org/apache/camel/dsl/java/joor/Helper.java @@ -22,7 +22,6 @@ import java.util.regex.Pattern; import org.apache.camel.spi.Resource; import org.apache.camel.support.ResourceHelper; import org.apache.camel.util.FileUtil; -import org.apache.camel.util.StringHelper; /** * A helper class allowing to reuse part of the code outside of Camel easily. @@ -36,23 +35,6 @@ public final class Helper { } - /** - * @return the name of the class according to its location. - */ - public static String asClassName(Resource resource) { - String className = resource.getLocation(); - if (className.contains(":")) { - // remove scheme such as classpath:foo.class - className = StringHelper.after(className, ":"); - } - assert className != null; - className = className.replace('/', '.'); - if (className.endsWith(".class")) { - className = className.substring(0, className.length() - 6); - } - return className; - } - /** * @return the name of the class according to its location and its source code. */
