Skip to content

Commit

Permalink
fix: add missing serial_version_uid to serializable classes
Browse files Browse the repository at this point in the history
  • Loading branch information
rng70-or authored and BenWhitehead committed Mar 12, 2024
1 parent 1352203 commit 3ab940b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ protected StorageSettings.Builder setInternalHeaderProvider(

private static final class NoopGrpcInterceptorProvider
implements GrpcInterceptorProvider, Serializable {
private static long serialVersionUID = -8523033236999805349L;
private static final NoopGrpcInterceptorProvider INSTANCE = new NoopGrpcInterceptorProvider();

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ public ServiceRpc create(StorageOptions options) {
* we do need use it in a couple places, for those we create this adapter.
*/
private final class RetryDependenciesAdapter implements RetryingDependencies, Serializable {

private static long serialVersionUID = -7446566394108158974L;
private RetryDependenciesAdapter() {}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* details.
*/
public class Notification extends NotificationInfo {
private static final long serialVersionUID = 3150928330690874200L;

private final StorageOptions options;
private transient Storage storage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public abstract class StorageOptions extends ServiceOptions<Storage, StorageOpti
/** @deprecated Use {@link HttpStorageFactory} */
@Deprecated
public static class DefaultStorageFactory extends HttpStorageFactory {
private static final long serialVersionUID = -7856840922014956661L;

/** @deprecated Use {@link HttpStorageDefaults#getDefaultServiceFactory()} */
@Deprecated
public DefaultStorageFactory() {
Expand All @@ -73,6 +75,7 @@ public DefaultStorageFactory() {
/** @deprecated Use {@link HttpStorageRpcFactory} */
@Deprecated
public static class DefaultStorageRpcFactory extends HttpStorageRpcFactory {
private static final long serialVersionUID = -7856840922014956661L;

/** @deprecated Use {@link HttpStorageDefaults#getDefaultRpcFactory()} */
@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2540,6 +2540,7 @@ private static CommonObjectRequestParams.Builder customerSuppliedKey(
}

private static final class PrefixedNamedField implements NamedField {
private static long serialVersionUID = -4899304145424680141L;

private final String prefix;
private final NamedField delegate;
Expand Down Expand Up @@ -2586,6 +2587,7 @@ public String toString() {
}

private static final class LiteralNamedField implements NamedField {
private static long serialVersionUID = 1422947423774466409L;

private final String name;

Expand Down Expand Up @@ -2627,6 +2629,7 @@ public String toString() {
}

private static final class NestedNamedField implements NamedField {
private static long serialVersionUID = -7623005572810688221L;
private final NamedField parent;
private final NamedField child;

Expand Down

0 comments on commit 3ab940b

Please sign in to comment.