title: Fortify error: Code Correctness: Erroneous Class Compare
body: <p>The method doRequest() determines an object's type based its class name on line 135. This practice can lead to unexpected behavior or allow an attacker to inject a malicious class.</p>
  
  <p>this is my code:</p>
  
  <p><code>if(request.getClass().getName().equals(STRING_CONFIG))</code></p>
  
  <p>so STRING_CONFIG is definetely a string, and getName() gives me a String to, so what is wrong with this code? Why is that Fortify test telling me that?</p>