]> source.dussan.org Git - gwtquery.git/commitdiff
PMD warning: Avoid instantiating Boolean objects
authorManolo Carrasco <manolo@apache.org>
Thu, 10 Nov 2011 07:55:26 +0000 (07:55 +0000)
committerManolo Carrasco <manolo@apache.org>
Thu, 10 Nov 2011 07:55:26 +0000 (07:55 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/QueuePlugin.java

index 92deee6f32e1cabdd35934e7a76de0c0af2131ab..3a461a2723c0b669a211bd6dc09687c10feddc4f 100644 (file)
@@ -314,7 +314,7 @@ public class QueuePlugin<T extends 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);
         }