[ 
https://issues.apache.org/jira/browse/SUBMARINE-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SUBMARINE-327:
-------------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Assignee: Wanqiang Ji
>            Priority: Major
>              Labels: pull-request-available
>
> 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-unsubscr...@submarine.apache.org
For additional commands, e-mail: dev-h...@submarine.apache.org

Reply via email to