• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding severity  RSS feed

 
Swapna latha
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a rules file where in which i am defining a severity of 5. Like that if five rules are there and i want to get the severity from a generic method called as int getSeverity(). How to do it ?
 
Campbell Ritchie
Marshal
Posts: 56545
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would you not be better off declaring severity as an enum? We can’t help without more details.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!