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 0b3cbb5a60049248c0a5a48b6b8258b59b1b38d3 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 b4662f7..05b7d5e 100644 --- a/java/org/apache/catalina/users/MemoryUserDatabase.java +++ b/java/org/apache/catalina/users/MemoryUserDatabase.java @@ -543,8 +543,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()) { @@ -569,7 +584,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