aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValueInAnonymousClass.java
blob: 49cf8fc2f8fc419c30b4bff65639b8e7393e8692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import lombok.Value;
public class ValueInAnonymousClass {
  Object annonymous = new Object() {
    final @Value class Inner {
      private final String string;
      public @java.lang.SuppressWarnings("all") String getString() {
        return this.string;
      }
      public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
        if ((o == this))
            return true;
        if ((! (o instanceof Inner)))
            return false;
        final Inner other = (Inner) o;
        final java.lang.Object this$string = this.getString();
        final java.lang.Object other$string = other.getString();
        if (((this$string == null) ? (other$string != null) : (! this$string.equals(other$string))))
            return false;
        return true;
      }
      public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final java.lang.Object $string = this.getString();
        result = ((result * PRIME) + (($string == null) ? 43 : $string.hashCode()));
        return result;
      }
      public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
        return (("Inner(string=" + this.getString()) + ")");
      }
      public @java.lang.SuppressWarnings("all") Inner(final String string) {
        super();
        this.string = string;
      }
    }
    x() {
      super();
    }
  };
  public ValueInAnonymousClass() {
    super();
  }
}