File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
jfr-connection/src/main/java/io/opentelemetry/contrib/jfr/connection Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,9 @@ tasks {
79
79
// cognitive load is dubious.
80
80
disable(" YodaCondition" )
81
81
82
+ // We get this warning in modules that compile for old java versions
83
+ disable(" StringConcatToTextBlock" )
84
+
82
85
if (name.contains(" Jmh" ) || name.contains(" Test" )) {
83
86
// Allow underscore in test-type method names
84
87
disable(" MemberName" )
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ dependencies {
26
26
api(" com.google.auto.value:auto-value:1.11.0" )
27
27
api(" com.google.auto.value:auto-value-annotations:1.11.0" )
28
28
api(" com.google.errorprone:error_prone_annotations:2.37.0" )
29
- api(" com.google.errorprone:error_prone_core:2.36 .0" )
29
+ api(" com.google.errorprone:error_prone_core:2.37 .0" )
30
30
api(" io.github.netmikey.logunit:logunit-jul:2.0.0" )
31
31
api(" io.opentelemetry.proto:opentelemetry-proto:1.5.0-alpha" )
32
32
api(" io.prometheus:simpleclient:0.16.0" )
Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ private enum Option {
66
66
67
67
/* If the arg is null or an empty String, return the Option's default. */
68
68
private static String normalize (String arg , Option option ) {
69
- return arg == null || (arg = arg .trim ()).isEmpty () ? option .defaultValue : arg ;
69
+ arg = arg == null ? "" : arg .trim ();
70
+ return arg .isEmpty () ? option .defaultValue : arg ;
70
71
}
71
72
72
73
/**
You can’t perform that action at this time.
0 commit comments