Skip to content

Commit c05a39b

Browse files
committed
Restore Java 8 compatibility
1 parent 08d733e commit c05a39b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/org/firebirdsql/gds/JaybirdSystemProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public static boolean isXaConnectionForceCloseOnFatal() {
137137
private static boolean getBooleanWithDefault(String propertyName, boolean defaultValue) {
138138
String stringValue = getSystemPropertyPrivileged(propertyName);
139139
// Special handling for null -> default, and blank string -> true
140-
return stringValue == null ? defaultValue : (stringValue.isBlank() || Boolean.parseBoolean(stringValue));
140+
return stringValue == null ? defaultValue : (stringValue.trim().isEmpty() || Boolean.parseBoolean(stringValue));
141141
}
142142

143143
private static String getSystemPropertyPrivileged(final String propertyName) {

0 commit comments

Comments
 (0)