@ SuppressWarnings ( "deprecation" ) protected Throwable getNestedException ( Throwable t ) { Throwable root = t ; for ( ; ; ) { if ( root instanceof RemoteException ) { RemoteException re = ( RemoteException ) root ; if ( re . detail == null ) break ; root = re . detail ; } else if ( root instanceof NamingException ) { NamingException ne = ( NamingException ) root ; if ( ne . getRootCause ( ) == null ) break ; root = ne . getRootCause ( ) ; } else if ( root instanceof com . ibm . ws . exception . WsNestedException ) { //d121522 com . ibm . ws . exception . WsNestedException ne = ( com . ibm . ws . exception . WsNestedException ) root ; if ( ne . getCause ( ) == null ) break ; root = ne . getCause ( ) ; } else { break ; } } return root ; }
d494984 eliminate assignment to parameter t .