Skip to content

Commit

Permalink
fix binary compatibility with old version
Browse files Browse the repository at this point in the history
fixes #677
  • Loading branch information
Josef H.B. Schneider authored and J0s3f committed Oct 26, 2020
1 parent 125a9ca commit 0e26f9a
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 0e26f9a

Please sign in to comment.