You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2020/07/14 08:43:39 UTC

[GitHub] [commons-lang] bhawna94 opened a new pull request #582: Remove redundant parameter: str.length()

bhawna94 opened a new pull request #582:
URL: https://github.com/apache/commons-lang/pull/582


   Remove redundant parameter:str.length() as by default substring(int beginIndex) method returns the substring from the specified index and extends till string length. 


----------------------------------------------------------------
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



[GitHub] [commons-lang] bhawna94 commented on pull request #582: Remove redundant parameter: str.length()

Posted by GitBox <gi...@apache.org>.
bhawna94 commented on pull request #582:
URL: https://github.com/apache/commons-lang/pull/582#issuecomment-659192742


   Agreed! @XenoAmess @garydgregory 
   


----------------------------------------------------------------
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



[GitHub] [commons-lang] bhawna94 commented on pull request #582: Remove redundant parameter: str.length()

Posted by GitBox <gi...@apache.org>.
bhawna94 commented on pull request #582:
URL: https://github.com/apache/commons-lang/pull/582#issuecomment-658098787


   @kinow Could you please review the PR and let me know your thoughts.
   


----------------------------------------------------------------
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



[GitHub] [commons-lang] coveralls edited a comment on pull request #582: Remove redundant parameter: str.length()

Posted by GitBox <gi...@apache.org>.
coveralls edited a comment on pull request #582:
URL: https://github.com/apache/commons-lang/pull/582#issuecomment-658095892


   
   [![Coverage Status](https://coveralls.io/builds/32103097/badge)](https://coveralls.io/builds/32103097)
   
   Coverage increased (+0.0003%) to 94.664% when pulling **1d6b10c424bac758add52ddb6dd798d05ef57645 on bhawna94:remove-redundant-parameter** into **fe95edd45ffe8d4ffcec17cd8d7741687374c17f on apache:master**.
   


----------------------------------------------------------------
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



[GitHub] [commons-lang] bhawna94 commented on pull request #582: Remove redundant parameter: str.length()

Posted by GitBox <gi...@apache.org>.
bhawna94 commented on pull request #582:
URL: https://github.com/apache/commons-lang/pull/582#issuecomment-659249057


   Updated the PR. Please have a look


----------------------------------------------------------------
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



[GitHub] [commons-lang] garydgregory commented on pull request #582: Remove redundant parameter: str.length()

Posted by GitBox <gi...@apache.org>.
garydgregory commented on pull request #582:
URL: https://github.com/apache/commons-lang/pull/582#issuecomment-658114989


   Seems reasonable to only call length() once if str is final.


----------------------------------------------------------------
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



[GitHub] [commons-lang] coveralls commented on pull request #582: Remove redundant parameter: str.length()

Posted by GitBox <gi...@apache.org>.
coveralls commented on pull request #582:
URL: https://github.com/apache/commons-lang/pull/582#issuecomment-658095892


   
   [![Coverage Status](https://coveralls.io/builds/32053880/badge)](https://coveralls.io/builds/32053880)
   
   Coverage remained the same at 94.664% when pulling **9938a41f080f896ccb18350836877a2be9f2fc08 on bhawna94:remove-redundant-parameter** into **fe95edd45ffe8d4ffcec17cd8d7741687374c17f on apache:master**.
   


----------------------------------------------------------------
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



[GitHub] [commons-lang] XenoAmess edited a comment on pull request #582: Remove redundant parameter: str.length()

Posted by GitBox <gi...@apache.org>.
XenoAmess edited a comment on pull request #582:
URL: https://github.com/apache/commons-lang/pull/582#issuecomment-658104691


   Hi.
   I agree with this pr, but I think you can do it more aggressively.
   You see, in this function, param `str` is final, thus `str.length()` is final.
   Why don't we let a variable `final int length = str.length()` to avoid calling function `str.length()` sevaral times?
   Any ideas guys?
   


----------------------------------------------------------------
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



[GitHub] [commons-lang] XenoAmess commented on pull request #582: Remove redundant parameter: str.length()

Posted by GitBox <gi...@apache.org>.
XenoAmess commented on pull request #582:
URL: https://github.com/apache/commons-lang/pull/582#issuecomment-658104691


   Hi.
   I agree with this pr, but I think you can do it more aggressively.
   You see, in this function, param `str` is final, thus `str.length()` is final.
   Why don't we let a `final int length = str.length()` to avoid calling function `str.length()` sevaral times?
   Any ideas guys?
   


----------------------------------------------------------------
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



[GitHub] [commons-lang] bhawna94 closed pull request #582: Remove redundant parameter: str.length()

Posted by GitBox <gi...@apache.org>.
bhawna94 closed pull request #582:
URL: https://github.com/apache/commons-lang/pull/582


   


----------------------------------------------------------------
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