GitHub user isapir opened a pull request: https://github.com/apache/tomcat/pull/75
added javadoc comments and a method that takes default value The `getInitParameter(String name, String defaultValue)` adds useful functionality to this base class so that any optional parameter can be set in one line of code instead of checking whether it is null or not, e.g. String value = deafultValue; if (getInitParameter(param) != null) value = getInitParameter(param); or if (getInitParameter(param) != null) value = getInitParameter(param); else value = defaultValue; becomes value = getInitParameter(param, defaultValue); You can merge this pull request into a Git repository by running: $ git pull https://github.com/isapir/tomcat update-02 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/tomcat/pull/75.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #75 ---- commit 85a2af36923e8177b83f02d4aab0ddfa4ea06da0 Author: Igal Sapir <d...@21solutions.net> Date: 2017-10-02T19:20:27Z added javadoc comments and a method that takes default value The getInitParameter(String name, String defaultValue) adds useful functionality to this base class so that any optional parameter can be set in one line of code instead of checking whether it is null or not. ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org