mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 02:16:18 +00:00
The bulk of the effort for a new pretty printer.
This commit is contained in:
1 parent
ff4f995507
commit
9cfac4131f
37 files changed
+1557
-109
No files matched your search
@@ -65,7 +65,8 @@ public class DelombokResult {
|
||||
else comments_ = com.sun.tools.javac.util.List.from(comments.toArray(new CommentInfo[0]));
|
||||
|
||||
FormatPreferences preferences = new FormatPreferenceScanner().scan(formatPreferences, getContent());
|
||||
compilationUnit.accept(new PrettyCommentsPrinter(out, compilationUnit, comments_, preferences));
|
||||
//compilationUnit.accept(new PrettyCommentsPrinter(out, compilationUnit, comments_, preferences));
|
||||
compilationUnit.accept(new PrettyPrinter(out, compilationUnit, comments_, preferences));
|
||||
}
|
||||
|
||||
private CharSequence getContent() throws IOException {
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,6 +1,6 @@
|
||||
import java.util.*;
|
||||
public class Cast {
|
||||
public void test(List<?> list) {
|
||||
RandomAccess r = (/*before*/ RandomAccess /*after*/)list;
|
||||
RandomAccess r = (/*before*/ RandomAccess /*after*/) list;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import java.util.*;
|
||||
public class CastWithIntersection {
|
||||
public void test(List<?> list) {
|
||||
RandomAccess r = (RandomAccess & java.io.Serializable)list;
|
||||
RandomAccess r = (RandomAccess & java.io.Serializable) list;
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,6 @@ interface DefaultMethod {
|
||||
default boolean isEmpty() {
|
||||
return size() == 0;
|
||||
}
|
||||
default strictfp void run() {
|
||||
strictfp default void run() {
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,8 @@
|
||||
enum Ranks {
|
||||
CLUBS,
|
||||
HEARTS,
|
||||
DIAMONDS,
|
||||
SPADES;
|
||||
CLUBS, HEARTS, DIAMONDS, SPADES;
|
||||
}
|
||||
enum Complex {
|
||||
RED("ff0000"),
|
||||
GREEN("00ff00"),
|
||||
BLUE("0000f");
|
||||
RED("ff0000"), GREEN("00ff00"), BLUE("0000f");
|
||||
private final String webColour;
|
||||
Complex(String webColour) {
|
||||
this.webColour = webColour;
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
@SuppressWarnings("all")
|
||||
interface Interfaces {
|
||||
enum Ranks {
|
||||
CLUBS,
|
||||
HEARTS,
|
||||
DIAMONDS,
|
||||
SPADES;
|
||||
CLUBS, HEARTS, DIAMONDS, SPADES;
|
||||
}
|
||||
int x = 10;
|
||||
void y();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import java.util.*;
|
||||
public class Cast {
|
||||
public void test(List<?> list) {
|
||||
RandomAccess r = (/*before*/ RandomAccess /*after*/)list;
|
||||
RandomAccess r = (/*before*/ RandomAccess /*after*/) list;
|
||||
}
|
||||
}
|
||||
@@ -81,8 +81,8 @@ class AccessorsPrefix3 {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof AccessorsPrefix3)) return false;
|
||||
final AccessorsPrefix3 other = (AccessorsPrefix3)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final AccessorsPrefix3 other = (AccessorsPrefix3) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
final java.lang.Object this$fName = this.getName();
|
||||
final java.lang.Object other$fName = other.getName();
|
||||
if (this$fName == null ? other$fName != null : !this$fName.equals(other$fName)) return false;
|
||||
|
||||
@@ -5,8 +5,8 @@ class ConflictingStaticConstructorNames {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof ConflictingStaticConstructorNames)) return false;
|
||||
final ConflictingStaticConstructorNames other = (ConflictingStaticConstructorNames)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final ConflictingStaticConstructorNames other = (ConflictingStaticConstructorNames) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
return true;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
|
||||
@@ -16,8 +16,8 @@ class DataConfiguration {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof DataConfiguration)) return false;
|
||||
final DataConfiguration other = (DataConfiguration)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final DataConfiguration other = (DataConfiguration) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -20,8 +20,8 @@ class DataExtended {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof DataExtended)) return false;
|
||||
final DataExtended other = (DataExtended)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final DataExtended other = (DataExtended) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -18,8 +18,8 @@ class DataIgnore {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof DataIgnore)) return false;
|
||||
final DataIgnore other = (DataIgnore)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final DataIgnore other = (DataIgnore) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -29,8 +29,8 @@ class DataOnLocalClass1 {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Local)) return false;
|
||||
final Local other = (Local)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final Local other = (Local) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
final java.lang.Object this$name = this.getName();
|
||||
final java.lang.Object other$name = other.getName();
|
||||
@@ -97,8 +97,8 @@ class DataOnLocalClass2 {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Local.InnerLocal)) return false;
|
||||
final InnerLocal other = (InnerLocal)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final InnerLocal other = (InnerLocal) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
final java.lang.Object this$name = this.getName();
|
||||
final java.lang.Object other$name = other.getName();
|
||||
if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
|
||||
@@ -142,8 +142,8 @@ class DataOnLocalClass2 {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Local)) return false;
|
||||
final Local other = (Local)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final Local other = (Local) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -28,8 +28,8 @@ class Data1 {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Data1)) return false;
|
||||
final Data1 other = (Data1)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final Data1 other = (Data1) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
final java.lang.Object this$name = this.getName();
|
||||
final java.lang.Object other$name = other.getName();
|
||||
@@ -89,8 +89,8 @@ class Data2 {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Data2)) return false;
|
||||
final Data2 other = (Data2)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final Data2 other = (Data2) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
final java.lang.Object this$name = this.getName();
|
||||
final java.lang.Object other$name = other.getName();
|
||||
@@ -150,7 +150,7 @@ final class Data3 {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Data3)) return false;
|
||||
final Data3 other = (Data3)o;
|
||||
final Data3 other = (Data3) o;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
final java.lang.Object this$name = this.getName();
|
||||
final java.lang.Object other$name = other.getName();
|
||||
@@ -201,8 +201,8 @@ final class Data4 extends java.util.Timer {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Data4)) return false;
|
||||
final Data4 other = (Data4)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final Data4 other = (Data4) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (!super.equals(o)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
return true;
|
||||
@@ -234,8 +234,8 @@ class Data5 {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Data5)) return false;
|
||||
final Data5 other = (Data5)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final Data5 other = (Data5) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
return true;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
|
||||
@@ -24,8 +24,8 @@ class DataWithGetter {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof DataWithGetter)) return false;
|
||||
final DataWithGetter other = (DataWithGetter)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final DataWithGetter other = (DataWithGetter) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
if (this.getY() != other.getY()) return false;
|
||||
final java.lang.Object this$z = this.getZ();
|
||||
|
||||
@@ -24,8 +24,8 @@ class DataWithGetterNone {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof DataWithGetterNone)) return false;
|
||||
final DataWithGetterNone other = (DataWithGetterNone)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final DataWithGetterNone other = (DataWithGetterNone) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.x != other.x) return false;
|
||||
if (this.y != other.y) return false;
|
||||
final java.lang.Object this$z = this.z;
|
||||
|
||||
@@ -12,7 +12,7 @@ class DelegateOnGetter {
|
||||
synchronized (this.bar) {
|
||||
value = this.bar.get();
|
||||
if (value == null) {
|
||||
final Bar actualValue = new Bar(){
|
||||
final Bar actualValue = new Bar() {
|
||||
public void setList(java.util.ArrayList<String> list) {
|
||||
}
|
||||
public int getInt() {
|
||||
@@ -24,7 +24,7 @@ class DelegateOnGetter {
|
||||
}
|
||||
}
|
||||
}
|
||||
return (Bar)(value == this.bar ? null : value);
|
||||
return (Bar) (value == this.bar ? null : value);
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
|
||||
@@ -10,8 +10,8 @@ class EqualsAndHashCode {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof EqualsAndHashCode)) return false;
|
||||
final EqualsAndHashCode other = (EqualsAndHashCode)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final EqualsAndHashCode other = (EqualsAndHashCode) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.x != other.x) return false;
|
||||
if (!java.util.Arrays.equals(this.y, other.y)) return false;
|
||||
if (!java.util.Arrays.deepEquals(this.z, other.z)) return false;
|
||||
@@ -56,7 +56,7 @@ final class EqualsAndHashCode2 {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof EqualsAndHashCode2)) return false;
|
||||
final EqualsAndHashCode2 other = (EqualsAndHashCode2)o;
|
||||
final EqualsAndHashCode2 other = (EqualsAndHashCode2) o;
|
||||
if (this.x != other.x) return false;
|
||||
if (this.y != other.y) return false;
|
||||
if (java.lang.Float.compare(this.f, other.f) != 0) return false;
|
||||
@@ -72,10 +72,10 @@ final class EqualsAndHashCode2 {
|
||||
int result = 1;
|
||||
result = result * PRIME + this.x;
|
||||
final long $y = this.y;
|
||||
result = result * PRIME + (int)($y >>> 32 ^ $y);
|
||||
result = result * PRIME + (int) ($y >>> 32 ^ $y);
|
||||
result = result * PRIME + java.lang.Float.floatToIntBits(this.f);
|
||||
final long $d = java.lang.Double.doubleToLongBits(this.d);
|
||||
result = result * PRIME + (int)($d >>> 32 ^ $d);
|
||||
result = result * PRIME + (int) ($d >>> 32 ^ $d);
|
||||
result = result * PRIME + (this.b ? 79 : 97);
|
||||
return result;
|
||||
}
|
||||
@@ -87,8 +87,8 @@ final class EqualsAndHashCode3 extends EqualsAndHashCode {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof EqualsAndHashCode3)) return false;
|
||||
final EqualsAndHashCode3 other = (EqualsAndHashCode3)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final EqualsAndHashCode3 other = (EqualsAndHashCode3) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
return true;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@@ -111,8 +111,8 @@ class EqualsAndHashCode4 extends EqualsAndHashCode {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof EqualsAndHashCode4)) return false;
|
||||
final EqualsAndHashCode4 other = (EqualsAndHashCode4)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final EqualsAndHashCode4 other = (EqualsAndHashCode4) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (!super.equals(o)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@ final class EqualsAndHashCodeWithExistingMethods3 extends EqualsAndHashCodeWithE
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof EqualsAndHashCodeWithExistingMethods3)) return false;
|
||||
final EqualsAndHashCodeWithExistingMethods3 other = (EqualsAndHashCodeWithExistingMethods3)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final EqualsAndHashCodeWithExistingMethods3 other = (EqualsAndHashCodeWithExistingMethods3) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (!super.equals(o)) return false;
|
||||
if (this.x != other.x) return false;
|
||||
return true;
|
||||
|
||||
@@ -13,8 +13,8 @@ class EqualsAndHashCodeWithOnParam {
|
||||
public boolean equals(@Nullable final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof EqualsAndHashCodeWithOnParam)) return false;
|
||||
final EqualsAndHashCodeWithOnParam other = (EqualsAndHashCodeWithOnParam)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final EqualsAndHashCodeWithOnParam other = (EqualsAndHashCodeWithOnParam) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.x != other.x) return false;
|
||||
if (!java.util.Arrays.equals(this.y, other.y)) return false;
|
||||
if (!java.util.Arrays.deepEquals(this.z, other.z)) return false;
|
||||
|
||||
+4
-4
@@ -28,8 +28,8 @@ class EqualsAndHashCodeWithSomeExistingMethods2 {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof EqualsAndHashCodeWithSomeExistingMethods2)) return false;
|
||||
final EqualsAndHashCodeWithSomeExistingMethods2 other = (EqualsAndHashCodeWithSomeExistingMethods2)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final EqualsAndHashCodeWithSomeExistingMethods2 other = (EqualsAndHashCodeWithSomeExistingMethods2) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.x != other.x) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -75,8 +75,8 @@ class EqualsAndHashCodeWithNoExistingMethods {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof EqualsAndHashCodeWithNoExistingMethods)) return false;
|
||||
final EqualsAndHashCodeWithNoExistingMethods other = (EqualsAndHashCodeWithNoExistingMethods)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final EqualsAndHashCodeWithNoExistingMethods other = (EqualsAndHashCodeWithNoExistingMethods) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.x != other.x) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,6 @@ class GetterLazy {
|
||||
}
|
||||
}
|
||||
}
|
||||
return (ValueType)(value == this.fieldName ? null : value);
|
||||
return (ValueType) (value == this.fieldName ? null : value);
|
||||
}
|
||||
}
|
||||
@@ -10,8 +10,8 @@ class GetterLazyBoolean {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof GetterLazyBoolean)) return false;
|
||||
final GetterLazyBoolean other = (GetterLazyBoolean)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final GetterLazyBoolean other = (GetterLazyBoolean) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.isBooleanValue() != other.isBooleanValue()) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -49,7 +49,7 @@ class GetterLazyBoolean {
|
||||
}
|
||||
}
|
||||
}
|
||||
return (java.lang.Boolean)value;
|
||||
return (java.lang.Boolean) value;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
@@ -65,6 +65,6 @@ class GetterLazyBoolean {
|
||||
}
|
||||
}
|
||||
}
|
||||
return (java.lang.Boolean)value;
|
||||
return (java.lang.Boolean) value;
|
||||
}
|
||||
}
|
||||
@@ -9,8 +9,8 @@ class GetterLazyEahcToString {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof GetterLazyEahcToString)) return false;
|
||||
final GetterLazyEahcToString other = (GetterLazyEahcToString)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final GetterLazyEahcToString other = (GetterLazyEahcToString) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
final java.lang.Object this$value = this.getValue();
|
||||
final java.lang.Object other$value = other.getValue();
|
||||
if (this$value == null ? other$value != null : !this$value.equals(other$value)) return false;
|
||||
@@ -62,11 +62,10 @@ class GetterLazyEahcToString {
|
||||
}
|
||||
}
|
||||
}
|
||||
return (String)(value == this.value ? null : value);
|
||||
return (String) (value == this.value ? null : value);
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
|
||||
@javax.annotation.Generated("lombok")
|
||||
public String getValue2() {
|
||||
return this.value2;
|
||||
|
||||
@@ -22,7 +22,7 @@ class GetterLazyNative {
|
||||
}
|
||||
}
|
||||
}
|
||||
return (java.lang.Boolean)value;
|
||||
return (java.lang.Boolean) value;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
@@ -38,7 +38,7 @@ class GetterLazyNative {
|
||||
}
|
||||
}
|
||||
}
|
||||
return (java.lang.Byte)value;
|
||||
return (java.lang.Byte) value;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
@@ -54,7 +54,7 @@ class GetterLazyNative {
|
||||
}
|
||||
}
|
||||
}
|
||||
return (java.lang.Short)value;
|
||||
return (java.lang.Short) value;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
@@ -70,7 +70,7 @@ class GetterLazyNative {
|
||||
}
|
||||
}
|
||||
}
|
||||
return (java.lang.Integer)value;
|
||||
return (java.lang.Integer) value;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
@@ -86,7 +86,7 @@ class GetterLazyNative {
|
||||
}
|
||||
}
|
||||
}
|
||||
return (java.lang.Long)value;
|
||||
return (java.lang.Long) value;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
@@ -102,7 +102,7 @@ class GetterLazyNative {
|
||||
}
|
||||
}
|
||||
}
|
||||
return (java.lang.Float)value;
|
||||
return (java.lang.Float) value;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
@@ -118,7 +118,7 @@ class GetterLazyNative {
|
||||
}
|
||||
}
|
||||
}
|
||||
return (java.lang.Double)value;
|
||||
return (java.lang.Double) value;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
@@ -134,7 +134,7 @@ class GetterLazyNative {
|
||||
}
|
||||
}
|
||||
}
|
||||
return (java.lang.Character)value;
|
||||
return (java.lang.Character) value;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
@@ -144,12 +144,12 @@ class GetterLazyNative {
|
||||
synchronized (this.intArrayField) {
|
||||
value = this.intArrayField.get();
|
||||
if (value == null) {
|
||||
final int[] actualValue = new int[]{1};
|
||||
final int[] actualValue = new int[] {1};
|
||||
value = actualValue == null ? this.intArrayField : actualValue;
|
||||
this.intArrayField.set(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return (int[])(value == this.intArrayField ? null : value);
|
||||
return (int[]) (value == this.intArrayField ? null : value);
|
||||
}
|
||||
}
|
||||
@@ -33,8 +33,8 @@ class GetterSetterJavadoc1 {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof GetterSetterJavadoc1)) return false;
|
||||
final GetterSetterJavadoc1 other = (GetterSetterJavadoc1)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final GetterSetterJavadoc1 other = (GetterSetterJavadoc1) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.getFieldName() != other.getFieldName()) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import java.util.logging.Level;
|
||||
|
||||
enum InjectField1 {
|
||||
A,
|
||||
B;
|
||||
A, B;
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ interface LoggerSlf4jTypesInterface {
|
||||
@interface LoggerSlf4jTypesAnnotation {
|
||||
}
|
||||
enum LoggerSlf4jTypesEnum {
|
||||
;
|
||||
;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@javax.annotation.Generated("lombok")
|
||||
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jTypesEnum.class);
|
||||
|
||||
@@ -24,8 +24,7 @@ class UtilityInner {
|
||||
}
|
||||
}
|
||||
enum UtilityInsideEnum {
|
||||
FOO,
|
||||
BAR;
|
||||
FOO, BAR;
|
||||
static final class InsideEnum {
|
||||
static int member;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
|
||||
@@ -8,7 +8,7 @@ final class UtilityClassErrors1 {
|
||||
}
|
||||
}
|
||||
enum UtilityClassErrors2 {
|
||||
;
|
||||
;
|
||||
}
|
||||
class UtilityClassErrors3 {
|
||||
class NonStaticInner {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import java.util.*;
|
||||
public class ValAnonymousSubclassWithGenerics {
|
||||
Object object = new Object(){
|
||||
Object object = new Object() {
|
||||
void foo() {
|
||||
final int j = 1;
|
||||
}
|
||||
@@ -9,7 +9,7 @@ public class ValAnonymousSubclassWithGenerics {
|
||||
final int k = super.hashCode();
|
||||
int x = k;
|
||||
}
|
||||
java.util.List<String> names = new java.util.ArrayList<String>(){
|
||||
java.util.List<String> names = new java.util.ArrayList<String>() {
|
||||
public String get(int i) {
|
||||
final java.lang.String result = super.get(i);
|
||||
return result;
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
// version 8:
|
||||
class ValLambda {
|
||||
public void easyLambda() {
|
||||
final java.lang.Runnable foo = (Runnable)() -> {
|
||||
final java.lang.Runnable foo = (Runnable) () -> {
|
||||
};
|
||||
}
|
||||
public void easyIntersectionLambda() {
|
||||
final java.lang.Object foo = (Runnable & java.io.Serializable)() -> {
|
||||
final java.lang.Object foo = (Runnable & java.io.Serializable) () -> {
|
||||
};
|
||||
final java.lang.Object bar = (java.io.Serializable & Runnable)() -> {
|
||||
final java.lang.Object bar = (java.io.Serializable & Runnable) () -> {
|
||||
};
|
||||
}
|
||||
public void easyLubLambda() {
|
||||
final java.lang.Runnable foo = (System.currentTimeMillis() > 0) ? (Runnable)() -> {
|
||||
} : (Runnable)System.out::println;
|
||||
final java.lang.Runnable foo = (System.currentTimeMillis() > 0) ? (Runnable) () -> {
|
||||
} : (Runnable) System.out::println;
|
||||
}
|
||||
// public void castLubLambda() {
|
||||
// Runnable foo = (Runnable)((System.currentTimeMillis() > 0) ? ()-> {} : System.out::println);
|
||||
// lombok.val foo = (Runnable)((System.currentTimeMillis() > 0) ? ()-> {} : System.out::println);
|
||||
// Runnable foo = (Runnable) ((System.currentTimeMillis() > 0) ? () -> {} : System.out::println);
|
||||
// lombok.val foo = (Runnable) ((System.currentTimeMillis() > 0) ? () -> {} : System.out::println);
|
||||
// }
|
||||
}
|
||||
@@ -5,7 +5,7 @@ public class ValRawType {
|
||||
public void test() {
|
||||
Element propElement = new Element();
|
||||
for (final java.lang.Object attribute : propElement.attributes()) {
|
||||
final ValRawType.Attribute attr = (Attribute)attribute;
|
||||
final ValRawType.Attribute attr = (Attribute) attribute;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ public class ValWeirdTypes<Z> {
|
||||
final long y = 5 + 3L;
|
||||
}
|
||||
public void testAnonymousInnerClass() {
|
||||
final java.lang.Runnable y = new Runnable(){
|
||||
final java.lang.Runnable y = new Runnable() {
|
||||
public void run() {
|
||||
}
|
||||
};
|
||||
@@ -48,8 +48,8 @@ public class ValWeirdTypes<Z> {
|
||||
final java.lang.Object nully = null;
|
||||
}
|
||||
public void testArrays() {
|
||||
final int[] intArray = new int[]{1, 2, 3};
|
||||
final java.lang.Object[][] multiDimArray = new Object[][]{{}};
|
||||
final int[] intArray = new int[] {1, 2, 3};
|
||||
final java.lang.Object[][] multiDimArray = new Object[][] {{}};
|
||||
final int[] copy = intArray;
|
||||
final java.lang.Object[] single = multiDimArray[0];
|
||||
final int singleInt = copy[0];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class ValWithLocalClasses1 {
|
||||
{
|
||||
final ValWithLocalClasses2 f2 = new ValWithLocalClasses2(){
|
||||
final ValWithLocalClasses2 f2 = new ValWithLocalClasses2() {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ final class Value1 {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Value1)) return false;
|
||||
final Value1 other = (Value1)o;
|
||||
final Value1 other = (Value1) o;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
final java.lang.Object this$name = this.getName();
|
||||
final java.lang.Object other$name = other.getName();
|
||||
@@ -75,8 +75,8 @@ class Value2 {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Value2)) return false;
|
||||
final Value2 other = (Value2)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
final Value2 other = (Value2) o;
|
||||
if (!other.canEqual((java.lang.Object) this)) return false;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
final java.lang.Object this$name = this.getName();
|
||||
final java.lang.Object other$name = other.getName();
|
||||
@@ -132,7 +132,7 @@ final class Value3 {
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Value3)) return false;
|
||||
final Value3 other = (Value3)o;
|
||||
final Value3 other = (Value3) o;
|
||||
if (this.getX() != other.getX()) return false;
|
||||
if (this.getY() != other.getY()) return false;
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user