commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r588358 - in /commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection: Uberspect.java UberspectImpl.java
Date Thu, 25 Oct 2007 21:09:41 GMT
Author: dion
Date: Thu Oct 25 14:09:40 2007
New Revision: 588358

URL: http://svn.apache.org/viewvc?rev=588358&view=rev
Log:
remove throws exception

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

Modified: commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection/Uberspect.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection/Uberspect.java?rev=588358&r1=588357&r2=588358&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection/Uberspect.java
(original)
+++ commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection/Uberspect.java
Thu Oct 25 14:09:40 2007
@@ -30,18 +30,16 @@
 public interface Uberspect {
     /**
      * Initializer - will be called before use.
-     * @throws Exception on any error.
      */
-    void init() throws Exception;
+    void init();
 
     /**
      * To support iteratives - #foreach().
      * @param info template info.
      * @param obj to get the iterator for.
-     * @throws Exception on any error.
      * @return an iterator over obj.
      */
-    Iterator getIterator(Object obj, Info info) throws Exception;
+    Iterator getIterator(Object obj, Info info);
 
     /**
      * Returns a general method, corresponding to $foo.bar( $woogie ).
@@ -49,10 +47,9 @@
      * @param method the method name
      * @param args method arguments
      * @param info template info
-     * @throws Exception on any error.
      * @return a {@link VelMethod}.
      */
-    VelMethod getMethod(Object obj, String method, Object[] args, Info info) throws Exception;
+    VelMethod getMethod(Object obj, String method, Object[] args, Info info);
 
     /**
      * Property getter - returns VelPropertyGet appropos for #set($foo =
@@ -60,10 +57,9 @@
      * @param obj the object to get the property from.
      * @param identifier property name
      * @param info template info
-     * @throws Exception on any error.
      * @return a {@link VelPropertyGet}.
      */
-    VelPropertyGet getPropertyGet(Object obj, String identifier, Info info) throws Exception;
+    VelPropertyGet getPropertyGet(Object obj, String identifier, Info info);
 
     /**
      * Property setter - returns VelPropertySet appropos for #set($foo.bar =
@@ -72,8 +68,7 @@
      * @param identifier property name
      * @param arg value to set.
      * @param info template info
-     * @throws Exception on any error.
      * @return a {@link VelPropertySet}.
      */
-    VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info info) throws
Exception;
+    VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info info);
 }

Modified: commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java?rev=588358&r1=588357&r2=588358&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java
(original)
+++ commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/util/introspection/UberspectImpl.java
Thu Oct 25 14:09:40 2007
@@ -60,9 +60,8 @@
      * init - does nothing - we need to have setRuntimeLogger called before
      * getting our introspector, as the default vel introspector depends upon
      * it.
-     * @throws Exception on any error.
      */
-    public void init() throws Exception {
+    public void init() {
     }
 
     /**
@@ -78,7 +77,7 @@
     /**
      * {@inheritDoc}
      */
-    public Iterator getIterator(Object obj, Info i) throws Exception {
+    public Iterator getIterator(Object obj, Info i) {
         if (obj.getClass().isArray()) {
             return new ArrayIterator(obj);
         } else if (obj instanceof Collection) {
@@ -109,7 +108,7 @@
     /**
      * {@inheritDoc}
      */
-    public VelMethod getMethod(Object obj, String methodName, Object[] args, Info i) throws
Exception {
+    public VelMethod getMethod(Object obj, String methodName, Object[] args, Info i) {
         if (obj == null) {
             return null;
         }
@@ -125,7 +124,7 @@
     /**
      * {@inheritDoc}
      */
-    public VelPropertyGet getPropertyGet(Object obj, String identifier, Info i) throws Exception
{
+    public VelPropertyGet getPropertyGet(Object obj, String identifier, Info i) {
         AbstractExecutor executor;
 
         Class claz = obj.getClass();
@@ -158,7 +157,7 @@
     /**
      * {@inheritDoc}
      */
-    public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info
i) throws Exception {
+    public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info
i)  {
         Class claz = obj.getClass();
 
         VelMethod vm = null;



Mime
View raw message