Skip to content

Conversation

@gliptak
Copy link
Contributor

@gliptak gliptak commented Jun 7, 2016

@gliptak
Copy link
Contributor Author

gliptak commented Jun 7, 2016

I only changed one of the call to db to exercise the other code path ...

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 34.489% when pulling 23b7367 on gliptak:dbexception1 into ae8864e on functionaljava:master.

DbUtils.closeQuietly(s);
}
return Unit.unit();
DB<Unit> setup = DB.db((Try1<Connection, Unit, SQLException>) t -> {
Copy link
Contributor

Choose a reason for hiding this comment

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

c instead of t here for Connection?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated


DB<Option<Integer>> query = new DB<Option<Integer>>() {
@Override
public Option<Integer> run(Connection c) throws SQLException {
Copy link
Contributor

Choose a reason for hiding this comment

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

@gliptak You might want to do this method here while you are at it. I will merge and you can raise another PR if you make the change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mperry I specifically left this unchanged, as it takes a different path in the codebase (as additional coverage) ...

@mperry mperry merged commit 12b6163 into functionaljava:master Jun 8, 2016
@mperry mperry added this to the v4.6 milestone Jul 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants