Minor - improve previous commit

This commit is contained in:
ljacqu 2016-04-07 17:48:33 +02:00
parent b3a3843b60
commit 83c02f487f
2 changed files with 1 additions and 7 deletions

View File

@ -27,8 +27,7 @@ public class TagReplacer {
* Replace a template with default tags and custom ones supplied by a map. * Replace a template with default tags and custom ones supplied by a map.
* *
* @param template The template to process * @param template The template to process
* @param tagValues Map with additional tags, e.g. a map entry with key "foo" and value "bar" will replace * @param tagValues Container with tags and their associated values
* any occurrences of "{foo}" to "bar".
* @return The filled template * @return The filled template
*/ */
public static String applyReplacements(String template, TagValueHolder tagValues) { public static String applyReplacements(String template, TagValueHolder tagValues) {

View File

@ -27,11 +27,6 @@ public abstract class TagValue<T> {
public boolean isEmpty() { public boolean isEmpty() {
return getValue().isEmpty(); return getValue().isEmpty();
} }
@Override
public int hashCode() {
return super.hashCode();
}
} }
public static final class NestedTagValue extends TagValue<List<TagValueHolder>> { public static final class NestedTagValue extends TagValue<List<TagValueHolder>> {