[jsword-svn] jsword-sword/java/main/org/crosswire/sword/mgr s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Mon Jan 24 16:23:15 MST 2005


Update of /cvs/jsword/jsword-sword/java/main/org/crosswire/sword/mgr
In directory www.crosswire.org:/tmp/cvs-serv22369/java/main/org/crosswire/sword/mgr

Modified Files:
	SWConfig.java 
Log Message:
Refactored local variable "enum" to "iter", as it is a reserved word in Java 1.5

Index: SWConfig.java
===================================================================
RCS file: /cvs/jsword/jsword-sword/java/main/org/crosswire/sword/mgr/SWConfig.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SWConfig.java	20 Apr 2004 22:29:08 -0000	1.1
--- SWConfig.java	24 Jan 2005 23:23:13 -0000	1.2
***************
*** 69,76 ****
      }
  
!     private Iterator enumToIterator(Enumeration enum) {
          List list = new LinkedList();
!         while( enum.hasMoreElements() )
!             list.add( enum.nextElement() );
          return list.iterator();
      }
--- 69,76 ----
      }
  
!     private Iterator enumToIterator(Enumeration iter) {
          List list = new LinkedList();
!         while( iter.hasMoreElements() )
!             list.add( iter.nextElement() );
          return list.iterator();
      }



More information about the jsword-svn mailing list