You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2021/09/02 14:45:55 UTC

[commons-dbcp] branch master updated: Simplify. We don't need a hash code of a hash code.

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

markt 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 9418bbd  Simplify. We don't need a hash code of a hash code.
9418bbd is described below

commit 9418bbd8c988ccb1c897d3cf546d2d87ab92eced
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Sep 2 15:45:47 2021 +0100

    Simplify. We don't need a hash code of a hash code.
---
 src/main/java/org/apache/commons/dbcp2/datasources/CharArray.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/dbcp2/datasources/CharArray.java b/src/main/java/org/apache/commons/dbcp2/datasources/CharArray.java
index c5b506c..0a098b9 100644
--- a/src/main/java/org/apache/commons/dbcp2/datasources/CharArray.java
+++ b/src/main/java/org/apache/commons/dbcp2/datasources/CharArray.java
@@ -18,7 +18,6 @@
 package org.apache.commons.dbcp2.datasources;
 
 import java.util.Arrays;
-import java.util.Objects;
 
 import org.apache.commons.dbcp2.Utils;
 
@@ -76,7 +75,7 @@ final class CharArray {
 
     @Override
     public int hashCode() {
-        return Objects.hash(Arrays.hashCode(chars));
+        return Arrays.hashCode(chars);
     }
 
     /**