postgresql-jdbc.git / summary / log / commit / refs
commit aa1f58699d3ee0d8a149be60da44b756e1e618f2
Author: Dave Cramer <davecramer@gmail.com>
Commit: GitHub <noreply@github.com>
Date: Thu Mar 31 15:36:45 2022 +0000
Remove isDeprecated from PGProperty. It was originally intended to help produce automated docs. Fixes #Issue 2479 (#2480)
pgjdbc/src/main/java/org/postgresql/PGProperty.java | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/pgjdbc/src/main/java/org/postgresql/PGProperty.java b/pgjdbc/src/main/java/org/postgresql/PGProperty.java
index 4a87ac2f..b637df93 100644
--- a/pgjdbc/src/main/java/org/postgresql/PGProperty.java
+++ b/pgjdbc/src/main/java/org/postgresql/PGProperty.java
@@ -751,7 +751,6 @@ public enum PGProperty {
private final boolean required;
private final String description;
private final String @Nullable [] choices;
- private final boolean deprecated;
PGProperty(String name, @Nullable String defaultValue, String description) {
this(name, defaultValue, description, false);
@@ -768,11 +767,6 @@ public enum PGProperty {
this.required = required;
this.description = description;
this.choices = choices;
- try {
- this.deprecated = PGProperty.class.getField(name()).getAnnotation(Deprecated.class) != null;
- } catch (NoSuchFieldException e) {
- throw new RuntimeException(e);
- }
}
private static final Map<String, PGProperty> PROPS_BY_NAME = new HashMap<String, PGProperty>();
@@ -831,15 +825,6 @@ public enum PGProperty {
return choices;
}
- /**
- * Returns whether this connection parameter is deprecated.
- *
- * @return whether this connection parameter is deprecated
- */
- public boolean isDeprecated() {
- return deprecated;
- }
-
/**
* Returns the value of the connection parameters according to the given {@code Properties} or the
* default value.
[parent: 3d14ea45688d]