In class diagrams, PlantUML's parser seems to get lost when notes contain braces at the start of a line:
class A
note right of A
if (a) {
return b;
} else {
return c;
}
end note
However, it's working well with Sequence diagrams:
A -> B :hello
note right of A
if (a) {
return b;
} else {
return c;
}
end note