test_class.declarator: builder
test_class.modifier: private
test_class.original_string: private ClassAliasTypeResolverBuilder builder;
test_class.type: ClassAliasTypeResolverBuilder
test_class.var_name: builder
test_class.file: simple-spring-memcached/src/test/java/com/google/code/ssm/json/ClassAliasTypeResolverBuilderTest.java
test_class.identifier: ClassAliasTypeResolverBuilderTest
test_case.body: @Test(expected = IllegalArgumentException.class)
      public void invalidSetClassToIdMapNotUniqueAlias() {
          Map<Class<?>, String> map = new HashMap<Class<?>, String>();
          map.put(ClassAliasIdResolverTest.class, "cairt");
          map.put(Object.class, "cairt");
  
          builder.setClassToId(map);
      }
test_case.class_method_signature: ClassAliasTypeResolverBuilderTest.invalidSetClassToIdMapNotUniqueAlias()
test_case.full_signature: @Test(expected = IllegalArgumentException.class) public void invalidSetClassToIdMapNotUniqueAlias()
test_case.identifier: invalidSetClassToIdMapNotUniqueAlias
test_case.invocations: put put setClassToId
test_case.modifiers: @Test(expected = IllegalArgumentException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void invalidSetClassToIdMapNotUniqueAlias()
focal_class.declarator: serialVersionUID = 1L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 1L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: idToClass = new HashMap<String, Class<?>>()
focal_class.modifier: private
focal_class.original_string: private Map<String, Class<?>> idToClass = new HashMap<String, Class<?>>();
focal_class.type: Map<String, Class<?>>
focal_class.var_name: idToClass
focal_class.declarator: classToId = new HashMap<Class<?>, String>()
focal_class.modifier: private
focal_class.original_string: private Map<Class<?>, String> classToId = new HashMap<Class<?>, String>();
focal_class.type: Map<Class<?>, String>
focal_class.var_name: classToId
focal_class.file: simple-spring-memcached/src/main/java/com/google/code/ssm/json/ClassAliasTypeResolverBuilder.java
focal_class.identifier: ClassAliasTypeResolverBuilder
focal_class.class_method_signature: ClassAliasTypeResolverBuilder.ClassAliasTypeResolverBuilder(final DefaultTyping typing)
focal_class.full_signature: public  ClassAliasTypeResolverBuilder(final DefaultTyping typing)
focal_class.identifier: ClassAliasTypeResolverBuilder
focal_class.modifiers: public
focal_class.parameters: (final DefaultTyping typing)
focal_class.signature:  ClassAliasTypeResolverBuilder(final DefaultTyping typing)
focal_class.class_method_signature: ClassAliasTypeResolverBuilder.idResolver(final MapperConfig<?> config, final JavaType baseType, final Collection<NamedType> subtypes,
              final boolean forSer, final boolean forDeser)
focal_class.full_signature: @Override protected TypeIdResolver idResolver(final MapperConfig<?> config, final JavaType baseType, final Collection<NamedType> subtypes,
              final boolean forSer, final boolean forDeser)
focal_class.identifier: idResolver
focal_class.modifiers: @Override protected
focal_class.parameters: (final MapperConfig<?> config, final JavaType baseType, final Collection<NamedType> subtypes,
              final boolean forSer, final boolean forDeser)
focal_class.return: TypeIdResolver
focal_class.signature: TypeIdResolver idResolver(final MapperConfig<?> config, final JavaType baseType, final Collection<NamedType> subtypes,
              final boolean forSer, final boolean forDeser)
focal_class.class_method_signature: ClassAliasTypeResolverBuilder.setClassToId(final Map<Class<?>, String> classToId)
focal_class.full_signature: public void setClassToId(final Map<Class<?>, String> classToId)
focal_class.identifier: setClassToId
focal_class.modifiers: public
focal_class.parameters: (final Map<Class<?>, String> classToId)
focal_class.return: void
focal_class.signature: void setClassToId(final Map<Class<?>, String> classToId)
focal_class.superclass: extends DefaultTypeResolverBuilder
focal_method.body: public void setClassToId(final Map<Class<?>, String> classToId) {
  
          Map<String, Class<?>> reverseMap = new HashMap<String, Class<?>>();
          for (Map.Entry<Class<?>, String> entry : classToId.entrySet()) {
              Assert.notNull(entry.getKey(), "Class cannot be null: " + entry);
              Assert.hasText(entry.getValue(), "Alias (id) cannot be null or contain only whitespaces" + entry);
  
              if (reverseMap.put(entry.getValue(), entry.getKey()) != null) {
                  throw new IllegalArgumentException("Two or more classes with the same alias (id): " + entry.getValue());
              }
          }
  
          this.classToId = classToId;
          this.idToClass = reverseMap;
      }
focal_method.class_method_signature: ClassAliasTypeResolverBuilder.setClassToId(final Map<Class<?>, String> classToId)
focal_method.full_signature: public void setClassToId(final Map<Class<?>, String> classToId)
focal_method.identifier: setClassToId
focal_method.invocations: entrySet notNull getKey hasText getValue put getValue getKey getValue
focal_method.modifiers: public
focal_method.parameters: (final Map<Class<?>, String> classToId)
focal_method.return: void
focal_method.signature: void setClassToId(final Map<Class<?>, String> classToId)