From 7a471ea05e7f39dde3c630bbcf1576e60005e014 Mon Sep 17 00:00:00 2001 From: Jascha Starke Date: Sat, 15 Dec 2012 14:34:56 +0100 Subject: [PATCH] Fixed a java backward compatibility issue, to use jenkins maven build --- .../minecraft/worldguard/ApplicableRegions.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/de/jaschastarke/minecraft/worldguard/ApplicableRegions.java b/src/de/jaschastarke/minecraft/worldguard/ApplicableRegions.java index 80e563c..c74ab3f 100644 --- a/src/de/jaschastarke/minecraft/worldguard/ApplicableRegions.java +++ b/src/de/jaschastarke/minecraft/worldguard/ApplicableRegions.java @@ -65,33 +65,34 @@ public class ApplicableRegions { } @SuppressWarnings("unchecked") - private , V> void extendRegionFlags() { + private void extendRegionFlags() { for (ProtectedRegion pr : regions) { for (FlagValue data : mgr.region(pr).getFlags()) { - T flag = (T) data.getFlag(); - V value = (V) data.getValue(); + Flag flag = (Flag) data.getFlag(); + Object value = data.getValue(); pr.setFlag(flag, value); } } if (mgr.getGlobalRegion() != null) { for (FlagValue data : mgr.region(mgr.getGlobalRegion()).getFlags()) { - T flag = (T) data.getFlag(); - V value = (V) data.getValue(); + Flag flag = (Flag) data.getFlag(); + Object value = data.getValue(); mgr.getGlobalRegion().setFlag(flag, value); } } } + @SuppressWarnings("unchecked") - private , V> void contractRegionFlags() { + private void contractRegionFlags() { for (ProtectedRegion pr : regions) { for (FlagValue data : mgr.region(pr).getFlags()) { - T flag = (T) data.getFlag(); + Flag flag = (Flag) data.getFlag(); pr.setFlag(flag, null); } } if (mgr.getGlobalRegion() != null) { for (FlagValue data : mgr.region(mgr.getGlobalRegion()).getFlags()) { - T flag = (T) data.getFlag(); + Flag flag = (Flag) data.getFlag(); mgr.getGlobalRegion().setFlag(flag, null); } }