From c771b2ac877619251cb87a3b7c4fc24011518ef8 Mon Sep 17 00:00:00 2001 From: Andrew Donald Kennedy Date: Wed, 8 Feb 2012 13:33:01 +0000 Subject: [PATCH] Remove unused annotations --- .../java/org/jclouds/functions/ExceptionToValueOrPropagate.java | 1 - .../src/test/java/org/jclouds/rest/BaseRestClientExpectTest.java | 1 - 2 files changed, 2 deletions(-) diff --git a/core/src/main/java/org/jclouds/functions/ExceptionToValueOrPropagate.java b/core/src/main/java/org/jclouds/functions/ExceptionToValueOrPropagate.java index 7e175c1d35..081fb11d33 100644 --- a/core/src/main/java/org/jclouds/functions/ExceptionToValueOrPropagate.java +++ b/core/src/main/java/org/jclouds/functions/ExceptionToValueOrPropagate.java @@ -44,7 +44,6 @@ public class ExceptionToValueOrPropagate implements Func this.value = value; } - @SuppressWarnings("unchecked") @Override public T apply(Exception from) { checkNotNull(from, "exception"); diff --git a/core/src/test/java/org/jclouds/rest/BaseRestClientExpectTest.java b/core/src/test/java/org/jclouds/rest/BaseRestClientExpectTest.java index bf8f63f97f..3ad6a2d4d6 100644 --- a/core/src/test/java/org/jclouds/rest/BaseRestClientExpectTest.java +++ b/core/src/test/java/org/jclouds/rest/BaseRestClientExpectTest.java @@ -418,7 +418,6 @@ public abstract class BaseRestClientExpectTest { protected String identity = "identity"; protected String credential = "credential"; - @SuppressWarnings("unchecked") private RestContextSpec makeContextSpec() { if (getClass().isAnnotationPresent(RegisterContext.class)) return (RestContextSpec) contextSpec(provider, "http://mock", "1", "", "", "userfoo", null, getClass()