Selaa lähdekoodia

Added some TODOs

Lortseam 5 vuotta sitten
vanhempi
sitoutus
397a640fc6
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/main/java/me/lortseam/completeconfig/ConfigManager.java

+ 2 - 0
src/main/java/me/lortseam/completeconfig/ConfigManager.java

@@ -197,6 +197,8 @@ public class ConfigManager {
 
     //TODO: Create own class for validations like these
     private void addListenerToEntry(Entry<?> entry, Method method, ConfigEntryContainer container) {
+        //TODO: Add void return type check
+        //TODO: Allow listeners without parameters if forceUpdate equals true or listener is defined in different class
         if (method.getParameterCount() != 1 || method.getParameterTypes()[0] != entry.getType()) {
             throw new IllegalArgumentException("Listener method " + method + " has wrong parameter type(s)");
         }