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/09/18 14:48:16 UTC

[tomcat] branch 8.5.x updated (8bc2adee92 -> 4e659cf966)

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

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


    from 8bc2adee92 Fix unlikely NPE
     new a188c710d3 Remove unused code
     new 4e659cf966 Fix formatting

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:
 .../util/http/fileupload/MultipartStream.java       | 21 ---------------------
 .../catalina/filters/TesterHttpServletResponse.java |  3 ++-
 2 files changed, 2 insertions(+), 22 deletions(-)


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


[tomcat] 01/02: Remove unused code

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

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

commit a188c710d3e02c83103e0de83524ecc940ccb760
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Sat Sep 16 11:00:05 2023 +0100

    Remove unused code
---
 .../util/http/fileupload/MultipartStream.java       | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/java/org/apache/tomcat/util/http/fileupload/MultipartStream.java b/java/org/apache/tomcat/util/http/fileupload/MultipartStream.java
index 137185aa77..179673654c 100644
--- a/java/org/apache/tomcat/util/http/fileupload/MultipartStream.java
+++ b/java/org/apache/tomcat/util/http/fileupload/MultipartStream.java
@@ -650,27 +650,6 @@ public class MultipartStream {
         return true;
     }
 
-    /**
-     * Searches for a byte of specified value in the {@code buffer},
-     * starting at the specified {@code position}.
-     *
-     * @param value The value to find.
-     * @param pos   The starting position for searching.
-     *
-     * @return The position of byte found, counting from beginning of the
-     *         {@code buffer}, or {@code -1} if not found.
-     */
-    protected int findByte(final byte value,
-            final int pos) {
-        for (int i = pos; i < tail; i++) {
-            if (buffer[i] == value) {
-                return i;
-            }
-        }
-
-        return -1;
-    }
-
     /**
      * Searches for the {@code boundary} in the {@code buffer}
      * region delimited by {@code head} and {@code tail}.


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


[tomcat] 02/02: Fix formatting

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

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

commit 4e659cf966ffb749dd4afae7a0b43e00b04035bd
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Sep 18 15:46:14 2023 +0100

    Fix formatting
---
 test/org/apache/catalina/filters/TesterHttpServletResponse.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/org/apache/catalina/filters/TesterHttpServletResponse.java b/test/org/apache/catalina/filters/TesterHttpServletResponse.java
index dba93188ae..9ca2089aa0 100644
--- a/test/org/apache/catalina/filters/TesterHttpServletResponse.java
+++ b/test/org/apache/catalina/filters/TesterHttpServletResponse.java
@@ -199,7 +199,8 @@ public class TesterHttpServletResponse implements HttpServletResponse {
     }
 
     public void recycle() {
-        /* NOOP */}
+        /* NOOP */
+    }
 
     /**
      * @param b Unused


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