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

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

commit 31c88c79a8bcd8dea4bcdfc0258f7933edecf62a
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Dec 6 08:02:04 2021 +0000

    writeable -> writable - rename public method
---
 java/org/apache/catalina/users/MemoryUserDatabase.java | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/users/MemoryUserDatabase.java 
b/java/org/apache/catalina/users/MemoryUserDatabase.java
index 03e9fdd..207dec3 100644
--- a/java/org/apache/catalina/users/MemoryUserDatabase.java
+++ b/java/org/apache/catalina/users/MemoryUserDatabase.java
@@ -527,8 +527,23 @@ public class MemoryUserDatabase implements UserDatabase {
      * location.
      *
      * @return <code>true</code> if the database is writable
+     *
+     * @deprecated Use {@link #isWritable()}. This method will be removed in
+     *             Tomcat 10.1.x onwards.
      */
+    @Deprecated
     public boolean isWriteable() {
+        return isWritable();
+    }
+
+
+    /**
+     * Check for permissions to save this user database to persistent storage
+     * location.
+     *
+     * @return <code>true</code> if the database is writable
+     */
+    public boolean isWritable() {
 
         File file = new File(pathname);
         if (!file.isAbsolute()) {
@@ -553,7 +568,7 @@ public class MemoryUserDatabase implements UserDatabase {
             return;
         }
 
-        if (!isWriteable()) {
+        if (!isWritable()) {
             log.warn(sm.getString("memoryUserDatabase.notPersistable"));
             return;
         }

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

Reply via email to