Skip to content

Commit

Permalink
update jbock
Browse files Browse the repository at this point in the history
  • Loading branch information
h908714124 committed Nov 15, 2023
1 parent a7b774c commit f298aaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Add this dependency:
<dependency>
<groupId>io.github.jbock-java</groupId>
<artifactId>jbock</artifactId>
<version>5.16</version>
<version>5.17</version>
</dependency>
````

Expand All @@ -23,7 +23,7 @@ Then configure the annotation processor:
<dependency>
<groupId>io.github.jbock-java</groupId>
<artifactId>jbock-compiler</artifactId>
<version>5.14</version>
<version>5.17</version>
</dependency>
</annotationProcessorPaths>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jbock.version>5.16</jbock.version>
<jbock.version>5.17</jbock.version>
</properties>

<dependencies>
Expand Down
16 changes: 0 additions & 16 deletions src/main/java/net/jbock/cp/Args.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,4 @@ abstract class Args {
*/
@Option(names = {"--suffix", "-s"})
abstract Optional<String> 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();
}
}

0 comments on commit f298aaa

Please sign in to comment.