From 728c04ee8d26dcc4bca51503c2e93ad87ef8ce87 Mon Sep 17 00:00:00 2001 From: Dave Cramer Date: Tue, 1 Feb 2022 09:47:11 -0500 Subject: [PATCH] fix javadoc failure to document parameters (#2432) * fix javadoc failure to document parameters * fix checkstyle --- pgjdbc/src/main/java/org/postgresql/util/ObjectFactory.java | 3 +++ .../test/java/org/postgresql/test/util/ObjectFactoryTest.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pgjdbc/src/main/java/org/postgresql/util/ObjectFactory.java b/pgjdbc/src/main/java/org/postgresql/util/ObjectFactory.java index e4fec28fc4..b927e8777c 100644 --- a/pgjdbc/src/main/java/org/postgresql/util/ObjectFactory.java +++ b/pgjdbc/src/main/java/org/postgresql/util/ObjectFactory.java @@ -23,6 +23,9 @@ public class ObjectFactory { * single String argument is searched if it fails, or tryString is true a no argument constructor * is tried. * + * @param type of expected class + * @param expectedClass expected class of type T, if the classname instantiated doesn't match + * the expected type of this class this method will fail * @param classname name of the class to instantiate * @param info parameter to pass as Properties * @param tryString whether to look for a single String argument constructor diff --git a/pgjdbc/src/test/java/org/postgresql/test/util/ObjectFactoryTest.java b/pgjdbc/src/test/java/org/postgresql/test/util/ObjectFactoryTest.java index e0a9d1f4b4..d51e5c5701 100644 --- a/pgjdbc/src/test/java/org/postgresql/test/util/ObjectFactoryTest.java +++ b/pgjdbc/src/test/java/org/postgresql/test/util/ObjectFactoryTest.java @@ -5,9 +5,9 @@ package org.postgresql.test.util; -import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertThrows; import org.postgresql.PGProperty; import org.postgresql.jdbc.SslMode; @@ -15,8 +15,8 @@ import org.postgresql.util.ObjectFactory; import org.postgresql.util.PSQLState; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; import org.opentest4j.MultipleFailuresError; import java.sql.SQLException;