From: Matti Tahvonen Date: Fri, 30 Oct 2009 15:25:06 +0000 (+0000) Subject: merged [9531] from 6.1 X-Git-Tag: 6.7.0.beta1~2350 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=24bc7fa8324d9c32507c4df913ddd237cc43a36f;p=vaadin-framework.git merged [9531] from 6.1 svn changeset:9532/svn branch:6.2 --- diff --git a/src/com/vaadin/data/util/IndexedContainer.java b/src/com/vaadin/data/util/IndexedContainer.java index a0b85cd141..15c36953a1 100644 --- a/src/com/vaadin/data/util/IndexedContainer.java +++ b/src/com/vaadin/data/util/IndexedContainer.java @@ -1387,7 +1387,7 @@ public class IndexedContainer implements Container.Indexed, for (int i = 0; i < propertyId.length; i++) { if (sortable.contains(propertyId[i])) { ids.add(propertyId[i]); - orders.add(new Boolean(i < ascending.length ? ascending[i] + orders.add(Boolean.valueOf(i < ascending.length ? ascending[i] : true)); } } diff --git a/src/com/vaadin/ui/Button.java b/src/com/vaadin/ui/Button.java index 6801bfa176..3ed50b2d42 100644 --- a/src/com/vaadin/ui/Button.java +++ b/src/com/vaadin/ui/Button.java @@ -36,7 +36,7 @@ public class Button extends AbstractField { * */ public Button() { - setValue(new Boolean(false)); + setValue(Boolean.FALSE); setSwitchMode(false); } @@ -96,7 +96,7 @@ public class Button extends AbstractField { */ public Button(String caption, boolean initialState) { setCaption(caption); - setValue(new Boolean(initialState)); + setValue(Boolean.valueOf(initialState)); setSwitchMode(true); } @@ -167,7 +167,7 @@ public class Button extends AbstractField { // If the button is true for some reason, release it if (oldValue.booleanValue()) { - setValue(new Boolean(false)); + setValue(Boolean.FALSE); } } } @@ -194,7 +194,7 @@ public class Button extends AbstractField { if (!switchMode) { setImmediate(true); if (booleanValue()) { - setValue(new Boolean(false)); + setValue(Boolean.FALSE); } } }