private static final Map<String, String> LOCALE_FOLDER_MAP = new ImmutableMap.Builder()
.put("a", "b")
.build();
private static final Map<String, String> LOCALE_FOLDER_MAPP = ImmutableMap.builder()
.put("a", "b")
.build();
It is strange ImmutableMap.builder() returns new ImmutableMap.Builder();. After replacing the original code using the return statement, the above two code segments should be equivalent.
But it does not, which confuses me.
Does anyone have explanations?
The error message is
Required type: Map <String, String>. Provided: ImmutableMap<Object, Object>
