Skip to content

Commit d5fb5d0

Browse files
committed
Polish contribution
1 parent 3738a45 commit d5fb5d0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/annotation/InjectionMetadata.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -111,7 +111,7 @@ public void checkConfigMembers(RootBeanDefinition beanDefinition) {
111111
this.checkedElements = Collections.emptySet();
112112
}
113113
else {
114-
Set<InjectedElement> checkedElements = new LinkedHashSet<>(this.injectedElements.size()*4/3 + 1);
114+
Set<InjectedElement> checkedElements = new LinkedHashSet<>((this.injectedElements.size() * 4 / 3) + 1);
115115
for (InjectedElement element : this.injectedElements) {
116116
Member member = element.getMember();
117117
if (!beanDefinition.isExternallyManagedConfigMember(member)) {

spring-core/src/main/java/org/springframework/core/type/classreading/MergedAnnotationReadingVisitor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -93,8 +93,8 @@ public AnnotationVisitor visitArray(String name) {
9393

9494
@Override
9595
public void visitEnd() {
96-
Map<String, Object> compactedAttributes
97-
= this.attributes.size() == 0 ? Collections.emptyMap() : this.attributes;
96+
Map<String, Object> compactedAttributes =
97+
(this.attributes.size() == 0 ? Collections.emptyMap() : this.attributes);
9898
MergedAnnotation<A> annotation = MergedAnnotation.of(
9999
this.classLoader, this.source, this.annotationType, compactedAttributes);
100100
this.consumer.accept(annotation);

0 commit comments

Comments
 (0)