File tree Expand file tree Collapse file tree 5 files changed +9
-23
lines changed
acceptance-tests/tests/src/acceptanceTest/java/org/hyperledger/besu/tests/acceptance/plugins
src/main/java/org/hyperledger/besu/util Expand file tree Collapse file tree 5 files changed +9
-23
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public void warnOnOutdatedPluginByDefault() throws IOException {
5858 line ->
5959 line .contains (
6060 "is built against Besu version 25.12.0 while current running Besu version is "
61- + BesuVersionUtils .shortVersion (). orElse ( "unknown" ) )));
61+ + BesuVersionUtils .shortVersion ())));
6262 }
6363
6464 @ Test
@@ -92,6 +92,6 @@ public void failsToStartOnOutdatedPluginIfToldSo() throws IOException {
9292 line ->
9393 line .contains (
9494 "is built against Besu version 25.12.0 while current running Besu version is "
95- + BesuVersionUtils .shortVersion (). orElse ( "unknown" ) )));
95+ + BesuVersionUtils .shortVersion ())));
9696 }
9797}
Original file line number Diff line number Diff line change 19321932 <sha256 value="61b4d7c515a0894ffad925fd7052620c1425a86433fd35113b5fab0de890a57f" origin="Generated by Gradle"/>
19331933 </artifact>
19341934 </component>
1935- <component group="com.uber.nullaway" name="nullaway" version="0.12.4">
1936- <artifact name="nullaway-0.12.4.jar">
1937- <sha256 value="260fb2d347525c100b9a32a2105557abf04d2961752321457f3c07ece9691718" origin="Generated by Gradle"/>
1938- </artifact>
1939- <artifact name="nullaway-0.12.4.module">
1940- <sha256 value="5c8c0eb7fb1507873a07794e76e563c74f6c9a1370b73f2b4cb71e97c324ee1a" origin="Generated by Gradle"/>
1941- </artifact>
1942- </component>
19431935 <component group="com.uber.nullaway" name="nullaway" version="0.13.1">
19441936 <artifact name="nullaway-0.13.1.jar">
19451937 <sha256 value="be9ad201b92de86c3e493a45b0861b1b3dd955d8e7dcb11f8d80d18d7425d164" origin="Generated by Gradle"/>
59495941 <sha256 value="119d69d41349783cc1ebd392b24b61d6f380860147a80b2885b8f7fca3ab13bf" origin="Generated by Gradle"/>
59505942 </artifact>
59515943 </component>
5952- <component group="org.checkerframework" name="dataflow-nullaway" version="3.48.0">
5953- <artifact name="dataflow-nullaway-3.48.0.jar">
5954- <sha256 value="8710f503cdc769543ee0fe0fd44c7913d89de62c6238807173346512de7f2e87" origin="Generated by Gradle"/>
5955- </artifact>
5956- <artifact name="dataflow-nullaway-3.48.0.pom">
5957- <sha256 value="fb53454d1d9c2a4aae6d795be4e37243cbc37e1024a713e629ecd40134da779e" origin="Generated by Gradle"/>
5958- </artifact>
5959- </component>
59605944 <component group="org.checkerframework" name="dataflow-nullaway" version="3.53.0">
59615945 <artifact name="dataflow-nullaway-3.53.0.jar">
59625946 <sha256 value="d0bc6e121f27a803e09404ae2f247f0e2b1f6022897f801cd792ebf375edec27" origin="Generated by Gradle"/>
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ dependencies {
6767 implementation ' org.bouncycastle:bcpkix-jdk18on'
6868 implementation ' org.xerial.snappy:snappy-java'
6969
70+ compileOnly ' org.jspecify:jspecify'
71+
7072 testImplementation ' org.mockito:mockito-junit-jupiter'
7173 testImplementation ' org.assertj:assertj-core'
7274 testImplementation ' org.junit.jupiter:junit-jupiter'
Original file line number Diff line number Diff line change @@ -79,8 +79,8 @@ private BesuVersionUtils() {}
7979 /**
8080 * Generate version-only Besu version
8181 *
82- * @return Besu version in format such as "v23.1.0" or "v23.1.1-dev-ac23d311", or {@value UNKNOWN}
83- * if not available
82+ * @return Besu version in format such as "v23.1.0" or "v23.1.1-dev-ac23d311", or {@value
83+ * #UNKNOWN} if not available
8484 */
8585 public static String shortVersion () {
8686 return VERSION ;
@@ -122,7 +122,7 @@ public static String nodeName(final Optional<String> maybeIdentity) {
122122 /**
123123 * Generate the commit hash for this besu version
124124 *
125- * @return the commit hash for this besu version, or {@value UNKNOWN} if not available
125+ * @return the commit hash for this besu version, or {@value # UNKNOWN} if not available
126126 */
127127 public static String commit () {
128128 return COMMIT ;
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public Result filter(final LogEvent event) {
7373 return filter (event .getThrown ());
7474 }
7575
76- private Result filter (final Throwable t ) {
76+ private Result filter (final @ Nullable Throwable t ) {
7777 if (t != null ) {
7878 return (messageEquals == null || Objects .equals (t .getMessage (), messageEquals ))
7979 && Arrays .stream (t .getStackTrace ())
@@ -87,7 +87,7 @@ private Result filter(final Throwable t) {
8787
8888 @ Override
8989 public String toString () {
90- return String . valueOf ( stackContains ) ;
90+ return stackContains ;
9191 }
9292
9393 /**
You can’t perform that action at this time.
0 commit comments