Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (12 sloc) 911 Bytes
W035 Uninitialized Constant
Errors and Warnings 1-50
<h2>Umple semantic warning generated when a Umple builtin data type constant is not initialized</h2>
<p>It makes little sense to have a constant unless it is given a value. If a constant is of one of the built-in Umple data types we will set it to a default value: Integer, Double and Float will be set to zero, String will be set to an empty String, Boolean will be set to false, Date will be set to the date where the code was generated and Time will be set to midnight (00:00:00). However, the warning is issued since forgetting to initialize a constant is a common source of errors.</p>
@@source manualexamples/W035UninitializedConstant1.ump
@@example @@caption Solution to The Above So the Message No Longer Appears @@endcaption
@@source manualexamples/W035UninitializedConstant2.ump
You can’t perform that action at this time.