1717
1818import  java .util .Objects ;
1919
20+ import  org .jspecify .annotations .NonNull ;
2021import  org .jspecify .annotations .Nullable ;
2122import  org .springframework .data .annotation .Id ;
2223import  org .springframework .data .elasticsearch .annotations .Document ;
@@ -30,31 +31,31 @@ public class GeoJsonEntity {
3031	@ Nullable 
3132	@ Id  private  String  id ;
3233	@ Nullable  private  GeoJsonPoint  point1 ;
33- 	@ Nullable  private  GeoJson <? extends  Iterable <?>> point2 ;
34+ 	@ Nullable  private  GeoJson <? extends  @ NonNull   Iterable <?>> point2 ;
3435	@ Nullable  private  GeoJsonMultiPoint  multiPoint1 ;
35- 	@ Nullable  private  GeoJson <Iterable <Point >> multiPoint2 ;
36+ 	@ Nullable  private  GeoJson <@ NonNull   Iterable <Point >> multiPoint2 ;
3637	@ Nullable  private  GeoJsonLineString  lineString1 ;
37- 	@ Nullable  private  GeoJson <Iterable <Point >> lineString2 ;
38+ 	@ Nullable  private  GeoJson <@ NonNull   Iterable <Point >> lineString2 ;
3839	@ Nullable  private  GeoJsonMultiLineString  multiLineString1 ;
39- 	@ Nullable  private  GeoJson <Iterable <GeoJsonLineString >> multiLineString2 ;
40+ 	@ Nullable  private  GeoJson <@ NonNull   Iterable <GeoJsonLineString >> multiLineString2 ;
4041	@ Nullable  private  GeoJsonPolygon  polygon1 ;
41- 	@ Nullable  private  GeoJson <Iterable <GeoJsonLineString >> polygon2 ;
42+ 	@ Nullable  private  GeoJson <@ NonNull   Iterable <GeoJsonLineString >> polygon2 ;
4243	@ Nullable  private  GeoJsonMultiPolygon  multiPolygon1 ;
43- 	@ Nullable  private  GeoJson <Iterable <GeoJsonPolygon >> multiPolygon2 ;
44+ 	@ Nullable  private  GeoJson <@ NonNull   Iterable <GeoJsonPolygon >> multiPolygon2 ;
4445	@ Nullable  private  GeoJsonGeometryCollection  geometryCollection1 ;
45- 	@ Nullable  private  GeoJson <Iterable <GeoJson <?>>> geometryCollection2 ;
46+ 	@ Nullable  private  GeoJson <@ NonNull   Iterable <GeoJson <?>>> geometryCollection2 ;
4647
4748	public  GeoJsonEntity () {}
4849
4950	public  GeoJsonEntity (@ Nullable  String  id , @ Nullable  GeoJsonPoint  point1 ,
50- 			 @ Nullable  GeoJson <? extends  Iterable <?>> point2 , @ Nullable  GeoJsonMultiPoint  multiPoint1 ,
51- 			 @ Nullable  GeoJson <Iterable <Point >> multiPoint2 , @ Nullable  GeoJsonLineString  lineString1 ,
52- 			 @ Nullable  GeoJson <Iterable <Point >> lineString2 , @ Nullable  GeoJsonMultiLineString  multiLineString1 ,
53- 			 @ Nullable  GeoJson <Iterable <GeoJsonLineString >> multiLineString2 , @ Nullable  GeoJsonPolygon  polygon1 ,
54- 			 @ Nullable  GeoJson <Iterable <GeoJsonLineString >> polygon2 , @ Nullable  GeoJsonMultiPolygon  multiPolygon1 ,
55- 			 @ Nullable  GeoJson <Iterable <GeoJsonPolygon >> multiPolygon2 ,
56- 			 @ Nullable  GeoJsonGeometryCollection  geometryCollection1 ,
57- 			 @ Nullable  GeoJson <Iterable <GeoJson <?>>> geometryCollection2 ) {
51+                           @ Nullable  GeoJson <? extends   @ NonNull  Iterable <?>> point2 , @ Nullable  GeoJsonMultiPoint  multiPoint1 ,
52+                           @ Nullable  GeoJson <@ NonNull   Iterable <Point >> multiPoint2 , @ Nullable  GeoJsonLineString  lineString1 ,
53+                           @ Nullable  GeoJson <@ NonNull   Iterable <Point >> lineString2 , @ Nullable  GeoJsonMultiLineString  multiLineString1 ,
54+                           @ Nullable  GeoJson <@ NonNull   Iterable <GeoJsonLineString >> multiLineString2 , @ Nullable  GeoJsonPolygon  polygon1 ,
55+                           @ Nullable  GeoJson <@ NonNull   Iterable <GeoJsonLineString >> polygon2 , @ Nullable  GeoJsonMultiPolygon  multiPolygon1 ,
56+                           @ Nullable  GeoJson <@ NonNull   Iterable <GeoJsonPolygon >> multiPolygon2 ,
57+                           @ Nullable  GeoJsonGeometryCollection  geometryCollection1 ,
58+                           @ Nullable  GeoJson <@ NonNull   Iterable <GeoJson <?>>> geometryCollection2 ) {
5859		this .id  = id ;
5960		this .point1  = point1 ;
6061		this .point2  = point2 ;
@@ -91,11 +92,11 @@ public void setPoint1(@Nullable GeoJsonPoint point1) {
9192	}
9293
9394	@ Nullable 
94- 	public  GeoJson <? extends  Iterable <?>> getPoint2 () {
95+ 	public  GeoJson <? extends  @ NonNull   Iterable <?>> getPoint2 () {
9596		return  point2 ;
9697	}
9798
98- 	public  void  setPoint2 (@ Nullable  GeoJson <? extends  Iterable <?>> point2 ) {
99+ 	public  void  setPoint2 (@ Nullable  GeoJson <? extends  @ NonNull   Iterable <?>> point2 ) {
99100		this .point2  = point2 ;
100101	}
101102
@@ -109,11 +110,11 @@ public void setMultiPoint1(@Nullable GeoJsonMultiPoint multiPoint1) {
109110	}
110111
111112	@ Nullable 
112- 	public  GeoJson <Iterable <Point >> getMultiPoint2 () {
113+ 	public  GeoJson <@ NonNull   Iterable <Point >> getMultiPoint2 () {
113114		return  multiPoint2 ;
114115	}
115116
116- 	public  void  setMultiPoint2 (@ Nullable  GeoJson <Iterable <Point >> multiPoint2 ) {
117+ 	public  void  setMultiPoint2 (@ Nullable  GeoJson <@ NonNull   Iterable <Point >> multiPoint2 ) {
117118		this .multiPoint2  = multiPoint2 ;
118119	}
119120
@@ -127,11 +128,11 @@ public void setLineString1(@Nullable GeoJsonLineString lineString1) {
127128	}
128129
129130	@ Nullable 
130- 	public  GeoJson <Iterable <Point >> getLineString2 () {
131+ 	public  GeoJson <@ NonNull   Iterable <Point >> getLineString2 () {
131132		return  lineString2 ;
132133	}
133134
134- 	public  void  setLineString2 (@ Nullable  GeoJson <Iterable <Point >> lineString2 ) {
135+ 	public  void  setLineString2 (@ Nullable  GeoJson <@ NonNull   Iterable <Point >> lineString2 ) {
135136		this .lineString2  = lineString2 ;
136137	}
137138
@@ -145,11 +146,11 @@ public void setMultiLineString1(@Nullable GeoJsonMultiLineString multiLineString
145146	}
146147
147148	@ Nullable 
148- 	public  GeoJson <Iterable <GeoJsonLineString >> getMultiLineString2 () {
149+ 	public  GeoJson <@ NonNull   Iterable <GeoJsonLineString >> getMultiLineString2 () {
149150		return  multiLineString2 ;
150151	}
151152
152- 	public  void  setMultiLineString2 (@ Nullable  GeoJson <Iterable <GeoJsonLineString >> multiLineString2 ) {
153+ 	public  void  setMultiLineString2 (@ Nullable  GeoJson <@ NonNull   Iterable <GeoJsonLineString >> multiLineString2 ) {
153154		this .multiLineString2  = multiLineString2 ;
154155	}
155156
@@ -163,11 +164,11 @@ public void setPolygon1(@Nullable GeoJsonPolygon polygon1) {
163164	}
164165
165166	@ Nullable 
166- 	public  GeoJson <Iterable <GeoJsonLineString >> getPolygon2 () {
167+ 	public  GeoJson <@ NonNull   Iterable <GeoJsonLineString >> getPolygon2 () {
167168		return  polygon2 ;
168169	}
169170
170- 	public  void  setPolygon2 (@ Nullable  GeoJson <Iterable <GeoJsonLineString >> polygon2 ) {
171+ 	public  void  setPolygon2 (@ Nullable  GeoJson <@ NonNull   Iterable <GeoJsonLineString >> polygon2 ) {
171172		this .polygon2  = polygon2 ;
172173	}
173174
@@ -181,11 +182,11 @@ public void setMultiPolygon1(@Nullable GeoJsonMultiPolygon multiPolygon1) {
181182	}
182183
183184	@ Nullable 
184- 	public  GeoJson <Iterable <GeoJsonPolygon >> getMultiPolygon2 () {
185+ 	public  GeoJson <@ NonNull   Iterable <GeoJsonPolygon >> getMultiPolygon2 () {
185186		return  multiPolygon2 ;
186187	}
187188
188- 	public  void  setMultiPolygon2 (@ Nullable  GeoJson <Iterable <GeoJsonPolygon >> multiPolygon2 ) {
189+ 	public  void  setMultiPolygon2 (@ Nullable  GeoJson <@ NonNull   Iterable <GeoJsonPolygon >> multiPolygon2 ) {
189190		this .multiPolygon2  = multiPolygon2 ;
190191	}
191192
@@ -199,11 +200,11 @@ public void setGeometryCollection1(@Nullable GeoJsonGeometryCollection geometryC
199200	}
200201
201202	@ Nullable 
202- 	public  GeoJson <Iterable <GeoJson <?>>> getGeometryCollection2 () {
203+ 	public  GeoJson <@ NonNull   Iterable <GeoJson <?>>> getGeometryCollection2 () {
203204		return  geometryCollection2 ;
204205	}
205206
206- 	public  void  setGeometryCollection2 (@ Nullable  GeoJson <Iterable <GeoJson <?>>> geometryCollection2 ) {
207+ 	public  void  setGeometryCollection2 (@ Nullable  GeoJson <@ NonNull   Iterable <GeoJson <?>>> geometryCollection2 ) {
207208		this .geometryCollection2  = geometryCollection2 ;
208209	}
209210
0 commit comments