package com.thoughtworks.xstream.converters.collections; import com.thoughtworks.xstream.converters.UnmarshallingContext; import com.thoughtworks.xstream.io.HierarchicalStreamReader; import com.thoughtworks.xstream.mapper.Mapper; import java.util.Collections; /* loaded from: classes.dex */ public class SingletonMapConverter extends MapConverter { private static final Class MAP = Collections.singletonMap(Boolean.TRUE, null).getClass(); public SingletonMapConverter(Mapper mapper) { super(mapper); } @Override // com.thoughtworks.xstream.converters.collections.MapConverter, com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter, com.thoughtworks.xstream.converters.ConverterMatcher public boolean canConvert(Class cls) { return MAP == cls; } @Override // com.thoughtworks.xstream.converters.collections.MapConverter, com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter, com.thoughtworks.xstream.converters.Converter public Object unmarshal(HierarchicalStreamReader hierarchicalStreamReader, UnmarshallingContext unmarshallingContext) { hierarchicalStreamReader.moveDown(); Object readCompleteItem = readCompleteItem(hierarchicalStreamReader, unmarshallingContext, null); Object readCompleteItem2 = readCompleteItem(hierarchicalStreamReader, unmarshallingContext, null); hierarchicalStreamReader.moveUp(); return Collections.singletonMap(readCompleteItem, readCompleteItem2); } }