fix problems found by -Xlink:unchecked
This commit is contained in:
parent
e89dfd9f74
commit
94d15d7720
4 changed files with 25 additions and 12 deletions
|
@ -37,4 +37,17 @@
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>3.3</version>
|
||||||
|
<configuration>
|
||||||
|
<compilerArgument>-Xlint:unchecked</compilerArgument>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -93,10 +93,10 @@ public class EnumList {
|
||||||
}
|
}
|
||||||
|
|
||||||
public final Reader<T> asReader() {
|
public final Reader<T> asReader() {
|
||||||
return new Reader(this.values,
|
return new Reader<T>(this.values,
|
||||||
this.segment, this.ptr, this.elementCount, this.step,
|
this.segment, this.ptr, this.elementCount, this.step,
|
||||||
this.structDataSize, this.structPointerCount,
|
this.structDataSize, this.structPointerCount,
|
||||||
java.lang.Integer.MAX_VALUE);
|
java.lang.Integer.MAX_VALUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,10 +89,10 @@ public final class ListList {
|
||||||
|
|
||||||
// TODO: rework generics so that we don't need this factory parameter
|
// TODO: rework generics so that we don't need this factory parameter
|
||||||
public final <U extends ListReader> Reader<U> asReader(ListFactory<T, U> factor) {
|
public final <U extends ListReader> Reader<U> asReader(ListFactory<T, U> factor) {
|
||||||
return new Reader(factor,
|
return new Reader<U>(factor,
|
||||||
this.segment, this.ptr, this.elementCount, this.step,
|
this.segment, this.ptr, this.elementCount, this.step,
|
||||||
this.structDataSize, this.structPointerCount,
|
this.structDataSize, this.structPointerCount,
|
||||||
java.lang.Integer.MAX_VALUE);
|
java.lang.Integer.MAX_VALUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,10 +149,10 @@ public final class StructList {
|
||||||
* TODO: rework generics, so that we don't need this factory parameter
|
* TODO: rework generics, so that we don't need this factory parameter
|
||||||
*/
|
*/
|
||||||
public final <U extends StructReader> Reader<U> asReader(StructFactory<T, U> factory) {
|
public final <U extends StructReader> Reader<U> asReader(StructFactory<T, U> factory) {
|
||||||
return new Reader(factory,
|
return new Reader<U>(factory,
|
||||||
this.segment, this.ptr, this.elementCount, this.step,
|
this.segment, this.ptr, this.elementCount, this.step,
|
||||||
this.structDataSize, this.structPointerCount,
|
this.structDataSize, this.structPointerCount,
|
||||||
java.lang.Integer.MAX_VALUE);
|
java.lang.Integer.MAX_VALUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class Iterator implements java.util.Iterator<T> {
|
public final class Iterator implements java.util.Iterator<T> {
|
||||||
|
|
Loading…
Reference in a new issue