We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a161df2 commit 616f5a9Copy full SHA for 616f5a9
jfr-connection/src/main/java/io/opentelemetry/contrib/jfr/connection/RecordingOptions.java
@@ -66,7 +66,8 @@ private enum Option {
66
67
/* If the arg is null or an empty String, return the Option's default. */
68
private static String normalize(String arg, Option option) {
69
- return arg == null || (arg = arg.trim()).isEmpty() ? option.defaultValue : arg;
+ arg = arg == null ? "" : arg.trim();
70
+ return arg.isEmpty() ? option.defaultValue : arg;
71
}
72
73
/**
0 commit comments