You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by th...@apache.org on 2003/06/06 22:12:34 UTC

cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer IndirectionHandler.java

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;