You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:simpleType name="XYZ">
<s:restriction base="s:string">
<s:enumeration value="A"/>
<s:enumeration value="B"/>
<s:enumeration value="C"/>
</s:restriction>
</s:simpleType>
Please provide advice.
Thanks.
The text was updated successfully, but these errors were encountered:
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:simpleType name="XYZ">
<s:restriction base="s:string">
<s:enumeration value="A"/>
<s:enumeration value="B"/>
<s:enumeration value="C"/>
</s:restriction>
</s:simpleType>
Please provide advice.
Thanks.
The text was updated successfully, but these errors were encountered: