-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bit more rearranging; trying to reduce use of inner classes for share…
…d things (only leave inner classes for private use)
- Loading branch information
1 parent
dcdc5e4
commit 5e21d2e
Showing
6 changed files
with
74 additions
and
92 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
37 changes: 37 additions & 0 deletions
37
src/main/java/com/fasterxml/jackson/databind/deser/UnresolvedId.java
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.fasterxml.jackson.databind.deser; | ||
|
||
import com.fasterxml.jackson.core.JsonLocation; | ||
|
||
/** | ||
* Helper class for {@link UnresolvedForwardReference}, to contain information about unresolved ids. | ||
* | ||
* @author pgelinas | ||
*/ | ||
public class UnresolvedId { | ||
private Object _id; | ||
private JsonLocation _location; | ||
private Class<?> _type; | ||
|
||
public UnresolvedId(Object id, Class<?> type, JsonLocation where) | ||
{ | ||
_id = id; | ||
_type = type; | ||
_location = where; | ||
} | ||
|
||
/** | ||
* The id which is unresolved. | ||
*/ | ||
public Object getId() { return _id; } | ||
|
||
/** | ||
* The type of object which was expected. | ||
*/ | ||
public Class<?> getType() { return _type; } | ||
public JsonLocation getLocation() { return _location; } | ||
|
||
@Override | ||
public String toString() { | ||
return String.format("Object id [%s] (for %s) at %s", _id, _type, _location); | ||
} | ||
} |
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
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