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 cb57416a38 SonarQube bug fixes
cb57416a38 is described below

commit cb57416a38ebf14b3dc4527c74f2a2bcc001dbbf
Author: James Bognar <[email protected]>
AuthorDate: Thu Feb 5 10:15:04 2026 -0500

    SonarQube bug fixes
---
 .../src/main/java/org/apache/juneau/xml/XmlEventAllocator.java       | 5 +++++
 .../src/main/java/org/apache/juneau/xml/XmlReporter.java             | 5 +++++
 .../src/main/java/org/apache/juneau/xml/XmlResolver.java             | 5 +++++
 .../java/org/apache/juneau/microservice/resources/LogParser.java     | 2 ++
 4 files changed, 17 insertions(+)

diff --git 
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlEventAllocator.java
 
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlEventAllocator.java
index c010dc9537..257ca141a3 100644
--- 
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlEventAllocator.java
+++ 
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlEventAllocator.java
@@ -27,6 +27,11 @@ import javax.xml.stream.util.*;
  */
 public abstract class XmlEventAllocator implements XMLEventAllocator {
 
+       /**
+        * Constructor.
+        */
+       protected XmlEventAllocator() {}
+
        /**
         * Represents the absence of this class.
         */
diff --git 
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlReporter.java
 
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlReporter.java
index ea1019acb5..04dc68f28f 100644
--- 
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlReporter.java
+++ 
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlReporter.java
@@ -27,6 +27,11 @@ import javax.xml.stream.*;
  */
 public abstract class XmlReporter implements XMLReporter {
 
+       /**
+        * Constructor.
+        */
+       protected XmlReporter() {}
+
        /**
         * Represents the absence of this class.
         */
diff --git 
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlResolver.java
 
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlResolver.java
index feedef4ebd..1d1372cf81 100644
--- 
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlResolver.java
+++ 
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlResolver.java
@@ -27,6 +27,11 @@ import javax.xml.stream.*;
  */
 public abstract class XmlResolver implements XMLResolver {
 
+       /**
+        * Constructor.
+        */
+       protected XmlResolver() {}
+
        /**
         * Represents the absence of this class.
         */
diff --git 
a/juneau-microservice/juneau-microservice-core/src/main/java/org/apache/juneau/microservice/resources/LogParser.java
 
b/juneau-microservice/juneau-microservice-core/src/main/java/org/apache/juneau/microservice/resources/LogParser.java
index 6af9f36a16..9e37a24b7c 100644
--- 
a/juneau-microservice/juneau-microservice-core/src/main/java/org/apache/juneau/microservice/resources/LogParser.java
+++ 
b/juneau-microservice/juneau-microservice-core/src/main/java/org/apache/juneau/microservice/resources/LogParser.java
@@ -184,6 +184,8 @@ public class LogParser implements 
Iterable<LogParser.Entry>, Iterator<LogParser.
        @SuppressWarnings("null")
        @Override /* Overridden from Iterator */
        public Entry next() {
+               if (next == null)
+                       throw new NoSuchElementException();
                Entry current = next;
                Entry prev = next;
                try {

Reply via email to