greenrobot/greenDAO — Issue #24: I got a sonar critical in an entity constructor
Author: funk78
Created: 2012-02-29 18:40:51+00:00
State: open

Security - Array is stored directly
The user-supplied array 'recordData' is stored directly.
this.id = id;
this.recordData = recordData;
}

recordData is a Byte Array.

Security - Array is stored directly
Plugin: pmd Key: ArrayIsStoredDirectly
Constructors and methods receiving arrays should clone objects and store the copy. This prevents that future changes from the user affect the internal functionality.