aboutsummaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-08-02 16:34:19 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2023-08-02 16:34:19 +0200
commitdff642f673a36aad1f35eb1ec6370d3b1e0cfb70 (patch)
tree5f440c03109f033a716dfe3e09300d6df1e98256 /container-core
parent5aca1810c365f29ddafb7c3252678ad36cb5e494 (diff)
Use a map of setter lambdas.
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/main/java/com/yahoo/processing/request/Properties.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/container-core/src/main/java/com/yahoo/processing/request/Properties.java b/container-core/src/main/java/com/yahoo/processing/request/Properties.java
index ac43f99472e..2880b734e4e 100644
--- a/container-core/src/main/java/com/yahoo/processing/request/Properties.java
+++ b/container-core/src/main/java/com/yahoo/processing/request/Properties.java
@@ -316,7 +316,7 @@ public class Properties implements Cloneable {
* Converts a value to boolean - this will be true only if the value is either the empty string,
* or any Object which has a toString which is case-insensitive equal to "true"
*/
- protected final boolean asBoolean(Object value, boolean defaultValue) {
+ protected static boolean asBoolean(Object value, boolean defaultValue) {
if (value == null) return defaultValue;
String s = value.toString();
@@ -371,7 +371,7 @@ public class Properties implements Cloneable {
return asString(get(key), defaultValue);
}
- protected final String asString(Object value, String defaultValue) {
+ protected static String asString(Object value, String defaultValue) {
if (value == null) return defaultValue;
return value.toString();
}
@@ -424,7 +424,7 @@ public class Properties implements Cloneable {
return asInteger(get(name), defaultValue);
}
- protected final Integer asInteger(Object value, Integer defaultValue) {
+ protected static Integer asInteger(Object value, Integer defaultValue) {
try {
if (value == null)
return defaultValue;
@@ -490,7 +490,7 @@ public class Properties implements Cloneable {
return asLong(get(name), defaultValue);
}
- protected final Long asLong(Object value, Long defaultValue) {
+ protected static Long asLong(Object value, Long defaultValue) {
try {
if (value == null)
return defaultValue;
@@ -556,7 +556,7 @@ public class Properties implements Cloneable {
return asDouble(get(name), defaultValue);
}
- protected final Double asDouble(Object value, Double defaultValue) {
+ protected static Double asDouble(Object value, Double defaultValue) {
try {
if (value == null)
return defaultValue;