diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index cfdbe620..fbac6f06 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -9,9 +9,6 @@
-
-
-
diff --git a/src/_VisualDVM/ComponentsServer/BugReportsDatabase.java b/src/_VisualDVM/ComponentsServer/BugReportsDatabase.java
index 1daee848..48f7fc5b 100644
--- a/src/_VisualDVM/ComponentsServer/BugReportsDatabase.java
+++ b/src/_VisualDVM/ComponentsServer/BugReportsDatabase.java
@@ -79,6 +79,7 @@ public class BugReportsDatabase extends SQLiteDatabase {
for (BugReport bugReport: sortedBugs){
bugReport.id_ = i;
++i;
+ //--
Update(bugReport);
}
//--
@@ -111,5 +112,25 @@ public class BugReportsDatabase extends SQLiteDatabase {
}
}
//--
+ //упоминания других багов.
+ for (BugReport bugReport: sortedBugs){
+ //--
+ Vector mentioned_keys = new Vector<>();
+ for (String id: bugReports.Data.keySet()){
+ if ((bugReport.description.contains(id) || bugReport.comment.contains(id)) && !mentioned_keys.contains(id)){
+ mentioned_keys.add(id);
+ }
+ }
+ //--
+ for (String id: mentioned_keys){
+ BugReport owner = bugReports.get(id);
+ if (owner!=null) {
+ bugReport.comment = bugReport.comment.replace(id, String.valueOf(owner.id_));
+ bugReport.description = bugReport.description.replace(id, String.valueOf(owner.id_));
+ Update(bugReport);
+ }
+ }
+
+ }
}
}