Skip to content

Commit

Permalink
javadoc improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed May 19, 2015
1 parent d2ebacd commit f4d3a82
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/main/java/com/fasterxml/jackson/databind/util/RawValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
public class RawValue
implements JsonSerializable
{
/**
* Contents to serialize. Untyped because there are multiple types that are
* supported: {@link java.lang.String}, {@link JsonSerializable}, {@link SerializableString}.
*/
protected Object _value;

public RawValue(String v) {
Expand All @@ -33,7 +37,14 @@ public RawValue(SerializableString v) {
public RawValue(JsonSerializable v) {
_value = v;
}


/**
* Constructor that may be used by sub-classes, and allows passing value
* types other than ones for which explicit constructor exists. Caller has to
* take care that values of types not supported by base implementation are
* handled properly, usually by overriding some of existing serialization
* methods.
*/
protected RawValue(Object value, boolean bogus) {
_value = value;
}
Expand Down

0 comments on commit f4d3a82

Please sign in to comment.