Skip to content
Snippets Groups Projects
Commit fdc101e8 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

apply spotless

parent 880e38f5
No related branches found
No related tags found
2 merge requests!128Production Release | nshmp-ws-static,!127Resolves - Handle Multiple NetCDF Files for AASHTO Service
......@@ -21,6 +21,7 @@ import gov.usgs.earthquake.nshmp.netcdf.www.RequestHazardCurves.HazardRequestDat
import gov.usgs.earthquake.nshmp.www.ResponseBody;
import gov.usgs.earthquake.nshmp.www.ResponseMetadata;
import gov.usgs.earthquake.nshmp.www.WsUtils;
import io.micronaut.http.HttpRequest;
/**
......@@ -76,7 +77,8 @@ public class NetcdfServiceHazardCurves extends NetcdfService<HazardQuery> {
}
/**
* Returns the {@link NetcdfHazardCurves} associated with a given {@link Nshm NSHM}.
* Returns the {@link NetcdfHazardCurves} associated with a given {@link Nshm
* NSHM}.
*
* @param nshm The NSHM to get the NetCDF data
*/
......
......@@ -12,8 +12,8 @@ import java.util.stream.Stream;
import gov.usgs.earthquake.nshmp.gmm.NehrpSiteClass;
/**
* Read in all NetCDF files associated with a {@link NetcdfDataType},
* holds {@link Netcdf} objects associated with each NetCDF file.
* Read in all NetCDF files associated with a {@link NetcdfDataType}, holds
* {@link Netcdf} objects associated with each NetCDF file.
*
* @author U.S. Geological Survey
*/
......
......@@ -138,7 +138,8 @@ abstract class Swagger<T extends NetcdfService<?>> {
void updateLocationBounds(OpenAPI openApi) {
List<Location> locations = service.netcdfDataFiles().stream()
.map(netcdf -> netcdf.netcdfData())
.flatMap(netcdfData -> List.of(netcdfData.minimumBounds(), netcdfData.maximumBounds()).stream())
.flatMap(
netcdfData -> List.of(netcdfData.minimumBounds(), netcdfData.maximumBounds()).stream())
.collect(Collectors.toList());
Bounds bounds = LocationList.copyOf(locations).bounds();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment