openejb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r453636 - /incubator/openejb/trunk/openejb2/modules/openejb-core/src/main/java/org/apache/openejb/corba/CORBABean.java
Date Fri, 06 Oct 2006 15:17:09 GMT
Author: djencks
Date: Fri Oct  6 08:17:08 2006
New Revision: 453636

URL: http://svn.apache.org/viewvc?view=rev&rev=453636
Log:
OPENEJB-279 Always supply a TSSConfig from CorbaBean

Modified:
    incubator/openejb/trunk/openejb2/modules/openejb-core/src/main/java/org/apache/openejb/corba/CORBABean.java

Modified: incubator/openejb/trunk/openejb2/modules/openejb-core/src/main/java/org/apache/openejb/corba/CORBABean.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb2/modules/openejb-core/src/main/java/org/apache/openejb/corba/CORBABean.java?view=diff&rev=453636&r1=453635&r2=453636
==============================================================================
--- incubator/openejb/trunk/openejb2/modules/openejb-core/src/main/java/org/apache/openejb/corba/CORBABean.java
(original)
+++ incubator/openejb/trunk/openejb2/modules/openejb-core/src/main/java/org/apache/openejb/corba/CORBABean.java
Fri Oct  6 08:17:08 2006
@@ -128,6 +128,11 @@
      * @return The TSSConfig object (if any).
      */
     public TSSConfig getTssConfig() {
+        // if nothing has been explicitly set, ensure we return
+        // a default one.
+        if (tssConfig == null) {
+            tssConfig = new TSSConfig();
+        }
         return tssConfig;
     }
 
@@ -137,7 +142,6 @@
      * @param config The required TSSConfig information.
      */
     public void setTssConfig(TSSConfig config) {
-        if (config == null) config = new TSSConfig();
         this.tssConfig = config;
     }
 



Mime
View raw message