aboutsummaryrefslogtreecommitdiffstats
path: root/policy-endpoints/src/main/java/org/onap
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-06-14 10:58:51 -0400
committerJim Hahn <jrh3@att.com>2019-06-14 10:58:51 -0400
commitaecbc1cba6e862c3d842012ce54d121764f78cb0 (patch)
tree3e96270fcc43b0c2198e8468f8c644204bd42dc8 /policy-endpoints/src/main/java/org/onap
parentfe5d78724f723a451ddc0d7cc41d6fc60092b314 (diff)
Change getCanonicalName() to getName() in common
Per javadocs, getName() should generally be used instead of Class.getCanonicalName(). This change only applies to classes; it does not apply to File objects. Change-Id: Iea0995d1167f4837607f194d35f0193eeedeacd7 Issue-ID: POLICY-1646 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'policy-endpoints/src/main/java/org/onap')
-rw-r--r--policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/internal/JettyServletServer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/internal/JettyServletServer.java b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/internal/JettyServletServer.java
index 58c2ada7..45ccb06a 100644
--- a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/internal/JettyServletServer.java
+++ b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/internal/JettyServletServer.java
@@ -238,13 +238,13 @@ public abstract class JettyServletServer implements HttpServletServer, Runnable
@Override
public void setAafAuthentication(String filterPath) {
- this.addFilterClass(filterPath, CadiFilter.class.getCanonicalName());
+ this.addFilterClass(filterPath, CadiFilter.class.getName());
}
@Override
public boolean isAaf() {
for (FilterHolder filter : context.getServletHandler().getFilters()) {
- if (CadiFilter.class.getCanonicalName().equals(filter.getClassName())) {
+ if (CadiFilter.class.getName().equals(filter.getClassName())) {
return true;
}
}