Skip to content

Commit

Permalink
fixes stoicflame#117 by making the source files a set
Browse files Browse the repository at this point in the history
  • Loading branch information
schapsl committed Feb 10, 2023
1 parent 58584c8 commit 8bcc750
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/com/webcohesion/enunciate/Enunciate.java
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ public void run() {
getLogger().debug("Detected API Types: %s", new EnunciateLogger.ListWriter(includedTypes));

//gather all the java source files.
List<URL> sourceFiles = getSourceFileURLs();
Set<URL> sourceFiles = getSourceFileURLs();
URLClassLoader apiClassLoader = new URLClassLoader(scanpath.toArray(new URL[0]));
for (String javaFile : scannedSourceFiles) {

Expand Down Expand Up @@ -771,8 +771,8 @@ public String writeClasspath(List<File> cp) {
return builder.toString();
}

protected List<URL> getSourceFileURLs() {
List<URL> sourceFiles = new ArrayList<>(this.sourceFiles.size());
protected Set<URL> getSourceFileURLs() {
Set<URL> sourceFiles = new HashSet<>(this.sourceFiles.size());
for (File sourceFile : this.sourceFiles) {
try {
sourceFiles.add(sourceFile.toURI().toURL());
Expand Down

0 comments on commit 8bcc750

Please sign in to comment.