(--------)
Hi,
You can try the following syntax :
@startuml skinparam roundCorner 10 class Foo @enduml
It works for object, class and sequence diagrams.