diff options
author | olivier lamy <olamy@apache.org> | 2016-09-27 08:35:10 +1000 |
---|---|---|
committer | olivier lamy <olamy@apache.org> | 2016-09-27 08:35:38 +1000 |
commit | 85be2b77aff90ec03e1eec2ab8ed562763c7caf5 (patch) | |
tree | fc873e407e987f075dda206495f2ac7cbf63413e /archiva-modules | |
parent | 712275456c28615767204f7d06a8160a913b35ab (diff) | |
download | archiva-85be2b77aff90ec03e1eec2ab8ed562763c7caf5.tar.gz archiva-85be2b77aff90ec03e1eec2ab8ed562763c7caf5.zip |
simplify code
Signed-off-by: olivier lamy <olamy@apache.org>
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java b/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java index 8bd5d4d5d..864d80690 100644 --- a/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java +++ b/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java @@ -1092,8 +1092,7 @@ public class DefaultRepositoryProxyConnectors throws ProxyException { - // TODO file lock library - Lock lock = null; + Lock lock; try { lock = fileLockManager.writeFileLock( target ); @@ -1131,11 +1130,7 @@ public class DefaultRepositoryProxyConnectors } } } - catch ( FileLockException e ) - { - throw new ProxyException( e.getMessage(), e ); - } - catch ( FileLockTimeoutException e ) + catch ( FileLockException | FileLockTimeoutException e ) { throw new ProxyException( e.getMessage(), e ); } |