Skip to content

Commit

Permalink
Minor addition related to FasterXML#1087: resolve context type, assum…
Browse files Browse the repository at this point in the history
…ing type bindings from that are expected to work.
  • Loading branch information
cowtowncoder committed Jan 24, 2016
1 parent 036fe28 commit 83e5147
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ public JavaType constructType(TypeReference<?> typeRef)
*/
@Deprecated
public JavaType constructType(Type type, Class<?> contextType) {
return _fromAny(null, type, EMPTY_BINDINGS);
return constructType(type, constructType(contextType));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public static class Message<P extends Payload>
public Message(@JsonProperty("type") String type,
@JsonProperty("payload") P payload)
{
if (type == null) {
throw new RuntimeException("'type' is null");
}
if (payload == null) {
throw new RuntimeException("'payload' is null");
}
if (type == null) {
throw new RuntimeException("'type' is null");
}
this.type = type;
this.payload = payload;
}
Expand Down

0 comments on commit 83e5147

Please sign in to comment.