Add missing javadoc.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / Options.java
index 513138b..0ea895a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - Options.java - Copyright © 2010 David Roden
+ * Sone - Options.java - Copyright © 2010–2012 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -329,6 +329,8 @@ public class Options {
        /**
         * Adds an {@link Enum} {@link Option}.
         *
+        * @param <T>
+        *            The enum type
         * @param name
         *            The name of the option
         * @param enumOption
@@ -350,11 +352,14 @@ public class Options {
         * options.&lt;SomeEnum&gt; getEnumOption(&quot;SomeEnumOption&quot;).get();
         * </pre>
         *
+        * @param <T>
+        *            The enum type
         * @param name
         *            The name of the option
         * @return The enum option, or {@code null} if there is no enum option with
         *         the given name
         */
+       @SuppressWarnings("unchecked")
        public <T extends Enum<T>> Option<T> getEnumOption(String name) {
                return (Option<T>) enumOptions.get(name);
        }