Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Remove unused DockerDateFormat #1075

Merged
merged 1 commit into from
Oct 3, 2018
Merged

Remove unused DockerDateFormat #1075

merged 1 commit into from
Oct 3, 2018

Conversation

davidxia
Copy link
Contributor

@davidxia davidxia commented Sep 23, 2018

This library was originally using Java 7. Java 7 had Date objects
with only millisecond precision.

This was a problem when translating timestamps with nanosecond
precision from the Docker API to Date.

This library is on Java 8 now whose Date translates a timestamp with
nanosecond precision correctly.

Removing DockerDateFormat fixes the findbugs error here
#1068.
See build logs https://travis-ci.org/spotify/docker-client/jobs/426781589.

@davidxia
Copy link
Contributor Author

cc @spotify/docker-admins

Copy link
Member

@mattnworb mattnworb left a comment

Choose a reason for hiding this comment

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

any idea why this method existed at all?

@davidxia
Copy link
Contributor Author

Not sure. @rculbertson, I see you wrote these lines. Do you know?

@davidxia davidxia changed the title Remove unused DockerDateFormat.clone() Remove unused DockerDateFormat Oct 2, 2018
@codecov
Copy link

codecov bot commented Oct 2, 2018

Codecov Report

Merging #1075 into master will increase coverage by 0.23%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1075      +/-   ##
============================================
+ Coverage     67.08%   67.31%   +0.23%     
- Complexity      789      794       +5     
============================================
  Files           178      178              
  Lines          3287     3286       -1     
  Branches        385      385              
============================================
+ Hits           2205     2212       +7     
+ Misses          917      911       -6     
+ Partials        165      163       -2

This library was originally using Java 7. Java 7 had `Date` objects
with only millisecond precision.

This was a problem when translating timestamps with nanosecond
precision from the Docker API to `Date`.

This library is on Java 8 now whose `Date` translates a timestamp with
nanosecond precision correctly.

Removing `DockerDateFormat` fixes the findbugs error here
#1068.
See build logs https://travis-ci.org/spotify/docker-client/jobs/426781589.
@davidxia davidxia merged commit 89f0cf6 into master Oct 3, 2018
@davidxia davidxia deleted the dxia/patch-1 branch October 3, 2018 00:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants