You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/06/05 12:46:00 UTC

[commons-dbcp] branch master updated: Package private class does not need non-overridden to be public methods (JApiCmp OK).

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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbcp.git


The following commit(s) were added to refs/heads/master by this push:
     new 330a6d5  Package private class does not need non-overridden to be public methods (JApiCmp OK).
330a6d5 is described below

commit 330a6d51f98f02c7ae9021c6e93b339983a301c4
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Jun 5 08:45:57 2021 -0400

    Package private class does not need non-overridden to be public methods
    (JApiCmp OK).
---
 src/main/java/org/apache/commons/dbcp2/datasources/UserPassKey.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/dbcp2/datasources/UserPassKey.java b/src/main/java/org/apache/commons/dbcp2/datasources/UserPassKey.java
index b300505..42ad36d 100644
--- a/src/main/java/org/apache/commons/dbcp2/datasources/UserPassKey.java
+++ b/src/main/java/org/apache/commons/dbcp2/datasources/UserPassKey.java
@@ -84,7 +84,7 @@ class UserPassKey implements Serializable {
      *
      * @return value of password.
      */
-    public String getPassword() {
+    String getPassword() {
         return Utils.toString(userPassword);
     }
 
@@ -93,7 +93,7 @@ class UserPassKey implements Serializable {
      *
      * @return value of password.
      */
-    public char[] getPasswordCharArray() {
+    char[] getPasswordCharArray() {
         return userPassword;
     }
 
@@ -102,7 +102,7 @@ class UserPassKey implements Serializable {
      *
      * @return value of user name.
      */
-    public String getUsername() {
+    String getUsername() {
         return userName;
     }