uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

W901 Deprecated Keyword Constant

Umple warning reported when deprecated keyword "constant" is used.

The keyword "constant" is still supported in Umple interfaces due to legacy reasons. However, there is no guarantee that this keyword will be supported in the future. The keyword "const" should be used instead.

Example

// This causes the warning
interface Y {
  constant A=5;
}

      

Load the above code into UmpleOnline

 

Another Example

// This does not cause the warning
interface Y {
  const A=5;
}

      

Load the above code into UmpleOnline