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
@ -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…
Reference in New Issue
Block a user