harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r601711 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c
Date Thu, 06 Dec 2007 11:55:10 GMT
Author: hindessm
Date: Thu Dec  6 03:55:05 2007
New Revision: 601711

URL: http://svn.apache.org/viewvc?rev=601711&view=rev
Log:
Whitespace only change.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c?rev=601711&r1=601710&r2=601711&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c Thu
Dec  6 03:55:05 2007
@@ -307,27 +307,27 @@
   char *errorMessage = netLookupErrorString (env, errorNumber);
   jstring errorMessageString = (*env)->NewStringUTF (env,errorMessage);
   if (HYPORT_ERROR_SOCKET_WOULDBLOCK == errorNumber){
-  	   errorCodeExClass = (*env)->FindClass (env, "org/apache/harmony/luni/util/ErrorCodeException");
-  	   if (!errorCodeExClass){
-  	           return;
-  	   }
-  	   errorCodeExConstructor = (*env)->GetMethodID(env,errorCodeExClass,"<init>","(I)V");
-       if (!errorCodeExConstructor){
-               return;
-       }
-       errorCodeEx = (*env)->NewObject(env, errorCodeExClass,errorCodeExConstructor,errorNumber);
-       socketExClass = (*env)->FindClass (env, "java/net/SocketException");
-  	   if (!socketExClass) {
-  	           return;
-  	   }
-  	   socketExConstructor = (*env)->GetMethodID(env,socketExClass,"<init>","(Ljava/lang/String;)V");
-       if (!socketExConstructor) {
-               return;
-       }
-       socketEx = (*env)->NewObject(env, socketExClass, socketExConstructor, errorMessageString);

-       socketExCauseMethod = (*env)->GetMethodID(env,socketExClass,"initCause","(Ljava/lang/Throwable;)Ljava/lang/Throwable;");
-       (*env)->CallObjectMethod(env,socketEx,socketExCauseMethod,errorCodeEx);
-       (*env)->Throw(env,socketEx);
+    errorCodeExClass = (*env)->FindClass (env, "org/apache/harmony/luni/util/ErrorCodeException");
+    if (!errorCodeExClass){
+      return;
+    }
+    errorCodeExConstructor = (*env)->GetMethodID(env,errorCodeExClass,"<init>","(I)V");
+    if (!errorCodeExConstructor){
+      return;
+    }
+    errorCodeEx = (*env)->NewObject(env, errorCodeExClass,errorCodeExConstructor,errorNumber);
+    socketExClass = (*env)->FindClass (env, "java/net/SocketException");
+    if (!socketExClass) {
+      return;
+    }
+    socketExConstructor = (*env)->GetMethodID(env,socketExClass,"<init>","(Ljava/lang/String;)V");
+    if (!socketExConstructor) {
+      return;
+    }
+    socketEx = (*env)->NewObject(env, socketExClass, socketExConstructor, errorMessageString);

+    socketExCauseMethod = (*env)->GetMethodID(env,socketExClass,"initCause","(Ljava/lang/Throwable;)Ljava/lang/Throwable;");
+    (*env)->CallObjectMethod(env,socketEx,socketExCauseMethod,errorCodeEx);
+    (*env)->Throw(env,socketEx);
   }
   throwNewExceptionByName(env, "java/net/SocketException", errorMessage);
 }



Mime
View raw message