test_class.file: pooled-jms/src/test/java/org/messaginghub/pooled/jms/util/JMSMessagePropertySupportTest.java
test_class.identifier: JMSMessagePropertySupportTest
test_case.body: @Test
      public void testConvertPropertyToNullBooleanTarget() throws JMSException {
          assertFalse(JMSMessagePropertySupport.convertPropertyTo("timeout", null, Boolean.class));
      }
test_case.class_method_signature: JMSMessagePropertySupportTest.testConvertPropertyToNullBooleanTarget()
test_case.full_signature: @Test public void testConvertPropertyToNullBooleanTarget()
test_case.identifier: testConvertPropertyToNullBooleanTarget
test_case.invocations: assertFalse convertPropertyTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConvertPropertyToNullBooleanTarget()
focal_class.file: pooled-jms/src/main/java/org/messaginghub/pooled/jms/util/JMSMessagePropertySupport.java
focal_class.identifier: JMSMessagePropertySupport
focal_class.class_method_signature: JMSMessagePropertySupport.convertPropertyTo(String name, Object value, Class<T> target)
focal_class.full_signature: @SuppressWarnings("unchecked") public static T convertPropertyTo(String name, Object value, Class<T> target)
focal_class.identifier: convertPropertyTo
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (String name, Object value, Class<T> target)
focal_class.return: T
focal_class.signature: T convertPropertyTo(String name, Object value, Class<T> target)
focal_class.class_method_signature: JMSMessagePropertySupport.checkPropertyNameIsValid(String propertyName, boolean validateNames)
focal_class.full_signature: public static void checkPropertyNameIsValid(String propertyName, boolean validateNames)
focal_class.identifier: checkPropertyNameIsValid
focal_class.modifiers: public static
focal_class.parameters: (String propertyName, boolean validateNames)
focal_class.return: void
focal_class.signature: void checkPropertyNameIsValid(String propertyName, boolean validateNames)
focal_class.class_method_signature: JMSMessagePropertySupport.checkIdentifierIsntLogicOperator(String identifier)
focal_class.full_signature: public static void checkIdentifierIsntLogicOperator(String identifier)
focal_class.identifier: checkIdentifierIsntLogicOperator
focal_class.modifiers: public static
focal_class.parameters: (String identifier)
focal_class.return: void
focal_class.signature: void checkIdentifierIsntLogicOperator(String identifier)
focal_class.class_method_signature: JMSMessagePropertySupport.checkIdentifierIsntNullTrueFalse(String identifier)
focal_class.full_signature: public static void checkIdentifierIsntNullTrueFalse(String identifier)
focal_class.identifier: checkIdentifierIsntNullTrueFalse
focal_class.modifiers: public static
focal_class.parameters: (String identifier)
focal_class.return: void
focal_class.signature: void checkIdentifierIsntNullTrueFalse(String identifier)
focal_class.class_method_signature: JMSMessagePropertySupport.checkIdentifierLetterAndDigitRequirements(String identifier)
focal_class.full_signature: public static void checkIdentifierLetterAndDigitRequirements(String identifier)
focal_class.identifier: checkIdentifierLetterAndDigitRequirements
focal_class.modifiers: public static
focal_class.parameters: (String identifier)
focal_class.return: void
focal_class.signature: void checkIdentifierLetterAndDigitRequirements(String identifier)
focal_class.class_method_signature: JMSMessagePropertySupport.checkValidObject(Object value)
focal_class.full_signature: public static void checkValidObject(Object value)
focal_class.identifier: checkValidObject
focal_class.modifiers: public static
focal_class.parameters: (Object value)
focal_class.return: void
focal_class.signature: void checkValidObject(Object value)
focal_method.body: @SuppressWarnings("unchecked")
      public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException {
          if (value == null) {
              if (Boolean.class.equals(target)) {
                  return (T) Boolean.FALSE;
              } else if (Float.class.equals(target) || Double.class.equals(target)) {
                  throw new NullPointerException("property " + name + " was null");
              } else if (Number.class.isAssignableFrom(target)) {
                  throw new NumberFormatException("property " + name + " was null");
              } else {
                  return null;
              }
          }
  
          T rc = (T) TypeConversionSupport.convert(value, target);
          if (rc == null) {
              throw new MessageFormatException("Property " + name + " was a " + value.getClass().getName() + " and cannot be read as a " + target.getName());
          }
  
          return rc;
      }
focal_method.class_method_signature: JMSMessagePropertySupport.convertPropertyTo(String name, Object value, Class<T> target)
focal_method.full_signature: @SuppressWarnings("unchecked") public static T convertPropertyTo(String name, Object value, Class<T> target)
focal_method.identifier: convertPropertyTo
focal_method.invocations: equals equals equals isAssignableFrom convert getName getClass getName
focal_method.modifiers: @SuppressWarnings("unchecked") public static
focal_method.parameters: (String name, Object value, Class<T> target)
focal_method.return: T
focal_method.signature: T convertPropertyTo(String name, Object value, Class<T> target)