ws-kandula-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dasar...@apache.org
Subject svn commit: r360238 - /webservices/kandula/branches/Kandula_1/src/samples/test-suite1/src/TestSuite1SoapBindingImpl.java
Date Sat, 31 Dec 2005 04:15:02 GMT
Author: dasarath
Date: Fri Dec 30 20:14:58 2005
New Revision: 360238

URL: http://svn.apache.org/viewcvs?rev=360238&view=rev
Log: (empty)

Modified:
    webservices/kandula/branches/Kandula_1/src/samples/test-suite1/src/TestSuite1SoapBindingImpl.java

Modified: webservices/kandula/branches/Kandula_1/src/samples/test-suite1/src/TestSuite1SoapBindingImpl.java
URL: http://svn.apache.org/viewcvs/webservices/kandula/branches/Kandula_1/src/samples/test-suite1/src/TestSuite1SoapBindingImpl.java?rev=360238&r1=360237&r2=360238&view=diff
==============================================================================
--- webservices/kandula/branches/Kandula_1/src/samples/test-suite1/src/TestSuite1SoapBindingImpl.java
(original)
+++ webservices/kandula/branches/Kandula_1/src/samples/test-suite1/src/TestSuite1SoapBindingImpl.java
Fri Dec 30 20:14:58 2005
@@ -405,17 +405,15 @@
 	private static Field[] flds = Status.class.getDeclaredFields();
 
 	public static String getStatusName(int status) {
-		String statusName = null;
-
 		try {
 			for (int i = 0; i < flds.length; i++) {
 				if (flds[i].getInt(null) == status)
-					statusName = flds[i].getName();
+					return flds[i].getName();
 			}
 		} catch (Exception e) {
-			statusName = "invalid status value!";
+			e.printStackTrace();
 		}
-		return statusName;
+		throw new IllegalArgumentException();
 	}
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org


Mime
View raw message