mojohaus / jaxws-maven-plugin

https://www.mojohaus.org/jaxws-maven-plugin/
Apache License 2.0
25 stars 37 forks source link

Generated Enum class failed to comply with Fortify SCA #55

Open mh888 opened 7 years ago

mh888 commented 7 years ago

For Enum generated from simpletype of wsdl, the java class generated failed to comply with Fortify SCA as the major complain is that there is a private String value and there is a method value() also -- Poor Style: Confusing Naming. We are using latest version 2.4.1. See the sample below:

@XmlType(name = "XYZ") @XmlEnum public enum XYZ { //omit other stuff private final String value;

XYZ(String v) {
    value = v;
}

public String value() {
    return value;
}

}

In wsdl, section is </s:restriction> </s:simpleType>

Please provide advice.

Thanks.

phax commented 7 years ago

Fine as it is. Auto generated code. Disable the warning in Fortify