Skip to content

Commit

Permalink
ftrace: Replace Java 11-only isBlank method with 8
Browse files Browse the repository at this point in the history
As MANIFEST files still have Bundle-RequiredExecutionEnvironment set to
JavaSE-1.8, which Eclipse assumes upon trying to build the code. There
was a build error [1] before this change.

[1] The method isBlank() is undefined for the type String

Change-Id: Icdf3ff944eea92b095a2a10ddb6e88b735184683
Signed-off-by: Marco Miller <marco.miller@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/c/tracecompass.incubator/org.eclipse.tracecompass.incubator/+/192477
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
  • Loading branch information
marco-miller authored and MatthewKhouzam committed Apr 5, 2022
1 parent b48bf8e commit 40e26bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private static void putKeyValueField(String name, Map<@NonNull String, @NonNull
} else {
actualValue = value;
}
if (!actualValue.isBlank()) {
if (!actualValue.trim().isEmpty()) {
// This is a temporary solution. Refactor suggestions
// are welcome.
final GenericFtraceEventLayout eventLayout = GenericFtraceEventLayout.getInstance();
Expand Down

0 comments on commit 40e26bc

Please sign in to comment.