8278516: Typos in snippet for java.compiler

Reviewed-by: darcy
This commit is contained in:
Jonathan Gibbons 2021-12-09 21:47:50 +00:00
parent 6dae52f8e3
commit 918b3505e1

View File

@ -76,8 +76,8 @@ import java.util.List;
* must succeed if the following would succeed (ignoring
* encoding issues):
* {@snippet id="equiv-input" lang=java :
* // @link substring=FileInputStream target="java.io.FileInputStream#FileInputStream(File)" @link regex="File\b" target="File#File(java.net.URI)" @link substring=fileObject target=FileObject @link substring=toURI target="FileObject#toUri()" :
* new FileInputStream(new File(fileObject.toURI()))
* // @link substring=FileInputStream target="java.io.FileInputStream#FileInputStream(File)" @link regex="File\b" target="File#File(java.net.URI)" @link substring=fileObject target=FileObject @link substring=toUri target="FileObject#toUri()" :
* new FileInputStream(new File(fileObject.toUri()))
* }
* </li>
* <li>
@ -87,8 +87,8 @@ import java.util.List;
* succeed if the following would succeed (ignoring encoding
* issues):
* {@snippet id="equiv-output" lang=java :
* // @link substring=FileOutputStream target="java.io.FileOutputStream#FileOutputStream(File)" @link regex="File\b" target="File#File(java.net.URI)" @link substring=fileObject target=FileObject @link substring=toURI target="FileObject#toUri()" :
* new FileOutputStream(new File(fileObject.toURI()))
* // @link substring=FileOutputStream target="java.io.FileOutputStream#FileOutputStream(File)" @link regex="File\b" target="File#File(java.net.URI)" @link substring=fileObject target=FileObject @link substring=toUri target="FileObject#toUri()" :
* new FileOutputStream(new File(fileObject.toUri()))
* }
* </li>
* </ul>