title: Magic Number: Checks for magic numbers
body: <p>I got this warning on Sonar as a violation. I want proper solution to remove this warning from sonar.</p>
  
  <p>My code is like this:</p>
  
  <pre><code>void method(){
  try {
    int x;
    x=5;
   }
   catch{
      //handling code
   }
  }
  </code></pre>
  
  <p>I got warning for this code like:</p>
  
  <pre><code>'5' is a magic number.
  </code></pre>
  
  <p>So, I want proper solution to remove such warning.</p>