Fix a minor typo
[mdsal.git] / binding / mdsal-binding-java-api-generator / src / main / java / org / opendaylight / mdsal / binding / java / api / generator / EnumGenerator.java
index bad0aa87bc298b8192eee73d2b9094b8946af000..3f9efcb8f55546e42d2808dafda2e03b4a240d26 100644 (file)
@@ -12,26 +12,21 @@ import org.opendaylight.mdsal.binding.model.api.Enumeration;
 import org.opendaylight.mdsal.binding.model.api.Type;
 
 /**
- *
- * Transformator of the data from the virtual form to JAVA source code. The
- * result source code represents JAVA enumeration. For generation of the source
- * code is used the template written in XTEND language.
- *
+ * Transformator of the data from the virtual form to JAVA source code. The result source code represents JAVA
+ * enumeration. For generation of the source code is used the template written in XTEND language.
  */
 public class EnumGenerator implements CodeGenerator {
-
     @Override
-    public boolean isAcceptable(Type type) {
+    public boolean isAcceptable(final Type type) {
         return type instanceof Enumeration;
     }
 
     /**
-     * Generates JAVA source code for generated type <code>Type</code>. The code
-     * is generated according to the template source code template which is
-     * written in XTEND language.
+     * Generates JAVA source code for generated type <code>Type</code>. The code is generated according to the template
+     * source code template which is written in XTEND language.
      */
     @Override
-    public String generate(Type type) {
+    public String generate(final Type type) {
         if (type instanceof Enumeration) {
             final Enumeration enums = (Enumeration) type;
             final EnumTemplate enumTemplate = new EnumTemplate(enums);
@@ -41,8 +36,7 @@ public class EnumGenerator implements CodeGenerator {
     }
 
     @Override
-    public String getUnitName(Type type) {
+    public String getUnitName(final Type type) {
         return type.getName();
     }
-
 }