Skip to content

Commit 7626fa5

Browse files
committed
Fix build on Java 9+ JDKs
[#479] Signed-off-by: Mark Paluch <[email protected]>
1 parent 7721e1b commit 7626fa5

File tree

3 files changed

+23
-13
lines changed

3 files changed

+23
-13
lines changed

pom.xml

+16-6
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,6 @@
169169
<version>${blockhound.version}</version>
170170
<scope>test</scope>
171171
</dependency>
172-
<dependency>
173-
<groupId>io.projectreactor.tools</groupId>
174-
<artifactId>blockhound-junit-platform</artifactId>
175-
<version>${blockhound.version}</version>
176-
<scope>test</scope>
177-
</dependency>
178172
<dependency>
179173
<groupId>io.r2dbc</groupId>
180174
<artifactId>r2dbc-spi-test</artifactId>
@@ -446,6 +440,22 @@
446440

447441
<profiles>
448442

443+
<profile>
444+
<id>java18-blockhound</id>
445+
<activation>
446+
<jdk>1.8</jdk>
447+
</activation>
448+
449+
<dependencies>
450+
<dependency>
451+
<groupId>io.projectreactor.tools</groupId>
452+
<artifactId>blockhound-junit-platform</artifactId>
453+
<version>${blockhound.version}</version>
454+
<scope>test</scope>
455+
</dependency>
456+
</dependencies>
457+
</profile>
458+
449459
<profile>
450460
<id>jmh</id>
451461
<dependencies>

src/main/java/io/r2dbc/postgresql/extension/CodecRegistrar.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525

2626
/**
2727
* Registrar interface that is used to register {@link Codec}s as extension to built-in codecs.
28-
* <p>Implementations may use {@link PostgresqlConnection} to query Postgres information schema to discover type details such as extension type OIDs.
28+
* <p>Implementations may use {@link PostgresqlConnection} to query Postgres information schema to discover type details such as extension type OIDs.</p>
2929
*
30-
* <h3>Constructor Requirements</h3>
30+
* <strong>Constructor Requirements</strong>
3131
* <p>Extension implementations must have a <em>default constructor</em> if registered via the {@code ServiceLoader}. When registered through
3232
* {@link io.r2dbc.postgresql.PostgresqlConnectionConfiguration} the default constructor is not required to be {@code public}.
3333
* When registered via the {@code ServiceLoader} the default constructor must be {@code public}.

src/main/java/io/r2dbc/postgresql/extension/Extension.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
* what is available in the classpath.
2828
* <p>
2929
* Specifically, a custom extension can be registered by supplying its fully qualified class name in a file named {@code io.r2dbc.postgresql.extension.Extension} within the
30-
* {@code /META-INF/services} directory in its enclosing JAR file.
30+
* {@code /META-INF/services} directory in its enclosing JAR file.</p>
3131
*
32-
* <h3>Configuring Automatic Extension Detection</h3>
33-
* Auto-detection is enabled by default. To disable it, simply set the {@link io.r2dbc.postgresql.PostgresqlConnectionConfiguration.Builder#autodetectExtensions(boolean)} parameter to
34-
* {@code false}.
32+
* <strong>Configuring Automatic Extension Detection</strong>
33+
* <p>Auto-detection is enabled by default. To disable it, simply set the {@link io.r2dbc.postgresql.PostgresqlConnectionConfiguration.Builder#autodetectExtensions(boolean)} parameter to
34+
* {@code false}.</p>
3535
*
36-
* <h3>Constructor Requirements</h3>
36+
* <strong>Constructor Requirements</strong>
3737
* <p>Extension implementations must have a <em>default constructor</em> if registered via the {@code ServiceLoader}. When registered through
3838
* {@link io.r2dbc.postgresql.PostgresqlConnectionConfiguration} the default constructor is not required to be {@code public}.
3939
* When registered via the {@code ServiceLoader} the default constructor must be {@code public}.

0 commit comments

Comments
 (0)