Skip to content

Commit

Permalink
Remove duplicated lombok annotations in the pulsar-client module (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhikserg authored Feb 3, 2020
1 parent 4ea02a3 commit 0b06dba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import static org.testng.Assert.assertEquals;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.apache.avro.reflect.Nullable;
import org.apache.pulsar.client.api.Schema;
import org.apache.pulsar.client.api.schema.*;
Expand Down Expand Up @@ -60,8 +58,6 @@ private static class AllPrimitiveFields {
}

@Data
@ToString
@EqualsAndHashCode
private static class People {
private People1 people1;
private People2 people2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.apache.avro.reflect.AvroDefault;
import org.apache.avro.reflect.Nullable;

Expand All @@ -32,8 +31,6 @@
public class SchemaTestUtils {

@Data
@ToString
@EqualsAndHashCode
public static class Foo {
@Nullable
private String field1;
Expand All @@ -47,41 +44,33 @@ public static class Foo {
@AvroDefault("\"defaultValue\"")
private String fieldUnableNull;
}

@Data
@ToString
@EqualsAndHashCode
public static class FooV2 {
@Nullable
private String field1;
private int field3;
}

@Data
@ToString
@EqualsAndHashCode
public static class Bar {
private boolean field1;
}

@Data
@ToString
@EqualsAndHashCode
public static class NestedBar {
private boolean field1;
private Bar nested;
}

@Data
@ToString
@EqualsAndHashCode
public static class NestedBarList {
private boolean field1;
private List<Bar> list;
}

@Data
@ToString
@EqualsAndHashCode
@EqualsAndHashCode(callSuper = false)
public static class DerivedFoo extends Foo {
private String field5;
private int field6;
Expand All @@ -94,8 +83,7 @@ public enum Color {
}

@Data
@ToString
@EqualsAndHashCode
@EqualsAndHashCode(callSuper = false)
public static class DerivedDerivedFoo extends DerivedFoo {
private String field7;
private int field8;
Expand Down

0 comments on commit 0b06dba

Please sign in to comment.