Skip to content

Commit

Permalink
JavaDoc lint warning cleanup (#3336)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
  • Loading branch information
danielkec authored Aug 31, 2021
1 parent 3db33cc commit 796b046
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@
import java.util.stream.Collectors;

/**
* <p>
* Support for JEP 290 - deserialization filtering.
* Configuration options mentioned below will differ in Helidon 3.0.0, the following table lists the options:
* <p>
* </p>
* <table class="config">
* <caption>Configuration Options</caption>
* <tr>
Expand Down Expand Up @@ -73,13 +74,14 @@
* As an alternative, a file {@link #PROPERTY_FILE} can be created on the classpath with the following content, to
* configure filter for a specific library. Do not add a global reject to these patterns!:
* {@code pattern=oracle.sql.converter.*}
* </p>
* <h3>Deserialization tracing</h3>
* A tracing filter can be configured using system property {@value #PROP_TRACE} to log information
* messages for each deserialization request.
* <p>
* To discover class patterns needed, set "no config" and "wrong config" actions to warn or ignore, and configure {@code basic}
* tracing.
* <p>
* </p>
* Options are:
* <ul>
* <li>{@code none} to disable tracing (this is the default)</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,9 @@ public Builder prestart(boolean prestart) {
}

/**
* Load all properties for this thread pool from configuration.
* <p>
* Load all properties for this thread pool from configuration.
* </p>
* <table class="config">
* <caption>Optional Configuration Parameters</caption>
* <tr>
Expand Down Expand Up @@ -359,7 +360,7 @@ public Builder prestart(boolean prestart) {
* <td>Whether or not all core threads should be started when the pool is created.</td>
* </tr>
* </table>
* <p>
* <br>
* <table class="config">
* <caption>Experimental Configuration Parameters (<em>subject to change</em>)</caption>
* <tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2021 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -186,6 +186,7 @@ public <S, T> Builder addMapper(Mapper<S, T> mapper, Class<S> sourceType, Class<
* @param mapper the mapper to map source instances to target instances
* @param sourceType class of the source instance
* @param targetType class of the target instance
* @param priority order of the mapper usage
* @param <S> type of source
* @param <T> type of target
* @return updated builder instance
Expand Down Expand Up @@ -225,6 +226,7 @@ public <S, T> Builder addMapper(Mapper<S, T> mapper, GenericType<S> sourceType,
* @param mapper the mapper to map source instances to target instances
* @param sourceType generic type of the source instance
* @param targetType generic type of the target instance
* @param priority order of the mapper usage
* @param <S> type of source
* @param <T> type of target
* @return updated builder instance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ private OutputStreamMultiBuilder() {
*
* @param timeout the maximum time to block
* @param unit the time unit of the timeout argument
* @return this builder
*/
public OutputStreamMultiBuilder timeout(long timeout, TimeUnit unit) {
streamMulti.timeout(TimeUnit.MILLISECONDS.convert(timeout, unit));
Expand All @@ -459,6 +460,7 @@ public OutputStreamMultiBuilder timeout(long timeout, TimeUnit unit) {
* </ul>
*
* @param requestCallback to be executed
* @return this builder
*/
public OutputStreamMultiBuilder onRequest(BiConsumer<Long, Long> requestCallback) {
streamMulti.onRequest(requestCallback);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ interface CreateInstanceFunction<T> {
*
* @param vault to use
* @param vaultConfig configuration located on the vault node
* @param instanceConfig configuration of an instance
* @return a new instance to be injected
*/
T apply(Vault vault, Config vaultConfig, InstanceConfig instanceConfig);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 Oracle and/or its affiliates.
* Copyright (c) 2020, 2021 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -239,6 +239,7 @@ private OutgoingJmsMessageBuilder(javax.jms.Message msg) throws JMSException {
* Set or replace JMS payload.
*
* @param payload new payload
* @return this builder
*/
public OutgoingJmsMessageBuilder<PAYLOAD> payload(PAYLOAD payload) {
message.setPayload(payload);
Expand All @@ -250,6 +251,7 @@ public OutgoingJmsMessageBuilder<PAYLOAD> payload(PAYLOAD payload) {
*
* @param name the name of the JMS property
* @param value boolean value to stored as JMS property
* @return this builder
*/
public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, boolean value) {
properties.put(name, value);
Expand All @@ -261,6 +263,7 @@ public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, boolean value) {
*
* @param name the name of the JMS property
* @param value byte value to stored as JMS property
* @return this builder
*/
public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, byte value) {
properties.put(name, value);
Expand All @@ -272,6 +275,7 @@ public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, byte value) {
*
* @param name the name of the JMS property
* @param value short value to stored as JMS property
* @return this builder
*/
public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, short value) {
properties.put(name, value);
Expand All @@ -283,6 +287,7 @@ public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, short value) {
*
* @param name the name of the JMS property
* @param value int value to stored as JMS property
* @return this builder
*/
public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, int value) {
properties.put(name, value);
Expand All @@ -294,6 +299,7 @@ public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, int value) {
*
* @param name the name of the JMS property
* @param value long value to stored as JMS property
* @return this builder
*/
public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, long value) {
properties.put(name, value);
Expand All @@ -305,6 +311,7 @@ public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, long value) {
*
* @param name the name of the JMS property
* @param value float value to stored as JMS property
* @return this builder
*/
public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, float value) {
properties.put(name, value);
Expand All @@ -316,6 +323,7 @@ public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, float value) {
*
* @param name the name of the JMS property
* @param value double value to stored as JMS property
* @return this builder
*/
public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, double value) {
properties.put(name, value);
Expand All @@ -327,6 +335,7 @@ public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, double value) {
*
* @param name the name of the JMS property
* @param value string value to be stored as JMS property
* @return this builder
*/
public OutgoingJmsMessageBuilder<PAYLOAD> property(String name, String value) {
properties.put(name, value);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 Oracle and/or its affiliates.
* Copyright (c) 2020, 2021 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -378,7 +378,7 @@ public Builder<K, V> config(Config config) {
*
* This is a mandatory parameter.
*
* @param consumerSupplier
* @param consumerSupplier instantiated Kafka consumer
* @return updated builder instance
*/
public Builder<K, V> consumerSupplier(Supplier<Consumer<K, V>> consumerSupplier) {
Expand All @@ -391,7 +391,7 @@ public Builder<K, V> consumerSupplier(Supplier<Consumer<K, V>> consumerSupplier)
*
* This is a mandatory parameter if topicPattern is empty.
*
* @param topics
* @param topics list of topics to subscribe to
* @return updated builder instance
*/
public Builder<K, V> topics(List<String> topics) {
Expand All @@ -400,11 +400,11 @@ public Builder<K, V> topics(List<String> topics) {
}

/**
* The list of topics to subscribe to.
* The pattern for selecting multiple topics.
*
* This is a mandatory parameter if topics is empty.
*
* @param topicPattern
* @param topicPattern pattern for selecting multiple topics
* @return updated builder instance
*/
public Builder<K, V> topicPattern(Pattern topicPattern) {
Expand All @@ -418,7 +418,7 @@ public Builder<K, V> topicPattern(Pattern topicPattern) {
*
* This is a mandatory parameter.
*
* @param scheduler
* @param scheduler scheduler that will read ad process messages
* @return updated builder instance
*/
public Builder<K, V> scheduler(ScheduledExecutorService scheduler) {
Expand All @@ -430,7 +430,7 @@ public Builder<K, V> scheduler(ScheduledExecutorService scheduler) {
* Specifies the period in milliseconds between successive scheduler executions.
* The default value is 100 milliseconds.
*
* @param periodExecutions
* @param periodExecutions period in milliseconds
* @return updated builder instance
*/
public Builder<K, V> periodExecutions(long periodExecutions) {
Expand All @@ -442,7 +442,7 @@ public Builder<K, V> periodExecutions(long periodExecutions) {
* Specifies maximum time in milliseconds to block polling messages from Kafka.
* The default value is 50 milliseconds.
*
* @param pollTimeout
* @param pollTimeout maximum time in milliseconds to block polling
* @return updated builder instance
*/
public Builder<K, V> pollTimeout(long pollTimeout) {
Expand All @@ -452,16 +452,16 @@ public Builder<K, V> pollTimeout(long pollTimeout) {

/**
* This flag defines the strategy of committing messages to Kafka.
* When true, the messages are committed in the moment they are polled from Kafka.
* When true, the messages are committed at the moment they are polled from Kafka.
* When false, the messages are committed when {@link KafkaMessage#ack()} is invoked.
*
* This value is mandatory to be specified and it must be consistent with the value enable.auto.commit
* This value is mandatory to be specified, and it must be consistent with the value enable.auto.commit
* in Kafka properties. Failing to do this will result the next scenarios:
* - For autoCommit = true and enable.auto.commit = false, messages will never be committed in Kafka.
* - For autoCommit = false and enable.auto.commit = true, all messages will be committed and
* {@link KafkaMessage#ack()} will have no effect.
*
* @param autoCommit
* @param autoCommit strategy of committing
* @return updated builder instance
*/
public Builder<K, V> autoCommit(boolean autoCommit) {
Expand All @@ -476,7 +476,7 @@ public Builder<K, V> autoCommit(boolean autoCommit) {
*
* The default value is Long.MAX_VALUE
*
* @param ackTimeout
* @param ackTimeout time in milliseconds
* @return updated builder instance
*/
public Builder<K, V> ackTimeout(long ackTimeout) {
Expand All @@ -492,7 +492,7 @@ public Builder<K, V> ackTimeout(long ackTimeout) {
* The intention of this value is to fail gracefully when there are many pending commits,
* instead of failing with OutOfMemoryError.
*
* @param limitNoAck
* @param limitNoAck limit of messages waiting to be committed
* @return updated builder instance
*/
public Builder<K, V> limitNoAck(int limitNoAck) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 Oracle and/or its affiliates.
* Copyright (c) 2020, 2021 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -200,7 +200,7 @@ public Builder<K, V> config(Config config) {
*
* This is a mandatory parameter.
*
* @param producerSupplier
* @param producerSupplier supply instantiated the KafkaSubscriber
* @return updated builder instance
*/
public Builder<K, V> producerSupplier(Supplier<Producer<K, V>> producerSupplier) {
Expand All @@ -213,7 +213,7 @@ public Builder<K, V> producerSupplier(Supplier<Producer<K, V>> producerSupplier)
*
* The default value is 5.
*
* @param backpressure
* @param backpressure number of messages requested
* @return updated builder instance
*/
public Builder<K, V> backpressure(long backpressure) {
Expand All @@ -226,7 +226,7 @@ public Builder<K, V> backpressure(long backpressure) {
*
* This is a mandatory parameter.
*
* @param topics
* @param topics list of the topics
* @return updated builder instance
*/
public Builder<K, V> topics(List<String> topics) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@

/**
* Marks the method to be invoked periodically according to supplied cron expression.
* <p>
* <br>
* Cron expression format:
* <pre>{@code
* <seconds> <minutes> <hours> <day-of-month> <month> <day-of-week> <year>
* }</pre>
*
* <br>
* <table>
* <caption><b>Cron expression fields</b></caption>
* <tr>
Expand Down Expand Up @@ -91,9 +91,7 @@
* </tr>
* </tbody>
* </table>
*
* <p>
*
* <br>
* <table>
* <caption><b>Field formats</b></caption>
* <tr>
Expand Down Expand Up @@ -159,7 +157,7 @@
* </tr>
* </tbody>
* </table>
*
* <br>
* <table>
* <caption><b>Examples</b></caption>
* <tr>
Expand All @@ -185,8 +183,6 @@
* </tr>
* </tbody>
* </table>
*
* <p>
*/
@Retention(RUNTIME)
@Target({METHOD})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ public Builder register(Object anInstance) {
*
* @param theClass class to register the instance by
* @param anInstance instance to register
* @param <T> type of the instance
* @return updated builder instance
*/
public <T> Builder register(Class<? super T> theClass, T anInstance) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ protected static class DefaultMultitenancyEndpoints implements MultitenancyEndpo

/**
* Creates endpoints from provided OIDC configuration using default URIs.
* <p>
* <br>
* <ul>
* <li>For Asserter endpoint: {@code /admin/v1/Asserter}</li>
* <li>For Token endpoint: {@code /oauth2/v1/token?IDCS_CLIENT_TENANT=}</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ protected static class DefaultMultitenancyEndpoints implements MultitenancyEndpo

/**
* Creates endpoints from provided OIDC configuration using default URIs.
* <p>
* <br>
* <ul>
* <li>For Asserter endpoint: {@code /admin/v1/Asserter}</li>
* <li>For Token endpoint: {@code /oauth2/v1/token?IDCS_CLIENT_TENANT=}</li>
Expand Down

0 comments on commit 796b046

Please sign in to comment.