Make List type safe. Remove/suppress all warnings.
[marc4j.git] / src / org / marc4j / marc / DataField.java
index 146cb90..3af95f0 100644 (file)
@@ -65,7 +65,7 @@ public interface DataField extends VariableField {
         * \r
         * @return List - the list of <code>Subfield</code> objects\r
         */\r
-       public List getSubfields();\r
+       public List<Subfield> getSubfields();\r
 \r
        /**\r
         * Returns the list of <code>Subfield</code> objects for the goven\r
@@ -75,7 +75,7 @@ public interface DataField extends VariableField {
         *            the subfield code\r
         * @return List - the list of <code>Subfield</code> objects\r
         */\r
-       public List getSubfields(char code);\r
+       public List<Subfield> getSubfields(char code);\r
 \r
        /**\r
         * Returns the first <code>Subfield</code> with the given code.\r