From ab512b65ed74785385625168856b10d07d3d4064 Mon Sep 17 00:00:00 2001 From: Sally MacFarlane Date: Tue, 31 Aug 2021 14:53:06 +1000 Subject: [PATCH] [MINOR] Fixed typos (#2698) * typos Signed-off-by: Sally MacFarlane --- .../src/main/java/org/hyperledger/besu/cli/BesuCommand.java | 6 +++--- .../test/java/org/hyperledger/besu/cli/BesuCommandTest.java | 2 +- build.gradle | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java b/besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java index c6c799f69d..5e2fda02cd 100644 --- a/besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java +++ b/besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java @@ -453,7 +453,7 @@ public class BesuCommand implements DefaultCommandValues, Runnable { @Option( names = {"--p2p-host"}, paramLabel = MANDATORY_HOST_FORMAT_HELP, - description = "Ip address this node advertises to its peers (default: ${DEFAULT-VALUE})", + description = "IP address this node advertises to its peers (default: ${DEFAULT-VALUE})", arity = "1") private String p2pHost = autoDiscoverDefaultIP().getHostAddress(); @@ -1505,7 +1505,7 @@ public class BesuCommand implements DefaultCommandValues, Runnable { throw new ParameterException( this.commandLine, "The `--ethstats-contact` requires ethstats server URL to be provided. Either remove --ethstats-contact" - + " or provide an url (via --ethstats=nodename:secret@host:port)"); + + " or provide a URL (via --ethstats=nodename:secret@host:port)"); } } @@ -2644,7 +2644,7 @@ public class BesuCommand implements DefaultCommandValues, Runnable { } /** - * Adds port in the passed list only if enabled. + * Adds port to the specified list only if enabled. * * @param ports The list of ports * @param port The port value diff --git a/besu/src/test/java/org/hyperledger/besu/cli/BesuCommandTest.java b/besu/src/test/java/org/hyperledger/besu/cli/BesuCommandTest.java index 58da13b1a2..05a6ff5fd9 100644 --- a/besu/src/test/java/org/hyperledger/besu/cli/BesuCommandTest.java +++ b/besu/src/test/java/org/hyperledger/besu/cli/BesuCommandTest.java @@ -1580,7 +1580,7 @@ public class BesuCommandTest extends CommandTestAbstract { assertThat(commandOutput.toString()).isEmpty(); assertThat(commandErrorOutput.toString()) .contains( - "The `--ethstats-contact` requires ethstats server URL to be provided. Either remove --ethstats-contact or provide an url (via --ethstats=nodename:secret@host:port)"); + "The `--ethstats-contact` requires ethstats server URL to be provided. Either remove --ethstats-contact or provide a URL (via --ethstats=nodename:secret@host:port)"); } @Test diff --git a/build.gradle b/build.gradle index 43dc1ca010..3f59f16f3c 100644 --- a/build.gradle +++ b/build.gradle @@ -214,7 +214,7 @@ allprojects { 'java.base/java.util.concurrent=ALL-UNNAMED', '--add-opens', 'java.base/java.util.concurrent.atomic=ALL-UNNAMED', - // errorpone tests need access to the javac compiler + // errorprone tests need access to the javac compiler '--add-exports', 'jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED', '--add-exports',