protected boolean hasNonAppExceptions ( Method m ) { Class [ ] ex = m . getExceptionTypes ( ) ; for ( int i = 0 ; i < ex . length ; ++ i ) if ( ! java . rmi . RemoteException . class . isAssignableFrom ( ex [ i ] ) ) return false ; return true ; }
Check if a method throws anything checked other than java . rmi . RemoteException and its subclasses .