agrison / jtoml

TOML for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding a map to the Test Pojo foo will try to create [foo.bar.map], not [foo.map]

dredhorse opened this issue · comments

While trying to figure out some loops occuring, see other issue I found out that if you add a map to the Test Pojo the creation of the key is wrong.

public static class Foo {

    String stringKey;
    Long longKey;
    Double doubleKey;
    Boolean booleanKey;
    List<Object> listKey;
    Bar bar;
    Boolean awesome;
    Map<String, Integer> map = new HashMap<String, Integer>() {{
        put("one",1);
        put("two",2);
    }};

This will create a key with [foo.bar.map] instead of [foo.map]

Thank you, I'll look into it asap.

thanks