This is an automated email from the ASF dual-hosted git repository.

rmannibucau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/johnzon.git


The following commit(s) were added to refs/heads/master by this push:
     new 2fc1389  Fixed typo in error message re: missing annotations
2fc1389 is described below

commit 2fc138917b317333a5384b3282fe30e45b59a3ee
Author: Markus KARG <[email protected]>
AuthorDate: Wed Aug 21 11:50:29 2019 +0000

    Fixed typo in error message re: missing annotations
    
    Signed-off-by: Markus KARG <[email protected]>
---
 .../org/apache/johnzon/jsonb/extras/polymorphism/Polymorphic.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/johnzon-json-extras/src/main/java/org/apache/johnzon/jsonb/extras/polymorphism/Polymorphic.java
 
b/johnzon-json-extras/src/main/java/org/apache/johnzon/jsonb/extras/polymorphism/Polymorphic.java
index 6affc96..5e3d296 100644
--- 
a/johnzon-json-extras/src/main/java/org/apache/johnzon/jsonb/extras/polymorphism/Polymorphic.java
+++ 
b/johnzon-json-extras/src/main/java/org/apache/johnzon/jsonb/extras/polymorphism/Polymorphic.java
@@ -49,7 +49,7 @@ public final class Polymorphic {
     private static String getId(final Class<?> type) {
         final JsonId mapping = type.getAnnotation(JsonId.class);
         if (mapping == null) {
-            throw new IllegalArgumentException("No @Id on " + type);
+            throw new IllegalArgumentException("No @JsonId on " + type);
         }
         final String id = mapping.value();
         return id.isEmpty() ? type.getSimpleName() : id;
@@ -126,7 +126,7 @@ public final class Polymorphic {
 
             final JsonChildren classes = 
from.getAnnotation(JsonChildren.class);
             if (classes == null) {
-                throw new IllegalArgumentException("No @Classes on " + from);
+                throw new IllegalArgumentException("No @JsonChildren on " + 
from);
             }
 
             classMapping.putAll(Stream.of(classes.value())

Reply via email to