JGroupsPeerInfoProvider: Refactor to avoid false positive Eclipse warning

Eclipse seems to have a problem with the ternary operation and reports
a potential resource warning for the instantiation of JChannel.

Refactoring it to an if-else block gets rid of the warning.

Change-Id: Ie04cef2e74b798f78e15bb6b6ebe5a842406247b
1 file changed