diff --git a/runtime/pom.xml b/runtime/pom.xml index 1f34c56..900ce60 100644 --- a/runtime/pom.xml +++ b/runtime/pom.xml @@ -37,4 +37,17 @@ test + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.3 + + -Xlint:unchecked + + + + diff --git a/runtime/src/main/java/org/capnproto/EnumList.java b/runtime/src/main/java/org/capnproto/EnumList.java index 89f64e5..c74bd45 100644 --- a/runtime/src/main/java/org/capnproto/EnumList.java +++ b/runtime/src/main/java/org/capnproto/EnumList.java @@ -93,10 +93,10 @@ public class EnumList { } public final Reader asReader() { - return new Reader(this.values, - this.segment, this.ptr, this.elementCount, this.step, - this.structDataSize, this.structPointerCount, - java.lang.Integer.MAX_VALUE); + return new Reader(this.values, + this.segment, this.ptr, this.elementCount, this.step, + this.structDataSize, this.structPointerCount, + java.lang.Integer.MAX_VALUE); } } } diff --git a/runtime/src/main/java/org/capnproto/ListList.java b/runtime/src/main/java/org/capnproto/ListList.java index 3981cbe..13488aa 100644 --- a/runtime/src/main/java/org/capnproto/ListList.java +++ b/runtime/src/main/java/org/capnproto/ListList.java @@ -89,10 +89,10 @@ public final class ListList { // TODO: rework generics so that we don't need this factory parameter public final Reader asReader(ListFactory factor) { - return new Reader(factor, - this.segment, this.ptr, this.elementCount, this.step, - this.structDataSize, this.structPointerCount, - java.lang.Integer.MAX_VALUE); + return new Reader(factor, + this.segment, this.ptr, this.elementCount, this.step, + this.structDataSize, this.structPointerCount, + java.lang.Integer.MAX_VALUE); } } } diff --git a/runtime/src/main/java/org/capnproto/StructList.java b/runtime/src/main/java/org/capnproto/StructList.java index b14e7f8..9ed670d 100644 --- a/runtime/src/main/java/org/capnproto/StructList.java +++ b/runtime/src/main/java/org/capnproto/StructList.java @@ -149,10 +149,10 @@ public final class StructList { * TODO: rework generics, so that we don't need this factory parameter */ public final Reader asReader(StructFactory factory) { - return new Reader(factory, - this.segment, this.ptr, this.elementCount, this.step, - this.structDataSize, this.structPointerCount, - java.lang.Integer.MAX_VALUE); + return new Reader(factory, + this.segment, this.ptr, this.elementCount, this.step, + this.structDataSize, this.structPointerCount, + java.lang.Integer.MAX_VALUE); } public final class Iterator implements java.util.Iterator {