Rework MethodSerializer (+ fallout)
[controller.git] / opendaylight / config / yang-jmx-generator-plugin / src / main / java / org / opendaylight / controller / config / yangjmxgenerator / plugin / ftl / model / ModuleField.java
index 37d660353f55d1a5a418b8dac0213f6e630ba3e2..bd28d93756497828d09b491b9dcb793c9b2a6d47 100644 (file)
@@ -8,11 +8,11 @@
 package org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model;
 
 
-import org.opendaylight.controller.config.yangjmxgenerator.attribute.Dependency;
-
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.List;
+import javax.lang.model.element.Modifier;
+import org.opendaylight.controller.config.yangjmxgenerator.attribute.Dependency;
 
 public class ModuleField extends Field {
 
@@ -20,8 +20,9 @@ public class ModuleField extends Field {
     private final boolean dependent, isListOfDependencies;
     private final Dependency dependency;
 
-    private ModuleField(List<String> modifiers, String type, String name, String attributeName, String nullableDefault,
-            boolean isDependency, Dependency dependency, boolean isListOfDependencies, boolean needsDepResolver) {
+    private ModuleField(List<Modifier> modifiers, String type, String name, String attributeName,
+            String nullableDefault, boolean isDependency, Dependency dependency, boolean isListOfDependencies,
+            boolean needsDepResolver) {
         super(modifiers, type, name, null, needsDepResolver);
         this.dependent = isDependency;
         this.dependency = dependency;
@@ -36,7 +37,7 @@ public class ModuleField extends Field {
 
     public ModuleField(String type, String name, String attributeName, String nullableDefault, boolean isDependency,
             Dependency dependency, boolean isListOfDependencies, boolean needsDepResolve) {
-        this(Collections.<String> emptyList(), type, name, attributeName, nullableDefault, isDependency, dependency,
+        this(Collections.emptyList(), type, name, attributeName, nullableDefault, isDependency, dependency,
                 isListOfDependencies, needsDepResolve);
     }