You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by hu...@apache.org on 2002/09/12 14:36:14 UTC

cvs commit: jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/lucene SearchUtils.java

husted      2002/09/12 05:36:14

  Modified:    scaffold/src/java/org/apache/commons/scaffold/lucene
                        SearchUtils.java
  Log:
  + Replace calls to BeanUtils.populate with copyProperties.
  + Migrate to latest commons.beanutil.BeanUtils.
  
  Revision  Changes    Path
  1.2       +4 -4      jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/lucene/SearchUtils.java
  
  Index: SearchUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/lucene/SearchUtils.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SearchUtils.java	14 Aug 2002 17:51:07 -0000	1.1
  +++ SearchUtils.java	12 Sep 2002 12:36:14 -0000	1.2
  @@ -13,8 +13,8 @@
   import org.apache.lucene.document.Field;
   import org.apache.lucene.search.Hits;
   
  -// import org.apache.commons.beanutils.BeanUtils; // Struts 1.1
  -import org.apache.struts.util.BeanUtils; // Struts 1.0.x
  +// import org.apache.struts.util.BeanUtils; // Struts 1.0.x
  +import org.apache.commons.beanutils.BeanUtils; // Struts 1.1
   
   import org.apache.commons.scaffold.lang.PopulateException;
   
  @@ -59,7 +59,7 @@
   
           // Set the corresponding properties of our bean
           try {
  -            BeanUtils.populate(bean, properties);
  +            BeanUtils.copyProperties(bean, properties);
           } catch (Throwable t) {
               throw new PopulateException(t);
           }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>