From: Astrid S. <ast...@us...> - 2007-10-20 22:21:54
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/client/entity In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv21236/src/games/stendhal/client/entity Modified Files: EntityFactory.java Log Message: make use of parametrized Class Index: EntityFactory.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/client/entity/EntityFactory.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** EntityFactory.java 13 Oct 2007 11:21:49 -0000 1.12 --- EntityFactory.java 20 Oct 2007 22:21:56 -0000 1.13 *************** *** 52,56 **** } ! Class< ? > entityClass = EntityMap.getClass(type, eclass); if (entityClass == null) { // If there is no entity, let's try without using class. --- 52,56 ---- } ! Class< ? extends Entity > entityClass = EntityMap.getClass(type, eclass); if (entityClass == null) { // If there is no entity, let's try without using class. *************** *** 62,66 **** } ! Entity en = (Entity) entityClass.newInstance(); en.initialize(object); --- 62,66 ---- } ! Entity en = entityClass.newInstance(); en.initialize(object); |