Fix Sonar Issues

Fixes gh-4300
This commit is contained in:
Rob Winch
2017-04-18 21:07:00 -05:00
parent 9d9aadb80f
commit 59a0ba285f
7 changed files with 13 additions and 12 deletions

View File

@@ -58,7 +58,9 @@ public class ClientApplication {
SecurityContextHolder.getContext().setAuthentication(authentication);
for (String beanName : contactServices.keySet()) {
for (Map.Entry<String,ContactManager> entry : contactServices.entrySet()) {
String beanName = entry.getKey();
ContactManager remoteContactManager = entry.getValue();
Object object = this.beanFactory.getBean("&" + beanName);
try {
@@ -101,7 +103,6 @@ public class ClientApplication {
catch (InvocationTargetException ignored) {
}
ContactManager remoteContactManager = contactServices.get(beanName);
System.out.println("Calling ContactManager '" + beanName + "'");
stopWatch.start(beanName);