File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
rewrite-maven/src/main/java/org/openrewrite/maven Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -244,9 +244,9 @@ private ServerConfiguration interpolate(@Nullable ServerConfiguration configurat
244244 return null ;
245245 }
246246 return new ServerConfiguration (
247- configuration . httpHeaders == null ? null : ListUtils .map (configuration .httpHeaders , this ::interpolate ),
248- configuration .connectTimeout == null ? null : configuration . connectTimeout ,
249- configuration .readTimeout == null ? null : configuration . readTimeout
247+ ListUtils .map (configuration .httpHeaders , this ::interpolate ),
248+ configuration .connectTimeout ,
249+ configuration .readTimeout
250250 );
251251 }
252252
@@ -411,6 +411,7 @@ public static class Server {
411411 ServerConfiguration configuration ;
412412 }
413413
414+ @ SuppressWarnings ("DefaultAnnotationParam" )
414415 @ FieldDefaults (makeFinal = true , level = AccessLevel .PRIVATE )
415416 @ Data
416417 @ With
@@ -420,8 +421,15 @@ public static class ServerConfiguration {
420421 @ JacksonXmlElementWrapper (localName = "httpHeaders" , useWrapping = true ) // wrapping is disabled by default on MavenXmlMapper
421422 @ Nullable
422423 List <HttpHeader > httpHeaders ;
424+ /**
425+ * Timeout in milliseconds for establishing a connection.
426+ */
423427 @ Nullable
424428 Long connectTimeout ;
429+
430+ /**
431+ * Timeout in milliseconds for reading from the connection.
432+ */
425433 @ Nullable
426434 Long readTimeout ;
427435 }
Original file line number Diff line number Diff line change 3131import java .nio .file .Paths ;
3232import java .time .Duration ;
3333
34+ @ SuppressWarnings ("JavadocReference" )
3435@ JsonIdentityInfo (generator = ObjectIdGenerators .IntSequenceGenerator .class , property = "@ref" )
3536@ FieldDefaults (makeFinal = true , level = AccessLevel .PRIVATE )
3637@ EqualsAndHashCode (onlyExplicitlyIncluded = true )
@@ -142,6 +143,7 @@ public static Builder builder() {
142143 return new Builder ();
143144 }
144145
146+ @ SuppressWarnings ("unused" )
145147 @ Data
146148 @ FieldDefaults (level = AccessLevel .PRIVATE )
147149 @ Accessors (fluent = true , chain = true )
You can’t perform that action at this time.
0 commit comments