git.hedgecode.org
/
snooker-score-api.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[LIB-10] SerialVersionUID for Serializable classes
[snooker-score-api.git]
/
src
/
main
/
java
/
org
/
hedgecode
/
snooker
/
json
/
JsonCollectionEntity.java
diff --git
a/src/main/java/org/hedgecode/snooker/json/JsonCollectionEntity.java
b/src/main/java/org/hedgecode/snooker/json/JsonCollectionEntity.java
index
69c9f13
..
11f300d
100644
(file)
--- a/
src/main/java/org/hedgecode/snooker/json/JsonCollectionEntity.java
+++ b/
src/main/java/org/hedgecode/snooker/json/JsonCollectionEntity.java
@@
-36,9
+36,11
@@
import org.hedgecode.snooker.api.IdEntity;
public abstract class JsonCollectionEntity<E extends IdEntity>
implements CollectionEntity<E>, Serializable
{
public abstract class JsonCollectionEntity<E extends IdEntity>
implements CollectionEntity<E>, Serializable
{
+ private static final long serialVersionUID = 6302642716627217361L;
+
private final Map<Integer, E> entities = new LinkedHashMap<>();
private final Map<Integer, E> entities = new LinkedHashMap<>();
-
protected
JsonCollectionEntity(E[] entities) {
+ JsonCollectionEntity(E[] entities) {
for (E entity : entities) {
if (entity != null)
this.entities.put(
for (E entity : entities) {
if (entity != null)
this.entities.put(
@@
-47,7
+49,7
@@
public abstract class JsonCollectionEntity<E extends IdEntity>
}
}
}
}
-
protected
JsonCollectionEntity(List<E> entities) {
+ JsonCollectionEntity(List<E> entities) {
for (E entity : entities) {
this.entities.put(
entity.getId(), entity
for (E entity : entities) {
this.entities.put(
entity.getId(), entity