Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
evie-lau committed Nov 3, 2023
1 parent aef8998 commit d356a0e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,8 @@ private static void parseDocumentFromFileOrDirectory(File f, String locationStri
* @throws IOException
*/
private static void parseDocumentsInDirectory(File directory, ArrayList<Document> docs) {
// OpenLiberty reference code for behavior, parseInclude() method
// https://github.com/OpenLiberty/open-liberty/blob/integration/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/XMLConfigParser.java#L409C8-L409C8
// uses Collections.sort on filenames which is case-sensitive (all uppercase comes before lowercase)
// OpenLiberty reference code for behavior: https://github.com/OpenLiberty/open-liberty
// ServerXMLConfiguration.java:parseDirectoryFiles() and XMLConfigParser.java:parseInclude()
File[] files = directory.listFiles();
Arrays.sort(files, NameFileComparator.NAME_INSENSITIVE_COMPARATOR);
for (File file : files) {
Expand Down

0 comments on commit d356a0e

Please sign in to comment.