Skip to content

Conversation

@Corwin-Kh
Copy link
Contributor

No description provided.

Copy link
Member

Choose a reason for hiding this comment

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

Do we need this in the project, or will it be added programmatically before test?

Comment on lines +485 to +490
try {
fos = new FileOutputStream(outputFile);
fos.write(jsonString.getBytes());
} catch (IOException e) {
PlatformUtil.getLog(FileUtils.class).error(e);
} finally {
Copy link
Member

Choose a reason for hiding this comment

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

We could use Algorithms.streamCopy & Algorithms.closeStream for cleaner code

app.getString(R.string.transport_nearby_routes), null,
MenuObjectUtils.getMenuObjectsNamesByComma(menuObjects),
getWithinCollapsableView(menuObjects), true, null);
getWithinCollapsableView(menuObjects), true, null, "ic_action_pin_location");
Copy link
Member

Choose a reason for hiding this comment

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

Looks somewhat harder to read/maintain, as we have to pass one more parameter, same as icon

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.

3 participants