Commit 20a84a27 authored by Lionel Seinturier's avatar Lionel Seinturier
Browse files

Remove uneeded casts.

parent c309d481
......@@ -161,14 +161,13 @@ public class Juliac {
/**
* Generate the source code for the specified membrane descriptor.
*
* @param controllerDesc the membrane descriptor
* @return the source code generator
* @param ctrlDesc the membrane descriptor
* @return the source code generator
* @throws IllegalArgumentException if no source code generator is suitable
*/
public FCSourceCodeGeneratorItf<?> generate( Object controllerDesc )
public FCSourceCodeGeneratorItf<?> generate( String ctrlDesc )
throws IOException, InstantiationException, IllegalArgumentException {
String ctrlDesc = (String) controllerDesc;
ComponentType ct = new BasicComponentType(new BasicInterfaceType[0]);
FCSourceCodeGeneratorItf<?> fcscg = null;
......@@ -232,16 +231,15 @@ public class Juliac {
* Generate the source code for the specified membrane descriptor defined in
* the specified source code element.
*
* @param controllerDesc the membrane descriptor
* @return the source code generator
* @param ctrlDesc the membrane descriptor
* @return the source code generator
* @throws IllegalArgumentException if no source code generator is suitable
* @since 2.7
*/
public FCSourceCodeGeneratorItf<?> generate(
Object controllerDesc, Object source )
String ctrlDesc, Object source )
throws IOException, InstantiationException, IllegalArgumentException {
String ctrlDesc = (String) controllerDesc;
ComponentType ct = new BasicComponentType(new BasicInterfaceType[0]);
FCSourceCodeGeneratorItf<?> fcscg = getFCSourceCodeGenerator(ctrlDesc);
......@@ -258,23 +256,22 @@ public class Juliac {
* Generate the source code for the specified proxy interface and membrane
* descriptor.
*
* @param signature the interface signature
* @param controllerDesc the membrane descriptor
* @return the source code generator
* @param signature the interface signature
* @param ctrlDesc the membrane descriptor
* @return the source code generator
* @throws IllegalArgumentException if no source code generator is suitable
*/
public FCSourceCodeGeneratorItf<?> generateProxiesImpl(
String signature, Object controllerDesc )
String signature, String ctrlDesc )
throws IOException, IllegalArgumentException {
String ctrlDesc = (String) controllerDesc;
FCSourceCodeGeneratorItf<?> fcscg = getFCSourceCodeGenerator(ctrlDesc);
JuliacConfig jconf = getJuliacConfig();
Logger logger = jconf.getLogger();
logger.info("[Generator: "+fcscg.getClass().getName()+"]");
fcscg.generateProxiesImpl(signature,controllerDesc);
fcscg.generateProxiesImpl(signature,ctrlDesc);
return fcscg;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment