From e971ad56b60e45ebc8a3314f1365d08d5a07d83a Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 5 Jan 2011 19:59:00 +0000 Subject: [PATCH] reduced BeanDefinition footprint by initializing Sets and Maps with 0 (SPR-7491) --- .../org/springframework/core/AttributeAccessorSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.springframework.core/src/main/java/org/springframework/core/AttributeAccessorSupport.java b/org.springframework.core/src/main/java/org/springframework/core/AttributeAccessorSupport.java index a2424de60b..bd598c2f8a 100644 --- a/org.springframework.core/src/main/java/org/springframework/core/AttributeAccessorSupport.java +++ b/org.springframework.core/src/main/java/org/springframework/core/AttributeAccessorSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ import org.springframework.util.Assert; public abstract class AttributeAccessorSupport implements AttributeAccessor, Serializable { /** Map with String keys and Object values */ - private final Map attributes = new LinkedHashMap(); + private final Map attributes = new LinkedHashMap(0); public void setAttribute(String name, Object value) {