Skip to content

Commit

Permalink
fix binary compatibility with old version (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
J0s3f committed Oct 27, 2020
1 parent 6107962 commit 3cc8f15
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/org/influxdb/dto/Point.java
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,18 @@ public Builder time(final Number timeToSet, final TimeUnit precisionToSet) {
return this;
}

/**
* Add a time to this point as long.
* only kept for binary compatibility with previous releases.
*
* @param timeToSet the time for this point as long
* @param precisionToSet the TimeUnit
* @return the Builder instance.
*/
public Builder time(final long timeToSet, final TimeUnit precisionToSet) {
return time((Number) timeToSet, precisionToSet);
}

/**
* Add a time to this point as Long.
* only kept for binary compatibility with previous releases.
Expand Down

0 comments on commit 3cc8f15

Please sign in to comment.