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:
Fernando Guallini 2020-06-05 17:34:49 +01:00 committed by Patrick Concannon
parent 9c3be78826
commit 8d19eca78c

View File

@ -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