Code Review
/
dmaap
/
messagerouter
/
mirroragent.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "sonar critical for Exception Handling"
[dmaap/messagerouter/mirroragent.git]
/
src
/
main
/
java
/
com
/
att
/
nsa
/
dmaapMMAgent
/
MirrorMakerAgent.java
diff --git
a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
index
1972d54
..
6c9cbd0
100644
(file)
--- a/
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
+++ b/
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
@@
-167,14
+167,14
@@
public class MirrorMakerAgent {
prop.store(out, "");
} catch (Exception e) {
prop.store(out, "");
} catch (Exception e) {
-
e.printStackTrace(
);
+
logger.error("Exception at checkPropertiesFile " +e
);
}
} finally {
if (input != null) {
try {
input.close();
} catch (IOException e) {
}
} finally {
if (input != null) {
try {
input.close();
} catch (IOException e) {
-
e.printStackTrace(
);
+
logger.error("Exception occurred is " +e
);
}
}
if (out != null) {
}
}
if (out != null) {
@@
-212,6
+212,7
@@
public class MirrorMakerAgent {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
}
mirrorMakers.getListMirrorMaker().set(i, mm);
} else {
}
mirrorMakers.getListMirrorMaker().set(i, mm);
} else {
@@
-362,7
+363,7
@@
public class MirrorMakerAgent {
}
} catch (Exception e) {
}
} catch (Exception e) {
-
e.printStackTrace(
);
+
logger.error("Exception is : " +e
);
}
}
}
}