You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by "Wanqiang Ji (Jira)" <ji...@apache.org> on 2019/12/30 11:06:00 UTC
[jira] [Created] (SUBMARINE-327) Fix unchecked call 'result'
when used JsonResponse.Builder build response
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: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org