From: Juergen H. <jho...@us...> - 2008-11-28 12:18:20
|
Update of /cvsroot/springframework/spring/src/org/springframework/core/style In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20615/src/org/springframework/core/style Modified Files: ToStringCreator.java Log Message: polishing Index: ToStringCreator.java =================================================================== RCS file: /cvsroot/springframework/spring/src/org/springframework/core/style/ToStringCreator.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ToStringCreator.java 31 Jan 2007 11:24:53 -0000 1.5 --- ToStringCreator.java 28 Nov 2008 12:17:53 -0000 1.6 *************** *** 1,4 **** /* ! * Copyright 2002-2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); --- 1,4 ---- /* ! * Copyright 2002-2008 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); *************** *** 107,137 **** /** ! * Append a float field value. * @param fieldName the name of the field, usually the member variable name * @param value the field value * @return this, to support call-chaining */ ! public ToStringCreator append(String fieldName, float value) { ! return append(fieldName, new Float(value)); } /** ! * Append a double field value. * @param fieldName the name of the field, usually the member variable name * @param value the field value * @return this, to support call-chaining */ ! public ToStringCreator append(String fieldName, double value) { ! return append(fieldName, new Double(value)); } /** ! * Append a long field value. * @param fieldName the name of the field, usually the member variable name * @param value the field value * @return this, to support call-chaining */ ! public ToStringCreator append(String fieldName, long value) { ! return append(fieldName, new Long(value)); } --- 107,137 ---- /** ! * Append a long field value. * @param fieldName the name of the field, usually the member variable name * @param value the field value * @return this, to support call-chaining */ ! public ToStringCreator append(String fieldName, long value) { ! return append(fieldName, new Long(value)); } /** ! * Append a float field value. * @param fieldName the name of the field, usually the member variable name * @param value the field value * @return this, to support call-chaining */ ! public ToStringCreator append(String fieldName, float value) { ! return append(fieldName, new Float(value)); } /** ! * Append a double field value. * @param fieldName the name of the field, usually the member variable name * @param value the field value * @return this, to support call-chaining */ ! public ToStringCreator append(String fieldName, double value) { ! return append(fieldName, new Double(value)); } *************** *** 143,147 **** */ public ToStringCreator append(String fieldName, boolean value) { ! return append(fieldName, value ? Boolean.TRUE : Boolean.FALSE); } --- 143,147 ---- */ public ToStringCreator append(String fieldName, boolean value) { ! return append(fieldName, Boolean.valueOf(value)); } |