Link to Java 17 documentation (#3750)

This prevents issues because older documentation may not apply to Java 17.

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born
2023-08-12 10:19:48 +02:00
committed by GitHub
parent 409198cd8c
commit 04105c1b1a
2 changed files with 5 additions and 3 deletions
@@ -30,8 +30,9 @@ import org.slf4j.LoggerFactory;
/**
* This is a thread pool executor service, which works as a developer would expect it to work.
* The default {@link ThreadPoolExecutor} does the following (see
* <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadPoolExecutor.html">the official
* JavaDoc)</a>:
* <a href=
* "https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/concurrent/ThreadPoolExecutor.html">the
* official JavaDoc)</a>:
* <ul>
* <li>If fewer than corePoolSize threads are running, the Executor always prefers adding a new thread rather than
* queuing.</li>
@@ -31,7 +31,8 @@ public class TopicEventFilter implements EventFilter {
* Constructs a new topic event filter.
*
* @param topicRegex the regular expression of a topic
* @see <a href="http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html">Java Regex</a>
* @see <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/regex/Pattern.html">Java
* Regex</a>
*/
public TopicEventFilter(String topicRegex) {
this.topicRegex = Pattern.compile(topicRegex);