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
The following commit(s) were added to refs/heads/8.5.x by this push:
new ab31d4bc60 Fix IDE warnings
ab31d4bc60 is described below
commit ab31d4bc600e739d670912bbc902f0646ab14945
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Aug 11 16:15:06 2022 +0100
Fix IDE warnings
---
java/org/apache/catalina/users/MemoryUserDatabase.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/java/org/apache/catalina/users/MemoryUserDatabase.java
b/java/org/apache/catalina/users/MemoryUserDatabase.java
index 97e36ac3b8..5044c15db9 100644
--- a/java/org/apache/catalina/users/MemoryUserDatabase.java
+++ b/java/org/apache/catalina/users/MemoryUserDatabase.java
@@ -296,6 +296,7 @@ public class MemoryUserDatabase implements UserDatabase {
throw new IllegalArgumentException(msg);
}
+ @SuppressWarnings("deprecation")
Group group = new MemoryGroup(this, groupname, description);
readLock.lock();
try {
@@ -321,6 +322,7 @@ public class MemoryUserDatabase implements UserDatabase {
throw new IllegalArgumentException(msg);
}
+ @SuppressWarnings("deprecation")
Role role = new MemoryRole(this, rolename, description);
readLock.lock();
try {
@@ -348,6 +350,7 @@ public class MemoryUserDatabase implements UserDatabase {
throw new IllegalArgumentException(msg);
}
+ @SuppressWarnings("deprecation")
User user = new MemoryUser(this, username, password, fullName);
readLock.lock();
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]