aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/searchdefinition
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2021-12-13 12:02:27 +0000
committerArne H Juul <arnej@yahooinc.com>2021-12-13 12:13:17 +0000
commita937c928b7ba0a539d1936e20bd25f7a21a0e115 (patch)
treebd7a6da3055a951f2f25f8d6ab0b9380c6182af7 /config-model/src/main/java/com/yahoo/searchdefinition
parente577fa6e49506ad141707c130e7d071115aaf7cd (diff)
remove misleading comments
Diffstat (limited to 'config-model/src/main/java/com/yahoo/searchdefinition')
-rw-r--r--config-model/src/main/java/com/yahoo/searchdefinition/DocumentModelBuilder.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/DocumentModelBuilder.java b/config-model/src/main/java/com/yahoo/searchdefinition/DocumentModelBuilder.java
index 170753a6ff1..70f3403520b 100644
--- a/config-model/src/main/java/com/yahoo/searchdefinition/DocumentModelBuilder.java
+++ b/config-model/src/main/java/com/yahoo/searchdefinition/DocumentModelBuilder.java
@@ -195,6 +195,11 @@ public class DocumentModelBuilder {
}
}
+ private static String descT(DataType type) {
+ if (type == null) { return "<null>"; }
+ return "'" + type.getName() + "' [" + type.getId() + "] {"+type.getClass() + "}";
+ }
+
private void addDocumentTypes(List<SDDocumentType> docList) {
LinkedList<NewDocumentType> lst = new LinkedList<>();
for (SDDocumentType doc : docList) {
@@ -235,13 +240,11 @@ public class DocumentModelBuilder {
if (other == null || other == type) {
other = getDocumentType(docs, type.getId());
}
- // maybe warning if null here?
if (other != null) {
type = other;
}
} else if (type instanceof DocumentType || type instanceof NewDocumentType) {
DataType other = getDocumentType(docs, type.getId());
- // maybe warning if null here?
if (other != null) {
type = other;
}