diff options
author | Rama-Huawei <rama.subba.reddy.s@huawei.com> | 2022-05-18 10:54:09 +0530 |
---|---|---|
committer | Rama-Huawei <rama.subba.reddy.s@huawei.com> | 2022-06-02 10:25:45 +0530 |
commit | 1e5a6e041efef87d43a182b54d4b01f4ae87355c (patch) | |
tree | f5dea5ee17a6768a5a9b9b1d1ba771294748395b /mod/genprocessor/src/main/java/org/onap/dcae/genprocessor/App.java | |
parent | 95855b69835177954e185f171af2f0aea3b3d3f3 (diff) |
CodeCoverage improvement for dcaegen2-platform-mod-genprocessor
Issue-ID: DCAEGEN2-3169
Signed-off-by: Rama-Huawei <rama.subba.reddy.s@huawei.com>
Change-Id: Ia7d7cd62b0f07953edfeceebe0ab38398ed9bb85
Diffstat (limited to 'mod/genprocessor/src/main/java/org/onap/dcae/genprocessor/App.java')
-rw-r--r-- | mod/genprocessor/src/main/java/org/onap/dcae/genprocessor/App.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mod/genprocessor/src/main/java/org/onap/dcae/genprocessor/App.java b/mod/genprocessor/src/main/java/org/onap/dcae/genprocessor/App.java index 9c50991..445291e 100644 --- a/mod/genprocessor/src/main/java/org/onap/dcae/genprocessor/App.java +++ b/mod/genprocessor/src/main/java/org/onap/dcae/genprocessor/App.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2022 Huawei. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -205,9 +206,7 @@ public class App { return true; } } - } catch (InterruptedException e) { - throw new RuntimeException("Error while creating jar", e); - } catch (IOException e) { + } catch (InterruptedException | IOException e) { throw new RuntimeException("Error while creating jar", e); } @@ -315,11 +314,11 @@ public class App { String sleepstr = System.getenv("GENPROC_SLEEP_SEC"); long sleepdur = (sleepstr != null)? 1000 * Long.parseLong(sleepstr): 0; do { - try { - main2(args); - } catch (Exception e) { - LOG.error(e.toString(), e); - } + try { + main2(args); + } catch (Exception e) { + LOG.error(e.toString(), e); + } Thread.sleep(sleepdur); } while (sleepdur > 0); return; @@ -401,3 +400,4 @@ public class App { } } } + |