diff --git a/exonum-java-binding/core/src/main/java/com/exonum/binding/core/service/Node.java b/exonum-java-binding/core/src/main/java/com/exonum/binding/core/service/Node.java index cf060e624c..62af5a80fe 100644 --- a/exonum-java-binding/core/src/main/java/com/exonum/binding/core/service/Node.java +++ b/exonum-java-binding/core/src/main/java/com/exonum/binding/core/service/Node.java @@ -53,7 +53,7 @@ public interface Node { HashCode submitTransaction(RawTransaction rawTransaction); /** - * Performs a given function with a snapshot of the current database state. + * Performs the given function with a snapshot of the current database state. * * @param snapshotFunction a function to execute * @param a type the function returns @@ -66,8 +66,6 @@ public interface Node { * for signing transactions in {@link #submitTransaction(RawTransaction)}. * *

This key is stored under "service_public_key" key in the node configuration file. - * - * @throws IllegalStateException if the node proxy is closed */ PublicKey getPublicKey(); } diff --git a/exonum-java-binding/testkit/src/main/java/com/exonum/binding/testkit/TestKit.java b/exonum-java-binding/testkit/src/main/java/com/exonum/binding/testkit/TestKit.java index efe45c25bb..b792161844 100644 --- a/exonum-java-binding/testkit/src/main/java/com/exonum/binding/testkit/TestKit.java +++ b/exonum-java-binding/testkit/src/main/java/com/exonum/binding/testkit/TestKit.java @@ -291,7 +291,7 @@ private static Stream stream(KeySetIndexProxy setIndex) { } /** - * Performs a given function with a snapshot of the current database state (i.e., the one that + * Performs the given function with a snapshot of the current database state (i.e., the one that * corresponds to the latest committed block). In-pool (not yet processed) transactions are also * accessible with it in {@linkplain Blockchain#getTxMessages() blockchain}. * @@ -309,7 +309,7 @@ public void withSnapshot(Consumer snapshotFunction) { } /** - * Performs a given function with a snapshot of the current database state (i.e., the one that + * Performs the given function with a snapshot of the current database state (i.e., the one that * corresponds to the latest committed block) and returns a result of its execution. In-pool * (not yet processed) transactions are also accessible with it in * {@linkplain Blockchain#getTxMessages() blockchain}. diff --git a/exonum-java-binding/testkit/src/main/java/com/exonum/binding/testkit/TestKitExtension.java b/exonum-java-binding/testkit/src/main/java/com/exonum/binding/testkit/TestKitExtension.java index 16fba1e470..22ec04c694 100644 --- a/exonum-java-binding/testkit/src/main/java/com/exonum/binding/testkit/TestKitExtension.java +++ b/exonum-java-binding/testkit/src/main/java/com/exonum/binding/testkit/TestKitExtension.java @@ -40,7 +40,7 @@ * .withService(TestServiceModule.class)); * * @BeforeEach - * void setUp() { + * void setUp(TestKit testKit) { * // Set up * } * @@ -73,8 +73,8 @@ *

As different tests might need slightly different TestKit configuration, following * parameterization annotations are available: *

* These annotations should be applied on TestKit parameter: