list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

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

 

Solution to The Above So the Message No Longer Appears

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

Load the above code into UmpleOnline