mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
リファクタリング
This commit is contained in:
parent
78525d634a
commit
f36dc05db1
|
@ -187,8 +187,7 @@ public class FileManagerImpl implements FileManager {
|
|||
}
|
||||
private void saveBitmapInternal(Bitmap bitmap) throws IOException {
|
||||
try {
|
||||
File file = this.path.toFile();
|
||||
bitmap.compress(Bitmap.CompressFormat.PNG, 100, Files.newOutputStream(file.toPath()));
|
||||
bitmap.compress(Bitmap.CompressFormat.PNG, 100, Files.newOutputStream(this.path));
|
||||
} catch (Exception e) {
|
||||
logger.error("saveBitmapInternal", e.getMessage());
|
||||
throw new IOException("Failed to save bitmap");
|
||||
|
|
Loading…
Reference in New Issue
Block a user