diff options
author | Olivier Lamy <olamy@apache.org> | 2014-04-17 10:46:06 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-04-17 10:46:06 +1000 |
commit | 2132965397ca7d93a66c2eea3dfce98ca377268d (patch) | |
tree | 7062be19f897e4664b78190f864b76b8a29cbd30 /archiva-modules/plugins/metadata-store-file/src | |
parent | 0a21a1167f0688c014b0f28b6af9cf5408a687ab (diff) | |
download | archiva-2132965397ca7d93a66c2eea3dfce98ca377268d.tar.gz archiva-2132965397ca7d93a66c2eea3dfce98ca377268d.zip |
more code simplification with 1.7 features
Diffstat (limited to 'archiva-modules/plugins/metadata-store-file/src')
-rw-r--r-- | archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java b/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java index 15129c9a4..e04c7d3bf 100644 --- a/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java +++ b/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java @@ -46,6 +46,7 @@ import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.file.Files; +import java.nio.file.NoSuchFileException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; @@ -857,7 +858,7 @@ public class FileMetadataRepository { return readProperties( directory, propertiesKey ); } - catch ( FileNotFoundException e ) + catch ( FileNotFoundException | NoSuchFileException e ) { // ignore and return new properties } |