Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add a name of a person who kicked off a job (Atlas #750) - #500

Merged
chrisknoll merged 2 commits into
v2.4.3from
add-a-name-of-person-who-kicked-off-a-job
Jul 5, 2018
Merged

chrisknoll merged 2 commits into
v2.4.3from
add-a-name-of-person-who-kicked-off-a-job

Conversation

@marpozh

@marpozh marpozh commented Jul 4, 2018

Copy link
Copy Markdown
Contributor

Issue from Atlas repository - OHDSI/Atlas#750

@marpozh
marpozh requested a review from pavgra July 4, 2018 11:19
*/
package org.ohdsi.webapi.service;

import static java.lang.String.format;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dislike using static imports for this type of call. See below.

.ok(baos)
.type(MediaType.APPLICATION_OCTET_STREAM)
.header("Content-Disposition", String.format("attachment; filename=\"%s\"", "ir_analysis_" + id + ".zip"))
.header("Content-Disposition", format("attachment; filename=\"%s\"", "ir_analysis_" + id + ".zip"))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import static lets you call format(), but it makes it look like it's a locally defined function. Is it really a hardship to type 'String.format'?

@chrisknoll
chrisknoll merged commit 009b15d into v2.4.3 Jul 5, 2018
@chrisknoll
chrisknoll deleted the add-a-name-of-person-who-kicked-off-a-job branch July 5, 2018 17:17
TomWhite-MedStar added a commit to TomWhite-MedStar/WebAPI that referenced this pull request Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants