title: Duplicated block of Code in Sonar for import statements in Java
body: <p>In Sonar 4.5.6 (with default settings) I am seeing <code>Duplicated Blocks</code> message as </p>
  
  <p><a href="https://i.stack.imgur.com/AFn8H.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AFn8H.png" alt="enter image description here"></a></p>
  
  <p>My java code for which I am getting the message is like below:-</p>
  
  <pre><code>package com.jabong.orchestratorservice.adapter.order.endpoints;
  
  import com.jabong.orchestratorservice.adapter.order.request.UpdateOrderStatusReadyShipRequest;
  
  public class UpdateOrderReadyShipEndPoint extends BaseOrderEndPoint {
      private final static String API_NAME = "setStatusToReadyToShip";
  
      @Override
      public String getSourceEndPoint() {
      return new StringBuilder("direct:").append(API_NAME).toString();
      }
  
      @Override
      public String getDestinationEndPoint() {
      return new StringBuilder("bean:orderHelper?method=").append(API_NAME).toString();
      }
  
      @Override
      protected String getName() {
      return API_NAME;
      }
  
      @Override
      protected String getApiInputClassName() {
      return UpdateOrderStatusReadyShipRequest.class.getName();
      }
  }
  </code></pre>
  
  <p><code>UpdateOrderStatusReadyShipRequest</code> also does not import <code>UpdateOrderReadyShipEndPoint</code></p>
  
  <pre><code>package com.jabong.orchestratorservice.adapter.order.request;
  
  public class UpdateOrderStatusReadyShipRequest extends BaseOrderRequest {
  </code></pre>
  
  <p>Can some let me know what does this mean?</p>