This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
8266631: StandardJavaFileManager: getJavaFileObjects() impl violates the spec #56
Closed
Closed
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
eeb976f
8266631: StandardJavaFileManager: getJavaFileObjects() impl violates …
lahodaj 3136b32
Improving javadoc as suggested on the review.
lahodaj bf3e7fc
Merge branch 'master' into JDK-8266631
lahodaj 3f22cb0
Using @code instead of @linkplain, as suggested.
lahodaj File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,16 +190,16 @@ Iterable<? extends JavaFileObject> getJavaFileObjectsFromFiles( | |
* Returns file objects representing the given paths. | ||
* | ||
* @implSpec | ||
* The default implementation converts each path to a file and calls | ||
* {@link #getJavaFileObjectsFromFiles getJavaObjectsFromFiles}. | ||
* IllegalArgumentException will be thrown if any of the paths | ||
* cannot be converted to a file. | ||
* The default implementation lazily converts each path to a file and calls | ||
* {@link #getJavaFileObjectsFromFiles(Iterable) getJavaFileObjectsFromFiles}. | ||
* {@linkplain IllegalArgumentException IllegalArgumentException} will be thrown | ||
* if any of the paths cannot be converted to a file at the point the conversion happens. | ||
* | ||
* @param paths a list of paths | ||
* @return a list of file objects | ||
* @throws IllegalArgumentException if the list of paths includes | ||
* a directory or if this file manager does not support any of the | ||
* given paths. | ||
* given paths | ||
* | ||
* @since 13 | ||
*/ | ||
|
@@ -212,10 +212,10 @@ default Iterable<? extends JavaFileObject> getJavaFileObjectsFromPaths( | |
* Returns file objects representing the given paths. | ||
* | ||
* @implSpec | ||
* The default implementation converts each path to a file and calls | ||
* {@link #getJavaFileObjectsFromFiles getJavaObjectsFromFiles}. | ||
* IllegalArgumentException will be thrown if any of the paths | ||
* cannot be converted to a file. | ||
* The default implementation lazily converts each path to a file and calls | ||
* {@link #getJavaFileObjectsFromPaths(Collection) getJavaFileObjectsFromPaths}. | ||
* {@linkplain IllegalArgumentException IllegalArgumentException} will be thrown | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto use |
||
* if any of the paths cannot be converted to a file at the point the conversion happens. | ||
* | ||
* @param paths a list of paths | ||
* @return a list of file objects | ||
|
@@ -248,7 +248,8 @@ default Iterable<? extends JavaFileObject> getJavaFileObjectsFromPaths( | |
* @param files an array of files | ||
* @return a list of file objects | ||
* @throws IllegalArgumentException if the array of files includes | ||
* a directory | ||
* a directory or if this file manager does not support any of the | ||
* given paths | ||
* @throws NullPointerException if the given array contains null | ||
* elements | ||
*/ | ||
|
@@ -262,10 +263,15 @@ default Iterable<? extends JavaFileObject> getJavaFileObjectsFromPaths( | |
* getJavaFileObjectsFromPaths({@linkplain java.util.Arrays#asList Arrays.asList}(paths)) | ||
* </pre> | ||
* | ||
* @implSpec | ||
* The default implementation will only throw {@linkplain NullPointerException NullPointerException} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
* if {@linkplain #getJavaFileObjectsFromPaths(Collection)} throws it. | ||
* | ||
* @param paths an array of paths | ||
* @return a list of file objects | ||
* @throws IllegalArgumentException if the array of files includes | ||
* a directory | ||
* a directory or if this file manager does not support any of the | ||
* given paths | ||
* @throws NullPointerException if the given array contains null | ||
* elements | ||
* | ||
|
@@ -332,10 +338,11 @@ void setLocation(Location location, Iterable<? extends File> files) | |
* will be cancelled. | ||
* | ||
* @implSpec | ||
* The default implementation converts each path to a file and calls | ||
* {@link #getJavaFileObjectsFromFiles getJavaObjectsFromFiles}. | ||
* The default implementation lazily converts each path to a file and calls | ||
* {@link #setLocation setLocation}. | ||
* {@linkplain IllegalArgumentException IllegalArgumentException} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto. |
||
* will be thrown if any of the paths cannot be converted to a file. | ||
* will be thrown if any of the paths cannot be converted to a file at | ||
* the point the conversion happens. | ||
* | ||
* @param location a location | ||
* @param paths a list of paths, if {@code null} use the default | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest using with
{@link}
or{@code}
but not{@linkplain}
.Given that there is a
@throws
which will link it,{@code}
may be enough.