diff options
Diffstat (limited to 'source/com/c2kernel/utils/FileStringUtility.java')
| -rw-r--r--[-rwxr-xr-x] | source/com/c2kernel/utils/FileStringUtility.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/com/c2kernel/utils/FileStringUtility.java b/source/com/c2kernel/utils/FileStringUtility.java index 948341a..84f46ca 100755..100644 --- a/source/com/c2kernel/utils/FileStringUtility.java +++ b/source/com/c2kernel/utils/FileStringUtility.java @@ -67,7 +67,7 @@ public class FileStringUtility {
FileReader fr = new FileReader(file);
BufferedReader buf = new BufferedReader(fr);
- Vector lines = new Vector();
+ Vector<String> lines = new Vector<String>();
String thisLine = null;
while ((thisLine = buf.readLine()) != null)
lines.addElement(thisLine);
@@ -240,9 +240,9 @@ public class FileStringUtility * @param dirPath starting directory
* @param recursive goes into the subdirectories
**************************************************************************/
- static public ArrayList listDir(String dirPath, boolean withDirs, boolean recursive)
+ static public ArrayList<String> listDir(String dirPath, boolean withDirs, boolean recursive)
{
- ArrayList fileNames = new ArrayList();
+ ArrayList<String> fileNames = new ArrayList<String>();
File dir = new File(dirPath);
File files[];
String fileName;
@@ -339,7 +339,7 @@ public class FileStringUtility try
{
String language = FileStringUtility.file2String(configFile);
- Hashtable props = new Hashtable();
+ Hashtable<String, String> props = new Hashtable<String, String>();
StringTokenizer tok = new StringTokenizer(language, "\n");
while (tok.hasMoreTokens())
{
|
