accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From milleruntime <>
Subject [GitHub] accumulo pull request #289: ACCUMULO-4677 Sanitizing PathParam values in RES...
Date Fri, 04 Aug 2017 16:19:57 GMT
Github user milleruntime commented on a diff in the pull request:
    --- Diff: server/monitor/src/main/java/org/apache/accumulo/monitor/rest/tservers/
    @@ -141,28 +146,27 @@ public TabletServersRecovery getTserverRecovery() {
        * Generates details for the selected tserver
    -   * @param tserverAddr
    +   * @param tserverAddress
        *          TServer name
        * @return TServer details
    -  public TabletServerSummary getTserverDetails(@PathParam("address") String tserverAddr)
throws Exception {
    -    String tserverAddress = tserverAddr;
    +  public TabletServerSummary getTserverDetails(@PathParam("address") String tserverAddress)
throws Exception {
    --- End diff --
    +1 I prefer full english words for parameter variable names (especially with Strings).
 Unless you are using VIM as your IDE, abbreviation doesn't help anyone and only leads to
confusion.  Granted, this example 99% of developers will know what "addr" means but who knows...
there could be another variable to come along with the name tserverAdder or something. 

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message