Skip to content

Commit 66da79c

Browse files
committed
Add serialVersionUID to service factories.
1 parent 09e03e0 commit 66da79c

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

gcloud-java-datastore/src/main/java/com/google/gcloud/datastore/DatastoreFactory.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,17 @@
2323
*/
2424
public abstract class DatastoreFactory implements ServiceFactory<Datastore, DatastoreOptions> {
2525

26+
private static final long serialVersionUID = 5037190305022535983L;
27+
2628
private static final DatastoreFactory INSTANCE = new DatastoreFactory() {
27-
@Override
28-
public Datastore get(DatastoreOptions options) {
29-
return new DatastoreImpl(options, this);
30-
}
31-
};
29+
30+
private static final long serialVersionUID = 5893914895344559491L;
31+
32+
@Override
33+
public Datastore get(DatastoreOptions options) {
34+
return new DatastoreImpl(options, this);
35+
}
36+
};
3237

3338
/**
3439
* Returns the default factory instance.

gcloud-java-storage/src/main/java/com/google/gcloud/storage/StorageFactory.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@
2323
*/
2424
public abstract class StorageFactory implements ServiceFactory<Storage, StorageOptions> {
2525

26+
private static final long serialVersionUID = 1866883249985063753L;
27+
2628
private static final StorageFactory INSTANCE = new StorageFactory() {
29+
30+
private static final long serialVersionUID = -7985210081064222485L;
31+
2732
@Override
2833
public Storage get(StorageOptions options) {
2934
return new StorageImpl(options, this);

0 commit comments

Comments
 (0)