-
Notifications
You must be signed in to change notification settings - Fork 232
Fix elide-model-config build warnings #1971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -13,7 +13,6 @@ | |||||||
import lombok.Builder; | ||||||||
import lombok.Data; | ||||||||
import lombok.EqualsAndHashCode; | ||||||||
import lombok.NoArgsConstructor; | ||||||||
|
||||||||
import java.util.LinkedHashSet; | ||||||||
import java.util.Set; | ||||||||
|
@@ -33,7 +32,6 @@ | |||||||
@Data | ||||||||
@EqualsAndHashCode() | ||||||||
@AllArgsConstructor | ||||||||
@NoArgsConstructor | ||||||||
@Builder | ||||||||
public class Argument implements Named { | ||||||||
|
||||||||
|
@@ -48,15 +46,18 @@ public class Argument implements Named { | |||||||
|
||||||||
@JsonProperty("values") | ||||||||
@JsonDeserialize(as = LinkedHashSet.class) | ||||||||
@Builder.Default | ||||||||
private Set<String> values = new LinkedHashSet<>(); | ||||||||
private Set<String> values; | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
@JsonProperty("tableSource") | ||||||||
private String tableSource; | ||||||||
|
||||||||
@JsonProperty("default") | ||||||||
private Object defaultValue; | ||||||||
|
||||||||
public Argument() { | ||||||||
this.values = new LinkedHashSet<>(); | ||||||||
} | ||||||||
|
||||||||
Comment on lines
+57
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove and replace with JsonDeserialize builder.
Suggested change
|
||||||||
/** | ||||||||
* Returns description of the argument. | ||||||||
* If null, returns the name | ||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -13,7 +13,7 @@ | |||||||||||||||||
import lombok.Builder; | ||||||||||||||||||
import lombok.Data; | ||||||||||||||||||
import lombok.EqualsAndHashCode; | ||||||||||||||||||
import lombok.NoArgsConstructor; | ||||||||||||||||||
import lombok.Singular; | ||||||||||||||||||
|
||||||||||||||||||
import java.util.ArrayList; | ||||||||||||||||||
import java.util.LinkedHashSet; | ||||||||||||||||||
|
@@ -44,7 +44,6 @@ | |||||||||||||||||
@Data | ||||||||||||||||||
@EqualsAndHashCode() | ||||||||||||||||||
@AllArgsConstructor | ||||||||||||||||||
@NoArgsConstructor | ||||||||||||||||||
@Builder | ||||||||||||||||||
public class Dimension implements Named { | ||||||||||||||||||
|
||||||||||||||||||
|
@@ -61,12 +60,10 @@ public class Dimension implements Named { | |||||||||||||||||
private String category; | ||||||||||||||||||
|
||||||||||||||||||
@JsonProperty("hidden") | ||||||||||||||||||
@Builder.Default | ||||||||||||||||||
private Boolean hidden = false; | ||||||||||||||||||
private Boolean hidden; | ||||||||||||||||||
|
||||||||||||||||||
@JsonProperty("readAccess") | ||||||||||||||||||
@Builder.Default | ||||||||||||||||||
private String readAccess = "Prefab.Role.All"; | ||||||||||||||||||
private String readAccess; | ||||||||||||||||||
|
||||||||||||||||||
@JsonProperty("definition") | ||||||||||||||||||
private String definition; | ||||||||||||||||||
|
@@ -78,26 +75,33 @@ public class Dimension implements Named { | |||||||||||||||||
private Type type; | ||||||||||||||||||
|
||||||||||||||||||
@JsonProperty("grains") | ||||||||||||||||||
@Builder.Default | ||||||||||||||||||
private List<Grain> grains = new ArrayList<>(); | ||||||||||||||||||
@Singular | ||||||||||||||||||
private List<Grain> grains; | ||||||||||||||||||
|
||||||||||||||||||
@JsonProperty("tags") | ||||||||||||||||||
@JsonDeserialize(as = LinkedHashSet.class) | ||||||||||||||||||
@Builder.Default | ||||||||||||||||||
private Set<String> tags = new LinkedHashSet<>(); | ||||||||||||||||||
private Set<String> tags; | ||||||||||||||||||
|
||||||||||||||||||
@JsonProperty("arguments") | ||||||||||||||||||
@Builder.Default | ||||||||||||||||||
private List<Argument> arguments = new ArrayList<>(); | ||||||||||||||||||
@Singular | ||||||||||||||||||
private List<Argument> arguments; | ||||||||||||||||||
|
||||||||||||||||||
@JsonProperty("values") | ||||||||||||||||||
@JsonDeserialize(as = LinkedHashSet.class) | ||||||||||||||||||
@Builder.Default | ||||||||||||||||||
private Set<String> values = new LinkedHashSet<>(); | ||||||||||||||||||
private Set<String> values; | ||||||||||||||||||
|
||||||||||||||||||
@JsonProperty("tableSource") | ||||||||||||||||||
private String tableSource; | ||||||||||||||||||
|
||||||||||||||||||
public Dimension() { | ||||||||||||||||||
this.hidden = false; | ||||||||||||||||||
this.readAccess = "Prefab.Role.All"; | ||||||||||||||||||
this.grains = new ArrayList<>(); | ||||||||||||||||||
this.tags = new LinkedHashSet<>(); | ||||||||||||||||||
this.values = new LinkedHashSet<>(); | ||||||||||||||||||
this.arguments = new ArrayList<>(); | ||||||||||||||||||
} | ||||||||||||||||||
|
||||||||||||||||||
Comment on lines
+96
to
+104
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
/** | ||||||||||||||||||
* Returns description of the dimension. | ||||||||||||||||||
* If null, returns the name. | ||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.