Skip to content

Commit af13967

Browse files
committed
Polishing
1 parent ae8a353 commit af13967

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/config/BeanDefinitionHolder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ public boolean equals(@Nullable Object other) {
173173

174174
@Override
175175
public int hashCode() {
176-
return ObjectUtils.nullSafeHash(this.beanDefinition, this.beanName,
177-
this.aliases);
176+
return ObjectUtils.nullSafeHash(this.beanDefinition, this.beanName, this.aliases);
178177
}
179178

180179
}

spring-core/src/main/java/org/springframework/util/ObjectUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ private static boolean arrayEquals(Object o1, Object o2) {
390390
/**
391391
* Return a hash code for the given elements, delegating to
392392
* {@link #nullSafeHashCode(Object)} for each element. Contrary
393-
* to {@link Objects#hash(Object...)}, this method handle an
393+
* to {@link Objects#hash(Object...)}, this method can handle an
394394
* element that is an array.
395395
* @param elements the elements to be hashed
396396
* @return a hash value of the elements
@@ -410,7 +410,7 @@ public static int nullSafeHash(@Nullable Object... elements) {
410410
/**
411411
* Return a hash code for the given object; typically the value of
412412
* {@code Object#hashCode()}}. If the object is an array,
413-
* this method will delegate to any of the {@code Arrays#hasCode}
413+
* this method will delegate to any of the {@code Arrays.hashCode}
414414
* methods. If the object is {@code null}, this method returns 0.
415415
* @see Object#hashCode()
416416
* @see Arrays

0 commit comments

Comments
 (0)