Skip to content

Commit

Permalink
jls moment
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolMineman committed Oct 27, 2021
1 parent f34d0c8 commit 98081c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion brachyura/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>io.github.coolcrabs</groupId>
<artifactId>brachyura</artifactId>
<version>0.10</version>
<version>0.11</version>

<properties>
<java.version>1.8</java.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@

public class CfrDecompiler implements BrachyuraDecompiler {
private static final Map<String, String> CFR_OPTIONS = new HashMap<>();
private static final String VERSION;

static {
CFR_OPTIONS.put("trackbytecodeloc", "true");
try {
VERSION = (String) CfrVersionInfo.class.getField("VERSION").get(null); // Java moment
} catch (Exception t) {
throw Util.sneak(t);
}
}

private final int threadCount;
Expand Down Expand Up @@ -80,7 +86,7 @@ public String getName() {

@Override
public String getVersion() {
return CfrVersionInfo.VERSION;
return VERSION;
}

@Override
Expand Down

0 comments on commit 98081c7

Please sign in to comment.