Skip to content

Commit

Permalink
Fix serializable warning (#208)
Browse files Browse the repository at this point in the history
* Initial commit

* 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.

---------

Co-authored-by: labs-code-app[bot] <161369871+labs-code-app[bot]@users.noreply.github.com>
  • Loading branch information
jedborovik and google-labs-jules[bot] authored Jan 29, 2025
1 parent 591bf8b commit ec7d32a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

/** Common github exception */
public class GithubException extends RuntimeException {
private static final long serialVersionUID = 1L;


/**
* C'tor for setting a message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

/** The Read only repository exception. */
public class ReadOnlyRepositoryException extends RequestNotOkException {
private static final long serialVersionUID = 1L;

/**
* Instantiates a new Read only repository exception.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@

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


private final int statusCode;
private final String method;
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/spotify/github/v3/repos/Languages.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@
*
* @see "https://developer.github.com/v3/repos/#list-languages"
*/
public class Languages extends LinkedHashMap<String, Integer> {}
public class Languages extends LinkedHashMap<String, Integer> {
private static final long serialVersionUID = 1L;
}

0 comments on commit ec7d32a

Please sign in to comment.