ForceInstance 与 non-ForceInstance
private List<Connection> cloneConnectionsForceInstance() {
  List<Connection> newList = new ArrayList<Connection>();
  if (connections != null)
      newList.addAll(connections);
  return newList;
}

private List<Connection> cloneConnections() {
  if (connections == null)
      return null;
  List<Connection> newList = new ArrayList<Connection>();
  newList.addAll(connections);
  return newList;
}

  

posted on 2011-09-27 10:22  大松  阅读(186)  评论(0编辑  收藏  举报