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 2021/12/06 08:08:19 UTC
[tomcat] 02/02: writeable -> writable - rename public method
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit ae9e558d1a786ba34f152755b07692dda1af7574
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org