Explorar o código

Renamed IllegalReturnTypeException

Lortseam %!s(int64=4) %!d(string=hai) anos
pai
achega
4b10b0beb3

+ 2 - 2
src/main/java/me/lortseam/completeconfig/collection/EntryMap.java

@@ -10,7 +10,7 @@ import me.lortseam.completeconfig.entry.EnumOptions;
 import me.lortseam.completeconfig.exception.IllegalAnnotationParameterException;
 import me.lortseam.completeconfig.exception.IllegalAnnotationTargetException;
 import me.lortseam.completeconfig.exception.IllegalModifierException;
-import me.lortseam.completeconfig.exception.IllegalReturnValueException;
+import me.lortseam.completeconfig.exception.IllegalReturnTypeException;
 import org.apache.commons.lang3.StringUtils;
 
 import java.lang.reflect.Modifier;
@@ -47,7 +47,7 @@ public class EntryMap extends ConfigMap<Entry> {
                     throw new IllegalArgumentException("Listener method " + method + " has wrong argument type");
                 }
                 if (method.getReturnType() != Void.TYPE) {
-                    throw new IllegalReturnValueException("Listener method " + method + " may not return a type other than void");
+                    throw new IllegalReturnTypeException("Listener method " + method + " may not return a type other than void");
                 }
                 if (!method.isAccessible()) {
                     method.setAccessible(true);

+ 2 - 2
src/main/java/me/lortseam/completeconfig/exception/IllegalReturnValueException.java → src/main/java/me/lortseam/completeconfig/exception/IllegalReturnTypeException.java

@@ -3,9 +3,9 @@ package me.lortseam.completeconfig.exception;
 /**
  * Thrown to indicate that a method returns an illegal or inappropriate type.
  */
-public class IllegalReturnValueException extends RuntimeException {
+public class IllegalReturnTypeException extends RuntimeException {
 
-    public IllegalReturnValueException(String message) {
+    public IllegalReturnTypeException(String message) {
         super(message);
     }