We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98cdc09 commit 7abebc1Copy full SHA for 7abebc1
src/main/java/org/influxdb/dto/Point.java
@@ -124,10 +124,9 @@ public Builder fields(final Map<String, Object> fieldsToAdd) {
124
* @return the Builder instance.
125
*/
126
public Builder time(final long timeToSet, final TimeUnit precisionToSet) {
127
+ Preconditions.checkNotNull(precisionToSet, "Precision must be not null!");
128
this.time = timeToSet;
- if (null != precisionToSet) {
129
- this.precision = precisionToSet;
130
- }
+ this.precision = precisionToSet;
131
return this;
132
}
133
0 commit comments