You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2021/03/05 17:42:26 UTC

[GitHub] [trafficcontrol] zrhoffman commented on a change in pull request #5608: Limit HTTP GET method for TR endpoint ‘/crs/stats’ (#3741)

zrhoffman commented on a change in pull request #5608:
URL: https://github.com/apache/trafficcontrol/pull/5608#discussion_r588514437



##########
File path: traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/api/controllers/StatsController.java
##########
@@ -18,10 +18,7 @@
 import com.comcast.cdn.traffic_control.traffic_router.core.util.DataExporter;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.bind.annotation.*;

Review comment:
       We try to avoid wildcard imports, these imports should remain explicit.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org