Skip to content

Commit c0c8f43

Browse files
committed
Make AbstractFileObject.getOutputStream final and package-private
1 parent 1a99272 commit c0c8f43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ public FileName getName() {
12391239
* @return An OutputStream where the new contents of the file can be written.
12401240
* @throws FileSystemException if an error occurs.
12411241
*/
1242-
public OutputStream getOutputStream() throws FileSystemException {
1242+
final OutputStream getOutputStream() throws FileSystemException {
12431243
return getOutputStream(false);
12441244
}
12451245

@@ -1253,7 +1253,7 @@ public OutputStream getOutputStream() throws FileSystemException {
12531253
* @throws FileSystemException if an error occurs; for example:
12541254
* bAppend is true, and the underlying FileSystem does not support it
12551255
*/
1256-
public OutputStream getOutputStream(final boolean bAppend) throws FileSystemException {
1256+
final OutputStream getOutputStream(final boolean bAppend) throws FileSystemException {
12571257
/*
12581258
* VFS-210 if (getType() != FileType.IMAGINARY && !getType().hasContent()) { throw new
12591259
* FileSystemException("vfs.provider/write-not-file.error", name); } if (!isWriteable()) { throw new

0 commit comments

Comments
 (0)