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
import java.util.Vector;
import org.xml.sax.*;
import org.xml.sax.helpers.*;
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
/**
* The handler used to parse the deployment file which contains
* The vector which contains the arguments of the main function
* of the process object.
*/
* The vector which contains the arguments of the main function
* of the process object.
*/
- public Vector<String> args;
/**
* The name of the host of the process.
/**
* The name of the host of the process.
* Default constructor.
*/
public ProcessFactory(){
* Default constructor.
*/
public ProcessFactory(){
- this.args = new Vector<String>();
+ this.args = new Vector();
this.hostName = null;
this.function = null;
}
this.hostName = null;
this.function = null;
}
Host host = Host.getByName(this.hostName);
Msg.processCreate(process,host);
Host host = Host.getByName(this.hostName);
Msg.processCreate(process,host);
- Vector<String> args = processFactory.args;
+ Vector args = processFactory.args;
int size = args.size();
for(int index = 0; index < size; index++)
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)
{
} catch(JniException e)
{