Skip to content
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
@glassfishrobot

Description

@glassfishrobot

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]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions