소스 검색

remove redundant cast

tags/2.0.1
Jonathan Cobb 4 년 전
부모
커밋
7148176b4d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/main/java/org/cobbzilla/util/json/JsonUtil.java

+ 1
- 1
src/main/java/org/cobbzilla/util/json/JsonUtil.java 파일 보기

@@ -386,7 +386,7 @@ public class JsonUtil {

final JsonNode parent = found.size() > 1 ? found.get(found.size()-2) : document;
if (index != null) {
final JsonNode origNode = ((ArrayNode) parent).get(index);
final JsonNode origNode = parent.get(index);
((ArrayNode) parent).set(index, getValueNode(origNode, path, replacement));
} else {
// what is the original node type?


불러오는 중...
취소
저장