"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "log4j-api/src/main/java/org/apache/logging/log4j/util/PropertySource.java" between
apache-log4j-2.11.1-src.tar.gz and apache-log4j-2.11.2-src.tar.gz

About: Apache Log4j 2 is a logging library for Java. Source distribution (Java).

PropertySource.java  (apache-log4j-2.11.1-src):PropertySource.java  (apache-log4j-2.11.2-src)
skipping to change at line 96 skipping to change at line 96
* dash {@code -}, dot {@code .}, underscore {@code _}, and slash {@code /}. Tokens can also be separated * dash {@code -}, dot {@code .}, underscore {@code _}, and slash {@code /}. Tokens can also be separated
* by camel case conventions without needing a separator character in be tween. * by camel case conventions without needing a separator character in be tween.
* *
* @param value property name * @param value property name
* @return the property broken into lower case tokens * @return the property broken into lower case tokens
*/ */
public static List<CharSequence> tokenize(final CharSequence value) { public static List<CharSequence> tokenize(final CharSequence value) {
if (CACHE.containsKey(value)) { if (CACHE.containsKey(value)) {
return CACHE.get(value); return CACHE.get(value);
} }
List<CharSequence> tokens = new ArrayList<>(); final List<CharSequence> tokens = new ArrayList<>();
final Matcher matcher = PROPERTY_TOKENIZER.matcher(value); final Matcher matcher = PROPERTY_TOKENIZER.matcher(value);
while (matcher.find()) { while (matcher.find()) {
tokens.add(matcher.group(1).toLowerCase()); tokens.add(matcher.group(1).toLowerCase());
} }
CACHE.put(value, tokens); CACHE.put(value, tokens);
return tokens; return tokens;
} }
/** /**
* Joins a list of strings using camelCaseConventions. * Joins a list of strings using camelCaseConventions.
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)