From: cherierm Date: Mon, 24 Sep 2007 12:19:35 +0000 (+0000) Subject: The java reflect is already of use, i have removed them. X-Git-Tag: v3.3~1096 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9072c3cf98a5f6f31adfdc38a97ce562ef62dfa8 The java reflect is already of use, i have removed them. My version of java (1.5) use the generic class. So if i compile the classes ApplicationHandler or Process without type specification for the vector, i get the warning "Note: Some input files use unchecked or unsafe operations." It's just a warning, and all the examples always work. So now, i don't use the java templates. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4695 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/java/simgrid/msg/ApplicationHandler.java b/src/java/simgrid/msg/ApplicationHandler.java index a3e2acb672..a5c13c01f2 100644 --- a/src/java/simgrid/msg/ApplicationHandler.java +++ b/src/java/simgrid/msg/ApplicationHandler.java @@ -14,7 +14,6 @@ package simgrid.msg; import java.util.Vector; import org.xml.sax.*; import org.xml.sax.helpers.*; -import java.lang.reflect.*; /** * The handler used to parse the deployment file which contains @@ -41,7 +40,7 @@ public final class ApplicationHandler extends DefaultHandler * The vector which contains the arguments of the main function * of the process object. */ - public Vector args; + public Vector args; /** * The name of the host of the process. @@ -57,7 +56,7 @@ public final class ApplicationHandler extends DefaultHandler * Default constructor. */ public ProcessFactory(){ - this.args = new Vector(); + this.args = new Vector(); this.hostName = null; this.function = null; } @@ -103,11 +102,11 @@ public final class ApplicationHandler extends DefaultHandler Host host = Host.getByName(this.hostName); Msg.processCreate(process,host); - Vector args = processFactory.args; + Vector args = processFactory.args; int size = args.size(); for(int index = 0; index < size; index++) - process.addArg(args.get(index)); + process.args.add(args.get(index)); } catch(JniException e) {