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

User Manual    [Previous]   [Next]   

W1013 Parameter Specification Does Not Apply

Umple semantic warning issued when parameters are specified on a code injection that does not permit it

Parameter specification on code injection does not apply to certain generated methods.
The code injection will be applied to all generated methods.

Example

  1. //The before statement refers to  
  2. //the getAttr method specifying no  
  3. //parameters, causing the warning  
  4. class A {  
  5.   attr;  
  6.     
  7.   before getAttr() {  
  8.   }  
  9. }  
  10.         

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

  1. //The method is referred to without  
  2. //parameters in the following, avoiding  
  3. //the warning  
  4. class A {  
  5.   attr;  
  6.     
  7.   before getAttr {  
  8.   }  
  9. }  
  10.         

Load the above code into UmpleOnline