コード例 #1
0
 public void removeRemotable(Remotable remotable) {
   log.debug("removeRemotable " + remotable);
   Remotable previous = remotables.remove(remotable.getId());
   assert previous == remotable
       : "there was a different remotable under "
           + remotable.getId()
           + " ("
           + previous
           + " != "
           + remotable
           + ")";
 }
コード例 #2
0
 public void addRemotable(Remotable remotable) {
   log.debug("addRemotable " + remotable);
   Remotable previous = remotables.put(remotable.getId(), remotable);
   assert previous == null : "there was a previous remotable under " + remotable.getId();
 }