Author: veithen
Date: Fri Jun 10 20:02:49 2011
New Revision: 1134428
URL: http://svn.apache.org/viewvc?rev=1134428&view=rev
Log:
AXIOM-364: Removed an unnecessary (and in some rare cases incorrect) cast.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java?rev=1134428&r1=1134427&r2=1134428&view=diff
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java
Fri Jun 10 20:02:49 2011
@@ -234,7 +234,7 @@ public class Attachments implements OMAt
pushbackInStream.read();
break;
}
- } else if ((byte) value == -1) {
+ } else if (value == -1) {
throw new OMException(
"Mime parts not found. Stream ended while
searching for the boundary");
}