Repository: wicket Updated Branches: refs/heads/wicket-7.x 1daec2ef2 -> 4c235918c
Fix compilation warnings. No functional changes! Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/4c235918 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/4c235918 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/4c235918 Branch: refs/heads/wicket-7.x Commit: 4c235918c9e8363fb4758a3cbdf82c4cb5a57eb0 Parents: 1daec2e Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Thu Dec 24 14:18:13 2015 +0100 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Thu Dec 24 14:18:13 2015 +0100 ---------------------------------------------------------------------- .../wicket/ajax/attributes/AjaxRequestAttributes.java | 6 +++--- .../wicket/ajax/attributes/AjaxAttributeNameTest.java | 2 +- .../extensions/ajax/markup/html/modal/ModalWindow.java | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/4c235918/wicket-core/src/main/java/org/apache/wicket/ajax/attributes/AjaxRequestAttributes.java ---------------------------------------------------------------------- diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/attributes/AjaxRequestAttributes.java b/wicket-core/src/main/java/org/apache/wicket/ajax/attributes/AjaxRequestAttributes.java index 22982ef..357ae43 100644 --- a/wicket-core/src/main/java/org/apache/wicket/ajax/attributes/AjaxRequestAttributes.java +++ b/wicket-core/src/main/java/org/apache/wicket/ajax/attributes/AjaxRequestAttributes.java @@ -35,7 +35,7 @@ public final class AjaxRequestAttributes /** * The method to be used when submitting a form */ - public static enum Method + public enum Method { /** get */ GET, @@ -53,7 +53,7 @@ public final class AjaxRequestAttributes /** * The JavaScript event propagation type */ - public static enum EventPropagation + public enum EventPropagation { /** * Stops the propagation of the JavaScript event to the parent of its target @@ -259,7 +259,7 @@ public final class AjaxRequestAttributes { if (ajaxCallListeners == null) { - ajaxCallListeners = new ArrayList<IAjaxCallListener>(); + ajaxCallListeners = new ArrayList<>(); } return ajaxCallListeners; } http://git-wip-us.apache.org/repos/asf/wicket/blob/4c235918/wicket-core/src/test/java/org/apache/wicket/ajax/attributes/AjaxAttributeNameTest.java ---------------------------------------------------------------------- diff --git a/wicket-core/src/test/java/org/apache/wicket/ajax/attributes/AjaxAttributeNameTest.java b/wicket-core/src/test/java/org/apache/wicket/ajax/attributes/AjaxAttributeNameTest.java index cef220d..4b2d173 100644 --- a/wicket-core/src/test/java/org/apache/wicket/ajax/attributes/AjaxAttributeNameTest.java +++ b/wicket-core/src/test/java/org/apache/wicket/ajax/attributes/AjaxAttributeNameTest.java @@ -35,7 +35,7 @@ public class AjaxAttributeNameTest extends Assert @Test public void jsonNamesDoNotCollide() { - Set<String> jsonNames = new HashSet<String>(); + Set<String> jsonNames = new HashSet<>(); for (AjaxAttributeName name : AjaxAttributeName.values()) { assertTrue("Attribute: " + name, jsonNames.add(name.jsonName())); http://git-wip-us.apache.org/repos/asf/wicket/blob/4c235918/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java ---------------------------------------------------------------------- diff --git a/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java b/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java index 2870c87..bab4c36 100644 --- a/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java +++ b/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java @@ -60,17 +60,17 @@ import org.apache.wicket.util.string.AppendingStringBuffer; * <code>{@link #setPageCreator(ModalWindow.PageCreator)}</code> method. * </ul> * In case the content is a component, it is not rendered until the window is shown (method - * <code>{@link #show(org.apache.wicket.ajax.AjaxRequestTarget)})</code>. The window can be made + * <code>{@link #show(IPartialPageRequestHandler)}</code>. The window can be made * visible from an ajax handler using - * <code>{@link #show(org.apache.wicket.ajax.AjaxRequestTarget)}</code>. + * <code>{@link #show(IPartialPageRequestHandler)}</code>. * <p> * To close the window there are multiple options. Static method - * <code>{@link #close(org.apache.wicket.ajax.AjaxRequestTarget)}</code> can be used to close the + * <code>{@link #close(IPartialPageRequestHandler)}</code> can be used to close the * window from a handler of ajax link inside the window. By default the close button in the upper * right corner of the window closes it. This behavior can be altered using * <code>{@link #setCloseButtonCallback(ModalWindow.CloseButtonCallback)}</code>. If you want to be * notified when the window is closed (either using the close button or calling - * <code>{@link #close(org.apache.wicket.ajax.AjaxRequestTarget)})</code>, you can use + * <code>{@link #close(IPartialPageRequestHandler)}</code>, you can use * <code>{@link #setWindowClosedCallback(ModalWindow.WindowClosedCallback)}</code>. * <p> * Title is specified using {@link #setTitle(String)}. Pass <code>true</code> to @@ -375,7 +375,7 @@ public class ModalWindow extends Panel /** * Hides the modal window. This can be called from within the modal window, however, the modal * window must have configured WindowClosedCallback. Otherwise use the - * {@link #close(org.apache.wicket.ajax.AjaxRequestTarget)} method. + * {@link #close(IPartialPageRequestHandler)} method. * * @param target * Request target associated with current ajax request.
