From: Martin F. <mar...@us...> - 2011-01-12 21:37:34
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/core/engine/dbcommand In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv2694/src/games/stendhal/server/core/engine/dbcommand Modified Files: GetCharacterCreationDateCommand.java Log Message: eliminate FindBugs warning: getCreationDate() may expose internal representation Index: GetCharacterCreationDateCommand.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/core/engine/dbcommand/GetCharacterCreationDateCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** GetCharacterCreationDateCommand.java 11 Jan 2011 19:24:05 -0000 1.1 --- GetCharacterCreationDateCommand.java 12 Jan 2011 21:37:25 -0000 1.2 *************** *** 27,31 **** public class GetCharacterCreationDateCommand extends AbstractDBCommand { private String charname; ! private Date date; /** --- 27,31 ---- public class GetCharacterCreationDateCommand extends AbstractDBCommand { private String charname; ! private Date date = null; /** *************** *** 43,47 **** date = dao.getCreationDate(charname); } ! /** * To access the character creation date we retrieved --- 43,47 ---- date = dao.getCreationDate(charname); } ! /** * To access the character creation date we retrieved *************** *** 50,56 **** */ public Date getCreationDate() { ! return date; } - /** --- 50,55 ---- */ public Date getCreationDate() { ! return (Date) date.clone(); } /** |