Merge "Statistics Northbound Test"
[controller.git] / opendaylight / sal / yang-prototype / code-generator / maven-yang-plugin / src / main / java / org / opendaylight / controller / yang2sources / plugin / Util.java
index 5676530afec2eaecedab1469608654abb3ebc675..acde15ef2afacc334c1800c03c9af79125a75208 100644 (file)
@@ -51,7 +51,7 @@ final class Util {
 
         File file = new File(rootDir);
         if(!file.exists()) {
-            throw new FileNotFoundException();
+            throw new FileNotFoundException(rootDir);
         }
 
         Collection<File> yangFiles = FileUtils.listFiles(new File(rootDir),
@@ -61,8 +61,8 @@ final class Util {
         return yangFiles;
     }
 
-    static Collection<InputStream> listFilesAsStream(String rootDir) throws FileNotFoundException {
-        Collection<InputStream> is = new ArrayList<InputStream>();
+    static List<InputStream> listFilesAsStream(String rootDir) throws FileNotFoundException {
+        List<InputStream> is = new ArrayList<InputStream>();
 
         Collection<File> files = listFiles(rootDir);
         for(File f : files) {