Skip to content

Commit

Permalink
remove deprecated field #303
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Apr 21, 2017
1 parent 9d65c5e commit 66f1540
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public class JSONDocumentPath implements Serializable

@JsonCreator
private JSONDocumentPath(
@JsonProperty("documentType") @Deprecated final String documentType //
, @JsonProperty("windowId") final WindowId windowId //
@JsonProperty("windowId") final WindowId windowId //
, @JsonProperty("processId") final ProcessId processId //
, @JsonProperty("documentId") final DocumentId documentId //
, @JsonProperty("tabid") final DetailId tabid //
Expand All @@ -79,8 +78,11 @@ private JSONDocumentPath(
{
if (windowId == null && processId == null)
{
this.windowId = WindowId.fromJson(documentType);
this.processId = null;
throw new IllegalArgumentException("windowId or processId shall be set");
}
else if(windowId != null && processId != null)
{
throw new IllegalArgumentException("windowId or processId shall be set but not all of them");
}
else
{
Expand Down

0 comments on commit 66f1540

Please sign in to comment.