Skip to content

Commit

Permalink
refactor: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sciator committed Nov 3, 2023
1 parent 19a802a commit 135c361
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ try (Stream<PointValues> stream = client.queryPoints(sql1, QueryOptions.DEFAULTS
System.out.printf("--------------------------------------------------------%n%n");
```


## Feedback

If you need help, please use our [Community Slack](https://app.slack.com/huddle/TH8RGQX5Z/C02UDUPLQKA)
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/influxdb/v3/client/InfluxDBClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

import com.influxdb.v3.client.config.ClientConfig;
import com.influxdb.v3.client.internal.InfluxDBClientImpl;
import com.influxdb.v3.client.Point;
import com.influxdb.v3.client.query.QueryOptions;
import com.influxdb.v3.client.write.WriteOptions;

Expand Down
7 changes: 3 additions & 4 deletions src/main/java/com/influxdb/v3/client/Point.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public final class Point {

private final PointValues values;

private Point(PointValues values) {
private Point(final PointValues values) {
this.values = values;
}

Expand Down Expand Up @@ -95,7 +95,7 @@ public static Point measurement(@Nonnull final String measurementName) {
* @return the new Point
* @throws Exception if measurement is missing
*/
public static Point fromValues(PointValues values) throws Exception {
public static Point fromValues(final PointValues values) throws Exception {
if (values.getMeasurement() == null) {
throw new Exception("Missing measurement!");

Check warning on line 100 in src/main/java/com/influxdb/v3/client/Point.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/com/influxdb/v3/client/Point.java#L100

Added line #L100 was not covered by tests
}
Expand Down Expand Up @@ -191,8 +191,7 @@ public Point setTimestamp(@Nullable final Long time, @Nonnull final WritePrecisi
* @return tag value or null
*/
@Nullable
public String getTag(@Nonnull final String name)
{
public String getTag(@Nonnull final String name) {
Arguments.checkNotNull(name, "tagName");

Check warning on line 195 in src/main/java/com/influxdb/v3/client/Point.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/com/influxdb/v3/client/Point.java#L195

Added line #L195 was not covered by tests

return values.getTag(name);

Check warning on line 197 in src/main/java/com/influxdb/v3/client/Point.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/com/influxdb/v3/client/Point.java#L197

Added line #L197 was not covered by tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@

import com.influxdb.v3.client.InfluxDBApiException;
import com.influxdb.v3.client.InfluxDBClient;
import com.influxdb.v3.client.config.ClientConfig;
import com.influxdb.v3.client.Point;
import com.influxdb.v3.client.PointValues;
import com.influxdb.v3.client.config.ClientConfig;
import com.influxdb.v3.client.query.QueryOptions;
import com.influxdb.v3.client.write.WriteOptions;
import com.influxdb.v3.client.write.WritePrecision;
Expand Down

0 comments on commit 135c361

Please sign in to comment.