Skip to content

Commit e971ad5

Browse files
committed
reduced BeanDefinition footprint by initializing Sets and Maps with 0 (SPR-7491)
1 parent 125b843 commit e971ad5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org.springframework.core/src/main/java/org/springframework/core/AttributeAccessorSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2011 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.
@@ -35,7 +35,7 @@
3535
public abstract class AttributeAccessorSupport implements AttributeAccessor, Serializable {
3636

3737
/** Map with String keys and Object values */
38-
private final Map<String, Object> attributes = new LinkedHashMap<String, Object>();
38+
private final Map<String, Object> attributes = new LinkedHashMap<String, Object>(0);
3939

4040

4141
public void setAttribute(String name, Object value) {

0 commit comments

Comments
 (0)