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%2FPIPResolver.java;h=a5e9ef824dc522f3e6e28f479735b975d37529f8;hp=4838639f928443552273d1b6f825be53c0bd75cc;hb=b7594ee217d0fd4c724fd64dd48d2e154fdd6e90;hpb=6a44b2926f33b427904c2f3e7962d0dfc360c482 diff --git a/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/PIPResolver.java b/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/PIPResolver.java index 4838639f9..a5e9ef824 100644 --- a/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/PIPResolver.java +++ b/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/PIPResolver.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. @@ -254,7 +254,7 @@ public class PIPResolver implements Serializable { @Transient public void clearParams() { - while (this.pipresolverParams.isEmpty() == false) { + while (!this.pipresolverParams.isEmpty()) { this.removePipresolverParam(this.pipresolverParams.iterator().next()); } } @@ -295,7 +295,7 @@ public class PIPResolver implements Serializable { // Go through each property // for (Object nme : properties.keySet()) { - if (nme.toString().startsWith(prefix) == false) { + if (!nme.toString().startsWith(prefix)) { continue; } if (nme.equals(prefix + ".classname")) { @@ -319,7 +319,7 @@ public class PIPResolver implements Serializable { public Map getConfiguration(String prefix) { String pref = prefix; Map map = new HashMap<>(); - if (prefix.endsWith(".") == false) { + if (!prefix.endsWith(".")) { pref = prefix + "."; } map.put(pref + "classname", this.classname); @@ -327,7 +327,7 @@ public class PIPResolver implements Serializable { if (this.description != null) { map.put(pref + "description", this.description); } - if (this.issuer != null && this.issuer.isEmpty() != false) { + if (this.issuer != null && this.issuer.isEmpty()) { map.put(pref + "issuer", this.issuer); } for (PIPResolverParam param : this.pipresolverParams) { @@ -339,7 +339,7 @@ public class PIPResolver implements Serializable { @Transient public void generateProperties(Properties props, String prefix) { String pref = prefix; - if (prefix.endsWith(".") == false) { + if (!prefix.endsWith(".")) { pref = prefix + "."; } props.setProperty(pref + "classname", this.classname); @@ -347,7 +347,7 @@ public class PIPResolver implements Serializable { if (this.description != null) { props.setProperty(pref + "description", this.description); } - if (this.issuer != null && this.issuer.isEmpty() != false) { + if (this.issuer != null && this.issuer.isEmpty()) { props.setProperty(pref + "issuer", this.issuer); } for (PIPResolverParam param : this.pipresolverParams) {