Author: jason.greene(a)jboss.com
Date: 2007-01-23 12:55:07 -0500 (Tue, 23 Jan 2007)
New Revision: 2045
Modified:
branches/jbossws-1.2.0/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/ParameterMetaData.java
Log:
MFT
Modified:
branches/jbossws-1.2.0/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/ParameterMetaData.java
===================================================================
---
branches/jbossws-1.2.0/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/ParameterMetaData.java 2007-01-23
17:47:18 UTC (rev 2044)
+++
branches/jbossws-1.2.0/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/ParameterMetaData.java 2007-01-23
17:55:07 UTC (rev 2045)
@@ -115,7 +115,9 @@
if (index == -1 && matchTypes(returnType, expectedType, exact, false))
return true;
- boolean indexInBounds = -1 < index && index <
classParameters.length;
+ if (index < 0 || index >= classParameters.length)
+ return false;
+
boolean matchTypes;
if (JavaUtils.isRetro14())
@@ -123,7 +125,7 @@
else
matchTypes = matchTypes(genericParameters[index], expectedType, exact, holder);
- if (indexInBounds && matchTypes)
+ if (matchTypes)
{
matches.add(index);
return true;
Show replies by date