From ce7d76ca4c55fdcf2176fc9f5dfb0943d7f0c570 Mon Sep 17 00:00:00 2001 From: ThisRabbit Date: Wed, 12 Oct 2022 16:38:37 +0800 Subject: [PATCH] fix: doc errors --- docs/relation/Annotate.md | 6 +++--- docs/relation/Contain.md | 2 +- docs/relation/Modify.md | 19 ++++++++++++++++--- docs/relation/Override.md | 2 +- docs/relation/Reflect.md | 4 ++-- docs/relation/Set.md | 4 ++-- 6 files changed, 25 insertions(+), 12 deletions(-) diff --git a/docs/relation/Annotate.md b/docs/relation/Annotate.md index fab6afd..0a8c21e 100644 --- a/docs/relation/Annotate.md +++ b/docs/relation/Annotate.md @@ -58,7 +58,7 @@ relation: items: - from: Annotation:'DisableOnCondition' to: Method:'testMail' - loc: file0:11:17 + loc: file0:9:5 type: Annotate ``` @@ -98,7 +98,7 @@ relation: items: - from: Annotation:'DisableOnCondition' to: Method:'testMail' - loc: file0:12:17 + loc: file0:10:5 type: Annotate ``` @@ -137,6 +137,6 @@ relation: items: - from: Annotation:'DisableOnCondition' to: Method:'testMail' - loc: file0:11:17 + loc: file0:9:5 type: Annotate ``` diff --git a/docs/relation/Contain.md b/docs/relation/Contain.md index cc4a325..5f8b24e 100644 --- a/docs/relation/Contain.md +++ b/docs/relation/Contain.md @@ -185,7 +185,7 @@ entity: relation: items: - from: File:'Hello.java' - to: Interface:'Interface' + to: Interface:'Hello' type: Contain loc: file0:1:18 ``` diff --git a/docs/relation/Modify.md b/docs/relation/Modify.md index 9afd359..9325770 100644 --- a/docs/relation/Modify.md +++ b/docs/relation/Modify.md @@ -67,8 +67,9 @@ public class Foo { public int counting(int i) { int j = i % 2; // <--- Set j += 1; // <--- Modify - j += 2; // <--- Modify - j /= 3; // <--- Modify + j -= 2; // <--- Modify + j *= 3; // <--- Modify + j /= 4; // <--- Modify return j; } } @@ -94,5 +95,17 @@ relation: - from: Method:'counting' to: Variable:'j' type: Modify - loc: file0:3:13 + loc: file0:4:9 + - from: Method:'counting' + to: Variable:'j' + type: Modify + loc: file0:5:9 + - from: Method:'counting' + to: Variable:'j' + type: Modify + loc: file0:6:9 + - from: Method:'counting' + to: Variable:'j' + type: Modify + loc: file0:7:9 ``` diff --git a/docs/relation/Override.md b/docs/relation/Override.md index faf342a..fe6e921 100644 --- a/docs/relation/Override.md +++ b/docs/relation/Override.md @@ -49,7 +49,7 @@ entity: - name: AuthenticationException type : Class qualified: AuthenticationException - loc: file1:1:14 + loc: file1:2:14 modifiers: public File: AuthenticationException.java - name: getStatus diff --git a/docs/relation/Reflect.md b/docs/relation/Reflect.md index 02fd182..47b526a 100644 --- a/docs/relation/Reflect.md +++ b/docs/relation/Reflect.md @@ -106,11 +106,11 @@ entity: loc: file1:6:24 relation: items: - - from: Method:'method' + - from: Method:'main' to: Method:'fun'[@loc=file0:29:21] type: Reflect loc: file1:12:22 - - from: Method:'method' + - from: Method:'main' to: Method:'fun'[@loc=file0:33:21] type: Reflect loc: file1:10:29 diff --git a/docs/relation/Set.md b/docs/relation/Set.md index dd89f5e..5a7f40b 100644 --- a/docs/relation/Set.md +++ b/docs/relation/Set.md @@ -64,11 +64,11 @@ relation: type: Set loc: file0:5:13 - from: Method:'getNum' - to: Variable:'Hello' + to: Variable:'hello' type: Set loc: file0:6:16 - from: Method:'getNum' - to: Variable:'Hello' + to: Variable:'hello' type: Set loc: file0:7:9 ```