@Test(expectedExceptions = UnsupportedOperationException.class) public void testRegisterLegacyNullName() throws Exception { registry.register(TESTING_REPORTED_BEAN, null); }
void register(Object object, ReportedBean reportedBean, boolean applicationPrefix, String namePrefix, Map<String, String> tags) throws InstanceAlreadyExistsException { requireNonNull(object, "object is null"); if (reportedBeans.putIfAbsent(new Reference(object), registrationInfo(reportedBean, applicationPrefix, namePrefix, tags)) != null) { throw new InstanceAlreadyExistsException(object + " is already registered"); } }
ReportedBeanRegistry { void register(Object object, ReportedBean reportedBean, boolean applicationPrefix, String namePrefix, Map<String, String> tags) throws InstanceAlreadyExistsException { requireNonNull(object, "object is null"); if (reportedBeans.putIfAbsent(new Reference(object), registrationInfo(reportedBean, applicationPrefix, namePrefix, tags)) != null) { throw new InstanceAlreadyExistsException(object + " is already registered"); } } }
ReportedBeanRegistry { void register(Object object, ReportedBean reportedBean, boolean applicationPrefix, String namePrefix, Map<String, String> tags) throws InstanceAlreadyExistsException { requireNonNull(object, "object is null"); if (reportedBeans.putIfAbsent(new Reference(object), registrationInfo(reportedBean, applicationPrefix, namePrefix, tags)) != null) { throw new InstanceAlreadyExistsException(object + " is already registered"); } }  }
ReportedBeanRegistry { void register(Object object, ReportedBean reportedBean, boolean applicationPrefix, String namePrefix, Map<String, String> tags) throws InstanceAlreadyExistsException { requireNonNull(object, "object is null"); if (reportedBeans.putIfAbsent(new Reference(object), registrationInfo(reportedBean, applicationPrefix, namePrefix, tags)) != null) { throw new InstanceAlreadyExistsException(object + " is already registered"); } }   }
ReportedBeanRegistry { void register(Object object, ReportedBean reportedBean, boolean applicationPrefix, String namePrefix, Map<String, String> tags) throws InstanceAlreadyExistsException { requireNonNull(object, "object is null"); if (reportedBeans.putIfAbsent(new Reference(object), registrationInfo(reportedBean, applicationPrefix, namePrefix, tags)) != null) { throw new InstanceAlreadyExistsException(object + " is already registered"); } }    }