Skip to content

Commit

Permalink
CU-86b14j4e0_SRU2024_check-code-security-reports-at-GitHub-for-all-repos
Browse files Browse the repository at this point in the history
  • Loading branch information
ptorres-prowide committed Sep 18, 2024
1 parent aa5da3e commit 0cf4092
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class XMLParser {
* @see com.prowidesoftware.swift.io.IConversionService#getMessageFromXML(java.lang.String)
*/
public SwiftMessage parse(final String xml) {
Validate.notNull(xml);
Validate.isTrue(xml != null);
try {
final DocumentBuilder db = SafeXmlUtils.documentBuilder();
final Document doc = db.parse(new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,7 @@ public SwiftTagListBlock append(final SwiftTagListBlock... blocks) {
* @since 7.7
*/
public SwiftTagListBlock append(final Tag tag) {
Validate.notNull(tag);
Validate.isTrue(tag != null);
this.tags.add(tag);
return this;
}
Expand Down

0 comments on commit 0cf4092

Please sign in to comment.