You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2019/02/21 12:04:34 UTC
[sis] 04/04: Restore public visibility on Variable.read().
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 48016f787676a6a26fa9f1a6a754d7fc7dade3a9
Author: Martin Desruisseaux <ma...@geomatys.com>
AuthorDate: Thu Feb 21 13:03:05 2019 +0100
Restore public visibility on Variable.read().
---
.../src/main/java/org/apache/sis/internal/netcdf/Variable.java | 2 +-
.../src/main/java/org/apache/sis/internal/netcdf/impl/VariableInfo.java | 2 +-
.../main/java/org/apache/sis/internal/netcdf/ucar/VariableWrapper.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/Variable.java b/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/Variable.java
index 20bf721..51d5275 100644
--- a/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/Variable.java
+++ b/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/Variable.java
@@ -729,7 +729,7 @@ public abstract class Variable extends NamedElement {
* @throws DataStoreException if a logical error occurred.
* @throws ArithmeticException if the size of the variable exceeds {@link Integer#MAX_VALUE}, or other overflow occurs.
*/
- protected abstract Vector read() throws IOException, DataStoreException;
+ public abstract Vector read() throws IOException, DataStoreException;
/**
* Reads a subsampled sub-area of the variable.
diff --git a/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/impl/VariableInfo.java b/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/impl/VariableInfo.java
index 0abd6c1..15b3586 100644
--- a/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/impl/VariableInfo.java
+++ b/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/impl/VariableInfo.java
@@ -700,7 +700,7 @@ final class VariableInfo extends Variable implements Comparable<VariableInfo> {
*/
@Override
@SuppressWarnings("ReturnOfCollectionOrArrayField")
- protected Vector read() throws IOException, DataStoreContentException {
+ public Vector read() throws IOException, DataStoreContentException {
if (values == null) {
if (reader == null) {
throw new DataStoreContentException(unknownType());
diff --git a/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/ucar/VariableWrapper.java b/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/ucar/VariableWrapper.java
index ffc0718..6593a30 100644
--- a/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/ucar/VariableWrapper.java
+++ b/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/ucar/VariableWrapper.java
@@ -391,7 +391,7 @@ final class VariableWrapper extends Variable {
*/
@Override
@SuppressWarnings("ReturnOfCollectionOrArrayField")
- protected Vector read() throws IOException {
+ public Vector read() throws IOException {
if (values == null) {
final Array array = variable.read(); // May be already cached by the UCAR library.
values = createDecimalVector(get1DJavaArray(array), variable.isUnsigned());