mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-23 12:25:20 +00:00
Fixed bug in reading long and double values
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
public class Foo implements java.util.RandomAccess {
|
||||
private static final long LONG = 123L;
|
||||
private static final String ONE = "Eén";
|
||||
private static final long LONG_OVERFLOW = 0x1FFFFFFFFL;
|
||||
private static final String ONE = "E\u00e9n";
|
||||
private static final int INT = 123;
|
||||
private static final double DOUBLE = 1.23;
|
||||
private static final double DOUBLE_NAN = Double.NaN;
|
||||
|
||||
@@ -169,6 +169,7 @@ public class TestClassFileMetaData {
|
||||
@Test
|
||||
public void testContainsLong() {
|
||||
assertTrue(foo.containsLong(123));
|
||||
assertTrue(foo.containsLong(0x1FFFFFFFFL));
|
||||
|
||||
assertFalse(foo.containsLong(1));
|
||||
assertFalse(buux.containsLong(1));
|
||||
|
||||
Reference in New Issue
Block a user