aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/test/java/com/yahoo
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2022-03-24 14:06:07 +0000
committerArne H Juul <arnej@yahooinc.com>2022-03-24 14:06:07 +0000
commit3fd24d7f5650524a702d18857537e8ff6d01145b (patch)
tree8765cd3e40812b35c78dbad84bba70af19f03e7c /document/src/test/java/com/yahoo
parentedb61340064d3b86cf6549b6376edd2881522fe4 (diff)
fix two getDataType calls
Diffstat (limited to 'document/src/test/java/com/yahoo')
-rw-r--r--document/src/test/java/com/yahoo/document/annotation/Bug4261985TestCase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/document/src/test/java/com/yahoo/document/annotation/Bug4261985TestCase.java b/document/src/test/java/com/yahoo/document/annotation/Bug4261985TestCase.java
index dc4db0f06ed..96b4d0f018c 100644
--- a/document/src/test/java/com/yahoo/document/annotation/Bug4261985TestCase.java
+++ b/document/src/test/java/com/yahoo/document/annotation/Bug4261985TestCase.java
@@ -107,10 +107,10 @@ public class Bug4261985TestCase {
companyValue.setFieldValue(compLocField, compLocFieldVal);
companyValue.setFieldValue("vertical", "software");
- Struct dirValue1 = new Struct(manager.getDataType("annotation.person"));
+ Struct dirValue1 = new Struct(person.getDataType());
dirValue1.setFieldValue("name", "Jonathan Schwartz");
Annotation dirAnnotation1 = new Annotation(person, dirValue1);
- Struct dirValue2 = new Struct(manager.getDataType("annotation.person"));
+ Struct dirValue2 = new Struct(person.getDataType());
dirValue2.setFieldValue("name", "Scott Mcnealy");
Annotation dirAnnotation2 = new Annotation(person, dirValue2);
Field dirField = ((StructDataType) company.getDataType()).getField("directors");