This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch geoapi-4.0 in repository https://gitbox.apache.org/repos/asf/sis.git
commit ee1bcd6633e03bc4012f7b23d90c40314e385892 Author: Martin Desruisseaux <martin.desruisse...@geomatys.com> AuthorDate: Tue Apr 5 14:14:39 2022 +0200 Remove debug annotations or methods that are not needed. --- .../java/org/apache/sis/internal/coverage/j2d/Colorizer.java | 12 ------------ .../org/apache/sis/internal/storage/io/ChannelDataInput.java | 2 -- 2 files changed, 14 deletions(-) diff --git a/core/sis-feature/src/main/java/org/apache/sis/internal/coverage/j2d/Colorizer.java b/core/sis-feature/src/main/java/org/apache/sis/internal/coverage/j2d/Colorizer.java index ded5287e97..ae2aaa6d0b 100644 --- a/core/sis-feature/src/main/java/org/apache/sis/internal/coverage/j2d/Colorizer.java +++ b/core/sis-feature/src/main/java/org/apache/sis/internal/coverage/j2d/Colorizer.java @@ -41,7 +41,6 @@ import org.apache.sis.util.ArgumentChecks; import org.apache.sis.util.ArraysExt; import org.apache.sis.util.resources.Errors; import org.apache.sis.util.resources.Vocabulary; -import org.apache.sis.util.Debug; /** @@ -112,17 +111,6 @@ public final class Colorizer { public static final Function<Category,Color[]> GRAYSCALE = (category) -> category.isQuantitative() ? new Color[] {Color.BLACK, Color.WHITE} : null; - /** - * Blue to red color palette with white in the middle. Useful for data with a clear 0 (white) - * in the middle of the range and with minimal value equals to the negative of maximal value - * (to appear blue and red respectively). - * Used for debugging purposes; production code should use a {@code PaletteFactory} instead. - */ - @Debug - public static final Function<Category,Color[]> BELL = - (category) -> category.isQuantitative() ? new Color[] { - Color.BLUE, Color.CYAN, Color.WHITE, Color.YELLOW, Color.RED} : null; - /** * The colors to use for each category. Never {@code null}. * The function may return {@code null}, which means transparent. diff --git a/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/io/ChannelDataInput.java b/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/io/ChannelDataInput.java index 5f562b71f7..1a3d63bba1 100644 --- a/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/io/ChannelDataInput.java +++ b/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/io/ChannelDataInput.java @@ -32,7 +32,6 @@ import java.nio.channels.SeekableByteChannel; import org.apache.sis.internal.storage.Resources; import org.apache.sis.io.InvalidSeekException; import org.apache.sis.util.resources.Errors; -import org.apache.sis.util.Debug; import static org.apache.sis.util.ArgumentChecks.ensureBetween; @@ -543,7 +542,6 @@ public class ChannelDataInput extends ChannelData { /** * Returns a file identifier for error messages or debugging purpose. */ - @Debug @Override public final String filename() { return filename;