diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-09-18 01:00:46 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-09-18 01:00:46 +0200 |
commit | a478fd56796eebe0e6b0d49469f4380a75786290 (patch) | |
tree | 08e38a6663b7be383d8fb12e4d6928a3dfcc4618 /test/core/src/lombok | |
parent | 9d45a506b1026bdf9a3c76f97c9d4ec52dc92345 (diff) | |
download | lombok-a478fd56796eebe0e6b0d49469f4380a75786290.tar.gz lombok-a478fd56796eebe0e6b0d49469f4380a75786290.tar.bz2 lombok-a478fd56796eebe0e6b0d49469f4380a75786290.zip |
[tests] fixed a test that fails due to, of all things, a javac bug.
Diffstat (limited to 'test/core/src/lombok')
-rw-r--r-- | test/core/src/lombok/LombokTestSource.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/core/src/lombok/LombokTestSource.java b/test/core/src/lombok/LombokTestSource.java index 57a32333..a0a6407a 100644 --- a/test/core/src/lombok/LombokTestSource.java +++ b/test/core/src/lombok/LombokTestSource.java @@ -113,10 +113,10 @@ public class LombokTestSource { return formatPreferences; } - private static final Pattern VERSION_STYLE_1 = Pattern.compile("^(\\d+)$"); - private static final Pattern VERSION_STYLE_2 = Pattern.compile("^\\:(\\d+)$"); - private static final Pattern VERSION_STYLE_3 = Pattern.compile("^(\\d+):$"); - private static final Pattern VERSION_STYLE_4 = Pattern.compile("^(\\d+):(\\d+)$"); + private static final Pattern VERSION_STYLE_1 = Pattern.compile("^(\\d+)(?:\\s+.*)?$"); + private static final Pattern VERSION_STYLE_2 = Pattern.compile("^\\:(\\d+)(?:\\s+.*)?$"); + private static final Pattern VERSION_STYLE_3 = Pattern.compile("^(\\d+):(?:\\s+.*)?$"); + private static final Pattern VERSION_STYLE_4 = Pattern.compile("^(\\d+):(\\d+)(?:\\s+.*)?$"); private int[] parseVersionLimit(String spec) { /* Single version: '5' */ { |