Skip to content

Conversation

@pmakani
Copy link

@pmakani pmakani commented Feb 13, 2019

Fixes #3589 com.google.cloud.bigquery.QueryParameterValue classToType should support standard Java

@pmakani pmakani requested a review from a team as a code owner February 13, 2019 16:55
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 13, 2019
@codecov
Copy link

codecov bot commented Feb 13, 2019

Codecov Report

Merging #4489 into master will increase coverage by <.01%.
The diff coverage is 63.63%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #4489      +/-   ##
============================================
+ Coverage     49.16%   49.16%   +<.01%     
- Complexity    21913    21917       +4     
============================================
  Files          2078     2078              
  Lines        207048   207059      +11     
  Branches      24084    24086       +2     
============================================
+ Hits         101789   101799      +10     
- Misses        97116    97117       +1     
  Partials       8143     8143
Impacted Files Coverage Δ Complexity Δ
...com/google/cloud/bigquery/QueryParameterValue.java 67.4% <63.63%> (+2.08%) 47 <1> (+4) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e4ce6c...8383bdf. Read the comment docs.

DateTimeFormatter.ofPattern("HH:mm:ss.SSSSSS");
private static final DateTimeFormatter datetimeFormatter =
DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSSSSS");
private static final DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use DateTimeFormatter instead of the java standard format.

Copy link
Author

@pmakani pmakani Feb 14, 2019

Choose a reason for hiding this comment

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

DateTimeFormatter is only available after java 8.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please see line 72.

Copy link
Author

Choose a reason for hiding this comment

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

Updated to remove formatter and replaced with utility method from google cloud date. Sorry I misread your comment earlier and though of jdk8s datetimeformatter.

@sduskis sduskis added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 14, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 14, 2019
@sduskis sduskis merged commit 3bfe25e into googleapis:master Feb 19, 2019
@pmakani pmakani deleted the api-bigquery-3589 branch February 25, 2019 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants