Skip to content

Commit d218769

Browse files
Make Java 8's javadoc happy, remove "<p/>"
1 parent 7229f00 commit d218769

File tree

7 files changed

+27
-27
lines changed

7 files changed

+27
-27
lines changed

src/main/java/com/cloudbees/syslog/Facility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
/**
2525
* Syslog facility as defined in <a href="https://tools.ietf.org/html/rfc5424">RFC 5424 - The Syslog Protocol</a>.
26-
* <p/>
26+
*
2727
* See <a href="http://tools.ietf.org/html/rfc5427">RFC 5427 - Textual Conventions for Syslog Management</a> for the {@link #label}.
2828
*
2929
* @author <a href="mailto:[email protected]">Cyrille Le Clerc</a>

src/main/java/com/cloudbees/syslog/SyslogMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
/**
3535
* Syslog message as defined in <a href="https://tools.ietf.org/html/rfc5424">RFC 5424 - The Syslog Protocol</a>.
36-
* <p/>
36+
*
3737
* Also compatible with <a href="http://tools.ietf.org/html/rfc3164">RFC-3164: The BSD syslog Protocol</a>,
3838
*
3939
* @author <a href="mailto:[email protected]">Cyrille Le Clerc</a>

src/main/java/com/cloudbees/syslog/integration/jul/util/LogManagerHelper.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class LogManagerHelper {
3737

3838
/**
3939
* Visible version of {@link java.util.logging.LogManager#getLevelProperty(String, java.util.logging.Level)}.
40-
* <p/>
40+
*
4141
* If the property is not defined or cannot be parsed we return the given default value.
4242
*/
4343
@Nullable
@@ -54,9 +54,9 @@ public static Level getLevelProperty(@Nonnull LogManager manager, @Nonnull Strin
5454

5555
/**
5656
* Visible version of {@link java.util.logging.LogManager#getFilterProperty(String, java.util.logging.Filter)}.
57-
* <p/>
57+
*
5858
* We return an instance of the class named by the "name" property.
59-
* <p/>
59+
*
6060
* If the property is not defined or has problems we return the defaultValue.
6161
*/
6262
@Nullable
@@ -79,9 +79,9 @@ public static Filter getFilterProperty(@Nonnull LogManager manager, @Nullable St
7979

8080
/**
8181
* Visible version of {@link java.util.logging.LogManager#getFormatterProperty(String, java.util.logging.Formatter)} .
82-
* <p/>
82+
*
8383
* We return an instance of the class named by the "name" property.
84-
* <p/>
84+
*
8585
* If the property is not defined or has problems we return the defaultValue.
8686
*/
8787
public static Formatter getFormatterProperty(@Nonnull LogManager manager, @Nullable String name, @Nullable Formatter defaultValue) {
@@ -103,7 +103,7 @@ public static Formatter getFormatterProperty(@Nonnull LogManager manager, @Nulla
103103

104104
/**
105105
* Visible version of {@link java.util.logging.LogManager#getStringProperty(String, String)}.
106-
* <p/>
106+
*
107107
* If the property is not defined we return the given default value.
108108
*/
109109
public static String getStringProperty(@Nonnull LogManager manager, @Nullable String name, String defaultValue) {
@@ -117,9 +117,9 @@ public static String getStringProperty(@Nonnull LogManager manager, @Nullable St
117117

118118
/**
119119
* Visible version of {@link java.util.logging.LogManager#getIntProperty(String, int)}.
120-
* <p/>
120+
*
121121
* Method to get an integer property.
122-
* <p/>
122+
*
123123
* If the property is not defined or cannot be parsed we return the given default value.
124124
*/
125125
public static int getIntProperty(@Nonnull LogManager manager, @Nullable String name, int defaultValue) {
@@ -137,9 +137,9 @@ public static int getIntProperty(@Nonnull LogManager manager, @Nullable String n
137137

138138
/**
139139
* Visible version of {@link java.util.logging.LogManager#getIntProperty(String, int)}.
140-
* <p/>
140+
*
141141
* Method to get a boolean property.
142-
* <p/>
142+
*
143143
* If the property is not defined or cannot be parsed we return the given default value.
144144
*/
145145
public static boolean getBooleanProperty(@Nonnull LogManager manager, @Nullable String name, boolean defaultValue) {

src/main/java/com/cloudbees/syslog/sender/SyslogMessageSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
/**
2929
* Send messages to a Syslog server.
30-
* <p/>
30+
*
3131
* Implementation <strong>MUST</strong> be thread safe.
3232
*
3333
* @author <a href="mailto:[email protected]">Cyrille Le Clerc</a>

src/main/java/com/cloudbees/syslog/sender/TcpSyslogMessageSender.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ public class TcpSyslogMessageSender extends AbstractSyslogMessageSender {
5050

5151
/**
5252
* {@link java.net.InetAddress InetAddress} of the remote Syslog Server.
53-
* <p/>
53+
*
5454
* The {@code InetAddress} is refreshed regularly to handle DNS changes (default {@link #DEFAULT_INET_ADDRESS_TTL_IN_MILLIS})
55-
* <p/>
55+
*
5656
* Default value: {@link #DEFAULT_SYSLOG_HOST}
5757
*/
5858
protected CachingReference<InetAddress> syslogServerHostnameReference;
5959
/**
6060
* Listen port of the remote Syslog server.
61-
* <p/>
61+
*
6262
* Default: {@link #DEFAULT_SYSLOG_PORT}
6363
*/
6464
protected int syslogServerPort = DEFAULT_SYSLOG_PORT;

src/main/java/com/cloudbees/syslog/sender/UdpSyslogMessageSender.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
/**
3434
* Syslog message sender over UDP.
35-
* <p/>
35+
*
3636
* TODO optimize performances recycling the byte arrays. Note: {@link java.io.ByteArrayOutputStream}
3737
* can be subclassed to access to the underlying {@code byte[]}.
3838
*
@@ -42,15 +42,15 @@
4242
public class UdpSyslogMessageSender extends AbstractSyslogMessageSender {
4343
/**
4444
* {@link java.net.InetAddress InetAddress} of the remote Syslog Server.
45-
* <p/>
45+
*
4646
* The {@code InetAddress} is refreshed regularly to handle DNS changes (default {@link #DEFAULT_INET_ADDRESS_TTL_IN_MILLIS})
47-
* <p/>
47+
*
4848
* Default value: {@link #DEFAULT_SYSLOG_HOST}
4949
*/
5050
protected CachingReference<InetAddress> syslogServerHostnameReference;
5151
/**
5252
* Listen port of the remote Syslog server.
53-
* <p/>
53+
*
5454
* Default: {@link #DEFAULT_SYSLOG_PORT}
5555
*/
5656
protected int syslogServerPort = DEFAULT_SYSLOG_PORT;

src/main/java/com/cloudbees/syslog/util/CachingReference.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222

2323
/**
2424
* Maintains a cached version of the {@code Object} that it holds and handle the renewal of this object upon expiration.
25-
* <p/>
25+
*
2626
* Greatly inspired by the {@code CachedData} sample provided in the javadoc
2727
* of {@link java.util.concurrent.locks.ReentrantReadWriteLock}.
28-
* <p/>
28+
*
2929
* {@code Object} is created implementing the {@link #newObject()} method.
30-
* <p/>
31-
* <p/>
30+
*
31+
*
3232
* Sample to get an {@code InetAddress} refreshed against a DNS every 10 seconds:
33-
* <code><pre>
34-
* CachingReference myRemoteServerAddress = new CachingReference<InetAddress>(10, TimeUnit.SECONDS) {
33+
* <pre><code>
34+
* CachingReference myRemoteServerAddress = new CachingReference&lt;InetAddress&gt;(10, TimeUnit.SECONDS) {
3535
* protected InetAddress newObject() {
3636
* try {
3737
* return InetAddress.getByName(myRemoteServerHostname);
@@ -40,7 +40,7 @@
4040
* }
4141
* }
4242
* }
43-
* </pre></code>
43+
* </code></pre>
4444
*
4545
* @author <a href="mailto:[email protected]">Cyrille Le Clerc</a>
4646
*/

0 commit comments

Comments
 (0)