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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public final class TeeWriter extends Writer {
// and the delegated output writer at the same time.
private final StringBuilder builder;

/**
* Initialise the writer.
*
* @param writer the underlying writer to "tee" to.
*/
public TeeWriter(@WillCloseWhenClosed Writer writer) {
lock = new Object();
closed = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public interface JctFileManager extends JavaFileManager {
*
* @param location the location to apply an empty container for.
*/
void ensureEmptyLocationExists(Location location);
void createEmptyLocation(Location location);

/**
* Get the container group for the given package-oriented location.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public JctFileManager configure(@WillNotClose JctFileManager fileManager) {
case ENABLED:
LOGGER.trace("Annotation processor discovery is enabled, ensuring empty location exists");

INHERITED_AP_PATHS.values().forEach(fileManager::ensureEmptyLocationExists);
INHERITED_AP_PATHS.values().forEach(fileManager::createEmptyLocation);

return fileManager;

Expand All @@ -84,7 +84,7 @@ public JctFileManager configure(@WillNotClose JctFileManager fileManager) {
+ "into the annotation processor path");

INHERITED_AP_PATHS.forEach(fileManager::copyContainers);
INHERITED_AP_PATHS.values().forEach(fileManager::ensureEmptyLocationExists);
INHERITED_AP_PATHS.values().forEach(fileManager::createEmptyLocation);

return fileManager;

Expand Down
Loading