From: Deluge <ant...@us...> - 2013-10-22 22:30:19
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/status In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv31335/src/games/stendhal/server/entity/status Modified Files: StatusAttackerFactory.java Log Message: Repaced e.printStackTrace() with logger.error(e, e). Index: StatusAttackerFactory.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/status/StatusAttackerFactory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** StatusAttackerFactory.java 21 Oct 2013 23:40:05 -0000 1.1 --- StatusAttackerFactory.java 22 Oct 2013 22:30:15 -0000 1.2 *************** *** 27,39 **** String className = "games.stendhal.server.entity.status." + statusName; try { ! Status status = (Status) Class.forName(className).newInstance(); return new StatusAttacker(status, probability); ! } catch (ClassNotFoundException e) { ! e.printStackTrace(); ! } catch (InstantiationException e) { ! e.printStackTrace(); ! } catch (IllegalAccessException e) { ! e.printStackTrace(); } return null; --- 27,37 ---- String className = "games.stendhal.server.entity.status." + statusName; + Status status; try { ! status = (Status) Class.forName(className).newInstance(); return new StatusAttacker(status, probability); ! } catch (InstantiationException | IllegalAccessException ! | ClassNotFoundException e) { ! logger.error(e, e); } return null; |