aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/WithOnRecordComponent.java
blob: a141fa465c477c6c67ec7e96f76f7ba87267361c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// version 14:
import lombok.With;
public record WithOnRecordComponent(String a, String b) {
/* Implicit */  private final String a;
/* Implicit */  private final String b;
  public WithOnRecordComponent( String a, String b) {
    super();
    .a = a;
    .b = b;
  }
  /**
   * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
   */
  public @java.lang.SuppressWarnings("all") WithOnRecordComponent withA(final String a) {
    return ((this.a == a) ? this : new WithOnRecordComponent(a, this.b));
  }
}