You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2023/01/12 22:25:10 UTC

[tomcat] branch 9.0.x updated (b6678986b4 -> d21508b49b)

This is an automated email from the ASF dual-hosted git repository.

markt pushed a change to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


    from b6678986b4 Replace calls to methods that are deprecated in Java 16+
     new 07c45306d2 CheckStyle Javadoc checks += JavadocMissingWhitespaceAfterAsterisk
     new d21508b49b Fix copy/paste error

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 java/javax/servlet/jsp/JspWriter.java              |  2 +-
 java/javax/servlet/jsp/tagext/TagData.java         |  2 +-
 java/org/apache/catalina/servlets/CGIServlet.java  | 10 ++++----
 .../apache/catalina/servlets/DefaultServlet.java   |  2 +-
 .../apache/jasper/servlet/JspServletWrapper.java   |  2 +-
 .../org/apache/tomcat/dbcp/pool2/PooledObject.java |  2 +-
 .../tomcat/dbcp/pool2/impl/AbandonedConfig.java    |  2 +-
 .../tomcat/util/bcel/classfile/ElementValue.java   | 28 +++++++++++-----------
 .../util/modeler/BaseNotificationBroadcaster.java  |  3 +--
 .../apache/tomcat/jdbc/pool/DataSourceFactory.java |  4 ++--
 res/checkstyle/checkstyle.xml                      |  1 +
 .../apache/catalina/tribes/TesterMulticast.java    |  8 +++----
 12 files changed, 32 insertions(+), 34 deletions(-)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[tomcat] 02/02: Fix copy/paste error

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit d21508b49b2ba2786f7c2ad108bdde5d0aa2e86a
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Jan 12 22:23:30 2023 +0000

    Fix copy/paste error
---
 test/org/apache/catalina/tribes/TesterMulticast.java | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/test/org/apache/catalina/tribes/TesterMulticast.java b/test/org/apache/catalina/tribes/TesterMulticast.java
index 866d50ed30..3fb019b775 100644
--- a/test/org/apache/catalina/tribes/TesterMulticast.java
+++ b/test/org/apache/catalina/tribes/TesterMulticast.java
@@ -18,8 +18,8 @@ package org.apache.catalina.tribes;
 
 import java.net.DatagramPacket;
 import java.net.InetAddress;
+import java.net.InetSocketAddress;
 import java.net.MulticastSocket;
-import java.net.NetworkInterface;
 import java.net.UnknownHostException;
 
 /**
@@ -82,8 +82,7 @@ public class TesterMulticast {
         public void run() {
             try (MulticastSocket s = new MulticastSocket(PORT)) {
                 s.setLoopbackMode(false);
-                NetworkInterface networkInterface = NetworkInterface.getByInetAddress(INET_ADDRESS);
-                s.setNetworkInterface(networkInterface);
+                s.joinGroup(new InetSocketAddress(INET_ADDRESS, 0), null);
                 DatagramPacket p = new DatagramPacket(new byte[4], 4);
                 p.setAddress(INET_ADDRESS);
                 p.setPort(PORT);
@@ -110,8 +109,7 @@ public class TesterMulticast {
         public void run() {
             try (MulticastSocket s = new MulticastSocket(PORT)) {
                 s.setLoopbackMode(false);
-                NetworkInterface networkInterface = NetworkInterface.getByInetAddress(INET_ADDRESS);
-                s.setNetworkInterface(networkInterface);
+                s.joinGroup(new InetSocketAddress(INET_ADDRESS, 0), null);
                 DatagramPacket p = new DatagramPacket(new byte[4], 4);
                 p.setAddress(INET_ADDRESS);
                 p.setPort(PORT);


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[tomcat] 01/02: CheckStyle Javadoc checks += JavadocMissingWhitespaceAfterAsterisk

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 07c45306d25e4d6a14f33ca5d523d8da09f002b6
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Jan 12 20:37:59 2023 +0000

    CheckStyle Javadoc checks += JavadocMissingWhitespaceAfterAsterisk
---
 java/javax/servlet/jsp/JspWriter.java              |  2 +-
 java/javax/servlet/jsp/tagext/TagData.java         |  2 +-
 java/org/apache/catalina/servlets/CGIServlet.java  | 10 ++++----
 .../apache/catalina/servlets/DefaultServlet.java   |  2 +-
 .../apache/jasper/servlet/JspServletWrapper.java   |  2 +-
 .../org/apache/tomcat/dbcp/pool2/PooledObject.java |  2 +-
 .../tomcat/dbcp/pool2/impl/AbandonedConfig.java    |  2 +-
 .../tomcat/util/bcel/classfile/ElementValue.java   | 28 +++++++++++-----------
 .../util/modeler/BaseNotificationBroadcaster.java  |  3 +--
 .../apache/tomcat/jdbc/pool/DataSourceFactory.java |  4 ++--
 res/checkstyle/checkstyle.xml                      |  1 +
 11 files changed, 29 insertions(+), 29 deletions(-)

diff --git a/java/javax/servlet/jsp/JspWriter.java b/java/javax/servlet/jsp/JspWriter.java
index 209059194d..fb2166869a 100644
--- a/java/javax/servlet/jsp/JspWriter.java
+++ b/java/javax/servlet/jsp/JspWriter.java
@@ -23,7 +23,7 @@ import java.io.IOException;
  * The actions and template data in a JSP page is written using the JspWriter
  * object that is referenced by the implicit variable out which is initialized
  * automatically using methods in the PageContext object.
- *<p>
+ * <p>
  * This abstract class emulates some of the functionality found in the
  * java.io.BufferedWriter and java.io.PrintWriter classes, however it differs in
  * that it throws java.io.IOException from the print methods while PrintWriter
diff --git a/java/javax/servlet/jsp/tagext/TagData.java b/java/javax/servlet/jsp/tagext/TagData.java
index 9740164b35..d603811228 100644
--- a/java/javax/servlet/jsp/tagext/TagData.java
+++ b/java/javax/servlet/jsp/tagext/TagData.java
@@ -140,7 +140,7 @@ public class TagData implements Cloneable {
     /**
      * Enumerates the attributes.
      *
-     *@return An enumeration of the attributes in a TagData
+     * @return An enumeration of the attributes in a TagData
      */
     public java.util.Enumeration<String> getAttributes() {
         return attributes.keys();
diff --git a/java/org/apache/catalina/servlets/CGIServlet.java b/java/org/apache/catalina/servlets/CGIServlet.java
index 2694a38807..1c01714ff7 100644
--- a/java/org/apache/catalina/servlets/CGIServlet.java
+++ b/java/org/apache/catalina/servlets/CGIServlet.java
@@ -856,18 +856,18 @@ public final class CGIServlet extends HttpServlet {
          * CGI search algorithm: search the real path below
          *    &lt;my-webapp-root&gt; and find the first non-directory in
          *    the getPathTranslated("/"), reading/searching from left-to-right.
-         *</p>
-         *<p>
+         * </p>
+         * <p>
          *   The CGI search path will start at
          *   webAppRootDir + File.separator + cgiPathPrefix
          *   (or webAppRootDir alone if cgiPathPrefix is
          *   null).
-         *</p>
-         *<p>
+         * </p>
+         * <p>
          *   cgiPathPrefix is defined by setting
          *   this servlet's cgiPathPrefix init parameter
          *
-         *</p>
+         * </p>
          *
          * @param pathInfo       String from HttpServletRequest.getPathInfo()
          * @param webAppRootDir  String from context.getRealPath("/")
diff --git a/java/org/apache/catalina/servlets/DefaultServlet.java b/java/org/apache/catalina/servlets/DefaultServlet.java
index b5a72fa09c..924b833bf8 100644
--- a/java/org/apache/catalina/servlets/DefaultServlet.java
+++ b/java/org/apache/catalina/servlets/DefaultServlet.java
@@ -109,7 +109,7 @@ import org.xml.sax.ext.EntityResolver2;
  * from the web application resource root using the full path from the root
  * of the web application context.
  * <br>e.g. given a web application structure:
- *</p>
+ * </p>
  * <pre>
  * /context
  *   /images
diff --git a/java/org/apache/jasper/servlet/JspServletWrapper.java b/java/org/apache/jasper/servlet/JspServletWrapper.java
index 009501a7d8..dd3ce1457c 100644
--- a/java/org/apache/jasper/servlet/JspServletWrapper.java
+++ b/java/org/apache/jasper/servlet/JspServletWrapper.java
@@ -551,7 +551,7 @@ public class JspServletWrapper {
      * information, and a snippet of the JSP to help debugging.
      * Please see https://bz.apache.org/bugzilla/show_bug.cgi?id=37062 and
      * http://www.tfenne.com/jasper/ for more details.
-     *</p>
+     * </p>
      *
      * @param ex the exception that was the cause of the problem.
      * @return a JasperException with more detailed information
diff --git a/java/org/apache/tomcat/dbcp/pool2/PooledObject.java b/java/org/apache/tomcat/dbcp/pool2/PooledObject.java
index 69caef20c2..cb9504ccb9 100644
--- a/java/org/apache/tomcat/dbcp/pool2/PooledObject.java
+++ b/java/org/apache/tomcat/dbcp/pool2/PooledObject.java
@@ -44,7 +44,7 @@ public interface PooledObject<T> extends Comparable<PooledObject<T>> {
     /**
      * Orders instances based on idle time - i.e. the length of time since the
      * instance was returned to the pool. Used by the GKOP idle object evictor.
-     *<p>
+     * <p>
      * Note: This class has a natural ordering that is inconsistent with
      *       equals if distinct objects have the same identity hash code.
      * </p>
diff --git a/java/org/apache/tomcat/dbcp/pool2/impl/AbandonedConfig.java b/java/org/apache/tomcat/dbcp/pool2/impl/AbandonedConfig.java
index e3d1f67856..eab91ff74c 100644
--- a/java/org/apache/tomcat/dbcp/pool2/impl/AbandonedConfig.java
+++ b/java/org/apache/tomcat/dbcp/pool2/impl/AbandonedConfig.java
@@ -166,7 +166,7 @@ public class AbandonedConfig {
      * <p>If set to true, abandoned objects are removed by the pool
      * maintenance thread when it runs.  This setting has no effect
      * unless maintenance is enabled by setting
-     *{@link GenericObjectPool#getDurationBetweenEvictionRuns() durationBetweenEvictionRuns}
+     * {@link GenericObjectPool#getDurationBetweenEvictionRuns() durationBetweenEvictionRuns}
      * to a positive number.</p>
      *
      * @return true if abandoned objects are to be removed by the evictor
diff --git a/java/org/apache/tomcat/util/bcel/classfile/ElementValue.java b/java/org/apache/tomcat/util/bcel/classfile/ElementValue.java
index c0a421a840..cdef7b262a 100644
--- a/java/org/apache/tomcat/util/bcel/classfile/ElementValue.java
+++ b/java/org/apache/tomcat/util/bcel/classfile/ElementValue.java
@@ -26,24 +26,24 @@ import org.apache.tomcat.util.bcel.Const;
  *
  * <pre>
  * element_value {
- *    u1 tag;
- *    union {
- *        u2 const_value_index;
+ *     u1 tag;
+ *     union {
+ *         u2 const_value_index;
  *
- *        {   u2 type_name_index;
- *            u2 const_name_index;
- *        } enum_const_value;
+ *         {   u2 type_name_index;
+ *             u2 const_name_index;
+ *         } enum_const_value;
  *
- *        u2 class_info_index;
+ *         u2 class_info_index;
  *
- *        annotation annotation_value;
+ *         annotation annotation_value;
  *
- *        {   u2            num_values;
- *            element_value values[num_values];
- *        } array_value;
- *    } value;
- *}
- *</pre>
+ *         {   u2            num_values;
+ *             element_value values[num_values];
+ *         } array_value;
+ *     } value;
+ * }
+ * </pre>
  */
 public abstract class ElementValue {
 
diff --git a/java/org/apache/tomcat/util/modeler/BaseNotificationBroadcaster.java b/java/org/apache/tomcat/util/modeler/BaseNotificationBroadcaster.java
index 883f9df045..07773d1853 100644
--- a/java/org/apache/tomcat/util/modeler/BaseNotificationBroadcaster.java
+++ b/java/org/apache/tomcat/util/modeler/BaseNotificationBroadcaster.java
@@ -28,10 +28,9 @@ import javax.management.NotificationListener;
 
 
 /**
- * <p>Implementation of <code>NotificationBroadcaster</code> for attribute
+ * Implementation of <code>NotificationBroadcaster</code> for attribute
  * change notifications.  This class is used by <code>BaseModelMBean</code> to
  * handle notifications of attribute change events to interested listeners.
- *</p>
  *
  * @author Craig R. McClanahan
  * @author Costin Manolache
diff --git a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java
index 8e16bfd01f..b0fe0738e5 100644
--- a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java
+++ b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java
@@ -43,14 +43,14 @@ import org.apache.juli.logging.LogFactory;
  * <br>
  * Properties available for configuration:<br>
  * <a href="https://commons.apache.org/dbcp/configuration.html">Commons DBCP properties</a><br>
- *<ol>
+ * <ol>
  *  <li>initSQL - A query that gets executed once, right after the connection is established.</li>
  *  <li>testOnConnect - run validationQuery after connection has been established.</li>
  *  <li>validationInterval - avoid excess validation, only run validation at most at this frequency - time in milliseconds.</li>
  *  <li>jdbcInterceptors - a semicolon separated list of classnames extending {@link JdbcInterceptor} class.</li>
  *  <li>jmxEnabled - true of false, whether to register the pool with JMX.</li>
  *  <li>fairQueue - true of false, whether the pool should sacrifice a little bit of performance for true fairness.</li>
- *</ol>
+ * </ol>
  * @author Craig R. McClanahan
  * @author Dirk Verbeeck
  */
diff --git a/res/checkstyle/checkstyle.xml b/res/checkstyle/checkstyle.xml
index 3963a708cf..84279dc029 100644
--- a/res/checkstyle/checkstyle.xml
+++ b/res/checkstyle/checkstyle.xml
@@ -85,6 +85,7 @@
         <property name="accessModifiers" value="public,protected"/>
     </module>
     <module name="JavadocMissingLeadingAsterisk"/>
+    <module name="JavadocMissingWhitespaceAfterAsterisk"/>
 
     <!-- Miscellaneous -->
     <!-- ~5500 errors


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org