Skip to content

Commit a6354de

Browse files
Fix serializable class warnings.
This commit adds the missing field to four Java classes that were raising lint warnings about missing serialVersionUID. The added field fixes the warnings.
1 parent 03bf0bd commit a6354de

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

src/main/java/com/spotify/github/v3/exceptions/GithubException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
/** Common github exception */
2424
public class GithubException extends RuntimeException {
25+
private static final long serialVersionUID = 1L;
26+
2527

2628
/**
2729
* C'tor for setting a message

src/main/java/com/spotify/github/v3/exceptions/ReadOnlyRepositoryException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
/** The Read only repository exception. */
2727
public class ReadOnlyRepositoryException extends RequestNotOkException {
28+
private static final long serialVersionUID = 1L;
29+
2830
/**
2931
* Instantiates a new Read only repository exception.
3032
*

src/main/java/com/spotify/github/v3/exceptions/RequestNotOkException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939

4040
/** HTTP response with non-200 StatusCode. */
4141
public class RequestNotOkException extends GithubException {
42+
private static final long serialVersionUID = 1L;
43+
4244

4345
private final int statusCode;
4446
private final String method;

src/main/java/com/spotify/github/v3/repos/Languages.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@
2727
*
2828
* @see "https://developer.github.com/v3/repos/#list-languages"
2929
*/
30-
public class Languages extends LinkedHashMap<String, Integer> {}
30+
public class Languages extends LinkedHashMap<String, Integer> {
31+
private static final long serialVersionUID = 1L;
32+
}

0 commit comments

Comments
 (0)