Skip to content

Commit

Permalink
[java] fix compile warnings (ray-project#36788)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslonnie authored Jun 28, 2023
1 parent 703c505 commit 960605e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private JobFunctionTable createJobFunctionTable() {
})
.toArray(URL[]::new);
classLoader = new URLClassLoader(urls);
LOGGER.debug("Resource loaded from path {}.", urls);
LOGGER.debug("Resource loaded from path {}.", (Object[]) (urls));
}

return new JobFunctionTable(classLoader);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public ParallelActorExecutorImpl(int parallelism, JavaFunctionDescriptor javaFun
RayFunction init = functionManager.getFunction(javaFunctionDescriptor);
Thread.currentThread().setContextClassLoader(init.classLoader);
for (int i = 0; i < parallelism; ++i) {
Object instance = init.getMethod().invoke(null, null);
Object instance = init.getMethod().invoke(null);
instances.put(i, instance);
}
}
Expand Down

0 comments on commit 960605e

Please sign in to comment.