diff options
author | Jim Hahn <jrh3@att.com> | 2019-06-14 10:58:51 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-06-14 10:58:51 -0400 |
commit | aecbc1cba6e862c3d842012ce54d121764f78cb0 (patch) | |
tree | 3e96270fcc43b0c2198e8468f8c644204bd42dc8 /common-parameters/src/test/java/org/onap/policy/common/parameters/testclasses/TestParametersL10.java | |
parent | fe5d78724f723a451ddc0d7cc41d6fc60092b314 (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 'common-parameters/src/test/java/org/onap/policy/common/parameters/testclasses/TestParametersL10.java')
-rw-r--r-- | common-parameters/src/test/java/org/onap/policy/common/parameters/testclasses/TestParametersL10.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common-parameters/src/test/java/org/onap/policy/common/parameters/testclasses/TestParametersL10.java b/common-parameters/src/test/java/org/onap/policy/common/parameters/testclasses/TestParametersL10.java index e1642beb..7276b504 100644 --- a/common-parameters/src/test/java/org/onap/policy/common/parameters/testclasses/TestParametersL10.java +++ b/common-parameters/src/test/java/org/onap/policy/common/parameters/testclasses/TestParametersL10.java @@ -35,7 +35,7 @@ public class TestParametersL10 extends ParameterGroupImpl { private static final String L10_STRING_FIELD = "l10StringField"; private int l10IntField = 0; - private String l10StringField = "Legal " + this.getClass().getCanonicalName(); + private String l10StringField = "Legal " + this.getClass().getName(); private TestParametersLGeneric l10LGenericNested0 = new TestParametersLGeneric("l10LGenericNested0"); private TestParametersLGeneric l10LGenericNested1 = new TestParametersLGeneric("l10LGenericNested1"); private Map<String, TestParametersLGeneric> l10LGenericNestedMap = new LinkedHashMap<>(); @@ -116,7 +116,7 @@ public class TestParametersL10 extends ParameterGroupImpl { switch (triggerStatus) { case CLEAN: - l10StringField = "Legal " + this.getClass().getCanonicalName(); + l10StringField = "Legal " + this.getClass().getName(); l10IntField = 0; break; case OBSERVATION: |