commons.java subversion repository

sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 695 - https://secure.bioinfweb.info/Code/svn/commons.java / trunk / main / info.bioinfweb.commons.core / src / info / bioinfweb / commons / collections / ListDecorator.java
Unified Diff View - ListDecorator.java
/trunk/main/info.bioinfweb.commons.core/src/info/bioinfweb/commons/collections/ListDecorator.java @ revision 694
/trunk/main/info.bioinfweb.commons.core/src/info/bioinfweb/commons/collections/ListDecorator.java @ revision 695
@@ -256,9 +256,11 @@   copy.addAll(this);   copy = Collections.unmodifiableCollection(copy); -  beforeRemove(0, copy); -  getUnderlyingList().clear(); -  afterRemove(0, copy); +  if (copy.isEmpty() == false) { +   beforeRemove(0, copy); +   getUnderlyingList().clear(); +   afterRemove(0, copy); +  }  }


feed icon

sventon 2.5.1

bioinfweb RSS feed bioinfweb on twitter bioinfweb.commons.java on GitHub
bioinfweb - Biology & Informatics Website