From 962bd84ff2cdf62e4959efff717cf36f96d75033 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Sun, 23 Dec 2018 14:56:58 +0100 Subject: [PATCH] Fix a typo and improve an error message in ReflectiveHierarchyStep --- .../shamrock/deployment/steps/ReflectiveHierarchyStep.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/deployment/src/main/java/org/jboss/shamrock/deployment/steps/ReflectiveHierarchyStep.java b/core/deployment/src/main/java/org/jboss/shamrock/deployment/steps/ReflectiveHierarchyStep.java index d548d39acee01..aed0a95996b08 100644 --- a/core/deployment/src/main/java/org/jboss/shamrock/deployment/steps/ReflectiveHierarchyStep.java +++ b/core/deployment/src/main/java/org/jboss/shamrock/deployment/steps/ReflectiveHierarchyStep.java @@ -45,7 +45,7 @@ public class ReflectiveHierarchyStep { private static final Logger log = Logger.getLogger(ReflectiveHierarchyStep.class); @Inject - List heiracy; + List hierarchy; @Inject CombinedIndexBuildItem combinedIndexBuildItem; @@ -56,7 +56,7 @@ public class ReflectiveHierarchyStep { @BuildStep public void build() throws Exception { Set processedReflectiveHierarchies = new HashSet<>(); - for (ReflectiveHierarchyBuildItem i : heiracy) { + for (ReflectiveHierarchyBuildItem i : hierarchy) { addReflectiveHierarchy(i.getType(), processedReflectiveHierarchies); } } @@ -89,7 +89,8 @@ private void addClassTypeHierarchy(DotName name, Set processedReflectiv reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, name.toString())); ClassInfo info = combinedIndexBuildItem.getIndex().getClassByName(name); if (info == null) { - log.warn("Unable to find annotation info for " + name + ", it may not be correctly registered for reflection"); + log.warn("Unable to find annotation info for " + name + + ", either it should be added to the Jandex index or it might be incorrectly registered for reflection."); } else { addClassTypeHierarchy(info.superName(), processedReflectiveHierarchies); for (FieldInfo i : info.fields()) {