diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-02-16 18:00:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 18:00:51 +0100 |
commit | ec2b37c76e0c2e752610b57fad622f064bf831e6 (patch) | |
tree | 3a3c1da710bb861d1abb4a18632599cd57222a97 /config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java | |
parent | 4800b3046bf587f1b14ec9fcd0d02b55e4401088 (diff) | |
parent | 8d397dac9d96c88b89c9b00adec0968aa5eb29f0 (diff) |
Merge pull request #30298 from vespa-engine/balder/gc-unused-rowbits
GC unused getRowBits api.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java b/config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java index cb99d8ff9f5..d8149486b32 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java @@ -210,7 +210,7 @@ public abstract class AbstractService extends TreeConfigProducer<AnyConfigProduc * @throws IllegalStateException if i is out of range. */ public int getRelativePort(int i) { - if (ports.size() < 1) { + if (ports.isEmpty()) { throw new IllegalStateException("Requested port with offset " + i + " for service that " + "has not reserved any ports: " + this); } @@ -355,7 +355,7 @@ public abstract class AbstractService extends TreeConfigProducer<AnyConfigProduc jvmOptions = (args == null) ? "" : args; } public final void appendJvmOptions(String args) { - if ((args != null) && ! "".equals(args)) { + if ((args != null) && !args.isEmpty()) { setJvmOptions(jvmOptions + getSeparator(jvmOptions) + args); } } @@ -363,7 +363,7 @@ public abstract class AbstractService extends TreeConfigProducer<AnyConfigProduc return ("".equals(current)) ? "" : " "; } public final void prependJvmOptions(String args) { - if ((args != null) && ! "".equals(args)) { + if ((args != null) && !args.isEmpty()) { setJvmOptions(args + getSeparator(jvmOptions) + jvmOptions); } } |