package de.plushnikov.data;

import lombok.Data;

public class DataWithOverrideEqualsAndHashCodeSugestion184 {
  //    @Data
  private static class SomeBasic {
    private int property;
  }

  @Data
  private static class SomesComplex extends SomeBasic {
    private final String value;

    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }

      SomesComplex that = (SomesComplex) o;

      return value.equals(that.value);
    }

    @Override
    public int hashCode() {
      return value.hashCode();
    }
  }

  @Data
  private static class SomeDifferent extends SomeBasic {
    private final String value;
  }

  public static void main(String[] args) {
    SomesComplex complex = new SomesComplex("This is very complex");
    System.out.println(complex);

    SomeDifferent different = new SomeDifferent("This is something different");
    System.out.println(different);
  }
}

@@ -108,22 +108,16 @@
 4 %7B%0A
-  //  
   @Data%0A
   pr
@@ -104,32 +104,32 @@
 on184 %7B%0A  @Data%0A
+
   private static
@@ -209,25 +209,24 @@
 c class Some
-s
 Complex exte
@@ -464,33 +464,32 @@
    %7D%0A%0A      Some
-s
 Complex that = (
@@ -488,25 +488,24 @@
 that = (Some
-s
 Complex) o;%0A
@@ -784,25 +784,24 @@
 ) %7B%0A    Some
-s
 Complex comp
@@ -814,17 +814,16 @@
 new Some
-s
 Complex(

fix class name