openamf/src/java/org/openamf/test Directory.java,1.7,1.8

[email protected]
Newsgroups gmane.comp.java.openamf.cvs
Message-ID <[email protected]>
Update of /cvsroot/openamf/openamf/src/java/org/openamf/test
In directory sc8-pr-cvs1:/tmp/cvs-serv22519/src/java/org/openamf/test

Modified Files:
	Directory.java 
Log Message:
fixed bug with native types

Index: Directory.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/test/Directory.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Directory.java	18 Apr 2003 23:53:13 -0000	1.7
--- Directory.java	7 May 2003 17:40:17 -0000	1.8
***************
*** 52,62 ****
  	}
  
! 	public ArrayList getPeople(Double zipCode) {
  		return getPeople(zipCode, null);
  	}
  
! 	public ArrayList getPeople(Double zipCode, Authentication authentication) {
  
! 		log.debug("getPeople(" + zipCode.intValue() + ")");
  		if (authentication != null) {
  			log.debug("got authentication");
--- 52,62 ----
  	}
  
! 	public ArrayList getPeople(int zipCode) {
  		return getPeople(zipCode, null);
  	}
  
! 	public ArrayList getPeople(int zipCode, Authentication authentication) {
  
! 		log.debug("getPeople(" + zipCode + ")");
  		if (authentication != null) {
  			log.debug("got authentication");
***************
*** 66,70 ****
  		for (Iterator iter = people.iterator(); iter.hasNext();) {
  			Person person = (Person) iter.next();
! 			if (person.getZipCode() == zipCode.intValue()) {
  				log.debug("Adding " + person + " to result");
  				result.add(person);
--- 66,70 ----
  		for (Iterator iter = people.iterator(); iter.hasNext();) {
  			Person person = (Person) iter.next();
! 			if (person.getZipCode() == zipCode) {
  				log.debug("Adding " + person + " to result");
  				result.add(person);




-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.