mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8222241: Example in ServiceLoader API docs should have one provides directive
This patch fixes an example given in the ServiceLoader API doc that, if used, would result in a compilation error. Reviewed-by: alanb
This commit is contained in:
parent
9c3be78826
commit
8d19eca78c
1 changed files with 3 additions and 3 deletions
|
@ -227,10 +227,10 @@ import jdk.internal.reflect.Reflection;
|
|||
* the application module path must have a provider constructor. There is no
|
||||
* support for a provider method in this case.
|
||||
*
|
||||
* <p> As an example, suppose a module specifies the following directives:
|
||||
* <p> As an example, suppose a module specifies the following directive:
|
||||
* <pre>{@code
|
||||
* provides com.example.CodecFactory with com.example.impl.StandardCodecs;
|
||||
* provides com.example.CodecFactory with com.example.impl.ExtendedCodecsFactory;
|
||||
* provides com.example.CodecFactory with com.example.impl.StandardCodecs,
|
||||
* com.example.impl.ExtendedCodecsFactory;
|
||||
* }</pre>
|
||||
*
|
||||
* <p> where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue