This is an automated email from the ASF dual-hosted git repository.
jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git
The following commit(s) were added to refs/heads/master by this push:
new 5a01e18c1f SonarQube bug fixes
5a01e18c1f is described below
commit 5a01e18c1f387812db2856d861845e0e367e53b6
Author: James Bognar <[email protected]>
AuthorDate: Wed Feb 4 21:20:29 2026 -0500
SonarQube bug fixes
---
.../juneau/commons/function/ThrowingFunction2.java | 1 +
.../juneau/commons/function/ThrowingFunction3.java | 1 +
.../juneau/commons/function/ThrowingFunction4.java | 1 +
.../juneau/commons/function/ThrowingFunction5.java | 1 +
.../apache/juneau/commons/lang/BooleanValue.java | 1 +
.../org/apache/juneau/commons/lang/ByteValue.java | 1 +
.../org/apache/juneau/commons/lang/CharValue.java | 1 +
.../apache/juneau/commons/lang/IntegerValue.java | 1 +
.../org/apache/juneau/commons/lang/LongValue.java | 1 +
.../org/apache/juneau/commons/lang/ShortValue.java | 1 +
.../apache/juneau/commons/lang/StringValue.java | 1 +
.../juneau/rest/mock/MockServletResponse.java | 4 +++-
.../annotation/NamePropertyAnnotation_Test.java | 1 +
.../annotation/ParentPropertyAnnotation_Test.java | 1 +
.../juneau/annotation/SwapAnnotation_Test.java | 1 +
.../commons/reflect/AnnotationProvider_Test.java | 1 +
.../juneau/csv/annotation/CsvAnnotation_Test.java | 1 +
.../html/annotation/HtmlLinkAnnotation_Test.java | 1 +
.../http/annotation/FormDataAnnotation_Test.java | 1 +
.../http/annotation/HeaderAnnotation_Test.java | 1 +
.../http/annotation/QueryAnnotation_Test.java | 1 +
.../msgpack/annotation/MsgPackAnnotation_Test.java | 1 +
.../oapi/annotation/OpenApiAnnotation_Test.java | 1 +
.../objecttools/TimeMatcherFactory_Test.java | 26 ----------------------
.../juneau/rest/annotation/ResponseBody_Test.java | 25 ---------------------
.../rest/annotation/RestDeleteAnnotation_Test.java | 1 +
.../annotation/RestEndCallAnnotation_Test.java | 1 +
.../annotation/RestPostCallAnnotation_Test.java | 1 +
.../annotation/RestPostInitAnnotation_Test.java | 1 +
.../rest/annotation/RestPutAnnotation_Test.java | 1 +
.../juneau/rest/client/RestClient_Query_Test.java | 1 +
.../soap/annotation/SoapXmlAnnotation_Test.java | 1 +
.../juneau/transform/AutoNumberSwapTest.java | 2 +-
.../juneau/xml/annotation/XmlAnnotation_Test.java | 1 +
scripts/check-topic-links.py | 4 ++--
scripts/cleanup-whitespace.py | 2 +-
scripts/push.py | 2 +-
scripts/release.py | 14 ++++++------
38 files changed, 45 insertions(+), 64 deletions(-)
diff --git
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction2.java
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction2.java
index 3a88c39210..6258de41d0 100644
---
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction2.java
+++
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction2.java
@@ -130,6 +130,7 @@ public interface ThrowingFunction2<A,B,R> extends
Function2<A,B,R> {
* @return A composed {@link ThrowingFunction2} that first applies this
function and then applies the {@code after} function.
* @throws NullPointerException if {@code after} is <jk>null</jk>.
*/
+ @Override
default <V> ThrowingFunction2<A,B,V> andThen(Function<? super R,?
extends V> after) {
assertArgNotNull(ARG_after, after);
return (A a, B b) -> after.apply(applyThrows(a, b));
diff --git
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction3.java
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction3.java
index afa49dc301..2a9d360544 100644
---
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction3.java
+++
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction3.java
@@ -132,6 +132,7 @@ public interface ThrowingFunction3<A,B,C,R> extends
Function3<A,B,C,R> {
* @return A composed {@link ThrowingFunction3} that first applies this
function and then applies the {@code after} function.
* @throws NullPointerException if {@code after} is <jk>null</jk>.
*/
+ @Override
default <V> ThrowingFunction3<A,B,C,V> andThen(Function<? super R,?
extends V> after) {
assertArgNotNull(ARG_after, after);
return (A a, B b, C c) -> after.apply(applyThrows(a, b, c));
diff --git
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction4.java
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction4.java
index e74a0aeebf..e349da2cd2 100644
---
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction4.java
+++
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction4.java
@@ -134,6 +134,7 @@ public interface ThrowingFunction4<A,B,C,D,R> extends
Function4<A,B,C,D,R> {
* @return A composed {@link ThrowingFunction4} that first applies this
function and then applies the {@code after} function.
* @throws NullPointerException if {@code after} is <jk>null</jk>.
*/
+ @Override
default <V> ThrowingFunction4<A,B,C,D,V> andThen(Function<? super R,?
extends V> after) {
assertArgNotNull(ARG_after, after);
return (A a, B b, C c, D d) -> after.apply(applyThrows(a, b, c,
d));
diff --git
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction5.java
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction5.java
index bff8d39c2d..a67c881683 100644
---
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction5.java
+++
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/function/ThrowingFunction5.java
@@ -136,6 +136,7 @@ public interface ThrowingFunction5<A,B,C,D,E,R> extends
Function5<A,B,C,D,E,R> {
* @return A composed {@link ThrowingFunction5} that first applies this
function and then applies the {@code after} function.
* @throws NullPointerException if {@code after} is <jk>null</jk>.
*/
+ @Override
default <V> ThrowingFunction5<A,B,C,D,E,V> andThen(Function<? super R,?
extends V> after) {
assertArgNotNull(ARG_after, after);
return (A a, B b, C c, D d, E e) -> after.apply(applyThrows(a,
b, c, d, e));
diff --git
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/BooleanValue.java
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/BooleanValue.java
index 3e4d4ed676..d6cc3ea9ab 100644
---
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/BooleanValue.java
+++
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/BooleanValue.java
@@ -125,6 +125,7 @@ public class BooleanValue extends Value<Boolean> {
* @param value The value to compare to.
* @return <jk>true</jk> if the current value is equal to the specified
value.
*/
+ @Override
public boolean is(Boolean value) {
return eq(get(), value);
}
diff --git
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/ByteValue.java
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/ByteValue.java
index c6a9c9038b..cbfd613a2a 100644
---
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/ByteValue.java
+++
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/ByteValue.java
@@ -223,6 +223,7 @@ public class ByteValue extends Value<Byte> {
* @param value The value to compare to.
* @return <jk>true</jk> if the current value is equal to the specified
value.
*/
+ @Override
public boolean is(Byte value) {
return eq(get(), value);
}
diff --git
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/CharValue.java
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/CharValue.java
index b7a553a193..5be214ae41 100644
---
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/CharValue.java
+++
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/CharValue.java
@@ -225,6 +225,7 @@ public class CharValue extends Value<Character> {
* @param value The character to compare to.
* @return <jk>true</jk> if the current value is equal to the specified
character.
*/
+ @Override
public boolean is(Character value) {
return eq(get(), value);
}
diff --git
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/IntegerValue.java
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/IntegerValue.java
index 9512748888..7246ac838d 100644
---
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/IntegerValue.java
+++
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/IntegerValue.java
@@ -245,6 +245,7 @@ public class IntegerValue extends Value<Integer> {
* @param value The value to compare to.
* @return <jk>true</jk> if the current value is equal to the specified
value.
*/
+ @Override
public boolean is(Integer value) {
return eq(get(), value);
}
diff --git
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/LongValue.java
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/LongValue.java
index 1ef6ca492d..8b4895be69 100644
---
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/LongValue.java
+++
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/LongValue.java
@@ -245,6 +245,7 @@ public class LongValue extends Value<Long> {
* @param value The value to compare to.
* @return <jk>true</jk> if the current value is equal to the specified
value.
*/
+ @Override
public boolean is(Long value) {
return eq(get(), value);
}
diff --git
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/ShortValue.java
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/ShortValue.java
index 8fdc718ca1..49bcbef092 100644
---
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/ShortValue.java
+++
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/ShortValue.java
@@ -245,6 +245,7 @@ public class ShortValue extends Value<Short> {
* @param value The value to compare to.
* @return <jk>true</jk> if the current value is equal to the specified
value.
*/
+ @Override
public boolean is(Short value) {
return eq(get(), value);
}
diff --git
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/StringValue.java
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/StringValue.java
index 89ce99d8c0..f0f9c2a921 100644
---
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/StringValue.java
+++
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/lang/StringValue.java
@@ -124,6 +124,7 @@ public class StringValue extends Value<String> {
* @param value The value to compare to.
* @return <jk>true</jk> if the current value is equal to the specified
value.
*/
+ @Override
public boolean is(String value) {
return eq(get(), value);
}
diff --git
a/juneau-rest/juneau-rest-mock/src/main/java/org/apache/juneau/rest/mock/MockServletResponse.java
b/juneau-rest/juneau-rest-mock/src/main/java/org/apache/juneau/rest/mock/MockServletResponse.java
index 8154cd3162..cea1602909 100644
---
a/juneau-rest/juneau-rest-mock/src/main/java/org/apache/juneau/rest/mock/MockServletResponse.java
+++
b/juneau-rest/juneau-rest-mock/src/main/java/org/apache/juneau/rest/mock/MockServletResponse.java
@@ -165,7 +165,9 @@ public class MockServletResponse implements
HttpServletResponse {
}
@Override /* Overridden from HttpServletResponse */
- public void resetBuffer() {}
+ public void resetBuffer() {
+ // Mock implementation - no-op for testing purposes
+ }
@Override /* Overridden from HttpServletResponse */
public void sendError(int sc) throws IOException {
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/annotation/NamePropertyAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/annotation/NamePropertyAnnotation_Test.java
index 8cbfeedce8..dd8523ecbd 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/annotation/NamePropertyAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/annotation/NamePropertyAnnotation_Test.java
@@ -24,6 +24,7 @@ import org.apache.juneau.*;
import org.apache.juneau.commons.reflect.ExecutableException;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class NamePropertyAnnotation_Test extends TestBase {
private static final String CNAME =
NamePropertyAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/annotation/ParentPropertyAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/annotation/ParentPropertyAnnotation_Test.java
index d5abdf8632..78a1951f1f 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/annotation/ParentPropertyAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/annotation/ParentPropertyAnnotation_Test.java
@@ -24,6 +24,7 @@ import org.apache.juneau.*;
import org.apache.juneau.commons.reflect.ExecutableException;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class ParentPropertyAnnotation_Test extends TestBase {
private static final String CNAME =
ParentPropertyAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/annotation/SwapAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/annotation/SwapAnnotation_Test.java
index 2bcb427e98..7efd1391c6 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/annotation/SwapAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/annotation/SwapAnnotation_Test.java
@@ -23,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.*;
import org.apache.juneau.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class SwapAnnotation_Test extends TestBase {
private static final String CNAME = SwapAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/commons/reflect/AnnotationProvider_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/commons/reflect/AnnotationProvider_Test.java
index 4b64d72e31..25c9324734 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/commons/reflect/AnnotationProvider_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/commons/reflect/AnnotationProvider_Test.java
@@ -26,6 +26,7 @@ import org.apache.juneau.*;
import org.apache.juneau.commons.collections.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class AnnotationProvider_Test extends TestBase {
//====================================================================================================
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/csv/annotation/CsvAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/csv/annotation/CsvAnnotation_Test.java
index 8136c115a4..12c760c982 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/csv/annotation/CsvAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/csv/annotation/CsvAnnotation_Test.java
@@ -23,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.*;
import org.apache.juneau.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class CsvAnnotation_Test extends TestBase {
private static final String CNAME = CsvAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/html/annotation/HtmlLinkAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/html/annotation/HtmlLinkAnnotation_Test.java
index dd8a4ad7b7..9203bea0e5 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/html/annotation/HtmlLinkAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/html/annotation/HtmlLinkAnnotation_Test.java
@@ -23,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.*;
import org.apache.juneau.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class HtmlLinkAnnotation_Test extends TestBase {
private static final String CNAME =
HtmlLinkAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/http/annotation/FormDataAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/http/annotation/FormDataAnnotation_Test.java
index 22175469ab..cee6b1a9f3 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/http/annotation/FormDataAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/http/annotation/FormDataAnnotation_Test.java
@@ -24,6 +24,7 @@ import org.apache.juneau.*;
import org.apache.juneau.oapi.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class FormDataAnnotation_Test extends TestBase {
private static final String CNAME =
FormDataAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/http/annotation/HeaderAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/http/annotation/HeaderAnnotation_Test.java
index 5cda413fa2..fecbf4d9f4 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/http/annotation/HeaderAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/http/annotation/HeaderAnnotation_Test.java
@@ -24,6 +24,7 @@ import org.apache.juneau.*;
import org.apache.juneau.oapi.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class HeaderAnnotation_Test extends TestBase {
private static final String CNAME =
HeaderAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/http/annotation/QueryAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/http/annotation/QueryAnnotation_Test.java
index 632c09f32f..90c1d8cc54 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/http/annotation/QueryAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/http/annotation/QueryAnnotation_Test.java
@@ -24,6 +24,7 @@ import org.apache.juneau.*;
import org.apache.juneau.oapi.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class QueryAnnotation_Test extends TestBase {
private static final String CNAME =
QueryAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/msgpack/annotation/MsgPackAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/msgpack/annotation/MsgPackAnnotation_Test.java
index 39ab4a52fe..ce9f489c8c 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/msgpack/annotation/MsgPackAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/msgpack/annotation/MsgPackAnnotation_Test.java
@@ -23,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.*;
import org.apache.juneau.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class MsgPackAnnotation_Test extends TestBase {
private static final String CNAME =
MsgPackAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/oapi/annotation/OpenApiAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/oapi/annotation/OpenApiAnnotation_Test.java
index 5b0969d107..50fdf1c202 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/oapi/annotation/OpenApiAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/oapi/annotation/OpenApiAnnotation_Test.java
@@ -23,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.*;
import org.apache.juneau.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class OpenApiAnnotation_Test extends TestBase {
private static final String CNAME =
OpenApiAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/objecttools/TimeMatcherFactory_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/objecttools/TimeMatcherFactory_Test.java
deleted file mode 100644
index 7ec33231b0..0000000000
---
a/juneau-utest/src/test/java/org/apache/juneau/objecttools/TimeMatcherFactory_Test.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.juneau.objecttools;
-
-import org.apache.juneau.*;
-
-/**
- * Tests the TimeMatcherFactory class.
- */
-public class TimeMatcherFactory_Test extends TestBase {
-
-}
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/ResponseBody_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/ResponseBody_Test.java
deleted file mode 100644
index fc501e8d4d..0000000000
---
a/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/ResponseBody_Test.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.juneau.rest.annotation;
-
-import org.apache.juneau.*;
-
-/**
- * Tests the @Response annotation.
- */
-public class ResponseBody_Test extends TestBase {
-}
\ No newline at end of file
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestDeleteAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestDeleteAnnotation_Test.java
index db9435fa89..0c5f383f7f 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestDeleteAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestDeleteAnnotation_Test.java
@@ -26,6 +26,7 @@ import org.apache.juneau.rest.guard.*;
import org.apache.juneau.rest.matcher.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class RestDeleteAnnotation_Test extends TestBase {
private static final String CNAME =
RestDeleteAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestEndCallAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestEndCallAnnotation_Test.java
index b54cecd61a..9935706cbe 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestEndCallAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestEndCallAnnotation_Test.java
@@ -23,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.*;
import org.apache.juneau.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class RestEndCallAnnotation_Test extends TestBase {
private static final String CNAME =
RestEndCallAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestPostCallAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestPostCallAnnotation_Test.java
index 564f5f82a9..2f07f7028e 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestPostCallAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestPostCallAnnotation_Test.java
@@ -23,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.*;
import org.apache.juneau.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class RestPostCallAnnotation_Test extends TestBase {
private static final String CNAME =
RestPostCallAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestPostInitAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestPostInitAnnotation_Test.java
index 3db842af02..93c7c772d6 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestPostInitAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestPostInitAnnotation_Test.java
@@ -23,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.*;
import org.apache.juneau.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class RestPostInitAnnotation_Test extends TestBase {
private static final String CNAME =
RestPostInitAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestPutAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestPutAnnotation_Test.java
index 095a1c11a3..5423308137 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestPutAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/rest/annotation/RestPutAnnotation_Test.java
@@ -29,6 +29,7 @@ import org.apache.juneau.rest.matcher.*;
import org.apache.juneau.serializer.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class RestPutAnnotation_Test extends TestBase {
private static final String CNAME =
RestPutAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/rest/client/RestClient_Query_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/rest/client/RestClient_Query_Test.java
index 496fe6cd2d..d5351468bf 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/rest/client/RestClient_Query_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/rest/client/RestClient_Query_Test.java
@@ -33,6 +33,7 @@ import org.apache.juneau.uon.*;
import org.apache.juneau.utest.utils.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class RestClient_Query_Test extends TestBase {
@Rest
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/soap/annotation/SoapXmlAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/soap/annotation/SoapXmlAnnotation_Test.java
index 41c81b392a..744bd70b1b 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/soap/annotation/SoapXmlAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/soap/annotation/SoapXmlAnnotation_Test.java
@@ -23,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.*;
import org.apache.juneau.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class SoapXmlAnnotation_Test extends TestBase {
private static final String CNAME =
SoapXmlAnnotation_Test.class.getName();
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/transform/AutoNumberSwapTest.java
b/juneau-utest/src/test/java/org/apache/juneau/transform/AutoNumberSwapTest.java
index c86ed7baf4..3049068af1 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/transform/AutoNumberSwapTest.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/transform/AutoNumberSwapTest.java
@@ -29,7 +29,7 @@ import org.apache.juneau.serializer.*;
import org.apache.juneau.swap.*;
import org.junit.jupiter.api.*;
-@SuppressWarnings({"rawtypes"})
+@SuppressWarnings({"rawtypes", "java:S1186"})
class AutoNumberSwapTest extends TestBase {
private static ObjectSwap find(Class<?> c) {
diff --git
a/juneau-utest/src/test/java/org/apache/juneau/xml/annotation/XmlAnnotation_Test.java
b/juneau-utest/src/test/java/org/apache/juneau/xml/annotation/XmlAnnotation_Test.java
index 5c9e36a015..ab4dc7f7e0 100644
---
a/juneau-utest/src/test/java/org/apache/juneau/xml/annotation/XmlAnnotation_Test.java
+++
b/juneau-utest/src/test/java/org/apache/juneau/xml/annotation/XmlAnnotation_Test.java
@@ -23,6 +23,7 @@ import static org.junit.jupiter.api.Assertions.*;
import org.apache.juneau.*;
import org.junit.jupiter.api.*;
+@SuppressWarnings("java:S1186")
class XmlAnnotation_Test extends TestBase {
private static final String CNAME = XmlAnnotation_Test.class.getName();
diff --git a/scripts/check-topic-links.py b/scripts/check-topic-links.py
index 6630e6969d..405bf88ad2 100755
--- a/scripts/check-topic-links.py
+++ b/scripts/check-topic-links.py
@@ -185,7 +185,7 @@ def main():
for warning in warnings:
if warning['type'] == 'title_mismatch':
- print(f"TITLE MISMATCH:")
+ print("TITLE MISMATCH:")
print(f" File: {warning['file']}:{warning['line']}")
print(f" Slug: {warning['slug']}")
print(f" Expected title: '{warning['expected_title']}'")
@@ -193,7 +193,7 @@ def main():
print(f" Link: {warning['full_match']}")
print()
elif warning['type'] == 'unknown_slug':
- print(f"UNKNOWN SLUG:")
+ print("UNKNOWN SLUG:")
print(f" File: {warning['file']}:{warning['line']}")
print(f" Slug: {warning['slug']}")
print(f" Title: '{warning['title']}'")
diff --git a/scripts/cleanup-whitespace.py b/scripts/cleanup-whitespace.py
index 9a7fa9945b..28d5820515 100755
--- a/scripts/cleanup-whitespace.py
+++ b/scripts/cleanup-whitespace.py
@@ -149,7 +149,7 @@ def main():
modified_count += 1
print(f"ā Cleaned: {java_file}")
- print(f"\nSummary:")
+ print("\nSummary:")
print(f" Total files scanned: {len(java_files)}")
print(f" Files modified: {modified_count}")
print(f" Files unchanged: {len(java_files) - modified_count}")
diff --git a/scripts/push.py b/scripts/push.py
index 0edcdd1785..37ddabd4af 100755
--- a/scripts/push.py
+++ b/scripts/push.py
@@ -410,7 +410,7 @@ Examples:
# Check if there are changes to commit
if not check_git_status(juneau_root):
- print(f"\nā Warning: No changes detected. Skipping commit and push.")
+ print("\nā Warning: No changes detected. Skipping commit and push.")
print("š Build completed successfully (nothing to commit)!")
play_sound(success=True)
return 0
diff --git a/scripts/release.py b/scripts/release.py
index 41117ee332..aeb86964b0 100755
--- a/scripts/release.py
+++ b/scripts/release.py
@@ -965,13 +965,13 @@ class ReleaseScript:
empty_files.append(str(file_path.relative_to(dist_dir)))
if missing_files:
- self.fail(f"Missing distribution files:\n " + "\n
".join(missing_files))
+ self.fail("Missing distribution files:\n " + "\n
".join(missing_files))
if empty_files:
- self.fail(f"Empty distribution files:\n " + "\n
".join(empty_files))
+ self.fail("Empty distribution files:\n " + "\n
".join(empty_files))
# All files verified
- print(f"\nā
All distribution files verified:")
+ print("\nā
All distribution files verified:")
for file_path in expected_files:
size = file_path.stat().st_size
size_mb = size / (1024 * 1024)
@@ -1261,10 +1261,10 @@ Anyone can participate in testing and voting, not just
committers, please feel f
print("\n" + "=" * 79)
print("ā
Release revert complete!")
print("=" * 79)
- print(f"\nNote: You may need to manually:")
- print(f" - Reset your local git repository if needed")
- print(f" - Verify Maven versions were reverted correctly")
- print(f" - Check SVN repository for any remaining files")
+ print("\nNote: You may need to manually:")
+ print(" - Reset your local git repository if needed")
+ print(" - Verify Maven versions were reverted correctly")
+ print(" - Check SVN repository for any remaining files")
def run(self):
"""Run the release script."""