commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1086268 - /commons/sandbox/runtime/trunk/src/main/native/include/acr/jnimacros.h
Date Mon, 28 Mar 2011 15:23:13 GMT
Author: mturk
Date: Mon Mar 28 15:23:13 2011
New Revision: 1086268

URL: http://svn.apache.org/viewvc?rev=1086268&view=rev
Log:
No need for checking exceptions. They are always thrown if NULL is returned

Modified:
    commons/sandbox/runtime/trunk/src/main/native/include/acr/jnimacros.h

Modified: commons/sandbox/runtime/trunk/src/main/native/include/acr/jnimacros.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr/jnimacros.h?rev=1086268&r1=1086267&r2=1086268&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr/jnimacros.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr/jnimacros.h Mon Mar 28 15:23:13
2011
@@ -34,46 +34,40 @@
     if (_m##I##n.i == 0) {                                                  \
         _m##I##n.i = (*_E)->GetMethodID(_E, _clazzn.i, _m##I##n.n,          \
                                         _m##I##n.s);                        \
-        if ((*_E)->ExceptionCheck(_E) || _m##I##n.i == 0) {                 \
+        if (_m##I##n.i == 0)                                                \
             return ACR_ESYMNOTFOUND;                                        \
-        }                                                                   \
     } else (void)(0)
 
 #define J_LOPT_METHOD(I)    \
     if (_m##I##n.i == 0) {                                                  \
         _m##I##n.i = (*_E)->GetMethodID(_E, _clazzn.i, _m##I##n.n,          \
                                         _m##I##n.s);                        \
-        if ((*_E)->ExceptionCheck(_E) || _m##I##n.i == 0) {                 \
+        if (_m##I##n.i == 0)                                                \
             (*_E)->ExceptionClear(_E);                                      \
-            _m##I##n.i = 0;                                                 \
-        }                                                                   \
     } else (void)(0)
 
 #define J_LOAD_MLOCAL(I)    \
     if (_m##I##n.i == 0) {                                                  \
         _m##I##n.i = (*_E)->GetStaticMethodID(_E, _clazzn.i, _m##I##n.n,    \
                                              _m##I##n.s);                   \
-        if ((*_E)->ExceptionCheck(_E) || _m##I##n.i == 0) {                 \
+        if (_m##I##n.i == 0)                                                \
             return ACR_ESYMNOTFOUND;                                        \
-        }                                                                   \
     } else (void)(0)
 
 #define J_LOAD_IFIELD(I)   \
     if (_f##I##n.i == 0) {                                                  \
         _f##I##n.i = (*_E)->GetFieldID(_E, _clazzn.i, _f##I##n.n,           \
                                        _f##I##n.s);                         \
-        if ((*_E)->ExceptionCheck(_E) || _f##I##n.i == 0) {                 \
+        if (_f##I##n.i == 0)                                                \
             return ACR_ESYMNOTFOUND;                                        \
-        }                                                                   \
     } else (void)(0)
 
 #define J_LOAD_SFIELD(I)   \
     if (_f##I##n.i == 0) {                                                  \
         _f##I##n.i = (*_E)->GetStaticFieldID(_E, _clazzn.i, _f##I##n.n,     \
                                             _f##I##n.s);                    \
-        if ((*_E)->ExceptionCheck(_E) || _f##I##n.i == 0) {                 \
+        if (_f##I##n.i == 0)                                                \
             return ACR_ESYMNOTFOUND;                                        \
-        }                                                                   \
     } else (void)(0)
 
 



Mime
View raw message