diff graal/com.oracle.max.base/src/com/sun/max/io/Files.java @ 4142:bc8527f3071c

Adjust code base to new level of warnings.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 18 Dec 2011 05:24:06 +0100
parents e233f5660da4
children
line wrap: on
line diff
--- a/graal/com.oracle.max.base/src/com/sun/max/io/Files.java	Sun Dec 18 05:23:52 2011 +0100
+++ b/graal/com.oracle.max.base/src/com/sun/max/io/Files.java	Sun Dec 18 05:24:06 2011 +0100
@@ -123,7 +123,7 @@
     /**
      * Creates/overwrites a file from a reader.
      */
-    public static void fill(File file, Reader reader, boolean append) throws IOException {
+    public static void fill(File file, Reader reader) throws IOException {
         final BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(file));
         try {
             int ch;
@@ -145,7 +145,7 @@
     }
 
     public static List<String> readLines(File file) throws IOException {
-        final List<String> lines = new ArrayList<String>();
+        final List<String> lines = new ArrayList<>();
         readLines(file, lines);
         return lines;
     }