[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 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git commit 0b3cbb5a60049248c0a5a48b6b8258b59b1b38d3 Author: Mark Thomas AuthorDate: Mon Dec 6 08:02:04 2021 + 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 true 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 true 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
[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 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git commit 1f8f49e8c44cf1df6c5ae59e3cdeb3593cdde592 Author: Mark Thomas AuthorDate: Mon Dec 6 08:02:04 2021 + 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 true 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 true 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
[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 AuthorDate: Mon Dec 6 08:02:04 2021 + 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 true 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 true 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