IcoreE opened a new pull request, #1541:
URL: https://github.com/apache/commons-lang/pull/1541
The MethodFixtures class contains a method with a typo in its name
(geStringtVarStringArgs) and a corresponding static helper method that
references this misspelled name, which impacts code readability and
maintainability:
1. Misspelled method name
```
// Incorrect: "geStringt" (extra 't' after 'String')
public String geStringtVarStringArgs(final String... strings) {
return "XYZ";
}
```
2. Dependent static helper method
The static method getMethodForGetStringVarStringArgs() references the
misspelled method name via reflection:
```
static Method getMethodForGetStringVarStringArgs() throws
NoSuchMethodException, SecurityException {
// References the typo'd method name "geStringtVarStringArgs"
return getDeclaredMethod("geStringtVarStringArgs", String[].class);
}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]