langtools/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java
changeset 37944 1153fab98d25
parent 37939 3eb8c2a89b77
child 38535 4a25025e0b0d
--- a/langtools/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java	Wed May 11 20:28:22 2016 +0000
+++ b/langtools/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java	Thu May 12 11:36:08 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -1045,7 +1045,7 @@
 
         public SourceCache(AnalyzeTask originalTask) {
             this.originalTask = originalTask;
-            Iterable<? extends Path> sources = findSources();
+            List<Path> sources = findSources();
             if (sources.iterator().hasNext()) {
                 StandardJavaFileManager fm = compiler.getStandardFileManager(null, null, null);
                 try {
@@ -1145,9 +1145,9 @@
         }
     }
 
-    private Iterable<? extends Path> availableSources;
+    private List<Path> availableSources;
 
-    private Iterable<? extends Path> findSources() {
+    private List<Path> findSources() {
         if (availableSources != null) {
             return availableSources;
         }