Closed starkda closed 7 months ago
@yegor256 what do you think? Can I take that issue?
@starkda this is done for a reason. I don't remember, what is the reason, but we should find out. It doesn't look like a bug to me, but as a feature. just removing it -- is not a solution.
@yegor256 i do not want to remove it but support parameters, more specifically, i want to add one more constructor with parameters
I am planning to use XmlGraph in https://github.com/cqfn/jpeek/issues/522 but without support of parameters it can be impossible
After some investigation, I found out that project already has xsl templates to get rid of constructors/static methods. Closing issue
XmlGraph
(https://github.com/cqfn/jpeek/blob/master/src/main/java/org/jpeek/graph/XmlGraph.java) is used to represent methods and their relations for each class from input skeleton. But current implementation ignores constructors and static methods: https://github.com/cqfn/jpeek/blob/9f4fc55048c2af466d5f81ca01a6f36f41537fa9/src/main/java/org/jpeek/graph/XmlGraph.java#L97C13-L99C14 Therefore, resulting graph may be incorrect for cases when we want to include constructors or static methods in metric calculation. For example, we want to include constructor and input class is:the code that finds nodes of graph:
Size of
nodes
would be 3, while it should be 4.