You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by bl...@apache.org on 2022/08/28 22:21:59 UTC

[iceberg] branch master updated: Aliyun: Remove deprecated classes for 1.0 release (#5654)

This is an automated email from the ASF dual-hosted git repository.

blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new 324897e781 Aliyun: Remove deprecated classes for 1.0 release (#5654)
324897e781 is described below

commit 324897e781e3ea35b5f1e47b32b96e65dadfedae
Author: Daniel Weeks <dw...@apache.org>
AuthorDate: Sun Aug 28 15:21:54 2022 -0700

    Aliyun: Remove deprecated classes for 1.0 release (#5654)
---
 .../src/main/java/org/apache/iceberg/aliyun/oss/OSSInputFile.java | 4 +---
 .../main/java/org/apache/iceberg/aliyun/oss/OSSInputStream.java   | 8 ++------
 2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/aliyun/src/main/java/org/apache/iceberg/aliyun/oss/OSSInputFile.java b/aliyun/src/main/java/org/apache/iceberg/aliyun/oss/OSSInputFile.java
index 40ab3a021e..6a5bfdd779 100644
--- a/aliyun/src/main/java/org/apache/iceberg/aliyun/oss/OSSInputFile.java
+++ b/aliyun/src/main/java/org/apache/iceberg/aliyun/oss/OSSInputFile.java
@@ -25,9 +25,7 @@ import org.apache.iceberg.io.InputFile;
 import org.apache.iceberg.io.SeekableInputStream;
 import org.apache.iceberg.metrics.MetricsContext;
 
-/** @deprecated moving to package-private in 0.15.0; use OSSFileIO to create InputFile instances */
-@Deprecated
-public class OSSInputFile extends BaseOSSFile implements InputFile {
+class OSSInputFile extends BaseOSSFile implements InputFile {
 
   private Long length = null;
 
diff --git a/aliyun/src/main/java/org/apache/iceberg/aliyun/oss/OSSInputStream.java b/aliyun/src/main/java/org/apache/iceberg/aliyun/oss/OSSInputStream.java
index c6fcfe7312..931a6a9576 100644
--- a/aliyun/src/main/java/org/apache/iceberg/aliyun/oss/OSSInputStream.java
+++ b/aliyun/src/main/java/org/apache/iceberg/aliyun/oss/OSSInputStream.java
@@ -34,9 +34,7 @@ import org.apache.iceberg.relocated.com.google.common.io.ByteStreams;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-/** @deprecated moving to package-private in 0.15.0 */
-@Deprecated
-public class OSSInputStream extends SeekableInputStream {
+class OSSInputStream extends SeekableInputStream {
   private static final Logger LOG = LoggerFactory.getLogger(OSSInputStream.class);
   private static final int SKIP_SIZE = 1024 * 1024;
 
@@ -52,9 +50,7 @@ public class OSSInputStream extends SeekableInputStream {
   private final Counter readBytes;
   private final Counter readOperations;
 
-  /** @deprecated moving to package-private in 0.15.0 */
-  @Deprecated
-  public OSSInputStream(OSS client, OSSURI uri) {
+  OSSInputStream(OSS client, OSSURI uri) {
     this(client, uri, MetricsContext.nullMetrics());
   }