From: Manolo Carrasco Date: Thu, 10 Nov 2011 07:55:26 +0000 (+0000) Subject: PMD warning: Avoid instantiating Boolean objects X-Git-Tag: release-1.3.2~143 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eb5ceb54e368cfcf44d05290850355c8c86d75cf;p=gwtquery.git PMD warning: Avoid instantiating Boolean objects --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java index 92deee6f..3a461a27 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java @@ -314,7 +314,7 @@ public class QueuePlugin> extends GQuery { if (f != null) { if (f instanceof Function) { // pass jumpToEnd to Animation.onCancel() via the element's data object - $(elem).data(JUMP_TO_END, new Boolean(jumpToEnd)); + $(elem).data(JUMP_TO_END, Boolean.valueOf(jumpToEnd)); ((Function) f).cancel(elem); $(elem).removeData(JUMP_TO_END); }