X-Git-Url: https://gerrit.onap.org/r/gitweb?p=policy%2Fengine.git;a=blobdiff_plain;f=ONAP-REST%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Frest%2Fjpa%2FPIPConfiguration.java;h=a921a0c354d12590086a89ac58d8528f40e4204f;hp=01f5cfcff2edb3328bf541eb3e79d6b97bcdb72c;hb=b7594ee217d0fd4c724fd64dd48d2e154fdd6e90;hpb=6a44b2926f33b427904c2f3e7962d0dfc360c482 diff --git a/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/PIPConfiguration.java b/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/PIPConfiguration.java index 01f5cfcff..a921a0c35 100644 --- a/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/PIPConfiguration.java +++ b/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/PIPConfiguration.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP-REST * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2018 AT&T Intellectual Property. 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. @@ -248,7 +248,7 @@ public class PIPConfiguration implements Serializable { @Transient public void clearConfigParams() { - while (this.pipconfigParams.isEmpty() == false) { + while (!this.pipconfigParams.isEmpty()) { this.removePipconfigParam(this.pipconfigParams.iterator().next()); } } @@ -392,7 +392,7 @@ public class PIPConfiguration implements Serializable { // Go through each property // for (Object nme : properties.keySet()) { - if (nme.toString().startsWith(id) == false) { + if (!nme.toString().startsWith(id)) { continue; } if (nme.equals(id + ".classname")) { @@ -450,7 +450,7 @@ public class PIPConfiguration implements Serializable { } else { prefix = name; } - if (prefix.endsWith(".") == false) { + if (!prefix.endsWith(".")) { prefix = prefix + "."; } Map map = new HashMap<>(); @@ -501,7 +501,7 @@ public class PIPConfiguration implements Serializable { if (this.description != null) { props.setProperty(prefix + "description", this.description); } - if (this.issuer != null && this.issuer.isEmpty() == false) { + if (this.issuer != null && !this.issuer.isEmpty()) { props.setProperty(prefix + "issuer", this.issuer); }