(maybe) support String2ObjectMap
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2023-04-04 17:36:45 +02:00
parent b12c7ddd37
commit 1e45cd9bc2
Signed by: Johannes
GPG Key ID: E76429612C2929F4
4 changed files with 11 additions and 5 deletions

View File

@ -9,8 +9,8 @@ repositories {
}
dependencies {
implementation("io.gitlab.jfronny:commons:1.1-SNAPSHOT")
api("io.gitlab.jfronny:commons-gson:1.1-SNAPSHOT")
implementation("io.gitlab.jfronny:commons:1.2-SNAPSHOT")
api("io.gitlab.jfronny:commons-gson:1.2-SNAPSHOT")
}
publishing {

View File

@ -10,7 +10,7 @@ repositories {
dependencies {
implementation("org.jetbrains:annotations:24.0.0")
implementation("io.gitlab.jfronny:commons:1.1-SNAPSHOT")
implementation("io.gitlab.jfronny:commons:1.2-SNAPSHOT")
}
publishing {

View File

@ -12,7 +12,7 @@ dependencies {
implementation(project(":gson-compile-processor-core"))
implementation(project(":gson-compile-annotations"))
implementation("org.jetbrains:annotations:24.0.0")
implementation("io.gitlab.jfronny:commons:1.1-SNAPSHOT")
implementation("io.gitlab.jfronny:commons:1.2-SNAPSHOT")
implementation("com.squareup:javapoet:1.13.0")
}

View File

@ -1,6 +1,7 @@
package io.gitlab.jfronny.gson.compile.processor.adapter.impl;
import com.squareup.javapoet.*;
import io.gitlab.jfronny.commons.data.String2ObjectMap;
import io.gitlab.jfronny.gson.compile.processor.Cl;
import io.gitlab.jfronny.gson.compile.processor.core.TypeHelper;
import io.gitlab.jfronny.gson.compile.processor.adapter.Adapter;
@ -19,7 +20,12 @@ public class MapAdapter extends Adapter<MapAdapter.Hydrated> {
}
public class Hydrated extends Adapter<MapAdapter.Hydrated>.Hydrated {
private static final List<Class<? extends Map>> SUPPORTED = List.of(LinkedHashMap.class, HashMap.class, TreeMap.class);
private static final List<Class<? extends Map>> SUPPORTED = List.of(
LinkedHashMap.class,
HashMap.class,
TreeMap.class,
String2ObjectMap.class
);
private DeclaredType type;
private TypeName implType;