@SuppressWarnings("ConstantConditions") private Error.Location readErrorLocation(Map<String, Object> data) { long line = -1; long column = -1; if (data != null) { for (Map.Entry<String, Object> entry : data.entrySet()) { if ("line".equals(entry.getKey())) { line = ((BigDecimal) entry.getValue()).longValue(); } else if ("column".equals(entry.getKey())) { column = ((BigDecimal) entry.getValue()).longValue(); } } } return new Error.Location(line, column); } }
@SuppressWarnings("ConstantConditions") private Error.Location readErrorLocation(Map<String, Object> data) { long line = -1; long column = -1; if (data != null) { for (Map.Entry<String, Object> entry : data.entrySet()) { if ("line".equals(entry.getKey())) { line = ((BigDecimal) entry.getValue()).longValue(); } else if ("column".equals(entry.getKey())) { column = ((BigDecimal) entry.getValue()).longValue(); } } } return new Error.Location(line, column); } }
@SuppressWarnings("ConstantConditions") private Error.Location readErrorLocation(Map<String, Object> data) { long line = -1; long column = -1; if (data != null) { for (Map.Entry<String, Object> entry : data.entrySet()) { if ("line".equals(entry.getKey())) { line = ((BigDecimal) entry.getValue()).longValue(); } else if ("column".equals(entry.getKey())) { column = ((BigDecimal) entry.getValue()).longValue(); } } } return new Error.Location(line, column); } }