From f298aaace57a6b3b26237de0ba4784ab5f49f013 Mon Sep 17 00:00:00 2001 From: jbock Date: Wed, 15 Nov 2023 21:59:26 +0100 Subject: [PATCH] update jbock --- README.md | 4 ++-- pom.xml | 2 +- src/main/java/net/jbock/cp/Args.java | 16 ---------------- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index b84b522..e0967b7 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Add this dependency: io.github.jbock-java jbock - 5.16 + 5.17 ```` @@ -23,7 +23,7 @@ Then configure the annotation processor: io.github.jbock-java jbock-compiler - 5.14 + 5.17 diff --git a/pom.xml b/pom.xml index e67260d..36ed409 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ UTF-8 - 5.16 + 5.17 diff --git a/src/main/java/net/jbock/cp/Args.java b/src/main/java/net/jbock/cp/Args.java index 5919048..50abbc4 100644 --- a/src/main/java/net/jbock/cp/Args.java +++ b/src/main/java/net/jbock/cp/Args.java @@ -47,20 +47,4 @@ abstract class Args { */ @Option(names = {"--suffix", "-s"}) abstract Optional suffix(); - - @Override - public String toString() { - StringJoiner joiner = new StringJoiner(",\n ", "{\n ", "\n}"); - Method[] methods = getClass().getSuperclass().getDeclaredMethods(); - for (Method method : methods) { - if (Modifier.isAbstract(method.getModifiers())) { - try { - joiner.add(method.getName() + ": " + method.invoke(this)); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } - return joiner.toString(); - } }