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>
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;
}
In wsdl, section is
</s:restriction>
</s:simpleType>
Please provide advice.
Thanks.