From 2276b345c135394b0a3b28d4221e98ac243ea43f Mon Sep 17 00:00:00 2001 From: Miles Krell Date: Thu, 4 Jun 2020 14:44:36 -0400 Subject: [PATCH] Fix Javadoc for removeSource/removeLayer/removeLayerAt --- .../src/main/java/com/mapbox/mapboxsdk/maps/Style.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Style.java b/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Style.java index 3a9c0cd4f..67f9e3127 100644 --- a/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Style.java +++ b/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Style.java @@ -157,7 +157,7 @@ public T getSourceAs(@NonNull String sourceId) { * Removes the source from the style. * * @param sourceId the source to remove - * @return the source handle or null if the source was not present + * @return true if the source was removed, false otherwise */ public boolean removeSource(@NonNull String sourceId) { validateState("removeSource"); @@ -169,7 +169,7 @@ public boolean removeSource(@NonNull String sourceId) { * Removes the source, preserving the reference for re-use * * @param source the source to remove - * @return the source + * @return true if the source was removed, false otherwise */ public boolean removeSource(@NonNull Source source) { validateState("removeSource"); @@ -274,7 +274,7 @@ public List getLayers() { * Removes the layer. Any references to the layer become invalid and should not be used anymore * * @param layerId the layer to remove - * @return the removed layer or null if not found + * @return true if the layer was removed, false otherwise */ public boolean removeLayer(@NonNull String layerId) { validateState("removeLayer"); @@ -286,7 +286,7 @@ public boolean removeLayer(@NonNull String layerId) { * Removes the layer. The reference is re-usable after this and can be re-added * * @param layer the layer to remove - * @return the layer + * @return true if the layer was removed, false otherwise */ public boolean removeLayer(@NonNull Layer layer) { validateState("removeLayer"); @@ -298,7 +298,7 @@ public boolean removeLayer(@NonNull Layer layer) { * Removes the layer. Any other references to the layer become invalid and should not be used anymore * * @param index the layer index - * @return the removed layer or null if not found + * @return true if the layer was removed, false otherwise */ public boolean removeLayerAt(@IntRange(from = 0) int index) { validateState("removeLayerAt");