list of dots University of Ottawa logo / Université d'Ottawa

User Manual    [Previous]   [Next]   

W031 Namespace Not Used

Umple semantic warning reported when a namespace is never applied to any class

If you declare a namespace and then declare another before using the first namespace, this warning is issued. The reason for the warning is that this can happen accidentally, for example, if you add a namespace declaration before a comment and then add a different one after a comment, but before the class is declared.


// This example generates the message because 
// namespace n is never used
namespace n;
namespace m;

class X21namespacenotused {}

Load the above code into UmpleOnline