Skip to content

Commit

Permalink
Use public member instead of private field to resolve immutability fo…
Browse files Browse the repository at this point in the history
…r serializer
  • Loading branch information
MThomassen committed Jan 14, 2018
1 parent 77935c6 commit bceef26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/esotericsoftware/kryo/Serializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void setGenerics (Kryo kryo, Class[] generics) {
* This method should not be called directly, instead this serializer can be passed to {@link Kryo} copy methods that accept a
* serialier. */
public T copy (Kryo kryo, T original) {
if (immutable) return original;
if (isImmutable()) return original;
throw new KryoException("Serializer does not support copy: " + getClass().getName());
}
}

0 comments on commit bceef26

Please sign in to comment.