-
Notifications
You must be signed in to change notification settings - Fork 831
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #198 by removing defaultStrategy for instantiators.
- Loading branch information
Showing
2 changed files
with
1 addition
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
/** Reads and writes objects to and from bytes. | ||
* @author Nathan Sweet <[email protected]> */ | ||
public abstract class Serializer<T> { | ||
private boolean acceptsNull, immutable, defaultSerializer; | ||
private boolean acceptsNull, immutable; | ||
|
||
public Serializer () { | ||
} | ||
|
@@ -65,16 +65,6 @@ public void setImmutable (boolean immutable) { | |
this.immutable = immutable; | ||
} | ||
|
||
|
||
public boolean isDefaultSerializer () { | ||
return defaultSerializer; | ||
} | ||
|
||
/** If true, this is a default serializer */ | ||
public void setDefaultSerializer (boolean defaultSerializer) { | ||
this.defaultSerializer = defaultSerializer; | ||
} | ||
|
||
/** Sets the generic types of the field or method this serializer will be used for on the next call to read or write. Subsequent | ||
* calls to read and write must not use this generic type information. The default implementation does nothing. Subclasses may | ||
* use the information provided to this method for more efficient serialization, eg to use the same type for all items in a | ||
|