Correct p.avm.ValueBuffer constructors
public constructors shall have shadown type arguments.
add private byte[] contsturctor
@@ -73,11 +73,15 @@ public class ValueBuffer extends Object implements Value {
set(v);
}
- public ValueBuffer(byte[] v) {
+ public ValueBuffer(ByteArray v) {
IInstrumentation.attachedThreadInstrumentation.get().chargeEnergy(RuntimeMethodFeeSchedule.ValueBuffer_avm_constructor);
set(v);
}
+ private ValueBuffer(byte[] v) {
+ set(v);
+ }
+
public void set(byte[] raw) {
this.raw = raw;
}
