Skip to content

Commit efe745c

Browse files
committed
Fix raw type
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@634483 13f79535-47bb-0310-9956-ffa450edef68
1 parent ce0e402 commit efe745c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/java/org/apache/commons/io/FileSystemUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,14 @@ long freeSpaceWindows(String path) throws IOException {
222222
String[] cmdAttribs = new String[] {"cmd.exe", "/C", "dir /-c " + path};
223223

224224
// read in the output of the command to an ArrayList
225-
List lines = performCommand(cmdAttribs, Integer.MAX_VALUE);
225+
List<String> lines = performCommand(cmdAttribs, Integer.MAX_VALUE);
226226

227227
// now iterate over the lines we just read and find the LAST
228228
// non-empty line (the free space bytes should be in the last element
229229
// of the ArrayList anyway, but this will ensure it works even if it's
230230
// not, still assuming it is on the last non-blank line)
231231
for (int i = lines.size() - 1; i >= 0; i--) {
232-
String line = (String) lines.get(i);
232+
String line = lines.get(i);
233233
if (line.length() > 0) {
234234
return parseDir(line, path);
235235
}

0 commit comments

Comments
 (0)