tanishq-chugh commented on code in PR #5404: URL: https://github.com/apache/hive/pull/5404#discussion_r2056646403
########## llap-server/src/test/org/apache/hadoop/hive/llap/daemon/impl/TestLlapDaemon.java: ########## @@ -60,6 +61,18 @@ public class TestLlapDaemon { MetricsUtils.METRICS_PROCESS_NAME }; + private static List<InstanceField> allDeclaredFieldsOf(Object testInstance) { + List<InstanceField> result = new ArrayList<>(); + for (Class<?> clazz = testInstance.getClass(); Review Comment: Since, the function requires to fetch all the fields of all the superclasses of the object as well, we are using a for loop here to iterate through the superclasses till Object.class is reached. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org