From ae4993eacb353c6634ede7ba1e84c86f19e15f4b Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:07:43 -0300 Subject: [PATCH] docs: fix javadoc warnings Close #141 --- .../vaadin/addons/googlemaps/GoogleMap.java | 8 ++++---- .../vaadin/addons/googlemaps/GoogleMapPoly.java | 2 +- .../flowingcode/vaadin/addons/googlemaps/Icon.java | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java b/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java index b44492a..1d87c12 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java +++ b/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java @@ -592,7 +592,7 @@ public boolean isBrowserHasGeolocationSupport() { * Adds a CurrentLocationEvent listener. The listener is called when setting the current location. * * @param listener - * @return + * @return a handle that can be used for removing the listener */ public Registration addCurrentLocationEventListener( ComponentEventListener listener) { @@ -604,7 +604,7 @@ public Registration addCurrentLocationEventListener( * found. * * @param listener - * @return + * @return a handle that can be used for removing the listener */ public Registration addGeolocationErrorEventListener( ComponentEventListener listener) { @@ -705,7 +705,7 @@ public void setClusteringRenderer(String customRenderer) { * pan or zoom) * * @param listener - * @return + * @return a handle that can be used for removing the listener */ public Registration addMapIdleListener(ComponentEventListener listener) { DomListenerRegistration registration = @@ -726,7 +726,7 @@ public GoogleMapIdleEvent(GoogleMap source, boolean fromClient) { * zoomed * * @param listener - * @return + * @return a handle that can be used for removing the listener */ public Registration addGoogleMapBoundsChangedListener( ComponentEventListener listener) { diff --git a/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMapPoly.java b/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMapPoly.java index 3db229f..ccfc6aa 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMapPoly.java +++ b/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMapPoly.java @@ -182,7 +182,7 @@ public Registration addClickListener( } /** - * @deprecated, use {@link #setIcons(IconSequence...)} instead. + * @deprecated Use {@link #setIcons(IconSequence...)} instead. */ @Deprecated public void setIcons(Icon... icons) { diff --git a/src/main/java/com/flowingcode/vaadin/addons/googlemaps/Icon.java b/src/main/java/com/flowingcode/vaadin/addons/googlemaps/Icon.java index 48b9d03..ac5dab1 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/googlemaps/Icon.java +++ b/src/main/java/com/flowingcode/vaadin/addons/googlemaps/Icon.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -25,7 +25,7 @@ import java.util.Optional; /** - * @deprecated, use {@link IconSequence} instead. + * @deprecated Use {@link IconSequence} instead. */ @Deprecated public class Icon extends Symbol { @@ -34,9 +34,9 @@ public class Icon extends Symbol { public Icon(String path, String strokeColor, String fillColor, int fillOpacity, int repeat) { super(path); - this.setStrokeColor(strokeColor); - this.setFillColor(fillColor); - this.setFillOpacity(Double.valueOf(fillOpacity)); + setStrokeColor(strokeColor); + setFillColor(fillColor); + setFillOpacity(Double.valueOf(fillOpacity)); this.repeat = repeat; }