[
https://issues.apache.org/jira/browse/SUBMARINE-327?focusedWorklogId=364958&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-364958
]
ASF GitHub Bot logged work on SUBMARINE-327:
--------------------------------------------
Author: ASF GitHub Bot
Created on: 31/Dec/19 11:00
Start Date: 31/Dec/19 11:00
Worklog Time Spent: 10m
Work Description: asfgit commented on pull request #136: SUBMARINE-327.
Fix unchecked call 'result<T>' when used JsonResponse.Builder build response
URL: https://github.com/apache/submarine/pull/136
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 364958)
Time Spent: 20m (was: 10m)
> 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
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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]