Skip to content

Commit

Permalink
[FLINK-17547][task][hotfix] Move RefCountedFile to flink-core
Browse files Browse the repository at this point in the history
to use it in SpanningWrapper
  • Loading branch information
rkhachatryan authored and pnowojski committed May 19, 2020
1 parent 179de29 commit 2fcc1fc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

package org.apache.flink.fs.s3.common.utils;
package org.apache.flink.core.fs;

import org.apache.flink.annotation.Internal;
import org.apache.flink.annotation.VisibleForTesting;
Expand All @@ -43,7 +43,7 @@ public class RefCountedFile implements RefCounted {

protected boolean closed;

protected RefCountedFile(final File file) {
public RefCountedFile(final File file) {
this.file = checkNotNull(file);
this.references = new AtomicInteger(1);
this.closed = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

package org.apache.flink.fs.s3.common.utils;
package org.apache.flink.util;

import org.apache.flink.annotation.Internal;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

package org.apache.flink.fs.s3.common.utils;
package org.apache.flink.core.fs;

import org.junit.Assert;
import org.junit.Rule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import org.apache.flink.annotation.Internal;
import org.apache.flink.core.fs.FSDataOutputStream;
import org.apache.flink.util.RefCounted;

import java.io.File;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.apache.flink.fs.s3.common.utils;

import org.apache.flink.annotation.Internal;
import org.apache.flink.core.fs.RefCountedFile;
import org.apache.flink.util.IOUtils;

import java.io.File;
Expand Down

0 comments on commit 2fcc1fc

Please sign in to comment.