Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,10 @@ private Map<Path, SourceInfo> loadCache() throws IOException {
* @param sourceDirectory root directory of the source file
* @param outputDirectory output directory of the compiled file
* @param outputFile the output file if it was explicitly specified, or {@code null} if it can be inferred
* @param omitted whether the output file has not be generated by the compiler (e.g. {@code package-info.class})
* @param lastModified last modification times of the source file during the previous build
* @param omitted whether the output file has not been generated by the compiler (e.g. {@code package-info.class})
* @param lastModified last modification time of the source file during the previous build
*/
private static record SourceInfo(
private record SourceInfo(
Path sourceDirectory, Path outputDirectory, Path outputFile, boolean omitted, long lastModified) {
/**
* Deletes all output files associated to the given source file. If the output file is a {@code .class} file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ private static Collection<String> effectiveExcludes(Collection<String> excludes,
}
prefixes = sortByLength(prefixes, false);
suffixes = sortByLength(suffixes, true);

/*
* Keep only the exclude which start with one of the prefixes and end with one of the suffixes.
* Note that a prefix or suffix may be the empty string, which match everything.
* Keep only the excludes which start with one of the prefixes and end with one of the suffixes.
* Note that a prefix or suffix may be the empty string, which matches everything.
*/
final Iterator<String> it = excludes.iterator();
nextExclude:
while (it.hasNext()) {
final String exclude = it.next();
final int s = exclude.indexOf(':');
Expand Down
Loading