Skip to content

Commit 160d75e

Browse files
author
Klaus Rennecke
committed
fix type arguments
1 parent c2e78c1 commit 160d75e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/velocity/org/bridj/Pointer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2438,7 +2438,7 @@ public static <T> Pointer<Pointer<T>> pointerToPointers(Pointer<T>... values) {
24382438
if (values == null)
24392439
return null;
24402440
int n = values.length, s = Pointer.SIZE;
2441-
PointerIO<Pointer> pio = PointerIO.getPointerInstance(); // TODO get actual pointer instances PointerIO !!!
2441+
PointerIO<?> pio = PointerIO.getPointerInstance(); // TODO get actual pointer instances PointerIO !!!
24422442
Pointer<Pointer<T>> p = (Pointer<Pointer<T>>)(Pointer)allocateArray(pio, n);
24432443
for (int i = 0; i < n; i++) {
24442444
p.setPointerAtOffset(i * s, values[i]);

src/main/velocity/org/bridj/PointerIO.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static Class<?> getClass(Type type) {
9797
return null;
9898
}
9999

100-
private static final PointerIO<Pointer> PointerIO = getPointerInstance((PointerIO)null);
100+
private static final PointerIO<?> PointerIO = getPointerInstance((PointerIO<?>)null);
101101

102102
public static <T> PointerIO<Pointer<T>> getPointerInstance(Type target) {
103103
return getPointerInstance((PointerIO<T>)getInstance(target));
@@ -185,7 +185,7 @@ else if (TypedPointer.class.isAssignableFrom(cl))
185185
}
186186
#end #end
187187

188-
public static PointerIO<Pointer> getPointerInstance() {
188+
public static PointerIO<?> getPointerInstance() {
189189
return PointerIO;
190190
}
191191

0 commit comments

Comments
 (0)