diff options
author | Jim Hahn <jrh3@att.com> | 2021-06-18 14:12:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-06-18 14:12:38 +0000 |
commit | 0de684d53b9da8889244ddce49e5110d23d30ba8 (patch) | |
tree | 61e611f1bde4fabd7c0c1766cb53b5a9350a597c /policy-endpoints | |
parent | 459eca92aba02bd5a890265c5097fc793f917360 (diff) | |
parent | 91bbf2b36488c870b625f032220451155d014d20 (diff) |
Merge "Fix new checkstyle issues in policy-common"
Diffstat (limited to 'policy-endpoints')
2 files changed, 4 insertions, 3 deletions
diff --git a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/internal/JettyStaticResourceServer.java b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/internal/JettyStaticResourceServer.java index 15d9990b..f0d6ba2c 100644 --- a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/internal/JettyStaticResourceServer.java +++ b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/internal/JettyStaticResourceServer.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2020 Nordix Foundation. + * Modifications Copyright (C) 2021 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. @@ -84,9 +85,9 @@ public class JettyStaticResourceServer extends JettyServletServer { * * @throws IllegalArgumentException if invalid arguments are provided */ - protected synchronized ServletHolder getDefaultServlet(String servPath) { + protected synchronized ServletHolder getDefaultServlet(String servletPath) { - return servlets.computeIfAbsent(servPath, key -> context.addServlet(DefaultServlet.class, servPath)); + return servlets.computeIfAbsent(servletPath, key -> context.addServlet(DefaultServlet.class, servletPath)); } @Override diff --git a/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/parameters/TopicParameterGroupTest.java b/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/parameters/TopicParameterGroupTest.java index e4ac6c85..62f86d41 100644 --- a/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/parameters/TopicParameterGroupTest.java +++ b/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/parameters/TopicParameterGroupTest.java @@ -120,7 +120,7 @@ public class TopicParameterGroupTest { * Any parameters added to @link TopicParameters or @link BusTopicParams must be added to * TopicParameters_all_params.json. * - * @param topicParameters topic parameters + * @param topicParametersList list of topic parameters * @return true if all parameters are not empty (if string) or true (if boolean) * @throws Exception the exception */ |