[MINOR] Fixed typos (#2698)

* typos

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
pull/2675/head
Sally MacFarlane 3 years ago committed by GitHub
parent 3c979973d2
commit ab512b65ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java
  2. 2
      besu/src/test/java/org/hyperledger/besu/cli/BesuCommandTest.java
  3. 2
      build.gradle

@ -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

@ -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

@ -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',

Loading…
Cancel
Save