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:11 UTC
[tomcat] branch 9.0.x updated (28fa5f87e5 -> 3fa9fc4171)
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 28fa5f87e5 Fix unlikely NPE
new c514d421e9 Update false positives for FileUpload
new b62a595747 Remove unused code
new 3fa9fc4171 Fix formatting
The 3 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 --------------------
res/spotbugs/filter-false-positives.xml | 23 +---------------------
.../filters/TesterHttpServletResponse.java | 3 ++-
3 files changed, 3 insertions(+), 44 deletions(-)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[tomcat] 03/03: 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 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 3fa9fc41710c36c14f75b0572e48b1dab6e9de33
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 a87f8da7e7..7115aae763 100644
--- a/test/org/apache/catalina/filters/TesterHttpServletResponse.java
+++ b/test/org/apache/catalina/filters/TesterHttpServletResponse.java
@@ -201,7 +201,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
[tomcat] 01/03: Update false positives for FileUpload
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 c514d421e969085b45856a9b40ff2af7eaaf7ab2
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Sat Sep 16 09:56:50 2023 +0100
Update false positives for FileUpload
---
res/spotbugs/filter-false-positives.xml | 23 +----------------------
1 file changed, 1 insertion(+), 22 deletions(-)
diff --git a/res/spotbugs/filter-false-positives.xml b/res/spotbugs/filter-false-positives.xml
index 4cec867f47..5a393c2da5 100644
--- a/res/spotbugs/filter-false-positives.xml
+++ b/res/spotbugs/filter-false-positives.xml
@@ -1601,33 +1601,12 @@
<Method name="processCookieHeader"/>
<Bug code="SF" />
</Match>
- <Match>
- <!-- the platform default encoding is a fallback -->
- <Class name="org.apache.tomcat.util.http.fileupload.MultipartStream"/>
- <Method name="readHeaders"/>
- <Bug code="Dm" />
- </Match>
<Match>
<!-- Deletion failure should never happen -->
<Class name="org.apache.tomcat.util.http.fileupload.disk.DiskFileItem"/>
- <Or>
- <Method name="delete"/>
- <Method name="finalize"/>
- </Or>
+ <Method name="finalize"/>
<Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE" />
</Match>
- <Match>
- <!-- the platform default encoding is a fallback -->
- <Class name="org.apache.tomcat.util.http.fileupload.disk.DiskFileItem"/>
- <Method name="getString"/>
- <Bug code="Dm" />
- </Match>
- <Match>
- <!-- the platform default encoding is deliberate -->
- <Class name="org.apache.tomcat.util.http.fileupload.util.Streams"/>
- <Method name="asString"/>
- <Bug code="Dm" />
- </Match>
<Match>
<!-- Fall-through expected -->
<Class name="org.apache.tomcat.util.http.parser.Cookie" />
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[tomcat] 02/03: 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 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit b62a595747880b9a1a3595751be0cad8c24975bc
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Sat Sep 16 10:59:13 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