Skip to content

Commit

Permalink
Merge pull request #24 from tomaytotomato/Sonar-fix-warnings-tidy-more
Browse files Browse the repository at this point in the history
Adding @serial annotations
  • Loading branch information
tomaytotomato authored Aug 11, 2024
2 parents f58cb21 + 208c017 commit a466f1d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions location4j/src/main/java/com/tomaytotomato/model/City.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.tomaytotomato.model;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Objects;
Expand All @@ -14,6 +15,7 @@
*/
public class City implements Serializable {

@Serial
private static final long serialVersionUID = 1L;

private Integer id;
Expand Down
2 changes: 2 additions & 0 deletions location4j/src/main/java/com/tomaytotomato/model/Country.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.tomaytotomato.model;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
Expand All @@ -15,6 +16,7 @@
*/
public class Country implements Serializable {

@Serial
private static final long serialVersionUID = 1L;

private Integer id;
Expand Down
2 changes: 2 additions & 0 deletions location4j/src/main/java/com/tomaytotomato/model/State.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.tomaytotomato.model;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
Expand All @@ -15,6 +16,7 @@
*/
public class State implements Serializable {

@Serial
private static final long serialVersionUID = 1L;

private Integer id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.tomaytotomato.model;

import java.io.Serial;
import java.io.Serializable;
import java.util.Objects;
import javax.annotation.processing.Generated;
Expand All @@ -13,6 +14,7 @@
*/
public class TimeZone implements Serializable {

@Serial
private static final long serialVersionUID = 1L;

private String zoneName;
Expand Down

0 comments on commit a466f1d

Please sign in to comment.