Map<String, Object> instead of Map<String, ?>.
This commit is contained in:
parent
306b4bb8d3
commit
a8c6955ca8
@ -10,7 +10,7 @@ final class DynamicTagBuilder implements TagBuilder {
|
||||
}
|
||||
|
||||
@Override
|
||||
String create(String name, Map<String, ?> attributes) {
|
||||
String create(String name, Map<String, Object> attributes) {
|
||||
def formattedAttributes = attributes.collect {
|
||||
if (it.value instanceof String) {
|
||||
it.key + '="' + it.value + '"'
|
||||
@ -31,7 +31,7 @@ final class DynamicTagBuilder implements TagBuilder {
|
||||
}
|
||||
|
||||
@Override
|
||||
String create(String name, Map<String, ?> attributes, String body) {
|
||||
String create(String name, Map<String, Object> attributes, String body) {
|
||||
def formattedAttributes = attributes.collect {
|
||||
if (it.value instanceof String) {
|
||||
it.key + '="' + it.value + '"'
|
||||
|
@ -2,7 +2,7 @@ package com.jessebrault.ssg.dsl.tagbuilder
|
||||
|
||||
interface TagBuilder {
|
||||
String create(String name)
|
||||
String create(String name, Map<String, ?> attributes)
|
||||
String create(String name, Map<String, Object> attributes)
|
||||
String create(String name, String body)
|
||||
String create(String name, Map<String, ?> attributes, String body)
|
||||
String create(String name, Map<String, Object> attributes, String body)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user