diff --git a/pkgs/jni/java/src/main/java/com/github/dart_lang/jni/PortProxyBuilder.java b/pkgs/jni/java/src/main/java/com/github/dart_lang/jni/PortProxyBuilder.java index 266a5e763..178d25115 100644 --- a/pkgs/jni/java/src/main/java/com/github/dart_lang/jni/PortProxyBuilder.java +++ b/pkgs/jni/java/src/main/java/com/github/dart_lang/jni/PortProxyBuilder.java @@ -85,7 +85,7 @@ private static void appendType(StringBuilder descriptor, Class type) { } public void addImplementation( - String binaryName, long port, long functionPointer, List asyncMethods) { + String binaryName, long port, long functionPointer, List asyncMethods) { implementations.put(binaryName, new DartImplementation(port, functionPointer)); this.asyncMethods.addAll(asyncMethods); } @@ -103,8 +103,8 @@ public Object build() throws ClassNotFoundException { classes.add(Class.forName(binaryName)); } Object obj = - Proxy.newProxyInstance( - classes.get(0).getClassLoader(), classes.toArray(new Class[0]), this); + Proxy.newProxyInstance( + classes.get(0).getClassLoader(), classes.toArray(new Class[0]), this); for (DartImplementation implementation : implementations.values()) { cleaner.register(obj, implementation.port); } @@ -115,13 +115,13 @@ public Object build() throws ClassNotFoundException { /// [0]: The address of the result pointer used for the clean-up. /// [1]: The result of the invocation. private static native Object[] _invoke( - long port, - long isolateId, - long functionPtr, - Object proxy, - String methodDescriptor, - Object[] args, - boolean isBlocking); + long port, + long isolateId, + long functionPtr, + Object proxy, + String methodDescriptor, + Object[] args, + boolean isBlocking); private static native void _cleanUp(long resultPtr); @@ -140,14 +140,14 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl String descriptor = getDescriptor(method); boolean isBlocking = !asyncMethods.contains(descriptor); Object[] result = - _invoke( - implementation.port, - isolateId, - implementation.pointer, - proxy, - descriptor, - args, - isBlocking); + _invoke( + implementation.port, + isolateId, + implementation.pointer, + proxy, + descriptor, + args, + isBlocking); if (!isBlocking) { return null; }