ByteArrayAsset may export internal state
----------------------------------------
Key: SHRINKWRAP-38
URL:
https://jira.jboss.org/jira/browse/SHRINKWRAP-38
Project: ShrinkWrap
Issue Type: Bug
Components: impl-base
Reporter: Andrew Lee Rubinger
Assignee: Andrew Lee Rubinger
Must copy the byte array passed into the ctor, else clients may mutate the state. Found
by FindBugs:
new org.jboss.shrinkwrap.impl.base.asset.ByteArrayAsset(byte[]) may expose internal
representation by storing an externally mutable object into ByteArrayAsset.content
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira