Rename IntBase to AbstractInt.

This commit is contained in:
Andy Nguyen 2021-11-13 09:38:01 +01:00
parent b995e5e3d5
commit 44ae595424
6 changed files with 8 additions and 8 deletions

View File

@ -10,9 +10,9 @@ CLASSES = \
$(SRC)/com/bdjb/Exploit.java \ $(SRC)/com/bdjb/Exploit.java \
$(SRC)/com/bdjb/JIT.java \ $(SRC)/com/bdjb/JIT.java \
$(SRC)/com/bdjb/Screen.java \ $(SRC)/com/bdjb/Screen.java \
$(SRC)/com/bdjb/api/AbstractInt.java \
$(SRC)/com/bdjb/api/API.java \ $(SRC)/com/bdjb/api/API.java \
$(SRC)/com/bdjb/api/Buffer.java \ $(SRC)/com/bdjb/api/Buffer.java \
$(SRC)/com/bdjb/api/IntBase.java \
$(SRC)/com/bdjb/api/Int8.java \ $(SRC)/com/bdjb/api/Int8.java \
$(SRC)/com/bdjb/api/Int16.java \ $(SRC)/com/bdjb/api/Int16.java \
$(SRC)/com/bdjb/api/Int32.java \ $(SRC)/com/bdjb/api/Int32.java \

View File

@ -7,7 +7,7 @@
package com.bdjb.api; package com.bdjb.api;
abstract class IntBase { abstract class AbstractInt {
protected static final API api; protected static final API api;
static { static {
@ -24,13 +24,13 @@ abstract class IntBase {
protected final int[] dimensions; protected final int[] dimensions;
protected IntBase(int[] dimensions) { protected AbstractInt(int[] dimensions) {
this.dimensions = dimensions; this.dimensions = dimensions;
this.size = size(dimensions); this.size = size(dimensions);
this.address = api.malloc(size); this.address = api.malloc(size);
} }
protected IntBase() { protected AbstractInt() {
this(new int[] {1}); this(new int[] {1});
} }

View File

@ -7,7 +7,7 @@
package com.bdjb.api; package com.bdjb.api;
public final class Int16 extends IntBase { public final class Int16 extends AbstractInt {
public static final int SIZE = 2; public static final int SIZE = 2;
public Int16(int[] dimensions) { public Int16(int[] dimensions) {

View File

@ -7,7 +7,7 @@
package com.bdjb.api; package com.bdjb.api;
public final class Int32 extends IntBase { public final class Int32 extends AbstractInt {
public static final int SIZE = 4; public static final int SIZE = 4;
public Int32(int[] dimensions) { public Int32(int[] dimensions) {

View File

@ -7,7 +7,7 @@
package com.bdjb.api; package com.bdjb.api;
public final class Int64 extends IntBase { public final class Int64 extends AbstractInt {
public static final int SIZE = 8; public static final int SIZE = 8;
public Int64(int[] dimensions) { public Int64(int[] dimensions) {

View File

@ -7,7 +7,7 @@
package com.bdjb.api; package com.bdjb.api;
public final class Int8 extends IntBase { public final class Int8 extends AbstractInt {
public static final int SIZE = 1; public static final int SIZE = 1;
public Int8(int[] dimensions) { public Int8(int[] dimensions) {