From 5a486aeff4d63fe4323f3e9742c2d5f20b4d2c61 Mon Sep 17 00:00:00 2001 From: Justin Donn Date: Wed, 27 Nov 2024 14:22:43 -0800 Subject: [PATCH] update comments --- .../java/com/linkedin/metadata/dao/utils/EBeanDAOUtils.java | 2 +- .../java/com/linkedin/metadata/dao/utils/EBeanDAOUtilsTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dao-impl/ebean-dao/src/main/java/com/linkedin/metadata/dao/utils/EBeanDAOUtils.java b/dao-impl/ebean-dao/src/main/java/com/linkedin/metadata/dao/utils/EBeanDAOUtils.java index 9b03ddfb6..6ae211bb9 100644 --- a/dao-impl/ebean-dao/src/main/java/com/linkedin/metadata/dao/utils/EBeanDAOUtils.java +++ b/dao-impl/ebean-dao/src/main/java/com/linkedin/metadata/dao/utils/EBeanDAOUtils.java @@ -405,7 +405,7 @@ public static LocalRelationshipCriterion buildRelationshipFieldCriterion(LocalRe } else if (!(obj instanceof List) || ((List) obj).isEmpty() || !(((List) obj).get(0) instanceof RecordTemplate)) { return; } - // filter out all non-primitive, non-relationship fields + // filter out all non-primitive, non-relationship, non-list fields if (!(obj instanceof List)) { return; } diff --git a/dao-impl/ebean-dao/src/test/java/com/linkedin/metadata/dao/utils/EBeanDAOUtilsTest.java b/dao-impl/ebean-dao/src/test/java/com/linkedin/metadata/dao/utils/EBeanDAOUtilsTest.java index de558de1e..2f2b31dd8 100644 --- a/dao-impl/ebean-dao/src/test/java/com/linkedin/metadata/dao/utils/EBeanDAOUtilsTest.java +++ b/dao-impl/ebean-dao/src/test/java/com/linkedin/metadata/dao/utils/EBeanDAOUtilsTest.java @@ -645,7 +645,7 @@ public void testExtractRelationshipsFromAspect() throws URISyntaxException { // relationshipFoos -> [foo1, foo2] // relationshipBars -> [bar1] // moreRelationshipFoos -> not present - // nonPrimitiveNonRelationshipField -> barUrn + // nonPrimitiveNonRelationshipField -> commonAspect2 // } // expect: // [[foo1, foo2], [bar1]]