X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=holmes-actions%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fholmes%2Fcommon%2Fdmaap%2FPublisher.java;h=91e9d42e10452b8f0df08a6d96ad7a8a353ebecc;hb=refs%2Fchanges%2F69%2F28969%2F1;hp=0f96181c6e3f56a143f799df18888c648682ceaf;hpb=6195cf0d6bf5b570d74f74d35af077a31f4f1b8c;p=holmes%2Fcommon.git diff --git a/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/Publisher.java b/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/Publisher.java index 0f96181..91e9d42 100644 --- a/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/Publisher.java +++ b/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/Publisher.java @@ -57,12 +57,12 @@ public class Publisher { response = webTarget.request(MediaType.APPLICATION_JSON) .post(Entity.entity(content, MediaType.APPLICATION_JSON)); } catch (Exception e) { - throw new CorrelationException("Failed to connect dcae.", e); + throw new CorrelationException("Failed to connect to DCAE.", e); } return checkStatus(response); } private boolean checkStatus(Response response) { - return (response.getStatus() == HttpStatus.SC_OK) ? true : false; + return response.getStatus() == HttpStatus.SC_OK; } }