Skip to content

Commit 2122676

Browse files
committed
Fix nullability declaration for SoapElement#getAttributeValue
Closes gh-1626
1 parent e2c81fd commit 2122676

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-ws-core/src/main/java/org/springframework/ws/soap/SoapElement.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
import javax.xml.namespace.QName;
2222
import javax.xml.transform.Source;
2323

24+
import org.jspecify.annotations.Nullable;
25+
2426
/**
2527
* The base interface for all elements that are contained in a SOAP message.
2628
*
@@ -61,7 +63,7 @@ public interface SoapElement {
6163
* @param name the qualified name
6264
* @return the value, or {@code null} if there is no such attribute
6365
*/
64-
String getAttributeValue(QName name);
66+
@Nullable String getAttributeValue(QName name);
6567

6668
/**
6769
* Returns an {@code Iterator} over all of the attributes in element as {@link QName

0 commit comments

Comments
 (0)