Skip to content
Permalink
Browse files

[HOTFIX] fix lint-java

  • Loading branch information...
squito committed Sep 13, 2018
1 parent 575fea1 commit f3bbb7ceb9ae8038c3612f1fe5b8b44f0652711a
@@ -32,16 +32,16 @@
* @return <code>true</code> if and only if the file or directory is
* successfully deleted; <code>false</code> otherwise
*/
public boolean delete();
boolean delete();

/**
* A channel for writing data to the file. This special channel allows access to the data for
* reading, after the channel is closed, via {@link DownloadFileWritableChannel#closeAndRead()}.
*/
public DownloadFileWritableChannel openForWriting() throws IOException;
DownloadFileWritableChannel openForWriting() throws IOException;

/**
* The path of the file, intended only for debug purposes.
*/
public String path();
String path();
}
@@ -19,13 +19,12 @@

import org.apache.spark.network.buffer.ManagedBuffer;

import java.io.OutputStream;
import java.nio.channels.WritableByteChannel;

/**
* A channel for writing data which is fetched to disk, which allows access to the written data only
* after the writer has been closed. Used with DownloadFile and DownloadFileManager.
*/
public interface DownloadFileWritableChannel extends WritableByteChannel {
public ManagedBuffer closeAndRead();
ManagedBuffer closeAndRead();
}

0 comments on commit f3bbb7c

Please sign in to comment.
You can’t perform that action at this time.