You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but creating multiple BatchPoints instances from BatchPoints.Builder is not actually safe since BatchPoints.Builder does not make defensive copy of this.points:
There's nothing in
BatchPoints.Builder
javadoc that would warn against callingbuild()
multiple times:influxdb-java/src/main/java/org/influxdb/dto/BatchPoints.java
Lines 54 to 57 in b1d1d8a
influxdb-java/src/main/java/org/influxdb/dto/BatchPoints.java
Lines 151 to 156 in b1d1d8a
and nothing in
build()
method itself that would cause ie exception:influxdb-java/src/main/java/org/influxdb/dto/BatchPoints.java
Lines 156 to 174 in b1d1d8a
but creating multiple
BatchPoints
instances fromBatchPoints.Builder
is not actually safe sinceBatchPoints.Builder
does not make defensive copy ofthis.points
:influxdb-java/src/main/java/org/influxdb/dto/BatchPoints.java
Line 162 in b1d1d8a
so ie this code will fail:
since
bp1.point(point)
modified collectionbuilder
refers to.The text was updated successfully, but these errors were encountered: