Map<String, Object> instead of Map<String, ?>.

This commit is contained in:
JesseBrault0709 2023-04-26 09:53:46 +02:00
parent 306b4bb8d3
commit a8c6955ca8
2 changed files with 4 additions and 4 deletions

View File

@ -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 + '"'

View File

@ -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)
}