Skip to content

Commit 4274fa7

Browse files
committed
remove NonNull from SolidityNode
1 parent 323debe commit 4274fa7

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

framework/src/main/java/org/tron/program/SolidityNode.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import javax.annotation.PostConstruct;
1010
import javax.annotation.PreDestroy;
1111
import lombok.extern.slf4j.Slf4j;
12-
import org.checkerframework.checker.nullness.qual.NonNull;
1312
import org.springframework.beans.factory.annotation.Autowired;
1413
import org.springframework.context.ApplicationListener;
1514
import org.springframework.context.annotation.Condition;
@@ -66,7 +65,7 @@ private void init() {
6665
}
6766

6867
@Override
69-
public void onApplicationEvent(@NonNull ContextClosedEvent event) {
68+
public void onApplicationEvent(ContextClosedEvent event) {
7069
flag = false; // invoke earlier than @PreDestroy
7170
}
7271

@@ -217,8 +216,7 @@ private void resolveCompatibilityIssueIfUsingFullNodeDatabase() {
217216
static class SolidityCondition implements Condition {
218217

219218
@Override
220-
public boolean matches(@NonNull ConditionContext context,
221-
@NonNull AnnotatedTypeMetadata metadata) {
219+
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
222220
return Args.getInstance().isSolidityNode();
223221
}
224222
}

0 commit comments

Comments
 (0)