instrument() always recognize an array index modification as read access.
Example:
class MyClass
{
private int[] a = new int[3];
public void example()
{
a[2] = 5;
}
}
Using instrument() with CodeConverter detect "a[2] = " as a read field access of "a". There is no way to modify a index based modification of an array as a write access.
I would like modify the sentence automatically to something like: setA(2,5); where setA is like void setA(int index,int value);
How can I do ?