Lortseam 4 жил өмнө
parent
commit
5226dae029

+ 2 - 2
src/main/java/me/lortseam/completeconfig/data/Collection.java

@@ -49,7 +49,7 @@ public class Collection implements FlatDataPart<ConfigMap> {
                 }
                 if (field.isAnnotationPresent(ConfigContainer.Transitive.class)) {
                     if (!ConfigContainer.class.isAssignableFrom(field.getType())) {
-                        throw new IllegalAnnotationTargetException("Transitive entry " + field + " must implement ConfigEntryContainer");
+                        throw new IllegalAnnotationTargetException("Transitive entry " + field + " must implement " + ConfigContainer.class.getSimpleName());
                     }
                     return true;
                 }
@@ -75,7 +75,7 @@ public class Collection implements FlatDataPart<ConfigMap> {
                         }
                         return constructor.newInstance();
                     } catch (NoSuchMethodException | IllegalAccessException | InstantiationException | InvocationTargetException e) {
-                        throw new RuntimeException("Failed to instantiate nested config entry container class", e);
+                        throw new RuntimeException("Failed to instantiate nested class " + nestedClass, e);
                     }
                 }).filter(Objects::nonNull).collect(Collectors.toList()));
             }

+ 2 - 2
src/main/java/me/lortseam/completeconfig/data/Config.java

@@ -87,9 +87,9 @@ public class Config extends Collection {
         }
 
         /**
-         * Adds one or more entry containers to the config.
+         * Adds one or more containers to the config.
          *
-         * @param containers one or more entry containers
+         * @param containers one or more containers
          * @return this builder
          */
         public Builder add(@NonNull ConfigContainer... containers) {