Skip to content

Commit

Permalink
fix: serialVersionUID fix for Serializable Classes (#1883)
Browse files Browse the repository at this point in the history
  • Loading branch information
rng70-or authored Jan 23, 2024
1 parent 0091413 commit f390020
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ public static SecondsAndNanos parseRfc3339ToSecondsAndNanos(String str) {

/** A timestamp represented as the number of seconds and nanoseconds since Epoch. */
public static final class SecondsAndNanos implements Serializable {
private static long serialVersionUID = 1L;

private final long seconds;
private final int nanos;

Expand Down Expand Up @@ -337,6 +339,8 @@ public String toString() {

/** Result of parsing an RFC 3339 string. */
private static class Rfc3339ParseResult implements Serializable {
private static final long serialVersionUID = 1L;

private final long seconds;
private final int nanos;
private final boolean timeGiven;
Expand Down

0 comments on commit f390020

Please sign in to comment.