From 791e62c0ad78c03228882421a239d71b9f073401 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Thu, 1 Jan 2015 20:03:28 +0100 Subject: Organize imports, remove empty lines --- .../main/java/com/google/gwt/query/client/GQ.java | 8 ++--- .../com/google/gwt/query/client/LazyGQuery.java | 41 ++-------------------- .../com/google/gwt/query/client/Predicate.java | 1 - .../java/com/google/gwt/query/client/Promise.java | 1 - .../java/com/google/gwt/query/client/Selector.java | 1 + .../com/google/gwt/query/client/builders/Name.java | 1 + .../gwt/query/client/builders/XmlBuilder.java | 4 +-- .../gwt/query/client/builders/XmlBuilderBase.java | 4 +-- .../client/css/BackgroundAttachmentProperty.java | 1 - .../query/client/css/BackgroundImageProperty.java | 1 - .../gwt/query/client/css/BorderProperty.java | 1 - .../gwt/query/client/css/BorderStyleProperty.java | 1 - .../gwt/query/client/css/BorderWidthProperty.java | 1 - .../java/com/google/gwt/query/client/css/CSS.java | 18 ---------- .../gwt/query/client/css/CaptionSideProperty.java | 1 - .../google/gwt/query/client/css/ClearProperty.java | 1 - .../google/gwt/query/client/css/ClipProperty.java | 1 - .../google/gwt/query/client/css/CssProperty.java | 2 +- .../gwt/query/client/css/DirectionProperty.java | 1 - .../gwt/query/client/css/EdgePositionProperty.java | 1 - .../gwt/query/client/css/EmptyCellsProperty.java | 1 - .../gwt/query/client/css/HeightProperty.java | 1 - .../query/client/css/LetterSpacingProperty.java | 1 - .../gwt/query/client/css/LineHeightProperty.java | 1 - .../client/css/ListStylePositionProperty.java | 1 - .../gwt/query/client/css/ListStyleProperty.java | 1 - .../gwt/query/client/css/MarginProperty.java | 2 -- .../query/client/css/MultipleValueCssSetter.java | 1 - .../gwt/query/client/css/OutlineProperty.java | 1 - .../gwt/query/client/css/PaddingProperty.java | 2 -- .../gwt/query/client/css/PositionProperty.java | 1 - .../gwt/query/client/css/SimpleCssSetter.java | 1 - .../gwt/query/client/css/TextAlignProperty.java | 1 - .../query/client/css/TextDecorationProperty.java | 1 - .../gwt/query/client/css/TextIdentProperty.java | 1 - .../query/client/css/TextTransformProperty.java | 1 - .../gwt/query/client/css/UnicodeBidiProperty.java | 1 - .../com/google/gwt/query/client/css/UriValue.java | 1 - .../query/client/css/VerticalAlignProperty.java | 1 - .../gwt/query/client/css/VisibilityProperty.java | 1 - .../gwt/query/client/css/WhiteSpaceProperty.java | 1 - .../google/gwt/query/client/css/WidthProperty.java | 1 - .../gwt/query/client/css/WordSpacingProperty.java | 1 - .../gwt/query/client/impl/SelectorEngine.java | 7 ++-- .../client/impl/SelectorEngineCssToXPath.java | 4 +-- .../query/client/impl/SelectorEngineNativeIE8.java | 1 - .../query/client/impl/SelectorEngineNativeMin.java | 1 - .../client/impl/SelectorEngineNativeMinIE8.java | 2 -- .../query/client/impl/SelectorEngineSizzle.java | 1 - .../query/client/impl/SelectorEngineSizzleIE.java | 1 - .../google/gwt/query/client/js/JsObjectArray.java | 1 - .../com/google/gwt/query/client/js/JsUtils.java | 1 - .../gwt/query/client/plugins/LazyEffects.java | 11 +----- .../gwt/query/client/plugins/LazyEvents.java | 9 ----- .../gwt/query/client/plugins/LazyWidgets.java | 14 +------- .../gwt/query/client/plugins/MousePlugin.java | 3 -- .../gwt/query/client/plugins/QueuePlugin.java | 6 ++-- .../google/gwt/query/client/plugins/UiPlugin.java | 3 -- .../google/gwt/query/client/plugins/Widgets.java | 6 ++-- .../google/gwt/query/client/plugins/ajax/Ajax.java | 2 +- .../query/client/plugins/ajax/AjaxTransportJs.java | 1 - .../query/client/plugins/deferred/Callbacks.java | 4 +-- .../query/client/plugins/deferred/Deferred.java | 4 ++- .../client/plugins/deferred/PromiseReqBuilder.java | 2 +- .../gwt/query/client/plugins/effects/Fx.java | 2 -- .../plugins/effects/PropertiesAnimation.java | 1 - .../query/client/plugins/effects/Transitions.java | 12 +++---- .../plugins/effects/TransitionsAnimation.java | 1 - .../client/plugins/events/EventsListener.java | 7 ++-- .../gwt/query/client/plugins/events/GqEvent.java | 1 - .../plugins/widgets/ButtonWidgetFactory.java | 2 -- .../plugins/widgets/HtmlPanelWidgetFactory.java | 1 - .../client/plugins/widgets/LabelWidgetFactory.java | 1 - .../client/plugins/widgets/WidgetsHtmlPanel.java | 1 - .../query/client/plugins/widgets/WidgetsUtils.java | 4 +-- .../google/gwt/query/rebind/BrowserGenerator.java | 4 +-- .../gwt/query/rebind/JsniBundleGenerator.java | 20 +++++------ .../gwt/query/rebind/JsonBuilderGenerator.java | 18 +++++----- .../query/rebind/SelectorGeneratorCssToXPath.java | 18 +++++----- .../gwt/query/rebind/XmlBuilderGenerator.java | 4 +-- .../com/google/gwt/query/vm/AjaxTransportJre.java | 16 ++++----- .../java/com/google/gwt/query/vm/ResponseJre.java | 6 ++-- .../requestfactory/shared/gquery/PromiseRF.java | 13 ++++--- 83 files changed, 92 insertions(+), 240 deletions(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQ.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQ.java index b3f7d1ab..9db9ea69 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQ.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQ.java @@ -15,11 +15,6 @@ */ package com.google.gwt.query.client; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; - -import org.apache.http.MethodNotSupportedException; - import com.google.gwt.query.client.builders.JsonBuilder; import com.google.gwt.query.client.builders.JsonFactory; import com.google.gwt.query.client.plugins.ajax.Ajax.AjaxTransport; @@ -27,6 +22,9 @@ import com.google.gwt.query.client.plugins.ajax.AjaxTransportJs; import com.google.gwt.query.vm.AjaxTransportJre; import com.google.gwt.query.vm.JsonFactoryJre; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; + /** * A set of useful methods for gQuery which can be run in browser or JVM. */ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java index 18a25709..8addc6db 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java @@ -12,62 +12,25 @@ * the License. */ package com.google.gwt.query.client; -import static com.google.gwt.query.client.plugins.QueuePlugin.Queue; -import com.google.gwt.core.client.GWT; -import com.google.gwt.core.client.JavaScriptObject; -import com.google.gwt.core.client.JsArray; -import com.google.gwt.core.client.JsArrayMixed; -import com.google.gwt.core.client.JsArrayString; -import com.google.gwt.core.client.ScriptInjector; -import com.google.gwt.dom.client.BodyElement; -import com.google.gwt.dom.client.ButtonElement; -import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Element; -import com.google.gwt.dom.client.InputElement; import com.google.gwt.dom.client.NativeEvent; import com.google.gwt.dom.client.Node; import com.google.gwt.dom.client.NodeList; -import com.google.gwt.dom.client.OptionElement; -import com.google.gwt.dom.client.SelectElement; -import com.google.gwt.dom.client.Style.Display; import com.google.gwt.dom.client.Style.HasCssName; -import com.google.gwt.dom.client.TextAreaElement; +import com.google.gwt.query.client.GQuery.Offset; import com.google.gwt.query.client.css.CSS; import com.google.gwt.query.client.css.HasCssValue; import com.google.gwt.query.client.css.TakesCssValue; import com.google.gwt.query.client.css.TakesCssValue.CssSetter; -import com.google.gwt.query.client.impl.AttributeImpl; -import com.google.gwt.query.client.impl.DocumentStyleImpl; import com.google.gwt.query.client.impl.SelectorEngine; -import com.google.gwt.query.client.js.JsCache; -import com.google.gwt.query.client.js.JsMap; import com.google.gwt.query.client.js.JsNamedArray; import com.google.gwt.query.client.js.JsNodeArray; -import com.google.gwt.query.client.js.JsObjectArray; -import com.google.gwt.query.client.js.JsUtils; import com.google.gwt.query.client.plugins.Effects; -import com.google.gwt.query.client.plugins.Events; -import com.google.gwt.query.client.plugins.Plugin; -import com.google.gwt.query.client.plugins.Widgets; -import com.google.gwt.query.client.plugins.ajax.Ajax; -import com.google.gwt.query.client.plugins.ajax.Ajax.Settings; -import com.google.gwt.query.client.plugins.deferred.Deferred; import com.google.gwt.query.client.plugins.effects.PropertiesAnimation.Easing; -import com.google.gwt.query.client.plugins.events.EventsListener; -import com.google.gwt.query.client.plugins.widgets.WidgetsUtils; -import com.google.gwt.regexp.shared.RegExp; -import com.google.gwt.user.client.DOM; -import com.google.gwt.user.client.Event; -import com.google.gwt.user.client.EventListener; -import com.google.gwt.user.client.Window; -import com.google.gwt.user.client.ui.IsWidget; import com.google.gwt.user.client.ui.Widget; -import java.util.ArrayList; -import java.util.Arrays; + import java.util.List; import java.util.Map; -import com.google.gwt.query.client.GQuery.*; -import com.google.gwt.query.client.LazyBase; public interface LazyGQuery extends LazyBase{ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Predicate.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Predicate.java index aa17d2b9..796753ce 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Predicate.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Predicate.java @@ -38,5 +38,4 @@ public class Predicate { public boolean f(T e, int index) { return false; } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Promise.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Promise.java index 2734458e..193ac624 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Promise.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Promise.java @@ -13,7 +13,6 @@ */ package com.google.gwt.query.client; -import com.google.gwt.query.client.Function; /** * Definition of jquery Promise interface used in gquery. diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Selector.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Selector.java index fbdcff73..38f51946 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Selector.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Selector.java @@ -16,6 +16,7 @@ package com.google.gwt.query.client; import static java.lang.annotation.ElementType.METHOD; + import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/Name.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/Name.java index 0c75590d..64f44c59 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/Name.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/Name.java @@ -16,6 +16,7 @@ package com.google.gwt.query.client.builders; import static java.lang.annotation.ElementType.METHOD; + import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilder.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilder.java index 930e7ef9..42ee3af3 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilder.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilder.java @@ -15,10 +15,10 @@ */ package com.google.gwt.query.client.builders; -import java.util.Date; - import com.google.gwt.dom.client.Element; +import java.util.Date; + /** * Tagging interface used to generate XmlBuilder classes. */ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilderBase.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilderBase.java index 82bf32bd..c8a63495 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilderBase.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/XmlBuilderBase.java @@ -17,8 +17,6 @@ package com.google.gwt.query.client.builders; import static com.google.gwt.query.client.GQuery.$; -import java.util.Date; - import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.JsDate; import com.google.gwt.dom.client.Element; @@ -26,6 +24,8 @@ import com.google.gwt.query.client.GQuery; import com.google.gwt.query.client.Properties; import com.google.gwt.query.client.js.JsUtils; +import java.util.Date; + public abstract class XmlBuilderBase> implements XmlBuilder { //TODO empty document diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundAttachmentProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundAttachmentProperty.java index 83e48f3b..6460b350 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundAttachmentProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundAttachmentProperty.java @@ -60,5 +60,4 @@ public class BackgroundAttachmentProperty extends private BackgroundAttachmentProperty() { super(CSS_PROPERTY); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundImageProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundImageProperty.java index 126f1491..b0924e84 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundImageProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundImageProperty.java @@ -29,5 +29,4 @@ public class BackgroundImageProperty extends CssProperty { private BackgroundImageProperty() { super(CSS_PROPERTY); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderProperty.java index 97b79f36..c22973f4 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderProperty.java @@ -71,5 +71,4 @@ public class BorderProperty implements HasCssValue { RGBColor borderColor) { return new MultipleValueCssSetter(getCssName(), borderWidth, borderStyle, borderColor); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderStyleProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderStyleProperty.java index 714da3f8..385880aa 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderStyleProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderStyleProperty.java @@ -106,5 +106,4 @@ public class BorderStyleProperty extends private BorderStyleProperty(String value) { super(value); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderWidthProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderWidthProperty.java index be5b478a..51cb8110 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderWidthProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BorderWidthProperty.java @@ -46,7 +46,6 @@ public class BorderWidthProperty extends public String getCssName() { return name().toLowerCase(); } - } private static final String BORDER_BOTTOM_WIDTH_PROPERTY = "borderBottomWidth"; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CSS.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CSS.java index 1ecf7ebf..f55e648d 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CSS.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CSS.java @@ -15,37 +15,20 @@ */ package com.google.gwt.query.client.css; -import com.google.gwt.dom.client.Style.Cursor; -import com.google.gwt.dom.client.Style.Display; -import com.google.gwt.dom.client.Style.FontStyle; -import com.google.gwt.dom.client.Style.FontWeight; -import com.google.gwt.dom.client.Style.ListStyleType; -import com.google.gwt.dom.client.Style.Overflow; -import com.google.gwt.dom.client.Style.Position; -import com.google.gwt.dom.client.Style.TextDecoration; import com.google.gwt.dom.client.Style.VerticalAlign; -import com.google.gwt.dom.client.Style.Visibility; import com.google.gwt.query.client.css.BackgroundAttachmentProperty.BackgroundAttachment; import com.google.gwt.query.client.css.BackgroundPositionProperty.BackgroundPosition; import com.google.gwt.query.client.css.BackgroundRepeatProperty.BackgroundRepeat; import com.google.gwt.query.client.css.BorderCollapseProperty.BorderCollapse; import com.google.gwt.query.client.css.BorderSpacingProperty.BorderSpacing; -import com.google.gwt.query.client.css.BorderStyleProperty.BorderStyle; import com.google.gwt.query.client.css.BorderWidthProperty.BorderWidth; import com.google.gwt.query.client.css.CaptionSideProperty.CaptionSide; -import com.google.gwt.query.client.css.ClearProperty.Clear; -import com.google.gwt.query.client.css.ClipProperty.Shape; -import com.google.gwt.query.client.css.DirectionProperty.Direction; import com.google.gwt.query.client.css.EmptyCellsProperty.EmptyCells; -import com.google.gwt.query.client.css.FontSizeProperty.FontSize; import com.google.gwt.query.client.css.FontVariantProperty.FontVariant; import com.google.gwt.query.client.css.ListStylePositionProperty.ListStylePosition; import com.google.gwt.query.client.css.MarginProperty.ShorthandMarginProperty; import com.google.gwt.query.client.css.PaddingProperty.ShorthandPaddingProperty; -import com.google.gwt.query.client.css.TextAlignProperty.TextAlign; -import com.google.gwt.query.client.css.TextTransformProperty.TextTransform; import com.google.gwt.query.client.css.UnicodeBidiProperty.UnicodeBidi; -import com.google.gwt.query.client.css.WhiteSpaceProperty.WhiteSpace; /** * This class lists all CSS properties. @@ -1315,5 +1298,4 @@ public class CSS { ZIndexProperty.init(); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CaptionSideProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CaptionSideProperty.java index a1fdce0a..ecb6cc93 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CaptionSideProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CaptionSideProperty.java @@ -63,5 +63,4 @@ public class CaptionSideProperty extends private CaptionSideProperty() { super(CSS_PROPERTY); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ClearProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ClearProperty.java index 97cfa4f6..a69c3a78 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ClearProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ClearProperty.java @@ -52,7 +52,6 @@ public class ClearProperty extends CssProperty { public String getCssName() { return name().toLowerCase(); } - } private static final String CSS_PROPERTY = "clear"; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ClipProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ClipProperty.java index 83dfb09e..e985ea5c 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ClipProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ClipProperty.java @@ -48,7 +48,6 @@ public class ClipProperty extends CssProperty { public String getCssName() { return value; } - } private static final String CSS_PROPERTY = "clip"; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CssProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CssProperty.java index 59cfc0c3..342c67b6 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CssProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/CssProperty.java @@ -20,7 +20,7 @@ import com.google.gwt.dom.client.Style; import com.google.gwt.dom.client.Style.HasCssName; /** - * Base class for Css property + * Base class for Css property. * * @param Class of the value associated with the css property */ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/DirectionProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/DirectionProperty.java index 601ace2a..dd6a5a8f 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/DirectionProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/DirectionProperty.java @@ -46,7 +46,6 @@ public class DirectionProperty extends public String getCssName() { return name().toLowerCase(); } - } private static final String CSS_PROPERTY = "direction"; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/EdgePositionProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/EdgePositionProperty.java index 54b3fda3..c2066bcb 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/EdgePositionProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/EdgePositionProperty.java @@ -30,5 +30,4 @@ public class EdgePositionProperty extends CssProperty { private EdgePositionProperty(String value) { super(value); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/EmptyCellsProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/EmptyCellsProperty.java index e31746a7..55c8926f 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/EmptyCellsProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/EmptyCellsProperty.java @@ -55,5 +55,4 @@ public class EmptyCellsProperty extends private EmptyCellsProperty() { super(CSS_PROPERTY); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/HeightProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/HeightProperty.java index 5ffcced5..3aa8e163 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/HeightProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/HeightProperty.java @@ -34,5 +34,4 @@ public class HeightProperty extends CssProperty { private HeightProperty(String cssName) { super(cssName); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/LetterSpacingProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/LetterSpacingProperty.java index a5e7286b..adf0a09c 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/LetterSpacingProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/LetterSpacingProperty.java @@ -30,5 +30,4 @@ public class LetterSpacingProperty extends CssProperty { private LetterSpacingProperty() { super(CSS_PROPERTY); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/LineHeightProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/LineHeightProperty.java index 112a1373..70b35cc6 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/LineHeightProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/LineHeightProperty.java @@ -57,5 +57,4 @@ public class LineHeightProperty extends CssProperty implements public CssSetter with(Double value) { return new SimpleCssSetter(CSS_PROPERTY, value != null ? "" + value : null); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ListStylePositionProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ListStylePositionProperty.java index 0fcb4c2e..cbac528e 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ListStylePositionProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ListStylePositionProperty.java @@ -45,7 +45,6 @@ public class ListStylePositionProperty extends public String getCssName() { return name().toLowerCase(); } - } private static final String CSS_PROPERTY = "listStylePosition"; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ListStyleProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ListStyleProperty.java index 5eed56a8..4410ff75 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ListStyleProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ListStyleProperty.java @@ -52,5 +52,4 @@ public class ListStyleProperty implements HasCssValue { return new MultipleValueCssSetter(CSS_PROPERTY, listStyleType, listStylePosition, listStyleImage); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MarginProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MarginProperty.java index 00a5b16e..a6cf8e41 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MarginProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MarginProperty.java @@ -70,7 +70,6 @@ public class MarginProperty extends CssProperty { margin3, margin4); } - } private static String MARGIN_BOTTOM_PROPERTY = "marginBottom"; @@ -90,5 +89,4 @@ public class MarginProperty extends CssProperty { private MarginProperty(String cssName) { super(cssName); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MultipleValueCssSetter.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MultipleValueCssSetter.java index a7dd7765..50305d01 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MultipleValueCssSetter.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/MultipleValueCssSetter.java @@ -36,5 +36,4 @@ public class MultipleValueCssSetter extends SimpleCssSetter { private static String notNull(HasCssName value) { return value != null ? value.getCssName() + " " : ""; } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineProperty.java index a723349a..848750fc 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineProperty.java @@ -59,5 +59,4 @@ public class OutlineProperty implements Length outlineWidth) { return new MultipleValueCssSetter(CSS_PROPERTY, outlineColor, outlineStyle, outlineWidth); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/PaddingProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/PaddingProperty.java index 47474848..8dbca5d3 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/PaddingProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/PaddingProperty.java @@ -72,7 +72,6 @@ public class PaddingProperty extends CssProperty { padding3, padding4); } - } private static String PADDING_BOTTOM_PROPERTY = "paddingBottom"; @@ -92,5 +91,4 @@ public class PaddingProperty extends CssProperty { private PaddingProperty(String cssName) { super(cssName); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/PositionProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/PositionProperty.java index c89697c3..e01fc35b 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/PositionProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/PositionProperty.java @@ -32,5 +32,4 @@ public class PositionProperty extends CssProperty { private PositionProperty() { super(CSS_PROPERTY); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/SimpleCssSetter.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/SimpleCssSetter.java index 03297f7c..468a1edf 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/SimpleCssSetter.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/SimpleCssSetter.java @@ -43,5 +43,4 @@ public class SimpleCssSetter implements CssSetter { e.getStyle().setProperty(property, value != null ? value : ""); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextAlignProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextAlignProperty.java index bd245ae9..64101e8f 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextAlignProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextAlignProperty.java @@ -66,5 +66,4 @@ public class TextAlignProperty extends private TextAlignProperty() { super(CSS_PROPERTY); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextDecorationProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextDecorationProperty.java index e89a9ec8..c6b37f60 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextDecorationProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextDecorationProperty.java @@ -41,5 +41,4 @@ public class TextDecorationProperty extends CssProperty { private TextDecorationProperty() { super(CSS_PROPERTY); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextIdentProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextIdentProperty.java index b7c1deb7..958932af 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextIdentProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextIdentProperty.java @@ -33,5 +33,4 @@ public class TextIdentProperty extends CssProperty { private TextIdentProperty() { super(CSS_PROPERTY); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextTransformProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextTransformProperty.java index 5d80ca34..c54f9266 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextTransformProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/TextTransformProperty.java @@ -55,5 +55,4 @@ public class TextTransformProperty extends private TextTransformProperty() { super(CSS_PROPERTY); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UnicodeBidiProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UnicodeBidiProperty.java index 9d017cc8..df0a3d9f 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UnicodeBidiProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UnicodeBidiProperty.java @@ -63,7 +63,6 @@ public class UnicodeBidiProperty extends public String getCssName() { return name().toLowerCase().replace('_', '-'); } - } private static final String CSS_PROPERTY = "unicodeBidi"; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UriValue.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UriValue.java index b5ae719e..fb03f115 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UriValue.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/UriValue.java @@ -38,5 +38,4 @@ public class UriValue implements HasCssName { public String getCssName() { return value; } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/VerticalAlignProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/VerticalAlignProperty.java index 85a60f19..f7aac5d4 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/VerticalAlignProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/VerticalAlignProperty.java @@ -37,5 +37,4 @@ public class VerticalAlignProperty extends CssProperty public CssSetter with(Length value) { return new SimpleCssSetter(this, value); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/VisibilityProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/VisibilityProperty.java index 8cb4c59e..c54e1c76 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/VisibilityProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/VisibilityProperty.java @@ -33,5 +33,4 @@ public class VisibilityProperty extends CssProperty { private VisibilityProperty() { super(CSS_PROPERTY); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WhiteSpaceProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WhiteSpaceProperty.java index d944f0b9..6821b085 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WhiteSpaceProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WhiteSpaceProperty.java @@ -73,5 +73,4 @@ public class WhiteSpaceProperty extends private WhiteSpaceProperty() { super(CSS_PROPERTY); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WidthProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WidthProperty.java index 865eae3c..2cfff008 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WidthProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WidthProperty.java @@ -33,5 +33,4 @@ public class WidthProperty extends CssProperty { private WidthProperty(String cssName) { super(cssName); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WordSpacingProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WordSpacingProperty.java index c5552cd3..e62a6aad 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WordSpacingProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/WordSpacingProperty.java @@ -29,5 +29,4 @@ public class WordSpacingProperty extends CssProperty { private WordSpacingProperty() { super(CSS_PROPERTY); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngine.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngine.java index 967961e8..858ee141 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngine.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngine.java @@ -15,9 +15,8 @@ */ package com.google.gwt.query.client.impl; -import static com.google.gwt.query.client.GQuery.*; - -import java.util.HashSet; +import static com.google.gwt.query.client.GQuery.document; +import static com.google.gwt.query.client.GQuery.window; import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.Document; @@ -32,6 +31,8 @@ import com.google.gwt.query.client.js.JsUtils; import com.google.gwt.regexp.shared.MatchResult; import com.google.gwt.regexp.shared.RegExp; +import java.util.HashSet; + /** * Core Selector engine functions, and native JS utility functions. */ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java index e5fa3fa4..2492214d 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java @@ -17,8 +17,6 @@ package com.google.gwt.query.client.impl; import static com.google.gwt.query.client.GQuery.console; -import java.util.ArrayList; - import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.JsArray; import com.google.gwt.dom.client.Element; @@ -30,6 +28,8 @@ import com.google.gwt.query.client.js.JsUtils; import com.google.gwt.regexp.shared.MatchResult; import com.google.gwt.regexp.shared.RegExp; +import java.util.ArrayList; + /** * Runtime selector engine implementation which translates selectors to XPath * and delegates to document.evaluate(). diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNativeIE8.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNativeIE8.java index 42c8dcfe..5d16d57c 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNativeIE8.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNativeIE8.java @@ -42,5 +42,4 @@ public class SelectorEngineNativeIE8 extends SelectorEngineSizzleIE { } } } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNativeMin.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNativeMin.java index efc930eb..100d9e85 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNativeMin.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNativeMin.java @@ -40,5 +40,4 @@ public class SelectorEngineNativeMin extends SelectorEngineImpl { return null; } } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNativeMinIE8.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNativeMinIE8.java index 604ce517..c0bfbdad 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNativeMinIE8.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNativeMinIE8.java @@ -17,7 +17,6 @@ package com.google.gwt.query.client.impl; import static com.google.gwt.query.client.GQuery.console; -import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.Node; import com.google.gwt.dom.client.NodeList; @@ -41,5 +40,4 @@ public class SelectorEngineNativeMinIE8 extends SelectorEngineImpl { return null; } } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzle.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzle.java index 9a1591a9..718883bc 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzle.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzle.java @@ -1037,7 +1037,6 @@ function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { match = true; break; } - } else if ( GQS.filter( cur, [elem] ).length > 0 ) { match = elem; break; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzleIE.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzleIE.java index 741c785a..b4130f97 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzleIE.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineSizzleIE.java @@ -879,7 +879,6 @@ function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { match = true; break; } - } else if ( IES.filter( cur, [elem] ).length > 0 ) { match = elem; break; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsObjectArray.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsObjectArray.java index c5a6062c..022d42a1 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsObjectArray.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsObjectArray.java @@ -85,5 +85,4 @@ public final class JsObjectArray extends JavaScriptObject { public Object[] elements() { return c().elements(); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java index 82e2ae79..f59a2b75 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java @@ -19,7 +19,6 @@ import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.JsArray; import com.google.gwt.core.client.JsArrayMixed; -import com.google.gwt.core.client.JsArrayString; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.Node; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEffects.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEffects.java index 1b7d90bf..5178862d 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEffects.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEffects.java @@ -14,19 +14,10 @@ * the License. */ package com.google.gwt.query.client.plugins; -import com.google.gwt.animation.client.Animation; -import com.google.gwt.dom.client.Element; import com.google.gwt.query.client.Function; -import com.google.gwt.query.client.GQuery; +import com.google.gwt.query.client.LazyBase; import com.google.gwt.query.client.Properties; -import com.google.gwt.query.client.plugins.effects.ClipAnimation; -import com.google.gwt.query.client.plugins.effects.ClipAnimation.Direction; -import com.google.gwt.query.client.plugins.effects.Fx; import com.google.gwt.query.client.plugins.effects.PropertiesAnimation.Easing; -import com.google.gwt.query.client.plugins.effects.PropertiesAnimation.EasingCurve; -import com.google.gwt.query.client.plugins.effects.TransitionsAnimation.TransitionsClipAnimation; -import com.google.gwt.query.client.GQuery.*; -import com.google.gwt.query.client.LazyBase; public interface LazyEffects extends LazyBase{ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEvents.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEvents.java index 081e1702..7ba49eed 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEvents.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEvents.java @@ -12,18 +12,9 @@ * the License. */ package com.google.gwt.query.client.plugins; -import com.google.gwt.dom.client.Element; -import com.google.gwt.dom.client.FormElement; import com.google.gwt.dom.client.NativeEvent; -import com.google.gwt.dom.client.Node; import com.google.gwt.query.client.Function; import com.google.gwt.query.client.GQuery; -import com.google.gwt.query.client.js.JsUtils; -import com.google.gwt.query.client.plugins.events.EventsListener; -import com.google.gwt.query.client.plugins.events.EventsListener.SpecialEvent; -import com.google.gwt.query.client.plugins.events.GqEvent; -import com.google.gwt.user.client.Event; -import com.google.gwt.query.client.GQuery.*; import com.google.gwt.query.client.LazyBase; public interface LazyEvents extends LazyBase{ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyWidgets.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyWidgets.java index 8c40c293..fac96f09 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyWidgets.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyWidgets.java @@ -14,27 +14,15 @@ * the License. */ package com.google.gwt.query.client.plugins; -import java.util.ArrayList; -import java.util.List; -import com.google.gwt.dom.client.Element; -import com.google.gwt.query.client.GQuery; -import com.google.gwt.query.client.plugins.widgets.ButtonWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.HtmlPanelWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.LabelWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.PasswordTextBoxWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.TextAreaWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.TextBoxWidgetFactory; +import com.google.gwt.query.client.LazyBase; import com.google.gwt.query.client.plugins.widgets.WidgetFactory; import com.google.gwt.query.client.plugins.widgets.WidgetInitializer; -import com.google.gwt.query.client.plugins.widgets.WidgetsUtils; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.PasswordTextBox; import com.google.gwt.user.client.ui.TextArea; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.Widget; -import com.google.gwt.query.client.GQuery.*; -import com.google.gwt.query.client.LazyBase; public interface LazyWidgets extends LazyBase{ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/MousePlugin.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/MousePlugin.java index 9dbbc671..c7b8f67d 100755 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/MousePlugin.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/MousePlugin.java @@ -96,7 +96,6 @@ public abstract class MousePlugin extends UiPlugin { } }); } - } /** @@ -255,7 +254,6 @@ public abstract class MousePlugin extends UiPlugin { }); } - } private boolean delayConditionMet() { @@ -333,5 +331,4 @@ public abstract class MousePlugin extends UiPlugin { return e.getClientY(); } } - } 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 89822ef0..fe384dd3 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 @@ -15,9 +15,6 @@ */ package com.google.gwt.query.client.plugins; -import java.util.LinkedList; -import java.util.Queue; - import com.google.gwt.dom.client.Element; import com.google.gwt.query.client.Function; import com.google.gwt.query.client.GQuery; @@ -25,6 +22,9 @@ import com.google.gwt.query.client.Promise; import com.google.gwt.query.client.plugins.deferred.Callbacks; import com.google.gwt.user.client.Timer; +import java.util.LinkedList; +import java.util.Queue; + /** * Class used in plugins which need a queue system. */ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/UiPlugin.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/UiPlugin.java index eb589bbd..d2f01187 100755 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/UiPlugin.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/UiPlugin.java @@ -111,7 +111,6 @@ public class UiPlugin extends GQuery { + e.css("overflow-y", true); return overflow.contains("auto") || overflow.contains("scroll"); } - } @SuppressWarnings("unused") @@ -123,7 +122,6 @@ public class UiPlugin extends GQuery { return ("absolute".equals(position) || "relative".equals(position) || "static" .equals(position)); } - } public static Class GQueryUi = UiPlugin.class; @@ -176,5 +174,4 @@ public class UiPlugin extends GQuery { protected void trigger(GwtEvent e, Function callback, Element element) { trigger(e, callback, element, eventBus); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Widgets.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Widgets.java index 2eaf38c2..352e0e04 100755 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Widgets.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Widgets.java @@ -15,9 +15,6 @@ */ package com.google.gwt.query.client.plugins; -import java.util.ArrayList; -import java.util.List; - import com.google.gwt.dom.client.Element; import com.google.gwt.query.client.GQuery; import com.google.gwt.query.client.plugins.widgets.ButtonWidgetFactory; @@ -36,6 +33,9 @@ import com.google.gwt.user.client.ui.TextArea; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.Widget; +import java.util.ArrayList; +import java.util.List; + /** * Widgets plugin for Gwt Query. Be careful, this plugin is still experimental. * The api can change in next releases. diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java index 4fc1cba7..394ec58f 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java @@ -21,10 +21,10 @@ import com.google.gwt.core.client.ScriptInjector; import com.google.gwt.dom.client.Element; import com.google.gwt.http.client.Request; import com.google.gwt.http.client.Response; -import com.google.gwt.query.client.IsProperties; import com.google.gwt.query.client.Function; import com.google.gwt.query.client.GQ; import com.google.gwt.query.client.GQuery; +import com.google.gwt.query.client.IsProperties; import com.google.gwt.query.client.Promise; import com.google.gwt.query.client.builders.JsonBuilder; import com.google.gwt.query.client.js.JsUtils; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/AjaxTransportJs.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/AjaxTransportJs.java index 8ab32ac6..07c204ea 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/AjaxTransportJs.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/AjaxTransportJs.java @@ -62,5 +62,4 @@ public class AjaxTransportJs implements AjaxTransport { public Promise getXhr(Settings settings) { return new PromiseReqBuilder(settings); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Callbacks.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Callbacks.java index 24654b53..ce0112e1 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Callbacks.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Callbacks.java @@ -13,12 +13,12 @@ */ package com.google.gwt.query.client.plugins.deferred; +import com.google.gwt.query.client.Function; + import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.google.gwt.query.client.Function; - /** * Implementation of jQuery.Callbacks for gwtquery. */ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Deferred.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Deferred.java index 91c899a5..5cc99f03 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Deferred.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/Deferred.java @@ -15,7 +15,9 @@ */ package com.google.gwt.query.client.plugins.deferred; -import static com.google.gwt.query.client.Promise.*; +import static com.google.gwt.query.client.Promise.PENDING; +import static com.google.gwt.query.client.Promise.REJECTED; +import static com.google.gwt.query.client.Promise.RESOLVED; import com.google.gwt.query.client.Function; import com.google.gwt.query.client.GQuery; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilder.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilder.java index 9f72b1b5..14ff309b 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilder.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilder.java @@ -36,8 +36,8 @@ import com.google.gwt.http.client.RequestCallback; import com.google.gwt.http.client.RequestException; import com.google.gwt.http.client.RequestPermissionException; import com.google.gwt.http.client.Response; -import com.google.gwt.query.client.IsProperties; import com.google.gwt.query.client.Function; +import com.google.gwt.query.client.IsProperties; import com.google.gwt.query.client.js.JsCache; import com.google.gwt.query.client.js.JsUtils; import com.google.gwt.query.client.plugins.ajax.Ajax.Settings; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Fx.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Fx.java index ddb865ab..3ece61d6 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Fx.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Fx.java @@ -246,7 +246,6 @@ public class Fx { } return result; } - } public String cssprop; @@ -288,5 +287,4 @@ public class Fx { + " value=" + value + " start=" + start + " end=" + end + " unit=" + unit).replaceAll("\\.0([^\\d])", "$1"); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/PropertiesAnimation.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/PropertiesAnimation.java index 0c9d109c..2c4c6f76 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/PropertiesAnimation.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/PropertiesAnimation.java @@ -365,5 +365,4 @@ public class PropertiesAnimation extends GQAnimation { protected double interpolate(double progress) { return easing.interpolate(progress); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java index 693990d5..d5f15bbe 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java @@ -28,12 +28,6 @@ */ package com.google.gwt.query.client.plugins.effects; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map.Entry; - import com.google.gwt.core.client.Duration; import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.Style; @@ -49,6 +43,12 @@ import com.google.gwt.regexp.shared.RegExp; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Timer; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map.Entry; + /** * Transitions and transformation plugin for gQuery. * diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/TransitionsAnimation.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/TransitionsAnimation.java index a671d92e..9cc24342 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/TransitionsAnimation.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/TransitionsAnimation.java @@ -183,7 +183,6 @@ public class TransitionsAnimation extends PropertiesAnimation { trsStart = "" + start; g.css(key, start + unit); } - } else { trsStart = ""; trsEnd = val; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java index fbc25013..0b6478a5 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java @@ -13,6 +13,8 @@ */ package com.google.gwt.query.client.plugins.events; +import static com.google.gwt.query.client.GQuery.$; + import com.google.gwt.core.client.Duration; import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.EventTarget; @@ -31,8 +33,6 @@ import com.google.gwt.user.client.EventListener; import java.util.ArrayList; import java.util.List; -import static com.google.gwt.query.client.GQuery.$; - /** * This class implements an event queue instance for one Element. The queue instance is configured * as the default event listener in GWT. @@ -324,7 +324,6 @@ public class EventsListener implements EventListener { if (newFunctions.length() > 0) { bindFunctionBySelector.put(cssSelector, newFunctions); } - } } @@ -370,7 +369,6 @@ public class EventsListener implements EventListener { return Element.as(eventTarget); } - } public static final String EVENT_DATA = "___event_datas"; @@ -553,7 +551,6 @@ public class EventsListener implements EventListener { die(b, nameSpace, eventName, originalEventName, cssSelector); } - } public void die(int eventbits, String nameSpace, String eventName, String originalEventName, diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/GqEvent.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/GqEvent.java index 5c8f071a..ed4da4db 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/GqEvent.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/GqEvent.java @@ -115,5 +115,4 @@ public class GqEvent extends Event { return getClientY() + GQuery.document.getScrollTop(); } } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/ButtonWidgetFactory.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/ButtonWidgetFactory.java index c1d5c32c..9abb5a96 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/ButtonWidgetFactory.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/ButtonWidgetFactory.java @@ -17,8 +17,6 @@ package com.google.gwt.query.client.plugins.widgets; import com.google.gwt.dom.client.ButtonElement; import com.google.gwt.dom.client.Element; -import com.google.gwt.query.client.plugins.widgets.WidgetFactory; -import com.google.gwt.query.client.plugins.widgets.WidgetsUtils; import com.google.gwt.user.client.ui.Button; /** diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/HtmlPanelWidgetFactory.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/HtmlPanelWidgetFactory.java index 4e3ad447..527b2de3 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/HtmlPanelWidgetFactory.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/HtmlPanelWidgetFactory.java @@ -23,5 +23,4 @@ public class HtmlPanelWidgetFactory implements WidgetFactory { public HTMLPanel create(Element e) { return new WidgetsHtmlPanel(e); } - } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/LabelWidgetFactory.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/LabelWidgetFactory.java index 51a05174..b7c4bad9 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/LabelWidgetFactory.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/LabelWidgetFactory.java @@ -26,5 +26,4 @@ public class LabelWidgetFactory implements WidgetFactory