From 03fe7d426bdb9923efdc42cad9aa98142b90a979 Mon Sep 17 00:00:00 2001 From: Agaricus Date: Wed, 23 Jan 2013 19:40:26 -0800 Subject: [PATCH] Fix unchecked cast warning on shade-relocation parameter --- src/main/java/net/md_5/specialsource/SpecialSource.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/md_5/specialsource/SpecialSource.java b/src/main/java/net/md_5/specialsource/SpecialSource.java index 42f801d..03f99c6 100644 --- a/src/main/java/net/md_5/specialsource/SpecialSource.java +++ b/src/main/java/net/md_5/specialsource/SpecialSource.java @@ -120,6 +120,7 @@ public class SpecialSource { // Load mappings, possibly shaded ShadeRelocationSimulator shadeRelocationSimulator = null; if (options.has("shade-relocation")) { + @SuppressWarnings("unchecked") List relocations = (List) options.valuesOf("shade-relocation"); shadeRelocationSimulator = new ShadeRelocationSimulator(relocations);