我删除了几个插件可以了,可能是冲突的问题,现在出现了奇怪的问题:
JSONArray hitResultArray = new JSONObject(checkResult.getResultsJson()).optJSONArray("hitResult");
String hitResults = IntStream.range(0, hitResultArray.length())
.mapToObj(hitResultArray::getJSONObject)
.map(hitResultObj -> hitResultObj.optString("name"))
.filter(StringUtils::isNotBlank)
.collect(Collectors.joining(" | "));
这行代码编译就会报错:
Unhandled exception type JSONExceptionJava(16777384)
使用到 @
SneakyThrows 的地方也会报错:
@
SneakyThrowsResponse makeAnmiCall(CallRequest callRequest);
@
SneakyThrows can only be used on concrete methods.Java(0)
这种问题该怎么处理呢?这些在 idea 中都不会报错,并且运行都非常正常