commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r802294 - in /commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util: MapGetExecutor.java MapSetExecutor.java introspection/UberspectImpl.java
Date Sat, 08 Aug 2009 03:38:06 GMT
Author: rahul
Date: Sat Aug  8 03:38:05 2009
New Revision: 802294

URL: http://svn.apache.org/viewvc?rev=802294&view=rev
Log:
Suppress verified warnings.

Modified:
    commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/MapGetExecutor.java
    commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/MapSetExecutor.java
    commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java

Modified: commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/MapGetExecutor.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/MapGetExecutor.java?rev=802294&r1=802293&r2=802294&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/MapGetExecutor.java
(original)
+++ commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/MapGetExecutor.java
Sat Aug  8 03:38:05 2009
@@ -45,12 +45,14 @@
      * @param map the map.
      * @return map.get(property)
      */
+    @SuppressWarnings("unchecked")
     @Override
     public Object execute(final Object map) {
         return ((Map<Object, ?>) map).get(property);
     }
 
     /** {@inheritDoc} */
+    @SuppressWarnings("unchecked")
     @Override
     public Object tryExecute(final Object map, Object key) {
         if (objectClass.equals(map.getClass())

Modified: commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/MapSetExecutor.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/MapSetExecutor.java?rev=802294&r1=802293&r2=802294&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/MapSetExecutor.java
(original)
+++ commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/MapSetExecutor.java
Sat Aug  8 03:38:05 2009
@@ -40,6 +40,7 @@
     }
 
     /** {@inheritDoc} */
+    @SuppressWarnings("unchecked")
     @Override
     public Object execute(final Object map, Object value)
     throws IllegalAccessException, InvocationTargetException {
@@ -48,6 +49,7 @@
     }
 
     /** {@inheritDoc} */
+    @SuppressWarnings("unchecked")
     @Override
     public Object tryExecute(final Object map, Object key, Object value) {
         if (objectClass.equals(map.getClass())

Modified: commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java?rev=802294&r1=802293&r2=802294&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java
(original)
+++ commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java
Sat Aug  8 03:38:05 2009
@@ -65,7 +65,8 @@
     /**
      * {@inheritDoc}
      */
-     public Iterator<?> getIterator(Object obj, DebugInfo i) {
+    @SuppressWarnings("unchecked")
+    public Iterator<?> getIterator(Object obj, DebugInfo i) {
         if (obj.getClass().isArray()) {
             return new ArrayIterator(obj);
         } else if (obj instanceof Collection<?>) {



Mime
View raw message