File tree 1 file changed +1
-4
lines changed
src/main/java/org/influxdb/dto
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ public Builder fields(final Map<String, Object> fieldsToAdd) {
181
181
* @return the Builder instance.
182
182
*/
183
183
public Builder time (final long timeToSet , final TimeUnit precisionToSet ) {
184
- Preconditions .checkNotNull (precisionToSet , "Precision must be not null!" );
184
+ Preconditions .checkNotNull (precisionToSet , "Precision must be not null!" );
185
185
this .time = timeToSet ;
186
186
this .precision = precisionToSet ;
187
187
return this ;
@@ -352,9 +352,6 @@ private StringBuilder concatenateFields() {
352
352
353
353
private StringBuilder formatedTime () {
354
354
final StringBuilder sb = new StringBuilder ();
355
- if (null == this .time ) {
356
- this .time = this .precision .convert (System .currentTimeMillis (), TimeUnit .MILLISECONDS );
357
- }
358
355
sb .append (" " ).append (TimeUnit .NANOSECONDS .convert (this .time , this .precision ));
359
356
return sb ;
360
357
}
You can’t perform that action at this time.
0 commit comments