Skip to content

Commit f88ef7b

Browse files
committed
Returning just the order id
1 parent dfa353c commit f88ef7b

File tree

1 file changed

+1
-1
lines changed
  • jaxrs/mapping-exceptions/src/main/java/org/javaee7/jaxrs/mapping/exceptions

1 file changed

+1
-1
lines changed

jaxrs/mapping-exceptions/src/main/java/org/javaee7/jaxrs/mapping/exceptions/MyResource.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public String getOrder(@PathParam("id") int id) {
5555
if (id % 2 == 0) {
5656
throw new OrderNotFoundException(id);
5757
}
58-
return String.valueOf("Order found: " + id);
58+
return String.valueOf(id);
5959
}
6060

6161
}

0 commit comments

Comments
 (0)