Skip to content
Snippets Groups Projects
Commit 65967635 authored by Powers, Peter M.'s avatar Powers, Peter M.
Browse files

hazard mods for services

parent c68e108c
No related branches found
No related tags found
1 merge request!144Lib work
Pipeline #31826 passed
......@@ -119,6 +119,7 @@ public final class Hazard {
* model. If only 1 {@code Hazard} is supplied, method returns that
* supplied.
*/
@Deprecated
public static Hazard merge(Hazard... hazards) {
checkArgument(hazards.length > 0);
if (hazards.length == 1) {
......
......@@ -12,7 +12,6 @@ import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
import gov.usgs.earthquake.nshmp.calc.Vs30;
import gov.usgs.earthquake.nshmp.gmm.GmmInput;
import gov.usgs.earthquake.nshmp.gmm.GmmInput.Field;
import gov.usgs.earthquake.nshmp.internal.www.meta.ParamType;
......@@ -89,12 +88,11 @@ public class WsUtils {
@Override
public JsonElement serialize(E src, Type type, JsonSerializationContext context) {
String value = (src instanceof Vs30) ? src.name().substring(3) : src.name();
int displayOrder = src.ordinal();
JsonObject jObj = new JsonObject();
jObj.addProperty("id", src.ordinal());
jObj.addProperty("value", value);
jObj.addProperty("value", src.name());
jObj.addProperty("display", src.toString());
jObj.addProperty("displayorder", displayOrder);
......
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