db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer IndirectionHandler.java
Date Fri, 06 Jun 2003 20:12:34 GMT
thma        2003/06/06 13:12:34

  Modified:    src/java/org/apache/ojb/broker/accesslayer
                        IndirectionHandler.java
  Log:
  replaced == by equals()
  
  Revision  Changes    Path
  1.15      +4 -2      db-ojb/src/java/org/apache/ojb/broker/accesslayer/IndirectionHandler.java
  
  Index: IndirectionHandler.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/IndirectionHandler.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- IndirectionHandler.java	26 Apr 2003 23:18:25 -0000	1.14
  +++ IndirectionHandler.java	6 Jun 2003 20:12:34 -0000	1.15
  @@ -102,6 +102,8 @@
       TODO: Find a better solution
       */
       private boolean needsClose;
  +    
  +    private static final String TO_STRING_METHODNAME = "toString";
   
       /**
   	 *
  @@ -254,8 +256,8 @@
           {
               subject = getRealSubject();
               // handle toString differently for non-materialized proxies
  -            // to avoid materialization due to logging.
  -            if ((realSubject == null) && (method.getName() == "toString"))
  +            // to avoid materialization due to logging.            
  +            if ((realSubject == null) && (TO_STRING_METHODNAME.equals(method.getName())))
               {
               	String msg = "unmaterialized proxy for " + getIdentity();
               	return msg;
  
  
  

Mime
View raw message