Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlietz committed Jul 9, 2023
1 parent 438dd3c commit 41f9deb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected int httpPort() throws IOException {
protected OptionalCompositeOption jacoco() {
final String jacocoCommand = System.getProperty("jacoco.it.command");
@SuppressWarnings("checkstyle:AvoidInlineConditionals")
final VMOption option = Objects.nonNull(jacocoCommand) && !jacocoCommand.trim().isEmpty() ? vmOption(jacocoCommand) : null;
final VMOption option = Objects.nonNull(jacocoCommand) && !jacocoCommand.trim().isBlank() ? vmOption(jacocoCommand) : null;
return when(Objects.nonNull(option)).useOptions(option);
}

Expand Down Expand Up @@ -171,7 +171,7 @@ public static SystemPropertyOption failOnUnresolvedBundles() {
*/
public static OptionalCompositeOption localMavenRepo() {
final String localRepository = System.getProperty("maven.repo.local", ""); // PAXEXAM-543
return when(localRepository.length() > 0).useOptions(
return when(!localRepository.isBlank()).useOptions(
systemProperty("org.ops4j.pax.url.mvn.localRepository").value(localRepository)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected Option failOnUnresolvedBundles() {

protected Option localMavenRepo() {
final String localRepository = System.getProperty("maven.repo.local", ""); // PAXEXAM-543
return when(localRepository.length() > 0).useOptions(
return when(!localRepository.isBlank()).useOptions(
systemProperty("org.ops4j.pax.url.mvn.localRepository").value(localRepository)
);
}
Expand Down

0 comments on commit 41f9deb

Please sign in to comment.