You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by mb...@apache.org on 2007/03/16 18:08:38 UTC
svn commit: r519065 -
/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java
Author: mbenson
Date: Fri Mar 16 10:08:38 2007
New Revision: 519065
URL: http://svn.apache.org/viewvc?view=rev&rev=519065
Log:
unnecessary cast
Modified:
jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java
Modified: jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java?view=diff&rev=519065&r1=519064&r2=519065
==============================================================================
--- jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java (original)
+++ jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java Fri Mar 16 10:08:38 2007
@@ -411,12 +411,10 @@
}
}
catch (InvocationTargetException ex) {
- Throwable t =
- ((InvocationTargetException) ex).getTargetException();
+ Throwable t = ex.getTargetException();
if (t instanceof IndexOutOfBoundsException) {
return null;
}
-
throw new JXPathException(
"Cannot access property: " + propertyDescriptor.getName(),
t);
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org