Wanqiang Ji created SUBMARINE-327:
-------------------------------------
Summary: Fix unchecked call 'result<T>' when used
JsonResponse.Builder build response
Key: SUBMARINE-327
URL: https://issues.apache.org/jira/browse/SUBMARINE-327
Project: Apache Submarine
Issue Type: Sub-task
Components: Backend Server
Reporter: Wanqiang Ji
Problem 1:
{code:java}
// JobServerRestApi.java
// Unchecked call to 'result(T)' as a member of raw type
'org.apache.submarine.server.response.JsonResponse.Builder'
new JsonResponse.Builder<JobSpec>(Response.Status.OK)
.success(true).result(id).build()
{code}
Problem 2:
{code:java}
// JsonResponse.java
// Raw use of parameterized class 'Builder'
public Builder code(int code) {
this.code = code;
return this;
}
// Raw use of parameterized class 'JsonResponse'
public javax.ws.rs.core.Response build() {
JsonResponse jsonResponse = new JsonResponse(this);
return jsonResponse.build();
}{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]