No effective change - code tidy

This commit is contained in:
rbygrave
2015-05-13 21:41:23 +12:00
parent 9bf9338ba9
commit e17d823c17
2 changed files with 5 additions and 12 deletions
@@ -156,7 +156,7 @@ public final class BeanList<E> extends AbstractBeanCollection<E> implements List
}
public String toString() {
StringBuffer sb = new StringBuffer(50);
StringBuilder sb = new StringBuilder(50);
sb.append("BeanList ");
if (isReadOnly()) {
sb.append("readOnly ");
@@ -350,7 +350,7 @@ public final class BeanList<E> extends AbstractBeanCollection<E> implements List
boolean changed = false;
Iterator<?> it = c.iterator();
while (it.hasNext()) {
Object o = (Object) it.next();
Object o = it.next();
if (list.remove(o)) {
modifyRemoval(o);
changed = true;
@@ -368,7 +368,7 @@ public final class BeanList<E> extends AbstractBeanCollection<E> implements List
boolean changed = false;
Iterator<E> it = list.iterator();
while (it.hasNext()) {
Object o = (Object) it.next();
Object o = it.next();
if (!c.contains(o)) {
it.remove();
modifyRemoval(o);
@@ -145,15 +145,8 @@ public final class BeanSet<E> extends AbstractBeanCollection<E> implements Set<E
return set;
}
/**
* Returns the underlying set.
*/
public Object getActualCollection() {
return set;
}
public String toString() {
StringBuffer sb = new StringBuffer(50);
StringBuilder sb = new StringBuilder(50);
sb.append("BeanSet ");
if (isReadOnly()) {
sb.append("readOnly ");
@@ -276,7 +269,7 @@ public final class BeanSet<E> extends AbstractBeanCollection<E> implements Set<E
boolean changed = false;
Iterator<?> it = c.iterator();
while (it.hasNext()) {
Object o = (Object) it.next();
Object o = it.next();
if (set.remove(o)) {
modifyRemoval(o);
changed = true;