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

borinquenkid pushed a commit to branch 8.0.x-hibernate7
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit d18e6b5a6f06434cccb390feff334f161952fc0e
Author: Walter Duque de Estrada <[email protected]>
AuthorDate: Thu Jun 18 17:55:51 2026 -0500

    Replace deprecated new Integer() constructors with Integer.valueOf() in 
SoftKeySpec
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
---
 .../test/groovy/org/grails/orm/hibernate/support/SoftKeySpec.groovy   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/support/SoftKeySpec.groovy
 
b/grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/support/SoftKeySpec.groovy
index 643e603401..2920e4286b 100644
--- 
a/grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/support/SoftKeySpec.groovy
+++ 
b/grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/support/SoftKeySpec.groovy
@@ -99,8 +99,8 @@ class SoftKeySpec extends Specification {
     def "two SoftKeys with different hashes are not equal"() {
         given:
         // ensure different hash codes (different objects)
-        def sk1 = new SoftKey<>(new Integer(1))
-        def sk2 = new SoftKey<>(new Integer(99999))
+        def sk1 = new SoftKey<>(Integer.valueOf(1))
+        def sk2 = new SoftKey<>(Integer.valueOf(99999))
 
         expect:
         sk1 != sk2

Reply via email to