Polishing

This commit is contained in:
Sam Brannen
2023-09-13 16:40:23 +02:00
parent ae8a353041
commit af13967e2a
2 changed files with 3 additions and 4 deletions

View File

@@ -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);
}
}

View File

@@ -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 {
/**
* 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