Hey, im hacing a little trouble with the old getBytes() being decapriated. I have encryption on my application, and heres an example method.
this gives me the wrong string
public void writeString(java.lang.String s) {
//s.getBytes(0, s.length(), buffer, currentOffset);
s.getBytes();
currentOffset += s.length();
buffer[currentOffset++] = 10;
}
but if i use
s.getBytes(0, s.length(), buffer, currentOffset);
then it gives me the right thing. Im not willing to change me entire encryption method, so is there a way to override the warning generated by this? Ive never had a problem with it malfunctioning. Thanks