Make Buffer members private.

This commit is contained in:
Andy Nguyen 2021-11-13 10:57:47 +01:00
parent c80b753e03
commit ab11d2d2be
2 changed files with 3 additions and 3 deletions

View File

@ -18,9 +18,9 @@ public class Buffer {
}
}
protected final long address;
private final long address;
protected final int size;
private final int size;
public Buffer(int size) {
this.size = size;

View File

@ -13,7 +13,7 @@ public class Text extends Buffer {
public Text(String text) {
super(text.length() + 1);
this.text = text;
api.strcpy(address, text);
api.strcpy(address(), text);
}
public String toString() {