Browse Source

Polishing

pull/31226/head
Sam Brannen 1 year ago
parent
commit
af13967e2a
  1. 3
      spring-beans/src/main/java/org/springframework/beans/factory/config/BeanDefinitionHolder.java
  2. 4
      spring-core/src/main/java/org/springframework/util/ObjectUtils.java

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

@ -173,8 +173,7 @@ public class BeanDefinitionHolder implements BeanMetadataElement { @@ -173,8 +173,7 @@ public class BeanDefinitionHolder implements BeanMetadataElement {
@Override
public int hashCode() {
return ObjectUtils.nullSafeHash(this.beanDefinition, this.beanName,
this.aliases);
return ObjectUtils.nullSafeHash(this.beanDefinition, this.beanName, this.aliases);
}
}

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

@ -390,7 +390,7 @@ public abstract class ObjectUtils { @@ -390,7 +390,7 @@ public abstract class ObjectUtils {
/**
* Return a hash code for the given elements, delegating to
* {@link #nullSafeHashCode(Object)} for each element. Contrary
* to {@link Objects#hash(Object...)}, this method handle an
* to {@link Objects#hash(Object...)}, this method can handle an
* element that is an array.
* @param elements the elements to be hashed
* @return a hash value of the elements
@ -410,7 +410,7 @@ public abstract class ObjectUtils { @@ -410,7 +410,7 @@ public abstract class ObjectUtils {
/**
* Return a hash code for the given object; typically the value of
* {@code Object#hashCode()}}. If the object is an array,
* this method will delegate to any of the {@code Arrays#hasCode}
* this method will delegate to any of the {@code Arrays.hashCode}
* methods. If the object is {@code null}, this method returns 0.
* @see Object#hashCode()
* @see Arrays

Loading…
Cancel
Save