Skip to content

Commit a2ccccd

Browse files
committed
refactor: remove javaversion check
- xmlbeans no longer supports the GENERATE_JAVA_VERSION attribute, i.e. the constant still exists but is not referenced and there is no way to set it with the new API
1 parent 3128b5e commit a2ccccd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

modules/xmlbeans-codegen/src/main/java/org/apache/axis2/xmlbeans/CodeGenerationUtility.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,8 @@ public static TypeMapper processSchemas(List schemas,
201201
BindingConfig bindConf = new Axis2BindingConfig(cgconfig.getUri2PackageNameMap(),
202202
xsdConfigFile, javaFiles, classpath);
203203

204-
//-Ejavaversion switch to XmlOptions to generate 1.5 compliant code
205204
XmlOptions xmlOptions = new XmlOptions();
206205
xmlOptions.setEntityResolver(er);
207-
//test if javaversion property in CodeGenConfig
208-
if(null!=cgconfig.getProperty("javaversion")){
209-
xmlOptions.put(XmlOptions.GENERATE_JAVA_VERSION,cgconfig.getProperty("javaversion"));
210-
}
211206

212207
sts = XmlBeans.compileXmlBeans(
213208
// set the STS name; defaults to null, which makes the generated class

0 commit comments

Comments
 (0)