From d3eaed4b7f453befd8c642b4eb7c0222fbccac74 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Wed, 31 Dec 2014 18:49:01 +0100 Subject: [PATCH] Remove duplicated empty lines, remove CR, add NL at the end --- .../com/google/gwt/query/client/Browser.java | 4 +- .../com/google/gwt/query/client/Console.java | 1 - .../com/google/gwt/query/client/Function.java | 21 ++++---- .../com/google/gwt/query/client/GQuery.java | 12 ----- .../google/gwt/query/client/IsProperties.java | 10 ++-- .../google/gwt/query/client/LazyGQuery.java | 10 ---- .../google/gwt/query/client/Predicate.java | 1 - .../com/google/gwt/query/client/Promise.java | 12 ++--- .../google/gwt/query/client/Properties.java | 6 +-- .../query/client/builders/JsonBuilder.java | 1 - .../client/builders/JsonBuilderBase.java | 12 ++--- .../client/css/BackgroundRepeatProperty.java | 1 - .../gwt/query/client/css/BorderProperty.java | 1 - .../query/client/css/BorderWidthProperty.java | 1 - .../com/google/gwt/query/client/css/CSS.java | 3 +- .../client/css/EdgePositionProperty.java | 1 - .../client/css/MultipleValueCssSetter.java | 2 - .../client/css/OutlineColorProperty.java | 1 - .../gwt/query/client/css/OutlineProperty.java | 1 - .../google/gwt/query/client/css/UriValue.java | 2 +- .../gwt/query/client/css/ZIndexProperty.java | 1 - .../query/client/impl/DocumentStyleImpl.java | 7 ++- .../client/impl/DocumentStyleImplIE.java | 3 +- .../query/client/impl/SelectorEngineImpl.java | 1 - .../client/impl/SelectorEngineSizzle.java | 3 -- .../client/impl/SelectorEngineSizzleIE.java | 3 -- .../impl/research/SelectorEngineJS.java | 1 - .../research/SelectorEngineSizzleGwt.java | 1 - .../impl/research/SelectorEngineXPath.java | 1 - .../google/gwt/query/client/js/JsCache.java | 2 +- .../google/gwt/query/client/js/JsClosure.java | 2 +- .../com/google/gwt/query/client/js/JsMap.java | 1 - .../gwt/query/client/js/JsNamedArray.java | 1 - .../gwt/query/client/js/JsObjectArray.java | 4 +- .../google/gwt/query/client/js/JsUtils.java | 1 - .../gwt/query/client/plugins/Effects.java | 2 - .../gwt/query/client/plugins/Events.java | 2 - .../gwt/query/client/plugins/LazyEffects.java | 2 - .../gwt/query/client/plugins/QueuePlugin.java | 12 ++--- .../gwt/query/client/plugins/UiPlugin.java | 1 - .../gwt/query/client/plugins/Widgets.java | 4 +- .../gwt/query/client/plugins/ajax/Ajax.java | 15 +++--- .../client/plugins/ajax/AjaxTransportJs.java | 6 +-- .../client/plugins/deferred/Callbacks.java | 28 +++++------ .../plugins/deferred/FunctionDeferred.java | 2 +- .../plugins/deferred/PromiseFunction.java | 2 +- .../deferred/PromiseReqBuilderJSONP.java | 4 +- .../query/client/plugins/effects/Bezier.java | 16 +++--- .../client/plugins/events/EventsListener.java | 4 +- .../query/client/plugins/events/GqEvent.java | 4 -- .../plugins/widgets/ButtonWidgetFactory.java | 3 +- .../widgets/HtmlPanelWidgetFactory.java | 2 +- .../plugins/widgets/LabelWidgetFactory.java | 2 +- .../widgets/TextAreaWidgetFactory.java | 3 +- .../widgets/TextBoxBaseWidgetFactory.java | 3 +- .../plugins/widgets/TextBoxWidgetFactory.java | 2 +- .../client/plugins/widgets/WidgetFactory.java | 2 +- .../client/plugins/widgets/WidgetsUtils.java | 1 - .../gwt/query/rebind/BrowserGenerator.java | 14 +++--- .../query/rebind/JsonBuilderGenerator.java | 1 - .../gwt/query/rebind/LazyGenerator.java | 2 +- .../query/rebind/SelectorGeneratorNative.java | 2 +- .../rebind/SelectorGeneratorNativeIE8.java | 2 +- .../rebind/SelectorGeneratorNativeIE9.java | 2 +- .../google/gwt/query/vm/AjaxTransportJre.java | 50 +++++++++---------- .../google/gwt/query/vm/CookieManager.java | 12 ++--- .../com/google/gwt/query/vm/ResponseJre.java | 6 +-- .../shared/gquery/PromiseRF.java | 2 +- 68 files changed, 138 insertions(+), 212 deletions(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Browser.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Browser.java index 839a0cee..b06253ec 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Browser.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Browser.java @@ -39,7 +39,7 @@ import com.google.gwt.query.rebind.BrowserGenerator; * */ public abstract class Browser { - + /** * @return true if ie6 */ @@ -75,7 +75,7 @@ public abstract class Browser { * @return true if webkit */ public final boolean webkit = isWebkit(); - + protected abstract boolean isIe6(); protected abstract boolean isIe8(); protected abstract boolean isIe9(); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Console.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Console.java index dcd0300d..ec2afba9 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Console.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Console.java @@ -15,7 +15,6 @@ */ package com.google.gwt.query.client; - /** * This interface represents the Window.console object. */ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java index b094ebf8..d583d0a9 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java @@ -30,7 +30,7 @@ public abstract class Function { private Event event = null; private int index = -1; protected Object[] arguments = new Object[0]; - + /** * Utility method to get a string representation with the content * of the arguments array. It recursively visits arrays and inspect @@ -51,7 +51,7 @@ public abstract class Function { protected String dumpArguments() { return dumpArguments(arguments, "\n"); } - + private String dumpArguments(Object[] arguments, String sep) { StringBuilder b = new StringBuilder(); for (int i = 0, l = arguments.length; i < l; i++ ) { @@ -99,7 +99,7 @@ public abstract class Function { index = i; return this; } - + /** * @deprecated use getArguments instead. */ @@ -111,7 +111,7 @@ public abstract class Function { public Object[] getArguments() { return arguments; } - + /** * Set the list of arguments to be passed to the function */ @@ -146,7 +146,7 @@ public abstract class Function { public T getArgumentJSO(int argIdx, int pos) { return (T)getArgument(argIdx, pos, JavaScriptObject.class); } - + /** * Utility method for safety getting a JavaScriptObject present at a certain * position in the list of arguments. @@ -154,7 +154,7 @@ public abstract class Function { public T getArgumentJSO(int idx) { return getArgumentJSO(-1, idx); } - + /** * Utility method for safety getting an array present at a certain * position in the list of arguments. @@ -191,14 +191,14 @@ public abstract class Function { public T arguments(int idx) { return getArgument(idx); } - + /** * Convenience alias for the getArguments(argIdx, pos) method; */ public T arguments(int argIdx, int pos) { return getArgument(argIdx, pos); } - + /** * Safety return the argument in the position idx. * @@ -208,7 +208,7 @@ public abstract class Function { public T getArgument(int argIdx, int pos) { return getArgument(argIdx, pos, null); } - + /** * Safety return the argument in the position idx. * @@ -249,7 +249,6 @@ public abstract class Function { return null; } - /** * @deprecated use: getArgument() */ @@ -281,7 +280,7 @@ public abstract class Function { public void setData(double b) { setArguments(b); } - + /** * @deprecated use use setArguments instead */ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java index d0baf61c..c8edace5 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java @@ -714,7 +714,6 @@ public class GQuery implements Lazy { } } - /** * Return a lazy version of the GQuery interface. Lazy function calls are simply queued up and not * executed immediately. @@ -949,7 +948,6 @@ public class GQuery implements Lazy { * * NOTE: The ability of animating attribute values is only available in gquery but not jquery * - * * Example: * *
@@ -1010,7 +1008,6 @@ public class GQuery implements Lazy {
    *
    * NOTE: The ability of animating attribute values is only available in gquery but not jquery
    *
-   *
    * Example:
    *
    * 
@@ -1067,7 +1064,6 @@ public class GQuery implements Lazy {
    *
    * NOTE: The ability of animating attribute values is only available in gquery but not jquery
    *
-   *
    * Example:
    *
    * 
@@ -1098,7 +1094,6 @@ public class GQuery implements Lazy {
    *  });
    * 
* - * * For color css properties, values can be specified via hexadecimal or rgb or literal values. * * Example: @@ -1107,7 +1102,6 @@ public class GQuery implements Lazy { * $("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)', 1000"); *
* - * * @param prop the property to animate : "cssName:'value'" * @param funcs an array of {@link Function} called once the animation is complete * @param duration the duration in milliseconds of the animation @@ -1284,7 +1278,6 @@ public class GQuery implements Lazy { * The event handlers are passed as Functions that you can use to prevent default behavior. To * stop both default action and event bubbling, the function event handler has to return false. * - * */ public GQuery bind(int eventbits, final Function... funcs) { return as(Events).bind(eventbits, null, funcs); @@ -1309,7 +1302,6 @@ public class GQuery implements Lazy { * The event handlers are passed as Functions that you can use to prevent default behavior. To * stop both default action and event bubbling, the function event handler has to return false. * - * */ public GQuery bind(String eventType, final Function... funcs) { return as(Events).bind(eventType, null, funcs); @@ -1579,7 +1571,6 @@ public class GQuery implements Lazy { * property defined in {@link CSS} class and call the {@link TakesCssValue#with(HasCssName)} * method on it. * - * * ex : * *
@@ -2746,7 +2737,6 @@ public class GQuery implements Lazy {
    * Attach a handler for this event to all elements which match the current selector, now and in
    * the future.
    * 

- *

* Ex : * *

@@ -2801,7 +2791,6 @@ public class GQuery implements Lazy {
    * Attach a handler for this event to all elements which match the current selector, now and in
    * the future. The data parameter allows us to pass data to the handler.
    * 

- *

* Ex : * *

@@ -4530,7 +4519,6 @@ public class GQuery implements Lazy {
     return as(Events).trigger(eventbits, keys);
   }
 
-
   /**
    * Trigger a event in all matched elements.
    *
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/IsProperties.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/IsProperties.java
index bcd79cdb..764c541e 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/IsProperties.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/IsProperties.java
@@ -17,7 +17,6 @@ package com.google.gwt.query.client;
 
 import com.google.gwt.query.client.builders.JsonBuilder;
 
-
 /**
  * Interface using for Data Binders valid for JVM and JS.
  */
@@ -37,12 +36,12 @@ public interface IsProperties {
    * and a Json implementation in the JVM.
    */
    T getDataImpl();
-  
+
   /**
    * Return the Object with the given key.
    */
    T get(Object key);
-  
+
   /**
    * Set an Object with the given key.
    */
@@ -66,7 +65,7 @@ public interface IsProperties {
    * Example {"user":{"name":"manolo","surname":"carrasco"}}
    */
   String toJsonWithName();
-  
+
   /**
    * return a string which represents the object in a queryString format.
    */
@@ -76,8 +75,7 @@ public interface IsProperties {
    * return the name for this type
    */
   String getJsonName();
-  
-  
+
   /**
    * converts a JsonBuilder instance into another JsonBuilder type but
    * preserving the underlying data object. 
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 46d9d9ee..18a25709 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
@@ -127,7 +127,6 @@ public interface LazyGQuery extends LazyBase{
    *
    * NOTE: The ability of animating attribute values is only available in gquery but not jquery
    *
-   *
    * Example:
    *
    * 
@@ -186,7 +185,6 @@ public interface LazyGQuery extends LazyBase{
    *
    * NOTE: The ability of animating attribute values is only available in gquery but not jquery
    *
-   *
    * Example:
    *
    * 
@@ -241,7 +239,6 @@ public interface LazyGQuery extends LazyBase{
    *
    * NOTE: The ability of animating attribute values is only available in gquery but not jquery
    *
-   *
    * Example:
    *
    * 
@@ -272,7 +269,6 @@ public interface LazyGQuery extends LazyBase{
    *  });
    * 
* - * * For color css properties, values can be specified via hexadecimal or rgb or literal values. * * Example: @@ -281,7 +277,6 @@ public interface LazyGQuery extends LazyBase{ * $("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)', 1000"); *
* - * * @param prop the property to animate : "cssName:'value'" * @param funcs an array of {@link Function} called once the animation is complete * @param duration the duration in milliseconds of the animation @@ -398,7 +393,6 @@ public interface LazyGQuery extends LazyBase{ * The event handlers are passed as Functions that you can use to prevent default behavior. To * stop both default action and event bubbling, the function event handler has to return false. * - * */ LazyGQuery bind(int eventbits, Function... funcs); @@ -419,7 +413,6 @@ public interface LazyGQuery extends LazyBase{ * The event handlers are passed as Functions that you can use to prevent default behavior. To * stop both default action and event bubbling, the function event handler has to return false. * - * */ LazyGQuery bind(String eventType, Function... funcs); @@ -528,7 +521,6 @@ public interface LazyGQuery extends LazyBase{ * property defined in {@link CSS} class and call the {@link TakesCssValue#with(HasCssName)} * method on it. * - * * ex : * *
@@ -1321,7 +1313,6 @@ public interface LazyGQuery extends LazyBase{
    * Attach a handler for this event to all elements which match the current selector, now and in
    * the future.
    * 

- *

* Ex : * *

@@ -1374,7 +1365,6 @@ public interface LazyGQuery extends LazyBase{
    * Attach a handler for this event to all elements which match the current selector, now and in
    * the future. The data parameter allows us to pass data to the handler.
    * 

- *

* Ex : * *

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 262e31fb..aa17d2b9 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
@@ -39,5 +39,4 @@ public class Predicate {
     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 c35b10f5..56c22b43 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
@@ -19,7 +19,7 @@ import com.google.gwt.query.client.Function;
  * Definition of jquery Promise interface used in gquery. 
  */
 public interface Promise {
-  
+
   /**
    * Definition of jquery Deferred interface used in gquery. 
    */
@@ -28,17 +28,17 @@ public interface Promise {
      * Call the progressCallbacks on a Deferred object with the given args.
      */
     Deferred notify(Object... o);
-    
+
     /**
      * Return a Deferred’s Promise object.
      */
     Promise promise();
-    
+
     /**
      * Reject a Deferred object and call any failCallbacks with the given args.
      */
     Deferred reject(Object... o);
-    
+
     /**
      * Resolve a Deferred object and call any doneCallbacks with the given args.
      */
@@ -100,7 +100,7 @@ public interface Promise {
    *   3rd one will be called when progress notifications are sent.  
    */
   Promise then(Function... f);
-  
+
   /**
    * Add filters to be called just in case the Deferred object is rejected returning
    * a new valid promise so as we can continue the flow control of the chain.
@@ -142,7 +142,7 @@ public interface Promise {
    * Determine whether a Deferred object has been resolved.
    */
   boolean isResolved();
-  
+
   /**
    * Determine whether a Deferred object has been rejected.
    */
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java
index db35f5d6..0997404e 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java
@@ -142,7 +142,7 @@ public class Properties extends JavaScriptObject implements IsProperties {
   public final Object getObject(Object name) {
     return c().get(String.valueOf(name));
   }
-  
+
   public final Properties getProperties(Object name) {
     return getJavaScriptObject(name);
   }
@@ -230,11 +230,11 @@ public class Properties extends JavaScriptObject implements IsProperties {
   public final String toJson() {
     return toJsonString();
   }
-  
+
   public final String toJsonWithName() {
     return toJsonWithName(getJsonName());
   }
-  
+
   public final String toJsonWithName(String name) {
     return "{\"" + name + "\":{" + toJson() + "}";
   }
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilder.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilder.java
index b5f30451..60b209c0 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilder.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilder.java
@@ -17,7 +17,6 @@ package com.google.gwt.query.client.builders;
 
 import com.google.gwt.query.client.IsProperties;
 
-
 /**
  * Tagging interface used to generate JsonBuilder classes.
  */
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java
index c09836a5..4c25117a 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/builders/JsonBuilderBase.java
@@ -98,7 +98,7 @@ public abstract class JsonBuilderBase> implements J
   public String toJson() {
     return p.tostring();
   }
-  
+
   public String toJsonWithName() {
     return "{\"" + getJsonName() + "\":" + p.tostring() + "}";
   }
@@ -108,22 +108,22 @@ public abstract class JsonBuilderBase> implements J
   public Properties getProperties() {
     return p;
   }
-  
+
   @Override
   public String toQueryString() {
     return p.toQueryString();
   }
-  
+
   @SuppressWarnings("unchecked")
   @Override
   public Properties getDataImpl() {
     return p;
   }
-  
+
   public  T get(Object key) {
     return p.get(key);
   }
-  
+
   @SuppressWarnings("unchecked")
   public  T set(Object key, Object val) {
     if (val instanceof IsProperties) {
@@ -133,7 +133,7 @@ public abstract class JsonBuilderBase> implements J
     }
     return (T)this;
   }
-  
+
   public  T as(Class clz) {
     return p.as(clz);
   }
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundRepeatProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundRepeatProperty.java
index cfd3e8c8..f7ee0ef8 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundRepeatProperty.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/BackgroundRepeatProperty.java
@@ -54,7 +54,6 @@ public class BackgroundRepeatProperty extends
 
   private static final String CSS_PROPERTY = "backgroundRepeat";
 
-
   public static void init() {
     CSS.BACKGROUND_REPEAT = new BackgroundRepeatProperty();
   }
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 9ef84d99..97b79f36 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
@@ -27,7 +27,6 @@ import com.google.gwt.query.client.css.TakesCssValue.CssSetter;
  * cannot set different values on the four borders. To do so, one or more of the
  * other border properties must be used.
  *
- *
  */
 public class BorderProperty implements HasCssValue {
 
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 a136c5dc..be5b478a 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
@@ -43,7 +43,6 @@ public class BorderWidthProperty extends
      */
     THIN;
 
-
     public String getCssName() {
       return name().toLowerCase();
     }
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 f88e9939..1ecf7ebf 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
@@ -106,7 +106,6 @@ public class CSS {
    * This property takes a {@link UriValue} object as value.
    * 

* - * */ public static BackgroundImageProperty BACKGROUND_IMAGE; @@ -1317,4 +1316,4 @@ public class CSS { } -} \ No newline at end of file +} 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 fe6dfd65..54b3fda3 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 @@ -15,7 +15,6 @@ */ package com.google.gwt.query.client.css; - /** * Specify position of element's edges. */ 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 290d7a65..2a51395f 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 @@ -4,7 +4,6 @@ import com.google.gwt.dom.client.Style.HasCssName; public class MultipleValueCssSetter extends SimpleCssSetter { - public MultipleValueCssSetter(String cssPropertyName, HasCssName... values) { super(cssPropertyName, computeValue(values)); } @@ -19,7 +18,6 @@ public class MultipleValueCssSetter extends SimpleCssSetter { return valueBuilder.toString().trim(); } - 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/OutlineColorProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineColorProperty.java index 713e3d5e..e39dff41 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineColorProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/OutlineColorProperty.java @@ -28,7 +28,6 @@ public class OutlineColorProperty extends CssProperty { CSS.OUTLINE_COLOR = new OutlineColorProperty(); } - private OutlineColorProperty() { super(CSS_PROPERTY); } 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 23405928..a723349a 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 @@ -60,5 +60,4 @@ public class OutlineProperty implements return new MultipleValueCssSetter(CSS_PROPERTY, outlineColor, outlineStyle, outlineWidth); } - } 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 8059f389..b5ae719e 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 @@ -39,4 +39,4 @@ public class UriValue implements HasCssName { return value; } -} \ No newline at end of file +} diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ZIndexProperty.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ZIndexProperty.java index dfb7fcfc..76c9bcb3 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ZIndexProperty.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/css/ZIndexProperty.java @@ -38,7 +38,6 @@ public class ZIndexProperty implements TakesInteger { private ZIndexProperty() { } - public String getCssName() { return CSS_PROPERTY; } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java index 3123a57c..4bd133ec 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java @@ -34,7 +34,6 @@ public class DocumentStyleImpl { private static final RegExp cssNumberRegex = RegExp.compile("^(fillOpacity|fontWeight|lineHeight|opacity|orphans|widows|zIndex|zoom)$", "i"); private static final RegExp sizeRegex = RegExp.compile("^(client|offset|)(width|height)$", "i"); - /** * Returns the numeric value of a css property. * @@ -123,14 +122,14 @@ public class DocumentStyleImpl { private Element attachTemporary(Element elem) { Element lastParent = $(elem).parents().last().get(0); - + if (lastParent == null){ //the element itself is detached lastParent = elem; } - + Document.get().getBody().appendChild(lastParent); - + return lastParent; } diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java index cb0e097c..04074656 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java @@ -67,7 +67,6 @@ public class DocumentStyleImplIE extends DocumentStyleImpl { e.style.removeAttribute(prop); }-*/; - /** * Set the value of a style property of an element. * IE needs a special workaround to handle opacity @@ -110,4 +109,4 @@ public class DocumentStyleImplIE extends DocumentStyleImpl { e.getStyle().setProperty("filter", "alpha(opacity=" + (int) (Double.valueOf(val) * 100) + ")"); } -} \ No newline at end of file +} diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineImpl.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineImpl.java index fd9d518e..a957334c 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineImpl.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineImpl.java @@ -20,5 +20,4 @@ package com.google.gwt.query.client.impl; */ public abstract class SelectorEngineImpl implements HasSelector { - } 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 8da92e2d..9a1591a9 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 @@ -15,7 +15,6 @@ */ package com.google.gwt.query.client.impl; - import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.JsArray; import com.google.gwt.dom.client.Element; @@ -29,7 +28,6 @@ import com.google.gwt.dom.client.NodeList; */ public class SelectorEngineSizzle extends SelectorEngineImpl { - public static native void initialize() /*-{ (function(){ @@ -1096,7 +1094,6 @@ $wnd.GQS = GQS; }-*/; - private static native JsArray select(String selector, Node context, JsArray results, JsArray seed) /*-{ return $wnd.GQS(selector, context, results, seed); }-*/; 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 9aad4204..741c785a 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 @@ -15,7 +15,6 @@ */ package com.google.gwt.query.client.impl; - import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.JsArray; import com.google.gwt.dom.client.Element; @@ -41,7 +40,6 @@ import com.google.gwt.dom.client.NodeList; */ public class SelectorEngineSizzleIE extends SelectorEngineImpl { - public static native void initialize() /*-{ (function(){ @@ -936,7 +934,6 @@ $wnd.IES = IES; }-*/; - private static native JsArray select(String selector, Node context, JsArray results, JsArray seed) /*-{ return $wnd.IES(selector, context, results, seed); }-*/; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineJS.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineJS.java index 428913b2..92da332d 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineJS.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineJS.java @@ -37,7 +37,6 @@ import com.google.gwt.query.client.js.JsUtils; */ public class SelectorEngineJS extends SelectorEngineImpl { - /** * Internal class. */ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineSizzleGwt.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineSizzleGwt.java index 64156d60..c536c3c8 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineSizzleGwt.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineSizzleGwt.java @@ -15,7 +15,6 @@ */ package com.google.gwt.query.client.impl.research; - import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.JsArray; import com.google.gwt.dom.client.Element; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineXPath.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineXPath.java index 63fe9229..47322d6c 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineXPath.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/research/SelectorEngineXPath.java @@ -31,7 +31,6 @@ import com.google.gwt.query.client.js.JsObjectArray; import com.google.gwt.query.client.js.JsRegexp; import com.google.gwt.query.client.js.JsUtils; - /** * 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/js/JsCache.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsCache.java index 71d3d3c0..dff21481 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsCache.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsCache.java @@ -53,7 +53,7 @@ public class JsCache extends JavaScriptObject { public final native void delete(Object name) /*-{ delete this[name]; }-*/; - + public final void clear() { for (String k : keys()) { delete(k); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsClosure.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsClosure.java index e47c4a3b..2481325d 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsClosure.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsClosure.java @@ -31,4 +31,4 @@ public class JsClosure extends JavaScriptObject { public final native void invoke() /*-{ return this(); }-*/; -} \ No newline at end of file +} diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java index d912a7f2..4806d4cd 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java @@ -17,7 +17,6 @@ package com.google.gwt.query.client.js; import com.google.gwt.core.client.JavaScriptObject; - /** * Lightweight JSO backed implemented of a Map, using Object.hashCode() as key. */ diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsNamedArray.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsNamedArray.java index 552a7d21..a3b49332 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsNamedArray.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsNamedArray.java @@ -17,7 +17,6 @@ package com.google.gwt.query.client.js; import com.google.gwt.core.client.JavaScriptObject; - /** * Lightweight JSO backed implemented of a named array */ 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 d8d5e312..c5a6062c 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 @@ -71,7 +71,7 @@ public final class JsObjectArray extends JavaScriptObject { public void pushAll(JavaScriptObject prevElem) { c().pushAll(prevElem); } - + public boolean contains(Object o) { return c().contains(o); } @@ -81,7 +81,7 @@ public final class JsObjectArray extends JavaScriptObject { c().remove(o); } } - + 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 65f26cee..82e2ae79 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 @@ -466,7 +466,6 @@ public class JsUtils { return a }-*/; - /** * Call via jsni any arbitrary function present in a Javascript object. * diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java index 64818c9c..fc2c726d 100755 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java @@ -285,7 +285,6 @@ public class Effects extends QueuePlugin { * }); *
* - * * For color css properties, values can be specified via hexadecimal or rgb or * literal values. * @@ -295,7 +294,6 @@ public class Effects extends QueuePlugin { * $("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)', 1000"); *
* - * * @param prop the property to animate : "cssName:'value'" * @param funcs an array of {@link Function} called once the animation is * complete diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Events.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Events.java index 101ae0b9..901e3892 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Events.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Events.java @@ -107,14 +107,12 @@ public class Events extends GQuery { return this; } - public GQuery die(int eventbits, String nameSpace) { EventsListener.getInstance(Element.is(currentContext) ? (Element) currentContext : body).die( eventbits, nameSpace, null, null, currentSelector); return this; } - public GQuery die(int eventbits) { return die(eventbits, null); } 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 f0af09b8..1b7d90bf 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 @@ -182,7 +182,6 @@ public interface LazyEffects extends LazyBase{ * }); *
* - * * For color css properties, values can be specified via hexadecimal or rgb or * literal values. * @@ -192,7 +191,6 @@ public interface LazyEffects extends LazyBase{ * $("#foo").animate("backgroundColor:'red', color:'#ffffff', borderColor:'rgb(129, 0, 70)', 1000"); *
* - * * @param prop the property to animate : "cssName:'value'" * @param funcs an array of {@link Function} called once the animation is * complete 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 e83625d5..9154fa11 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 @@ -140,7 +140,7 @@ public class QueuePlugin> extends GQuery { public Promise promise() { return promise(DEFAULT_NAME); } - + /** * Returns a dynamically generated Promise that is resolved once all actions * in the named queue have ended. @@ -162,17 +162,17 @@ public class QueuePlugin> extends GQuery { } } } - + public void f() { if (--count == 0) { dfd.resolve(QueuePlugin.this); } } }; - + // Run the function and resolve it in case there are not elements with active queue resolve.f(this, name); - + return dfd.promise(); } @@ -315,7 +315,7 @@ public class QueuePlugin> extends GQuery { runNext(elem, name, q); } } - + private void runNext(Element elem, String name, Queue q) { assert q != null; Function f = q.peek(); @@ -365,7 +365,7 @@ public class QueuePlugin> extends GQuery { data(elem, name, queue); } } - + private Callbacks emptyHooks(Element elem, String name) { String key = name + EMPTY_HOOKS; Callbacks c = (Callbacks)data(elem, key, null); 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 0d85e1fb..eb589bbd 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 @@ -162,7 +162,6 @@ public class UiPlugin extends GQuery { super(gq); } - /** * Return the immediate scrolling parent. */ 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 6367e7b7..2eaf38c2 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 @@ -62,7 +62,6 @@ public class Widgets extends QueuePlugin { super(gq); } - /** * Try to create a widget using the given factory and the given options for * each element of the query. Returns a new gquery set of elements with the @@ -139,7 +138,7 @@ public class Widgets extends QueuePlugin { public Widgets label() { return widgets(new LabelWidgetFactory(), null); } - + /** * Create a {@link Label} widget for each selected element. The * initializers will be called on each new {@link Label} created @@ -166,7 +165,6 @@ public class Widgets extends QueuePlugin { return widgets(new PasswordTextBoxWidgetFactory(), initializers); } - /** * Create a {@link TextBox} widget for each selected element. The * initializers will be called on each new {@link TextBox} 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 b0ee21ad..5baca2f2 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 @@ -35,7 +35,7 @@ public class Ajax extends GQuery { public static final String JSON_CONTENT_TYPE = "application/json"; public static final String JSON_CONTENT_TYPE_UTF8 = JSON_CONTENT_TYPE + "; charset=utf-8"; - + public static interface AjaxTransport { Promise getJsonP(Settings settings); @@ -43,7 +43,7 @@ public class Ajax extends GQuery { Promise getXhr(Settings settings); } - + /** * Ajax Settings object */ @@ -93,7 +93,6 @@ public class Ajax extends GQuery { /** * Perform an ajax request to the server. * - * * Example: * *
@@ -119,7 +118,7 @@ public class Ajax extends GQuery {
    */
   public static Promise ajax(Settings settings) {
     resolveSettings(settings);
-    
+
     final Function onSuccess = settings.getSuccess();
     if (onSuccess != null) {
       onSuccess.setElement(settings.getContext());
@@ -184,11 +183,11 @@ public class Ajax extends GQuery {
     }
     return ret;
   }
-  
+
   private static void resolveSettings(Settings settings) {
     String url = settings.getUrl();
     assert settings != null && settings.getUrl() != null: "no url found in settings";
-    
+
     String type = "POST";
     if (settings.getType() != null) {
       type = settings.getType().toUpperCase();
@@ -220,7 +219,7 @@ public class Ajax extends GQuery {
       settings.setUrl(url);
     }
   }
-  
+
   public static Promise ajax(String url, Function onSuccess, Function onError) {
     return ajax(url, onSuccess, onError, (Settings) null);
   }
@@ -375,7 +374,7 @@ public class Ajax extends GQuery {
   public Ajax load(String url, IsProperties data) {
     return load(url, data);
   }
-  
+
   public Ajax load(String url, IsProperties data, final Function onSuccess) {
     Settings s = createSettings();
     final String filter = url.contains(" ") ? url.replaceFirst("^[^\\s]+\\s+", "") : "";
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 12ce7cda..77f74f88 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
@@ -16,12 +16,12 @@ import com.google.gwt.query.client.plugins.deferred.PromiseReqBuilderJSONP;
  * Ajax transport for Client side.
  */
 public class AjaxTransportJs implements AjaxTransport {
-  
+
   @Override
   public Promise getJsonP(Settings settings) {
     return new PromiseReqBuilderJSONP(settings.getUrl(), settings.getTimeout());
   }
-  
+
   @Override
   public Promise getLoadScript(final Settings settings) {
     return new PromiseFunction() {
@@ -47,5 +47,5 @@ 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 462ccad8..9ca2cdec 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
@@ -23,7 +23,7 @@ import com.google.gwt.query.client.Function;
  * Implementation of jQuery.Callbacks for gwtquery.
  */
 public class Callbacks {
-  
+
   /**
    * Iterface used for callbacks which could cancel the execution 
    * when returning false;
@@ -35,19 +35,19 @@ public class Callbacks {
      */
     boolean f(Object ...objects);
   }
-  
+
   private List stack = new ArrayList();
-  
+
   private boolean done = false;
-    
+
   private List memory = null;
-  
+
   private boolean isOnce, isMemory, isUnique, stopOnFalse;
-  
+
   public Callbacks() {
     this("");
   }
-  
+
   /**
    * Create a new Callbacks object with options given as a space delimited string.
    * 
@@ -61,7 +61,7 @@ public class Callbacks {
     isUnique = options.contains("unique");
     stopOnFalse = options.contains("stopOnFalse");
   }
-  
+
   /**
    * Add a Callback or a collection of callbacks to a callback list.
    * 
@@ -70,7 +70,7 @@ public class Callbacks {
     addAll((Object[])c);
     return this;
   }
-  
+
   /**
    * Add a Callback or a collection of callbacks to a callback list.
    */
@@ -86,7 +86,7 @@ public class Callbacks {
     addAll((Object[])f);
     return this;
   }
-  
+
   /**
    * Disable a callback list from doing anything more.
    */
@@ -95,7 +95,7 @@ public class Callbacks {
     done = true;
     return this;
   }
-  
+
   /**
    * lock
    */
@@ -124,7 +124,7 @@ public class Callbacks {
     }
     return this;
   }
-  
+
   /**
    * Remove a callback or a collection of callbacks from a callback list.
    */
@@ -132,7 +132,7 @@ public class Callbacks {
     stack.removeAll(Arrays.asList(o));
     return this;
   }
-  
+
   private void addAll(Object...o) {
     for (Object c : o) {
       if (!done && stack != null && c != null && (!isUnique || !stack.contains(c))) {
@@ -162,7 +162,7 @@ public class Callbacks {
     }
     return true;
   }
-  
+
   public String status() {
     return "stack=" + (stack == null ? "null" : stack.size()) + " " + done;
   }
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/FunctionDeferred.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/FunctionDeferred.java
index 771749f8..b4beee97 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/FunctionDeferred.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/FunctionDeferred.java
@@ -89,7 +89,7 @@ public abstract class FunctionDeferred extends Function {
     cache = type;
     return this;
   }
-  
+
   /**
    * Reset the cache so as a new invocation to this function will
    * execute it instead of restoring old values from cache.
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseFunction.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseFunction.java
index 996992e7..356a94b5 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseFunction.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseFunction.java
@@ -42,7 +42,7 @@ public abstract class PromiseFunction extends DeferredPromiseImpl {
   public PromiseFunction() {
     f(dfd);
   }
-  
+
   /**
    * This function is called once when the promise is created and the
    * new deferred is available.
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilderJSONP.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilderJSONP.java
index 9278bf7b..606b8a6d 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilderJSONP.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilderJSONP.java
@@ -36,9 +36,9 @@ import com.google.gwt.user.client.rpc.AsyncCallback;
  * 
  */
 public class PromiseReqBuilderJSONP extends DeferredPromiseImpl {
-  
+
   private static final RegExp callbackRegex = RegExp.compile("^(.+[\\?&])([^=]+)=\\?(.*)$");
-  
+
   public PromiseReqBuilderJSONP(String url) {
     this(url, null, 0);
   }
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Bezier.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Bezier.java
index 147f94ca..cdc6da44 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Bezier.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Bezier.java
@@ -25,13 +25,13 @@ package com.google.gwt.query.client.plugins.effects;
  * [2] http://dxr.mozilla.org/mozilla-central/source/content/smil/nsSMILKeySpline.cpp
  */
 public class Bezier {
-                  
+
   private double x1, y1 , x2, y2;
-  
+
   public Bezier(double x1, double y1, double x2, double y2) {
     this.x1 = x1; this.y1 = y1; this.x2 = x2; this.y2 = y2;
   }
-  
+
   private double a(double a1, double a2) {
     return 1.0 - 3.0 * a2 + 3.0 * a1;
   }
@@ -41,15 +41,15 @@ public class Bezier {
   private double c(double a1){
     return 3.0 * a1;
   }
-  
+
   private double calcBezier(double t, double a1, double a2) {
     return ((a(a1, a2)*t + b(a1, a2))*t + c(a1))*t;
   }
-  
+
   private double calcSlope(double t, double a1, double a2) {
     return 3.0 * a(a1, a2)*t*t + 2.0 * b(a1, a2) * t + c(a1);
   }
-  
+
   private double getTForX(double x) {
     double t = x;
     for (double i = 0; i < 4; ++i) {
@@ -60,11 +60,11 @@ public class Bezier {
     }
     return t;
   }
-  
+
   public double f (double x) {
     return calcBezier(getTForX(x), y1, y2);
   }
-  
+
   public String toString() {
     return x1 + "," + y1 + "," + x2 + "," + y2;
   }
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 0adf1ddf..59868d36 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
@@ -554,7 +554,6 @@ public class EventsListener implements EventListener {
       die(b, nameSpace, eventName, originalEventName, cssSelector);
     }
 
-
   }
 
   public void die(int eventbits, String nameSpace, String eventName, String originalEventName,
@@ -638,7 +637,6 @@ public class EventsListener implements EventListener {
       String nameSpace = null;
       String eventName = event;
 
-
       String[] subparts = event.split("\\.", 2);
 
       if (subparts.length == 2) {
@@ -732,7 +730,7 @@ public class EventsListener implements EventListener {
 
   public void unbind(int eventbits, String namespace, String eventName, String originalEventType,
       Function f) {
-    
+
     JsObjectArray newList = JsObjectArray.createArray().cast();
     for (int i = 0; i < elementEvents.length(); i++) {
       BindFunction listener = elementEvents.get(i);
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 f961c098..aac590ca 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
@@ -14,12 +14,9 @@ import com.google.gwt.user.client.Event;
  * element. So, we cannot keep a copy of the MouseDownEvent during a dragging
  * for example.
  *
- *
- *
  * Be Careful : the methods preventDefault() and stopPropagation must be called directly on the
  * original event.
  *
- *
  */
 public class GqEvent extends Event {
 
@@ -53,7 +50,6 @@ public class GqEvent extends Event {
     gQueryEvent.originalEvent = originalEvent;
   }-*/;
 
-
   protected GqEvent() {
   }
 
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 39028149..c1d5c32c 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
@@ -15,7 +15,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;
@@ -47,4 +46,4 @@ public class ButtonWidgetFactory implements WidgetFactory