Skip to content

Commit f095f0f

Browse files
committed
[2.0.0-SNAPSHOT]
Javadoc improved
1 parent 34ca1a7 commit f095f0f

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

Diff for: src/main/java/io/goodforgod/api/etherscan/model/query/LogQuery.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import org.jetbrains.annotations.NotNull;
88

99
/**
10-
* Final builded container for The Event Log API
10+
* Final built container for The Event Log API
1111
* EtherScan - API Descriptions <a href="https://etherscan.io/apis#logs">...</a>
1212
*
1313
* @see LogQueryBuilderImpl
@@ -21,7 +21,7 @@ public interface LogQuery {
2121
String params();
2222

2323
@NotNull
24-
static Builder builder(String address) {
24+
static Builder builder(@NotNull String address) {
2525
return new LogQueryBuilderImpl(address, MIN_BLOCK, MAX_BLOCK);
2626
}
2727

@@ -34,16 +34,16 @@ interface Builder {
3434
LogQuery.Builder withBlockTo(long endBlock);
3535

3636
@NotNull
37-
LogTopicSingle withTopic(String topic0);
37+
LogTopicSingle withTopic(@NotNull String topic0);
3838

3939
@NotNull
40-
LogTopicTuple withTopic(String topic0, String topic1);
40+
LogTopicTuple withTopic(@NotNull String topic0, @NotNull String topic1);
4141

4242
@NotNull
43-
LogTopicTriple withTopic(String topic0, String topic1, String topic2);
43+
LogTopicTriple withTopic(@NotNull String topic0, @NotNull String topic1, @NotNull String topic2);
4444

4545
@NotNull
46-
LogTopicQuadro withTopic(String topic0, String topic1, String topic2, String topic3);
46+
LogTopicQuadro withTopic(@NotNull String topic0, @NotNull String topic1, @NotNull String topic2, @NotNull String topic3);
4747

4848
@NotNull
4949
LogQuery build();

Diff for: src/main/java/io/goodforgod/api/etherscan/model/query/LogQueryBuilderImpl.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ final class LogQueryBuilderImpl implements LogQuery.Builder {
3737
}
3838

3939
@Override
40-
public @NotNull LogTopicSingle withTopic(String topic0) {
40+
public @NotNull LogTopicSingle withTopic(@NotNull String topic0) {
4141
if (BasicUtils.isNotHex(topic0))
4242
throw new ErtherScanLogQueryException("topic0 can not be empty or non hex.");
4343
return new LogTopicSingle(address, startBlock, endBlock, topic0);
4444
}
4545

4646
@Override
47-
public @NotNull LogTopicTuple withTopic(String topic0, String topic1) {
47+
public @NotNull LogTopicTuple withTopic(@NotNull String topic0, @NotNull String topic1) {
4848
if (BasicUtils.isNotHex(topic0))
4949
throw new ErtherScanLogQueryException("topic0 can not be empty or non hex.");
5050
if (BasicUtils.isNotHex(topic1))
@@ -53,7 +53,7 @@ final class LogQueryBuilderImpl implements LogQuery.Builder {
5353
}
5454

5555
@Override
56-
public @NotNull LogTopicTriple withTopic(String topic0, String topic1, String topic2) {
56+
public @NotNull LogTopicTriple withTopic(@NotNull String topic0, @NotNull String topic1, @NotNull String topic2) {
5757
if (BasicUtils.isNotHex(topic0))
5858
throw new ErtherScanLogQueryException("topic0 can not be empty or non hex.");
5959
if (BasicUtils.isNotHex(topic1))
@@ -64,7 +64,8 @@ final class LogQueryBuilderImpl implements LogQuery.Builder {
6464
}
6565

6666
@Override
67-
public @NotNull LogTopicQuadro withTopic(String topic0, String topic1, String topic2, String topic3) {
67+
public @NotNull LogTopicQuadro
68+
withTopic(@NotNull String topic0, @NotNull String topic1, @NotNull String topic2, @NotNull String topic3) {
6869
if (BasicUtils.isNotHex(topic0))
6970
throw new ErtherScanLogQueryException("topic0 can not be empty or non hex.");
7071
if (BasicUtils.isNotHex(topic1))

0 commit comments

Comments
 (0)