/** * Returns a rather long string representation of this hashtable. * * @return a string representation of this hashtable. * @since JDK1.0 */ public String toString() { int max = size() - 1; StringBuffer buf = new StringBuffer(); Enumeration<Object> k = keys(); Enumeration<Object> e = elements(); buf.append("{"); for (int i = 0; i <= max; i++) { String s1 = k.nextElement().toString(); String s2 = e.nextElement().toString(); buf.append(s1 + "=" + s2); if (i < max) { buf.append(", "); } } buf.append("}"); return buf.toString(); } }
/** * Returns a rather long string representation of this hashtable. * * @return a string representation of this hashtable. * @since JDK1.0 */ public String toString() { int max = size() - 1; StringBuffer buf = new StringBuffer(); Enumeration<Object> k = keys(); Enumeration<Object> e = elements(); buf.append("{"); for (int i = 0; i <= max; i++) { String s1 = k.nextElement().toString(); String s2 = e.nextElement().toString(); buf.append(s1 + "=" + s2); if (i < max) { buf.append(", "); } } buf.append("}"); return buf.toString(); } }
public void unregisterTargetsForORB(org.omg.CORBA.ORB orb) { for (Enumeration<?> e = exportedServants.keys(); e.hasMoreElements();) { java.lang.Object key = e.nextElement(); Remote target = (Remote) (key instanceof Tie ? ((Tie) key).getTarget() : key); // Bug 4476347: BAD_OPERATION is thrown if the ties delegate isn't set. // We can ignore this because it means the tie is not connected to an ORB. try { if (orb == getTie(target).orb()) { try { unexportObject(target); } catch (java.rmi.NoSuchObjectException ex) { // We neglect this exception if at all if it is raised. It is not harmful. } } } catch (BAD_OPERATION bad) { /* Ignore */ } } }
public void unregisterTargetsForORB(org.omg.CORBA.ORB orb) { for (Enumeration<?> e = exportedServants.keys(); e.hasMoreElements();) { java.lang.Object key = e.nextElement(); Remote target = (Remote) (key instanceof Tie ? ((Tie) key).getTarget() : key); // Bug 4476347: BAD_OPERATION is thrown if the ties delegate isn't set. // We can ignore this because it means the tie is not connected to an ORB. try { if (orb == getTie(target).orb()) { try { unexportObject(target); } catch (java.rmi.NoSuchObjectException ex) { // We neglect this exception if at all if it is raised. It is not harmful. } } } catch (BAD_OPERATION bad) { /* Ignore */ } } }