Fixed Java warnings.

This commit is contained in:
sk89q
2010-12-29 23:15:53 -08:00
parent 687260801f
commit 912468f8a1
29 changed files with 57 additions and 46 deletions

View File

@@ -236,7 +236,8 @@ public class Chunk {
* @return child tag
* @throws InvalidFormatException
*/
public static Tag getChildTag(Map<String,Tag> items, String key, Class expected)
public static Tag getChildTag(Map<String,Tag> items, String key,
Class<? extends Tag> expected)
throws InvalidFormatException {
if (!items.containsKey(key)) {
throw new InvalidFormatException("Missing a \"" + key + "\" tag");