Skip to content

Commit

Permalink
Fix CheckStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-biava committed Jun 23, 2016
1 parent fde867f commit bde496b
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 165 deletions.
45 changes: 9 additions & 36 deletions src/main/java/it/reply/orchestrator/dto/cmdb/CmdbHasManyList.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,85 +21,58 @@
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({ "total_rows", "offset", "rows" })
public class CmdbHasManyList<ROW_TYPE> {
public class CmdbHasManyList<ROWT> {

@JsonProperty("total_rows")
private Long totalRows;
@JsonProperty("offset")
private Long offset;
@JsonProperty("rows")
private List<ROW_TYPE> rows = new ArrayList<>();
private List<ROWT> rows = new ArrayList<>();
@JsonIgnore
private Map<String, Object> additionalProperties = new HashMap<String, Object>();

/**
*
* @return The totalRows
*/
@JsonProperty("total_rows")
public Long getTotalRows() {
return totalRows;
}

/**
*
* @param totalRows
* The total_rows
*/
@JsonProperty("total_rows")
public void setTotalRows(Long totalRows) {
this.totalRows = totalRows;
}

public CmdbHasManyList<ROW_TYPE> withTotalRows(Long totalRows) {
public CmdbHasManyList<ROWT> withTotalRows(Long totalRows) {
this.totalRows = totalRows;
return this;
}

/**
*
* @return The offset
*/
@JsonProperty("offset")
public Long getOffset() {
return offset;
}

/**
*
* @param offset
* The offset
*/
@JsonProperty("offset")
public void setOffset(Long offset) {
this.offset = offset;
}

public CmdbHasManyList<ROW_TYPE> withOffset(Long offset) {
public CmdbHasManyList<ROWT> withOffset(Long offset) {
this.offset = offset;
return this;
}

/**
*
* @return The rows
*/
@JsonProperty("rows")
public List<ROW_TYPE> getRows() {
public List<ROWT> getRows() {
return rows;
}

/**
*
* @param rows
* The rows
*/
@JsonProperty("rows")
public void setRows(List<ROW_TYPE> rows) {
public void setRows(List<ROWT> rows) {
this.rows = rows;
}

public CmdbHasManyList<ROW_TYPE> withRows(List<ROW_TYPE> rows) {
public CmdbHasManyList<ROWT> withRows(List<ROWT> rows) {
this.rows = rows;
return this;
}
Expand All @@ -119,7 +92,7 @@ public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}

public CmdbHasManyList<ROW_TYPE> withAdditionalProperty(String name, Object value) {
public CmdbHasManyList<ROWT> withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
Expand All @@ -139,7 +112,7 @@ public boolean equals(Object other) {
return false;
}
@SuppressWarnings("unchecked")
CmdbHasManyList<ROW_TYPE> rhs = ((CmdbHasManyList<ROW_TYPE>) other);
CmdbHasManyList<ROWT> rhs = ((CmdbHasManyList<ROWT>) other);
return new EqualsBuilder().append(totalRows, rhs.totalRows).append(offset, rhs.offset)
.append(rows, rhs.rows).append(additionalProperties, rhs.additionalProperties).isEquals();
}
Expand Down
36 changes: 0 additions & 36 deletions src/main/java/it/reply/orchestrator/dto/cmdb/CmdbImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,11 @@ public class CmdbImage {
@JsonIgnore
private Map<String, Object> additionalProperties = new HashMap<String, Object>();

/**
*
* @return The id
*/
@JsonProperty("_id")
public String getId() {
return id;
}

/**
*
* @param id
* The _id
*/
@JsonProperty("_id")
public void setId(String id) {
this.id = id;
Expand All @@ -56,20 +47,11 @@ public CmdbImage withId(String id) {
return this;
}

/**
*
* @return The rev
*/
@JsonProperty("_rev")
public String getRev() {
return rev;
}

/**
*
* @param rev
* The _rev
*/
@JsonProperty("_rev")
public void setRev(String rev) {
this.rev = rev;
Expand All @@ -80,20 +62,11 @@ public CmdbImage withRev(String rev) {
return this;
}

/**
*
* @return The type
*/
@JsonProperty("type")
public String getType() {
return type;
}

/**
*
* @param type
* The type
*/
@JsonProperty("type")
public void setType(String type) {
this.type = type;
Expand All @@ -104,20 +77,11 @@ public CmdbImage withType(String type) {
return this;
}

/**
*
* @return The data
*/
@JsonProperty("data")
public Image getData() {
return data;
}

/**
*
* @param data
* The data
*/
@JsonProperty("data")
public void setData(Image data) {
this.data = data;
Expand Down
27 changes: 0 additions & 27 deletions src/main/java/it/reply/orchestrator/dto/cmdb/CmdbImageRow.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,11 @@ public class CmdbImageRow {
@JsonProperty("doc")
private CmdbImage image;

/**
*
* @return The id
*/
@JsonProperty("id")
public String getId() {
return id;
}

/**
*
* @param id
* The id
*/
@JsonProperty("id")
public void setId(String id) {
this.id = id;
Expand All @@ -47,20 +38,11 @@ public CmdbImageRow withId(String id) {
return this;
}

/**
*
* @return The key
*/
@JsonProperty("key")
public List<String> getKey() {
return key;
}

/**
*
* @param key
* The key
*/
@JsonProperty("key")
public void setKey(List<String> key) {
this.key = key;
Expand All @@ -71,20 +53,11 @@ public CmdbImageRow withKey(List<String> key) {
return this;
}

/**
*
* @return The image
*/
@JsonProperty("doc")
public CmdbImage getImage() {
return image;
}

/**
*
* @param image
* The image
*/
@JsonProperty("doc")
public void setImage(CmdbImage image) {
this.image = image;
Expand Down
Loading

0 comments on commit bde496b

Please sign in to comment.