test_class.file: ch-commons-xbean/src/test/java/com/cloudhopper/commons/xbean/util/NumberRadixUtilTest.java
test_class.identifier: NumberRadixUtilTest
test_case.body: @Test(expected=ConversionException.class)
      public void normalizeLeadingHexZeroesThrowsOverflow() throws Exception {
          // appending digits or equal
          NumberRadixUtil.normalizeLeadingHexZeroes("100", 2);
      }
test_case.class_method_signature: NumberRadixUtilTest.normalizeLeadingHexZeroesThrowsOverflow()
test_case.full_signature: @Test(expected=ConversionException.class) public void normalizeLeadingHexZeroesThrowsOverflow()
test_case.identifier: normalizeLeadingHexZeroesThrowsOverflow
test_case.invocations: normalizeLeadingHexZeroes
test_case.modifiers: @Test(expected=ConversionException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void normalizeLeadingHexZeroesThrowsOverflow()
focal_class.file: ch-commons-xbean/src/main/java/com/cloudhopper/commons/xbean/util/NumberRadixUtil.java
focal_class.identifier: NumberRadixUtil
focal_class.class_method_signature: NumberRadixUtil.parseNumberRadix(String number)
focal_class.full_signature: static public NumberRadixResult parseNumberRadix(String number)
focal_class.identifier: parseNumberRadix
focal_class.modifiers: static public
focal_class.parameters: (String number)
focal_class.return: NumberRadixResult
focal_class.signature: NumberRadixResult parseNumberRadix(String number)
focal_class.class_method_signature: NumberRadixUtil.normalizeLeadingHexZeroes(String v, int length)
focal_class.full_signature: static public String normalizeLeadingHexZeroes(String v, int length)
focal_class.identifier: normalizeLeadingHexZeroes
focal_class.modifiers: static public
focal_class.parameters: (String v, int length)
focal_class.return: String
focal_class.signature: String normalizeLeadingHexZeroes(String v, int length)
focal_method.body: static public String normalizeLeadingHexZeroes(String v, int length) throws ConversionException {
          if (v == null || v.length() == 0) {
              throw new ConversionException("Empty or null value detected; unable to convert");
          } else if (v.length() == length) {
              return v;
          } else if (v.length() < length) {
              // add leading zeroes
              int prepend = (length - v.length());
              StringBuilder sb = new StringBuilder(length);
              for (int i = 0; i < prepend; i++) {
                  sb.append('0');
              }
              sb.append(v);
              return sb.toString();
          } else {
              // remove leading zeroes (or error out if not zeroes)
              int remove = (v.length() - length);
              // check if any of these are non-zero
              for (int i = 0; i < remove; i++) {
                  if (v.charAt(i) != '0') {
                      throw new ConversionOverflowException("Overflow of value detected; unable to trim value [" + v + "] to length " + length);
                  }
              }
              return v.substring(remove);
          }
      }
focal_method.class_method_signature: NumberRadixUtil.normalizeLeadingHexZeroes(String v, int length)
focal_method.full_signature: static public String normalizeLeadingHexZeroes(String v, int length)
focal_method.identifier: normalizeLeadingHexZeroes
focal_method.invocations: length length length length append append toString length charAt substring
focal_method.modifiers: static public
focal_method.parameters: (String v, int length)
focal_method.return: String
focal_method.signature: String normalizeLeadingHexZeroes(String v, int length)