Skip to content

Commit 1b7bfea

Browse files
committed
Fix checkstyle
1 parent 013cbd3 commit 1b7bfea

File tree

14 files changed

+51
-14
lines changed

14 files changed

+51
-14
lines changed

vaadin-maps-leaflet-flow-demo/src/main/java/software/xdev/vaadin/maps/leaflet/flow/demo/ComplexDemo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848

4949
@Route(ComplexDemo.NAV)
50+
@SuppressWarnings("checkstyle:MagicNumber")
5051
public class ComplexDemo extends AbstractDemo
5152
{
5253
public static final String NAV = "/complex";
@@ -106,6 +107,7 @@ public ComplexDemo()
106107
new LLatLng(this.reg, 49.674662, 12.162869),
107108
new LMarkerOptions().withIcon(divIconInfo));
108109

110+
@SuppressWarnings("checkstyle:LineLength")
109111
final LIcon iconXDEV = new LIcon(this.reg, new LIconOptions()
110112
.withIconUrl("""
111113
data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="200" viewBox="0 0 18300 4500" style="background-color:rgba(180,180,180,0.7)">

vaadin-maps-leaflet-flow-demo/src/main/java/software/xdev/vaadin/maps/leaflet/flow/demo/FreeingUpResourceBenchmarkDemo.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424

2525
@Route(FreeingUpResourceBenchmarkDemo.NAV)
26+
@SuppressWarnings("checkstyle:MagicNumber")
2627
public class FreeingUpResourceBenchmarkDemo extends AbstractDemo
2728
{
2829
public static final String NAV = "/freeing-up-resources-benchmark";

vaadin-maps-leaflet-flow-demo/src/main/java/software/xdev/vaadin/maps/leaflet/flow/demo/MinimalisticDemo.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414

1515
@Route(MinimalisticDemo.NAV)
16+
@SuppressWarnings("checkstyle:MagicNumber")
1617
public class MinimalisticDemo extends VerticalLayout
1718
{
1819
public static final String NAV = "/minimalistic";

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/basictypes/LLatLng.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ public LLatLng(final LComponentManagementRegistry componentRegistry, final doubl
2929
super(componentRegistry, "L.latLng($0, $1)", lat, lng);
3030
}
3131

32-
public LLatLng(final LComponentManagementRegistry componentRegistry, final double lat, final double lng, final double altitude)
32+
public LLatLng(
33+
final LComponentManagementRegistry componentRegistry,
34+
final double lat,
35+
final double lng,
36+
final double altitude)
3337
{
3438
super(componentRegistry, "L.latLng($0, $1, $2)", lat, lng, altitude);
3539
}

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/basictypes/LLatLngBounds.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public LLatLngBounds(
2929
final LLatLng corner1,
3030
final LLatLng corner2)
3131
{
32-
super(compReg, "L.latLngBounds(" + corner1.clientComponentJsAccessor() + "," + corner2.clientComponentJsAccessor() + ")");
32+
super(compReg, "L.latLngBounds(" + corner1.clientComponentJsAccessor()
33+
+ "," + corner2.clientComponentJsAccessor() + ")");
3334
}
3435
}

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/LAbstractImageOverlayOptions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
*/
1616
package software.xdev.vaadin.maps.leaflet.layer;
1717

18-
public abstract class LAbstractImageOverlayOptions<S extends LAbstractImageOverlayOptions<S>> extends LInteractiveLayerOptions<S>
18+
public abstract class LAbstractImageOverlayOptions<S extends LAbstractImageOverlayOptions<S>>
19+
extends LInteractiveLayerOptions<S>
1920
{
2021
private Double opacity;
2122
private String alt;

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/LLayer.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ public S removeFrom(final LLayerGroup layerGroup)
111111
*/
112112
public S bindPopup(final String content, final LPopupOptions options)
113113
{
114-
this.invokeSelf(".bindPopup($0, " + this.componentRegistry().writeOptionsOptionalParameter(options) + ")", content);
114+
this.invokeSelf(
115+
".bindPopup($0, " + this.componentRegistry().writeOptionsOptionalParameter(options) + ")",
116+
content);
115117
return this.self();
116118
}
117119

@@ -184,7 +186,9 @@ public S closePopup()
184186
*/
185187
public S bindTooltip(final String content, final LTooltipOptions options)
186188
{
187-
this.invokeSelf(".bindTooltip($0, " + this.componentRegistry().writeOptionsOptionalParameter(options) + ")", content);
189+
this.invokeSelf(
190+
".bindTooltip($0, " + this.componentRegistry().writeOptionsOptionalParameter(options) + ")",
191+
content);
188192
return this.self();
189193
}
190194

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/LLayerGroup.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,14 @@ public LLayerGroup(
3636
compReg,
3737
"L.layerGroup("
3838
+ (layers != null
39-
? "[" + Stream.of(layers).map(LLayer::clientComponentJsAccessor).collect(Collectors.joining(",")) + "]"
39+
? "[" + Stream.of(layers)
40+
.map(LLayer::clientComponentJsAccessor)
41+
.collect(Collectors.joining(",")) + "]"
4042
: "")
4143
+ (options != null
42-
? ", ["+ Stream.of(options).map(compReg::writeOptionsOrEmptyObject).collect(Collectors.joining(","))+ "]"
44+
? ", [" + Stream.of(options)
45+
.map(compReg::writeOptionsOrEmptyObject)
46+
.collect(Collectors.joining(",")) + "]"
4347
: "")
4448
+ ")");
4549
}

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LTileLayer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public LTileLayer(
6060
* Use OpenStreetMap's tile server <br/>
6161
* <b>Important: By using this you accept the <a href="https://operations.osmfoundation.org/policies/tiles/">Usage Policy</a></b>
6262
*/
63+
@SuppressWarnings("checkstyle:MagicNumber") // Default max Zoom
6364
public static LTileLayer createDefaultForOpenStreetMapTileServer(final LComponentManagementRegistry compReg)
6465
{
6566
return new LTileLayer(

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/ui/LMarker.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ public LMarker(
4343
{
4444
super(
4545
compReg,
46-
"L.marker(" + compReg.clientComponentJsAccessor(latLng) + compReg.writeOptionsOptionalParameter(options) + ")");
46+
"L.marker("
47+
+ compReg.clientComponentJsAccessor(latLng)
48+
+ compReg.writeOptionsOptionalParameter(options)
49+
+ ")");
4750
}
4851

4952
/**

0 commit comments

Comments
 (0)