aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/JavacAST.java
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2021-02-02 09:44:36 +0100
committerRoel Spilker <r.spilker@gmail.com>2021-09-06 11:58:05 +0200
commitfdcbaa033d27b344adfea99d8d7bdd99cceacfb3 (patch)
tree5f385d9d193bd66ac7b5036f0f1b63fce4405cfe /src/core/lombok/javac/JavacAST.java
parente050dafc9016519e79184e383eab9ffbd579bebd (diff)
downloadlombok-fdcbaa033d27b344adfea99d8d7bdd99cceacfb3.tar.gz
lombok-fdcbaa033d27b344adfea99d8d7bdd99cceacfb3.tar.bz2
lombok-fdcbaa033d27b344adfea99d8d7bdd99cceacfb3.zip
Replace val with native final var in Java >= 10
Diffstat (limited to 'src/core/lombok/javac/JavacAST.java')
-rw-r--r--src/core/lombok/javac/JavacAST.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/javac/JavacAST.java b/src/core/lombok/javac/JavacAST.java
index f58de60f..0919c7d4 100644
--- a/src/core/lombok/javac/JavacAST.java
+++ b/src/core/lombok/javac/JavacAST.java
@@ -228,7 +228,7 @@ public class JavacAST extends AST<JavacAST, JavacNode, JCTree> {
int underscoreIdx = nm.indexOf('_');
if (underscoreIdx > -1) return Integer.parseInt(nm.substring(underscoreIdx + 1));
// assume java9+
- return Integer.parseInt(nm);
+ return Integer.parseInt(nm.substring(3));
} catch (Exception ignore) {}
return 6;
}