Skip to content
Permalink
Browse files
8222241: Example in ServiceLoader API docs should have one provides d…
…irective

This patch fixes an example given in the ServiceLoader API doc that, if used, would result in a compilation error.

Reviewed-by: alanb
  • Loading branch information
fguallini authored and pconcannon committed Jun 5, 2020
1 parent 9c3be78 commit 8d19eca78c9afe4239593e5d9f75fb2f2be09aee
Showing 1 changed file with 3 additions and 3 deletions.
@@ -227,10 +227,10 @@
* 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

0 comments on commit 8d19eca

Please sign in to comment.