Skip to content

Commit

Permalink
去除冗余
Browse files Browse the repository at this point in the history
  • Loading branch information
MemoryZy committed Jan 18, 2025
1 parent 88f32f0 commit 058470e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 274 deletions.
267 changes: 0 additions & 267 deletions src/main/java/cn/memoryzy/json/ui/JsonPathComponentProvider.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private JComponent createSecondComponent() {

private boolean evaluate(String path) {
String docText = docEditor.getDocument().getText();
if (Objects.isNull(path) || StrUtil.isBlank(docText)) {
if (StrUtil.isBlank(path) || StrUtil.isBlank(docText)) {
return false;
}

Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/messages/JsonAssistantBundle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
popup.menu.title=Operation Center
popup.jsonpath.title=JSONPath Evaluator
popup.jsonpath.separate.label=Result:
popup.jsonpath.guide.content=Press <b>Enter</b> to match the JSON
popup.rename.view.label.text=Tab name:
popup.deserializer.fastJson.text=Add FastJson annotations
popup.deserializer.fastJson2.text=Add FastJson2 annotations
Expand Down Expand Up @@ -50,7 +48,6 @@ dialog.json.text.diff.main.title=Json Text Diff
dialog.json.text.diff.left.title=Left
dialog.json.text.diff.right.title=Right
dialog.json.path.placeholder=E.g., $.store.book[0].title
dialog.json.path.history.hint=Use Alt+\u2193 and Alt+\u2191 to navigate history
dialog.save.json.title=Save
error.serialize.recursion=The Java class attribute recursion is too deep to continue!
error.deserialize.incorrect.field=Error: Invalid JSON key <b>''{0}''</b>. Please verify!
Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/messages/JsonAssistantBundle_zh.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
popup.menu.title=\u64cd\u4f5c\u4e2d\u5fc3
popup.jsonpath.title=JSONPath \u67e5\u8be2
popup.rename.view.label.text=\u9009\u9879\u5361\u540d\u79f0\uff1a
popup.jsonpath.guide.content=\u6309\u0020<b>Enter</b>\u0020\u952e\u6267\u884c
popup.jsonpath.separate.label=\u7ed3\u679c\uff1a
popup.deserialize.options.missingDependencies.text=<b>\u7f3a\u5c11\u4f9d\u8d56\u9879\uff1a</b>
popup.deserializer.fastJson.text=\u6dfb\u52a0 FastJson \u6ce8\u89e3
popup.deserializer.fastJson2.text=\u6dfb\u52a0 FastJson2 \u6ce8\u89e3
Expand Down Expand Up @@ -47,7 +45,6 @@ dialog.json.text.diff.main.title=Json \u0020\u6587\u672c\u5bf9\u6bd4
dialog.json.text.diff.left.title=\u5de6
dialog.json.text.diff.right.title=\u53f3
dialog.json.path.placeholder=\u793a\u4f8b\uff1a$.store.book[0].title
dialog.json.path.history.hint=\u4f7f\u7528\u0020\u0041\u006c\u0074\u002b\u2193\u0020\u4e0e\u0020\u0041\u006c\u0074\u002b\u2191\u0020\u6d4f\u89c8\u5386\u53f2\u8bb0\u5f55
dialog.save.json.title=\u4fdd\u5b58
error.serialize.recursion=\u8be5\u7c7b\u5c5e\u6027\u9012\u5f52\u8fc7\u6df1\uff0c\u65e0\u6cd5\u7ee7\u7eed\uff01
error.deserialize.incorrect.field=\u9519\u8bef\uff1a\u004a\u0053\u004f\u004e\u0020\u006b\u0065\u0079\u0020<b>''{0}''</b>\u0020\u540d\u79f0\u975e\u6cd5\uff0c\u8bf7\u68c0\u67e5\uff01
Expand Down

0 comments on commit 058470e

Please sign in to comment.