Commit 38d79b07 authored by Lionel Seinturier's avatar Lionel Seinturier
Browse files

Remove use of deprecated API

parent e4e01b0e
......@@ -350,7 +350,7 @@ public class MixinClassGenerator {
return name + MIXED_METH_SEP + "0";
}
String s = name.substring(pos+1);
int methIndex = new Integer(s) + 1;
int methIndex = Integer.parseInt(s) + 1;
return name.substring(0,pos) + MIXED_METH_SEP + methIndex;
}
......
......@@ -261,8 +261,9 @@ public class SpoonSupportImpl implements SpoonSupportItf {
File genDir = jconf.getGenDir();
Environment env = factory.getEnvironment();
env.setSourceOutputDirectory(genDir);
PrettyPrinter pp = new DefaultJavaPrettyPrinter(env);
FileGenerator<CtNamedElement> jop = new JavaOutputProcessor(genDir,pp);
FileGenerator<CtNamedElement> jop = new JavaOutputProcessor(pp);
jop.setFactory(factory);
jop.process(element);
......
Supports Markdown
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