Class diagram: how to represent deprecated static method

0 votes
asked Nov 12 in Question / help by sjoerdtalsma (240 points)

I use strikethrough to represent deprecated fields and methods in a class diagram.

This renders nicely, _unless_ the method is also static.

For example:

class Test {
    +normalMethod(): void
    +--deprecatedMethod--(): void
    {static} +staticMethod(): void
    {static} +--deprecatedStaticMethod--(): void
}
Gets rendered as:
image
What is the recommended way to represent static deprecated methods?
commented Nov 14 by The-Lu (85,820 points)

Hello all,

In order to precise the defect:

OK on PNG: yes

KO on SVG output: no

For debug purpose...

Regards,
Th.

commented Nov 24 by sjoerdtalsma (240 points)
Thank you for the addition; I couldn't get the screenshots to work in this forum software.

1 Answer

0 votes
answered Nov 12 by sjoerdtalsma (240 points)
Ideally, using something like {deprecated} in addition to {static} and {abstract} would be welcome to be even more semantically expressive.
...