db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/query Criteria.java
Date Sun, 04 Dec 2005 02:26:41 GMT
arminw      2005/12/03 18:26:41

  Modified:    src/java/org/apache/ojb/broker/query Tag: OJB_1_0_RELEASE
                        Criteria.java
  Log:
  minor improvement, avoid redundant #put(...) call
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.45.2.3  +4 -5      db-ojb/src/java/org/apache/ojb/broker/query/Criteria.java
  
  Index: Criteria.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/Criteria.java,v
  retrieving revision 1.45.2.2
  retrieving revision 1.45.2.3
  diff -u -r1.45.2.2 -r1.45.2.3
  --- Criteria.java	13 Jan 2005 19:20:03 -0000	1.45.2.2
  +++ Criteria.java	4 Dec 2005 02:26:41 -0000	1.45.2.3
  @@ -1235,16 +1235,15 @@
   	 */
   	public void addPathClass(String aPath, Class aClass)
   	{
  -		Object pathClasses = m_pathClasses.get(aPath);
  +		List pathClasses = (List) m_pathClasses.get(aPath);
   		if(pathClasses == null)
   		{
   			setPathClass(aPath,aClass);
   		}
   		else
   		{
  -			List hints = (List)pathClasses;
  -			hints.add(aClass);
  -			m_pathClasses.put(aPath, hints);
  +			pathClasses.add(aClass);
  +			//m_pathClasses.put(aPath, pathClasses);
   		}
   	}
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message