diff options
author | Manolo Carrasco <manolo@apache.org> | 2014-12-31 18:57:01 +0100 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2014-12-31 18:57:01 +0100 |
commit | 6c935cf92609af43568d578fc06dabb52953184b (patch) | |
tree | 6a861dd569f2537c6aef01ca5829cbb9079b7b1d /gwtquery-core | |
parent | 2e6b1592ee9357d3c6887216ac78910d56f73511 (diff) | |
download | gwtquery-6c935cf92609af43568d578fc06dabb52953184b.tar.gz gwtquery-6c935cf92609af43568d578fc06dabb52953184b.zip |
Removing trailing spaces
Diffstat (limited to 'gwtquery-core')
18 files changed, 41 insertions, 41 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 b06253ec..dfe06f22 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 @@ -29,12 +29,12 @@ import com.google.gwt.query.rebind.BrowserGenerator; * Example: * <pre> if (GQuery.browser.ie6) { - // this code will be removed on non-ie6 permutations + // this code will be removed on non-ie6 permutations Window.alert("IE6"); } else if (!browser.webkit) { - // this code will be only in the webkit permutation + // this code will be only in the webkit permutation Window.alert("NOT WEBKIT"); - } + } * </pre> * */ @@ -69,7 +69,7 @@ public abstract class Browser { * @return true if webkit * @deprecated use webkit() instead */ - @Deprecated + @Deprecated public final boolean safari = isWebkit(); /** * @return true if webkit 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 d583d0a9..7416870d 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 @@ -36,7 +36,7 @@ public abstract class Function { * of the arguments array. It recursively visits arrays and inspect * object to print an appropriate representation of them. * - * It is very useful to debug arguments passed in nested promises. + * It is very useful to debug arguments passed in nested promises. * * It is protected so as it can be used in Inner functions. * @@ -130,7 +130,7 @@ public abstract class Function { } /** - * @deprecated use getArgument instead + * @deprecated use getArgument instead */ @Deprecated public Object getDataObject(int idx) { @@ -159,7 +159,7 @@ public abstract class Function { * Utility method for safety getting an array present at a certain * position in the list of arguments. * - * Useful for Deferred chains where result of each resolved + * Useful for Deferred chains where result of each resolved * promise is set as an array in the arguments list. * * Always returns an array. @@ -178,14 +178,14 @@ public abstract class Function { * Return the argument in the position idx or null if it doesn't exist. * * Note: if the return type doesn't match the object, you - * will get a casting exception. + * will get a casting exception. */ public <T> T getArgument(int idx) { return getArgument(-1, idx, null); } /** - * Convenience alias for the getArguments(idx) method thought just to + * Convenience alias for the getArguments(idx) method thought just to * make gQuery code look closed to jQuery. */ public <T> T arguments(int idx) { @@ -223,13 +223,13 @@ public abstract class Function { * Utility method for safety getting an object present at a certain * position in the list of arguments composed by arrays. * - * Useful for Deferred chains where result of each resolved + * Useful for Deferred chains where result of each resolved * promise is set as an array in the arguments list. * * When the object found in the array doesn't match the type required it returns a null. * * Note: If type is null, we don't check the class of the object found andd you could - * eventually get a casting exception. + * eventually get a casting exception. * */ @SuppressWarnings("unchecked") 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 380c57ef..b3f7d1ab 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 @@ -119,7 +119,7 @@ public abstract class GQ { if (jsonFactory == null) { try { // We use reflection because the server side should not - // depend on gwt-servlet nor gwt-dev. Hence if GWT is not + // depend on gwt-servlet nor gwt-dev. Hence if GWT is not // in our classpath means that we are in server side, otherwise // we use GWT to figure out if we are running devmode. // This is run once, so no performance issues to worry about. 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 764c541e..ac11b119 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 @@ -59,7 +59,7 @@ public interface IsProperties { String toJson(); /** - * return a string which represents the object with an alias for the + * return a string which represents the object with an alias for the * className useful for serialization. * * Example {"user":{"name":"manolo","surname":"carrasco"}} @@ -78,7 +78,7 @@ public interface IsProperties { /** * converts a JsonBuilder instance into another JsonBuilder type but - * preserving the underlying data object. + * preserving the underlying data object. */ <T extends JsonBuilder> T as (Class<T> clz); } 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 56c22b43..2734458e 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 @@ -16,12 +16,12 @@ package com.google.gwt.query.client; import com.google.gwt.query.client.Function; /** - * Definition of jquery Promise interface used in gquery. + * Definition of jquery Promise interface used in gquery. */ public interface Promise { /** - * Definition of jquery Deferred interface used in gquery. + * Definition of jquery Deferred interface used in gquery. */ public interface Deferred { /** @@ -67,7 +67,7 @@ public interface Promise { /** * Utility method to filter and/or chain Deferreds. * - * @deprecated use 'then' instead. + * @deprecated use 'then' instead. * it was deprecated in jquery, and we maintain it here for compatibility. */ @Deprecated @@ -97,7 +97,7 @@ public interface Promise { * @param f a list of 1, 2, or 3 functions, which will be used in this way: * 1st function will be called when the deferred is resolved. * 2nd function that is called when the deferred is rejected. - * 3rd one will be called when progress notifications are sent. + * 3rd one will be called when progress notifications are sent. */ Promise then(Function... f); @@ -105,7 +105,7 @@ public interface Promise { * 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. * - * It works in the same way than adding a second parameter to {@link then} method but + * It works in the same way than adding a second parameter to {@link then} method but * continuing the flow and making more readable the code. * * Example: 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 68d9764f..efc930eb 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 @@ -34,7 +34,7 @@ public class SelectorEngineNativeMin extends SelectorEngineImpl { try { return SelectorEngine.querySelectorAllImpl(selector, ctx); } catch (Exception e) { - console.error("GwtQuery: Selector '" + selector + + console.error("GwtQuery: Selector '" + selector + "' is unsupported in this SelectorEngineNativeMin engine." + " Do not use this syntax or configure your module to use a JS fallback. " + e.getMessage()); return null; 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 9154fa11..89822ef0 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 @@ -134,7 +134,7 @@ public class QueuePlugin<T extends QueuePlugin<?>> extends GQuery { } /** - * Returns a dynamically generated Promise that is resolved once all actions + * Returns a dynamically generated Promise that is resolved once all actions * in the queue have ended. */ public Promise promise() { @@ -142,7 +142,7 @@ public class QueuePlugin<T extends QueuePlugin<?>> extends GQuery { } /** - * Returns a dynamically generated Promise that is resolved once all actions + * Returns a dynamically generated Promise that is resolved once all actions * in the named queue have ended. */ public Promise promise(final String name) { @@ -155,7 +155,7 @@ public class QueuePlugin<T extends QueuePlugin<?>> extends GQuery { // Inner functions don't have constructors, we use a block to initialize it { for (Element elem: elements()) { - // Add this resolve function only to those elements with active queue + // Add this resolve function only to those elements with active queue if (queue(elem, name, null) != null) { emptyHooks(elem, name).add(this); count++; 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 11489dd5..4fc1cba7 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 @@ -264,7 +264,7 @@ public class Ajax extends GQuery { public static Settings createSettings(String prop) { Settings s = GQ.create(Settings.class); - if (prop != null && !prop.isEmpty()) + if (prop != null && !prop.isEmpty()) s.parse(prop); return s; } 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 9ca2cdec..24654b53 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 @@ -25,13 +25,13 @@ import com.google.gwt.query.client.Function; public class Callbacks { /** - * Iterface used for callbacks which could cancel the execution + * Iterface used for callbacks which could cancel the execution * when returning false; * */ public static interface Callback { /** - * Return false to avoid executing the rest of functions + * Return false to avoid executing the rest of functions */ boolean f(Object ...objects); } @@ -143,7 +143,7 @@ public class Callbacks { run(c, memory.toArray()); } } - } + } @SuppressWarnings({"unchecked", "rawtypes"}) private boolean run(Object c, Object...o) { 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 b4beee97..38a03632 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 @@ -17,7 +17,7 @@ import com.google.gwt.query.client.Function; import com.google.gwt.query.client.Promise.Deferred; /** - * Utility class used to create customized functions with a deferred + * Utility class used to create customized functions with a deferred * execution in pipelined processes. * * They have access to the associated deferred object via a method which @@ -61,7 +61,7 @@ public abstract class FunctionDeferred extends Function { /** * This function is called when the previous promise in the pipe - * is resolved. + * is resolved. */ public final Object f(Object... args) { return dfd != null && 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 356a94b5..5ca5c154 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 @@ -26,7 +26,7 @@ import com.google.gwt.query.client.plugins.deferred.Deferred.DeferredPromiseImpl * dfd.resolve("done"); * } * }; - * + * * doSomething.progress(new Function() { * public void f() { * String hi = arguments(0); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseRPC.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseRPC.java index 2785e17f..1c2f3338 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseRPC.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseRPC.java @@ -20,10 +20,10 @@ import com.google.gwt.user.client.rpc.AsyncCallback; * Utility class used to create promises for RPC services. * <pre> * PromiseRPC<String> greeting = new PromiseRPC<String>(); - * + * * GreetingServiceAsync greetingService = GWT.create(GreetingService.class); * greetingService.greetServer("hi", greeting); - * + * * greeting.fail(new Function(){ * public void f() { * Throwable error = arguments(0); 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 606b8a6d..6bb96f83 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 @@ -23,7 +23,7 @@ import com.google.gwt.user.client.rpc.AsyncCallback; * Utility class used to create promises for JsonpRequestBuilder. * <pre> * Promise p = new PromiseJsonpReqBuilder(url, 4000); - * + * * p.done(new Function() { * public void f() { * Properties p = arguments(0); 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 97ef895b..ddb865ab 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 @@ -54,7 +54,7 @@ public class Fx { } public String toString() { - return super.toString() + " transitStart=" + transitStart + " transitEnd=" + transitEnd; + return super.toString() + " transitStart=" + transitStart + " transitEnd=" + transitEnd; } } @@ -105,7 +105,7 @@ public class Fx { private static JsNamedArray<int[]> htmlColorToRgb; // rgb and rgba regex - public static RegExp REGEX_RGB_COLOR_PATTERN = + public static RegExp REGEX_RGB_COLOR_PATTERN = RegExp.compile("rgba?\\(\\s*([0-9]{1,3}%?)\\s*,\\s*([0-9]{1,3}%?)\\s*,\\s*([0-9]{1,3}%?).*\\)$"); static { 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 59868d36..fbc25013 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 @@ -401,7 +401,7 @@ public class EventsListener implements EventListener { /** * We have to set the gQuery event listener to the element again when - * the element is a widget, because when GWT detaches a widget it removes the + * the element is a widget, because when GWT detaches a widget it removes the * event listener. */ public static void rebind(Element e) { diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetsUtils.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetsUtils.java index 53a03a7b..200cb8c9 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetsUtils.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/WidgetsUtils.java @@ -256,7 +256,7 @@ public class WidgetsUtils { /** * Return the first widget parent of the element, or null if it is not - * attached to any widget yet. + * attached to any widget yet. */ private static Widget getFirstParentWidgetElement(Element element) { return $(element).parents().widget(); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/BrowserGenerator.java b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/BrowserGenerator.java index 01f95917..861f6c19 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/BrowserGenerator.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/BrowserGenerator.java @@ -74,7 +74,7 @@ public class BrowserGenerator extends Generator { " + \" msie=\" + msie" + " + \" ie6=\" + ie6" + " + \" ie8=\" + ie8" + - " + \" ie9=\" + ie9" + + " + \" ie9=\" + ie9" + ";}"); writer.commit(logger); } diff --git a/gwtquery-core/src/main/java/com/google/web/bindery/requestfactory/shared/gquery/PromiseRF.java b/gwtquery-core/src/main/java/com/google/web/bindery/requestfactory/shared/gquery/PromiseRF.java index eecd20d1..6951b005 100644 --- a/gwtquery-core/src/main/java/com/google/web/bindery/requestfactory/shared/gquery/PromiseRF.java +++ b/gwtquery-core/src/main/java/com/google/web/bindery/requestfactory/shared/gquery/PromiseRF.java @@ -31,12 +31,12 @@ import com.google.web.bindery.requestfactory.shared.ServerFailure; * <pre> * Request<SessionProxy> req1 = loginFact.api().login(null, null); * Request<UserProxy> req2 = srvFact.api().getCurrentUser(); - * + * * // We can use `when` to append different requests * Promise requestingAll = Deferred.when(new PromiseRF(req1), new PromiseRF(req2); * // Or we can use just one promise for multiple RF requests * Promise requestingAll = new PromiseRF(req1, req2); - * + * * requestingAll.done(new Function() { * public void f() { * SessionProxy session = arguments(0, 0); @@ -47,7 +47,7 @@ import com.google.web.bindery.requestfactory.shared.ServerFailure; * public void f() { * ServerFailure failure = arguments(0); * } - * }); + * }); * </pre> */ public class PromiseRF extends DeferredPromiseImpl { |