This repository was archived by the owner on Feb 5, 2019. It is now read-only.
This repository was archived by the owner on Feb 5, 2019. It is now read-only.
redundant cast to byte[] in code generated by XJCTask #413
Closed
Description
The following code is generated by XJC for binary datatype of an element.
/**
-
Sets the value of the binaryContent property.
-
@param value
-
allowed object is
-
byte[]
*/
protected byte[] binaryContent;
public void setBinaryContent(byte[] value) { this.binaryContent = ((byte[]) value); }
Notice the redundant cast to byte[]. This cast unnecessarily generates a compile
warning.
Environment
Operating System: All
Platform: All
Affected Versions
[2.0.3]