From eb5ceb54e368cfcf44d05290850355c8c86d75cf Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Thu, 10 Nov 2011 07:55:26 +0000 Subject: [PATCH] PMD warning: Avoid instantiating Boolean objects --- .../java/com/google/gwt/query/client/plugins/QueuePlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5