Skip to content

Commit

Permalink
Polish contribution
Browse files Browse the repository at this point in the history
See gh-31598
See gh-31603

(cherry picked from commit e71117d)
  • Loading branch information
sbrannen committed Nov 14, 2023
1 parent af59358 commit c489234
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -429,8 +429,8 @@ protected void addClassPathManifestEntries(Set<Resource> result) {
String filePath = new File(path).getAbsolutePath();
int prefixIndex = filePath.indexOf(':');
if (prefixIndex == 1) {
// Possibly "c:" drive prefix on Windows, to be upper-cased for proper duplicate detection
// to resolve find duplicate jar resource on windows
// Possibly a drive prefix on Windows (for example, "c:"), so we prepend a slash
// and convert the drive letter to uppercase for consistent duplicate detection.
filePath = "/" + StringUtils.capitalize(filePath);
}
// # can appear in directories/filenames, java.net.URL should not treat it as a fragment
Expand Down

0 comments on commit c489234

Please sign in to comment.