-
Notifications
You must be signed in to change notification settings - Fork 208
Some methods are not expanded when generating the Sequence Diagram from parent method #200
Description
Describe the bug
Some methods are not expanded when generating the Sequence Diagram from parent method but the child method is expanded correctly when selecting it.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen
I guess below it is the explanation for this behaviour:
"There's a basic generate rule: the code logic inside your project is generated primarily and the outer classes don't go deeper.
A project's code can be divided into code that is internal to the project and code that is referenced externally. Externally referenced code is marked in red in the diagram. The generated sequence diagram is mainly based on the code in the project, supplemented by the code outside the project:
rule 1. The internal project code calls the internal project method will be generated.
rule 2. The code within the project calls the externally referenced method will be generated.
rule 3. Code outside the project calls external code and is not generated."
Screenshots
If applicable, add screenshots to help explain your problem.
digest method is not expanded.
digest method:
Plugin & IDE info:
- Plugin Version
- 4.0.5 (paid)
- IDE Name & Version
- IntelliJ IDEA 2025.1.5.1 (Community Edition)
- Which language ?
Java 17
Additional context
Add any other context about the problem here.
- code fragment
...
private void hashText(String data) throws NoSuchAlgorithmException {
System.out.println("Input: " + data);
MessageDigest messageDigest = MessageDigest.getInstance("SHA-256");
byte[] digest = messageDigest.digest(data.getBytes());
Utils.printByteArray("Digest", digest);
}
...
// method calls to update & digest() are not shown when the Sequence for hashText is generated
public byte[] digest(byte[] input) {
update(input);
return digest();
}