提交 b5ad8cf2 编写于 作者: J Jerry Zhang 提交者: GitHub

Merge pull request #9 from DevFactory/release/catches-should-be-combined-fix-1

Cleanup - squid:S2147 - Catches should be combined
...@@ -82,25 +82,9 @@ public class GitHandler { ...@@ -82,25 +82,9 @@ public class GitHandler {
} }
LOGGER.info("Json SVN Checked in at " + new Date()); LOGGER.info("Json SVN Checked in at " + new Date());
} catch (IOException e) { } catch (IOException | UnmergedPathsException | WrongRepositoryStateException | ConcurrentRefUpdateException
LOGGER.error(e.toString()); | NoFilepatternException | AbortedByHookException | NoHeadException | InvalidRemoteException
} catch (UnmergedPathsException e) { | TransportException | NoMessageException e) {
LOGGER.error(e.toString());
} catch (WrongRepositoryStateException e) {
LOGGER.error(e.toString());
} catch (ConcurrentRefUpdateException e) {
LOGGER.error(e.toString());
} catch (NoFilepatternException e) {
LOGGER.error(e.toString());
} catch (AbortedByHookException e) {
LOGGER.error(e.toString());
} catch (NoHeadException e) {
LOGGER.error(e.toString());
} catch (InvalidRemoteException e) {
LOGGER.error(e.toString());
} catch (TransportException e) {
LOGGER.error(e.toString());
} catch (NoMessageException e) {
LOGGER.error(e.toString()); LOGGER.error(e.toString());
} catch (GitAPIException e) { } catch (GitAPIException e) {
LOGGER.error(e.toString()); LOGGER.error(e.toString());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册