From c7be9b0fe146a6a28bca75b8dfc5129cf84bdcd7 Mon Sep 17 00:00:00 2001 From: heshengbang Date: Fri, 5 Oct 2018 21:51:28 +0800 Subject: [PATCH] Easy to use try-with-resources --- src/main/java/org/influxdb/impl/InfluxDBImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/influxdb/impl/InfluxDBImpl.java b/src/main/java/org/influxdb/impl/InfluxDBImpl.java index 138df99d1..aa605af28 100644 --- a/src/main/java/org/influxdb/impl/InfluxDBImpl.java +++ b/src/main/java/org/influxdb/impl/InfluxDBImpl.java @@ -66,7 +66,7 @@ * * @author stefan.majer [at] gmail.com */ -public class InfluxDBImpl implements InfluxDB { +public class InfluxDBImpl implements InfluxDB, AutoCloseable { private static final String APPLICATION_MSGPACK = "application/x-msgpack";