jodd-core/src/main/java/jodd/util/ResourceBundleMessageResolver.java
private String calcIndexKey(final String key) {
		String indexedKey = null;
		if (key.indexOf('[') != -1) {
			int i = -1;
			indexedKey = key;
			while ((i = indexedKey.indexOf('[', i + 1)) != -1) {
				int j = indexedKey.indexOf(']', i);
				String a = indexedKey.substring(0, i);
				String b = indexedKey.substring(j);
				indexedKey = a + "[*" + b;
			}
		}
		return indexedKey;
	}
private String calcIndexKey(final String key) {
		String indexedKey = null;
		if (key.indexOf('[') != -1) {
			int i = -1;
			indexedKey = key;
			while ((i = indexedKey.indexOf('[', i + 1)) != -1) {
				int j = indexedKey.indexOf(']', i);
				String a = indexedKey.substring(0, i);
				String b = indexedKey.substring(j);
				indexedKey = a + "[*" + b;
			}
		}
		return indexedKey;
	}
private String calcIndexKey ( final String key ) { String indexedKey = null ; if ( key . indexOf ( ' ' ) != - 1 ) { int i = - 1 ; indexedKey = key ; while ( ( i = indexedKey . indexOf ( ' ' , i + 1 ) ) != - 1 ) { int j = indexedKey . indexOf ( ' ' , i ) ; String a = indexedKey . substring ( 0 , i ) ; String b = indexedKey . substring ( j ) ; indexedKey = a + "[*" + b ; } } return indexedKey ; }
Calculates indexedTextName (collection[*]) if applicable.
Calculates indexedTextName ( collection [ * ] ) if applicable .