mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 01:40:21 +08:00
Remove the check of java primitive types (#2495)
This commit is contained in:
committed by
Robert Nishihara
parent
29451cca82
commit
5b015f9a79
@@ -15,15 +15,6 @@ public class RayMethod {
|
||||
public final RayRemote remoteAnnotation;
|
||||
private final UniqueID funcId;
|
||||
|
||||
public void check() {
|
||||
for (Class<?> paramCls : invokable.getParameterTypes()) {
|
||||
if (paramCls.isPrimitive()) {
|
||||
throw new RuntimeException(
|
||||
"@RayRemote function " + fullName + " must have all non-primitive typed parameters");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private RayMethod(Method m, RayRemote remoteAnnotation, UniqueID funcId) {
|
||||
this.invokable = m;
|
||||
this.remoteAnnotation = remoteAnnotation;
|
||||
@@ -39,7 +30,6 @@ public class RayMethod {
|
||||
RayMethod method = new RayMethod(m,
|
||||
remoteAnnotation != null ? remoteAnnotation : parentRemoteAnnotation,
|
||||
funcId);
|
||||
method.check();
|
||||
return method;
|
||||
}
|
||||
|
||||
@@ -51,4 +41,4 @@ public class RayMethod {
|
||||
public UniqueID getFuncId() {
|
||||
return funcId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user