Created
April 4, 2016 05:17
-
-
Save kdabir/2fffb35911eab14366009f1bb94a6714 to your computer and use it in GitHub Desktop.
init params with default value
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private String initParamOrDefault(FilterConfig config, String key, String defaultValue) { | |
String value = config.getInitParameter(key); | |
if (value == null) { | |
return defaultValue; | |
} | |
return value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment