geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r1140354 - /geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/GBeanNotFoundException.java
Date Mon, 27 Jun 2011 22:41:59 GMT
Author: djencks
Date: Mon Jun 27 22:41:59 2011
New Revision: 1140354

URL: http://svn.apache.org/viewvc?rev=1140354&view=rev
Log:
better message

Modified:
    geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/GBeanNotFoundException.java

Modified: geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/GBeanNotFoundException.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/GBeanNotFoundException.java?rev=1140354&r1=1140353&r2=1140354&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/GBeanNotFoundException.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/GBeanNotFoundException.java
Mon Jun 27 22:41:59 2011
@@ -16,6 +16,7 @@
  */
 package org.apache.geronimo.kernel;
 
+import java.util.HashSet;
 import java.util.Set;
 
 import org.apache.geronimo.gbean.AbstractName;
@@ -46,8 +47,8 @@ public class GBeanNotFoundException exte
     }
 
     public GBeanNotFoundException(String message, Set patterns, Set<AbstractName> matches)
{
-        super(message + ": " + patterns);
-        this.matches = matches;
+        super(message + ": " + patterns + (matches == null? " (no matches)": " matches: "
+ matches));
+        this.matches = matches == null? null: new HashSet<AbstractName>(matches);
     }
 
     public GBeanNotFoundException(String message, Throwable cause) {



Mime
View raw message