Thursday, October 10, 2002 02:19 PM
Well, can the memberInfo object change underneath, between 2 successive calls to its getSPseudo(), so that they might return different values? Could the 2nd one throw an exception, return null etc., even if the 1st call succeeds? Is it an expensive operation each time (involving RMI to EJB's indirectly, or JDBC to DBMS, etc.)? I don't think the compiler is going to decide this for you, when just compiling this particular class ...
Also (say yes :-) does this code need to be robust, and therefore check that memberInfo is not null first, next check that the returned pseudo is not null, before finally proceeding with the INSERTObj calls?