Skip to content

Commit 728c04e

Browse files
authored
fix javadoc failure to document parameters (#2432)
* fix javadoc failure to document parameters * fix checkstyle
1 parent 2de239f commit 728c04e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pgjdbc/src/main/java/org/postgresql/util/ObjectFactory.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ObjectFactory {
2323
* single String argument is searched if it fails, or tryString is true a no argument constructor
2424
* is tried.
2525
*
26+
* @param <T> type of expected class
27+
* @param expectedClass expected class of type T, if the classname instantiated doesn't match
28+
* the expected type of this class this method will fail
2629
* @param classname name of the class to instantiate
2730
* @param info parameter to pass as Properties
2831
* @param tryString whether to look for a single String argument constructor

pgjdbc/src/test/java/org/postgresql/test/util/ObjectFactoryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55

66
package org.postgresql.test.util;
77

8-
import static org.junit.jupiter.api.Assertions.assertThrows;
98
import static org.junit.jupiter.api.Assertions.assertEquals;
109
import static org.junit.jupiter.api.Assertions.assertFalse;
10+
import static org.junit.jupiter.api.Assertions.assertThrows;
1111

1212
import org.postgresql.PGProperty;
1313
import org.postgresql.jdbc.SslMode;
1414
import org.postgresql.test.TestUtil;
1515
import org.postgresql.util.ObjectFactory;
1616
import org.postgresql.util.PSQLState;
1717

18-
import org.junit.jupiter.api.Test;
1918
import org.junit.jupiter.api.Assertions;
19+
import org.junit.jupiter.api.Test;
2020
import org.opentest4j.MultipleFailuresError;
2121

2222
import java.sql.SQLException;

0 commit comments

Comments
 (0)