From cdef4f7e1f1adae52a0c0c6e857969acda47bd45 Mon Sep 17 00:00:00 2001 From: Peter Powers <pmpowers@usgs.gov> Date: Tue, 1 Feb 2022 17:32:07 -0700 Subject: [PATCH] formatting and docs --- .../nshmp/www/hazard/DisaggController.java | 12 ++++++------ .../nshmp/www/hazard/HazardController.java | 12 ++++++------ .../earthquake/nshmp/www/hazard/HazardService.java | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main/java/gov/usgs/earthquake/nshmp/www/hazard/DisaggController.java b/src/main/java/gov/usgs/earthquake/nshmp/www/hazard/DisaggController.java index ac2647922..a440b55a5 100644 --- a/src/main/java/gov/usgs/earthquake/nshmp/www/hazard/DisaggController.java +++ b/src/main/java/gov/usgs/earthquake/nshmp/www/hazard/DisaggController.java @@ -60,12 +60,12 @@ public class DisaggController { * @param vs30 Site Vs30 value in the range [150..3000] m/s. * @param returnPeriod The return period of the target ground motion, or * intensity measure level (IML), in the range [1..20000] years. - * @param imt Optional IMTs at which to run disaggregations. If none are - * supplied then the default set of supported IMTs for the installed - * model is used. Note that a model may not support all the values - * listed below (see disagreggation metadata). Responses for numerous - * IMT's are quite large, on the order of MB. Multiple IMTs may be - * comma delimited, e.g. @code{?imt=PGA,SA0p2,SA1P0}. + * @param imt Optional IMTs at which to compute hazard. If none are supplied, + * then the supported set for the installed model is used. Note that a + * model may not support all the values listed below (see + * disagreggation metadata). Responses for numerous IMT's are quite + * large, on the order of MB. Multiple IMTs may be comma delimited, + * e.g. ?imt=PGA,SA0p2,SA1P0. */ @Operation( summary = "Disaggregate hazard at a specified return period", diff --git a/src/main/java/gov/usgs/earthquake/nshmp/www/hazard/HazardController.java b/src/main/java/gov/usgs/earthquake/nshmp/www/hazard/HazardController.java index 4dd72d3f5..1452b2b67 100644 --- a/src/main/java/gov/usgs/earthquake/nshmp/www/hazard/HazardController.java +++ b/src/main/java/gov/usgs/earthquake/nshmp/www/hazard/HazardController.java @@ -57,12 +57,12 @@ public class HazardController { * @param vs30 Site Vs30 value in m/s [150..3000] * @param truncate Truncate curves at return periods below ~10,000 years * @param maxdir Apply max-direction scaling - * @param imt Optional IMTs at which to compute hazard. If none are supplied - * then the default set of supported IMTs for the installed model is - * used. Note that a model may not support all the values listed below - * (see disagreggation metadata). Responses for numerous IMT's are - * quite large, on the order of MB. Multiple IMTs may be comma - * delimited, e.g. @code{?imt=PGA,SA0p2,SA1P0}. + * @param imt Optional IMTs at which to compute hazard. If none are supplied, + * then the supported set for the installed model is used. Note that a + * model may not support all the values listed below (see + * disagreggation metadata). Responses for numerous IMT's are quite + * large, on the order of MB. Multiple IMTs may be comma delimited, + * e.g. ?imt=PGA,SA0p2,SA1P0. * */ @Operation( diff --git a/src/main/java/gov/usgs/earthquake/nshmp/www/hazard/HazardService.java b/src/main/java/gov/usgs/earthquake/nshmp/www/hazard/HazardService.java index fb51309a0..f300a1384 100644 --- a/src/main/java/gov/usgs/earthquake/nshmp/www/hazard/HazardService.java +++ b/src/main/java/gov/usgs/earthquake/nshmp/www/hazard/HazardService.java @@ -66,7 +66,7 @@ public final class HazardService { .request(url) .response(usage) .build(); - var json = ServletUtil.GSON.toJson(body); + var json = ServletUtil.GSON2.toJson(body); return HttpResponse.ok(json); } @@ -86,7 +86,7 @@ public final class HazardService { .request(request) .response(response) .build(); - String json = ServletUtil.GSON.toJson(body); + String json = ServletUtil.GSON2.toJson(body); return HttpResponse.ok(json); } -- GitLab