You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2010/01/04 18:58:24 UTC
svn commit: r895729 - in /cxf/trunk/rt/frontend/jaxrs/src:
main/java/org/apache/cxf/jaxrs/ext/logging/atom/AtomPushEngineConfigurator.java
test/java/org/apache/cxf/jaxrs/impl/RequestPreprocessorTest.java
Author: dkulp
Date: Mon Jan 4 17:58:20 2010
New Revision: 895729
URL: http://svn.apache.org/viewvc?rev=895729&view=rev
Log:
Remove some eclipse warnings
Modified:
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/AtomPushEngineConfigurator.java
cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/RequestPreprocessorTest.java
Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/AtomPushEngineConfigurator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/AtomPushEngineConfigurator.java?rev=895729&r1=895728&r2=895729&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/AtomPushEngineConfigurator.java (original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/AtomPushEngineConfigurator.java Mon Jan 4 17:58:20 2010
@@ -200,13 +200,12 @@
return ret;
}
- @SuppressWarnings("unchecked")
private <T extends Enum<T>> T parseEnum(String value, T defaultValue, Class<T> enumClass) {
if (value == null | "".equals(value)) {
return defaultValue;
}
try {
- return (T)Enum.valueOf(enumClass, value.toUpperCase());
+ return Enum.valueOf(enumClass, value.toUpperCase());
} catch (Exception e) {
return defaultValue;
}
Modified: cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/RequestPreprocessorTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/RequestPreprocessorTest.java?rev=895729&r1=895728&r2=895729&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/RequestPreprocessorTest.java (original)
+++ cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/RequestPreprocessorTest.java Mon Jan 4 17:58:20 2010
@@ -140,6 +140,10 @@
@Path("/test")
private static class TestResource {
+ //suppress the unused get method warning in eclipse. The class is private
+ //so nothing really calls the "get" method, but this is needed for the
+ //test case
+ @SuppressWarnings("unused")
@GET
public String get() {
return "test";