diff options
| author | Simon Rettberg | 2021-04-14 11:43:48 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2021-04-14 11:43:48 +0200 |
| commit | 2d9f26d758c7761be816924ca8b3421dd9e8fb45 (patch) | |
| tree | 97b5a141246b0f5c48022a7e8bfe74b12a5eb888 /src/main/java/org/openslx/vm/disk/DiskImageQcow2.java | |
| parent | [Feature] Adding Docker_Container as Feature (diff) | |
| download | master-sync-shared-2d9f26d758c7761be816924ca8b3421dd9e8fb45.tar.gz master-sync-shared-2d9f26d758c7761be816924ca8b3421dd9e8fb45.tar.xz master-sync-shared-2d9f26d758c7761be816924ca8b3421dd9e8fb45.zip | |
[vm/DiskImage] Remove File constructor, make sure open file doesn't leak
Diffstat (limited to 'src/main/java/org/openslx/vm/disk/DiskImageQcow2.java')
| -rw-r--r-- | src/main/java/org/openslx/vm/disk/DiskImageQcow2.java | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/main/java/org/openslx/vm/disk/DiskImageQcow2.java b/src/main/java/org/openslx/vm/disk/DiskImageQcow2.java index 5f72a00..a9826e4 100644 --- a/src/main/java/org/openslx/vm/disk/DiskImageQcow2.java +++ b/src/main/java/org/openslx/vm/disk/DiskImageQcow2.java @@ -1,8 +1,5 @@ package org.openslx.vm.disk; -import java.io.File; -import java.io.FileNotFoundException; -import java.io.IOException; import java.io.RandomAccessFile; /** @@ -50,21 +47,8 @@ public class DiskImageQcow2 extends DiskImage * Creates a new QCOW2 disk image from an existing QCOW2 image file. * * @param diskImage file to a QCOW2 disk storing the image content. - * - * @throws FileNotFoundException cannot find specified QCOW2 disk image file. - * @throws IOException cannot access the content of the QCOW2 disk image file. - */ - public DiskImageQcow2( File disk ) throws FileNotFoundException, IOException - { - super( disk ); - } - - /** - * Creates a new QCOW2 disk image from an existing QCOW2 image file. - * - * @param diskImage file to a QCOW2 disk storing the image content. */ - public DiskImageQcow2( RandomAccessFile disk ) + DiskImageQcow2( RandomAccessFile disk ) { super( disk ); } |
