This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/main by this push:
     new b7f9d3f4fa AMQ-9727 throw exceptions (missing key word "throw") (#1453)
b7f9d3f4fa is described below

commit b7f9d3f4fa4e6cc14f9eb04acd6e08d480068a65
Author: Dmitry Kryukov <[email protected]>
AuthorDate: Sat Jun 14 18:20:36 2025 +0300

    AMQ-9727 throw exceptions (missing key word "throw") (#1453)
---
 .../src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java  | 1 +
 .../activemq/transport/discovery/zeroconf/ZeroconfDiscoveryAgent.java   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/activemq-client/src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java
 
b/activemq-client/src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java
index 5930155715..9964188896 100644
--- 
a/activemq-client/src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java
+++ 
b/activemq-client/src/main/java/org/apache/activemq/blob/FileSystemBlobStrategy.java
@@ -127,6 +127,7 @@ public class FileSystemBlobStrategy implements 
BlobUploadStrategy, BlobDownloadS
             } catch (URISyntaxException e) {
                 IOException ioe = new IOException("Unable to open file for 
message " + message);
                 ioe.initCause(e);
+                throw ioe;
             }
        }
         //replace all : with _ to make windows more happy
diff --git 
a/activemq-client/src/main/java/org/apache/activemq/transport/discovery/zeroconf/ZeroconfDiscoveryAgent.java
 
b/activemq-client/src/main/java/org/apache/activemq/transport/discovery/zeroconf/ZeroconfDiscoveryAgent.java
index 9557b22ab2..efc40924e7 100644
--- 
a/activemq-client/src/main/java/org/apache/activemq/transport/discovery/zeroconf/ZeroconfDiscoveryAgent.java
+++ 
b/activemq-client/src/main/java/org/apache/activemq/transport/discovery/zeroconf/ZeroconfDiscoveryAgent.java
@@ -79,7 +79,7 @@ public class ZeroconfDiscoveryAgent implements 
DiscoveryAgent, ServiceListener {
                 jmdns.addServiceListener(type, this);
             }
         } catch (IOException e) {
-            JMSExceptionSupport.create("Failed to start JmDNS service: " + e, 
e);
+            throw JMSExceptionSupport.create("Failed to start JmDNS service: " 
+ e, e);
         }
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to