Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit

Permalink
8222241: Example in ServiceLoader API docs should have one provides d…
Browse files Browse the repository at this point in the history
…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 8d19eca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/java.base/share/classes/java/util/ServiceLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d19eca

Please sign in to comment.