[Edevsagetools-commit] SF.net SVN: edevsagetools: [40] trunk/synchro/core/src/main/java/be/edev/ sa
Status: Beta
Brought to you by:
avdyk
From: <av...@us...> - 2007-03-19 14:07:46
|
Revision: 40 http://svn.sourceforge.net/edevsagetools/?rev=40&view=rev Author: avdyk Date: 2007-03-19 06:54:09 -0700 (Mon, 19 Mar 2007) Log Message: ----------- update to generics Modified Paths: -------------- trunk/synchro/core/src/main/java/be/edev/sagetools/utils/io/FindFile.java Modified: trunk/synchro/core/src/main/java/be/edev/sagetools/utils/io/FindFile.java =================================================================== --- trunk/synchro/core/src/main/java/be/edev/sagetools/utils/io/FindFile.java 2007-03-19 13:38:48 UTC (rev 39) +++ trunk/synchro/core/src/main/java/be/edev/sagetools/utils/io/FindFile.java 2007-03-19 13:54:09 UTC (rev 40) @@ -26,7 +26,7 @@ String[] files = null; if (path != null && query != null) { - Vector v = new Vector(); + Vector<String> v = new Vector<String>(); FilenameFilter filter = new FilenameFilter() { @@ -59,10 +59,10 @@ return files; } - public static synchronized Collection listFilesInDirectory(File f, + public static synchronized Collection<String> listFilesInDirectory(File f, FilenameFilter filter) throws IOException { - Vector v = new Vector(); + Vector<String> v = new Vector<String>(); if (f.isDirectory()) { File[] files = f.listFiles(filter); @@ -70,7 +70,7 @@ { for (int i = 0; i < files.length; i++) { - Collection c = FindFile.listFilesInDirectory(files[i], filter); + Collection<String> c = FindFile.listFilesInDirectory(files[i], filter); if (c != null && c.size() > 0) { v.addAll(c); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |