Browse Source

Added some TODOs

Lortseam 5 years ago
parent
commit
397a640fc6
1 changed files with 2 additions and 0 deletions
  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
     //TODO: Create own class for validations like these
     private void addListenerToEntry(Entry<?> entry, Method method, ConfigEntryContainer container) {
     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()) {
         if (method.getParameterCount() != 1 || method.getParameterTypes()[0] != entry.getType()) {
             throw new IllegalArgumentException("Listener method " + method + " has wrong parameter type(s)");
             throw new IllegalArgumentException("Listener method " + method + " has wrong parameter type(s)");
         }
         }