Files
lombok/test/transform/resource/before/EqualsAndHashCodeWithSomeExistingMethods.java
T
Reinier Zwitserloot e5705f94cd * Added config key ‘lombok.addGeneratedAnnotation’.
* Added ‘format’ directive for tests.
* Updates tests to salt in some more format and config keys.
2015-01-30 18:17:00 +01:00

49 lines
719 B
Java

//CONF: lombok.addGeneratedAnnotation = false
import lombok.*;
import static lombok.AccessLevel.NONE;
@Data
@Getter(NONE)
@Setter(NONE)
class EqualsAndHashCodeWithSomeExistingMethods {
int x;
public int hashCode() {
return 42;
}
}
@Data
@Getter(NONE)
@Setter(NONE)
class EqualsAndHashCodeWithSomeExistingMethods2 {
int x;
protected boolean canEqual(Object other) {
return false;
}
}
@Data
@Getter(NONE)
@Setter(NONE)
class EqualsAndHashCodeWithAllExistingMethods {
int x;
public int hashCode() {
return 42;
}
public boolean equals(Object other) {
return false;
}
}
@Data
@Getter(AccessLevel.NONE)
@Setter(lombok.AccessLevel.NONE)
class EqualsAndHashCodeWithNoExistingMethods {
int x;
}