[cobertura] WARN [main] net.sourceforge.cobertura.reporting.ComplexityCalculator - JavaNCSS got an error while parsing the java file /mnt/hard/opt/appli/akio/akio_source/acc-sources/specific-common/integration-common/trunk/src/main/java/com/akio/software/amc/api/integration/spring/converter/AbstractSimplePropertyConverter.java
ParseException in STDIN
Last useful checkpoint: "com.akio.software.amc.api.integration.spring.converter.AbstractSimplePropertyConverter.convert(O,T)"
Encountered " ">" "> "" at line 14, column 36.
Was expecting one of:
"[" ...
";" ...
"," ...
"=" ...
Source code of class:
package com.akio.software.amc.api.integration.spring.converter;
import org.apache.commons.lang.ArrayUtils;
/*
* @param <T> type of result
* @author Vladislav Bauer
/
public abstract class AbstractSimplePropertyConverter<T> implements PropertyConverter {
@SuppressWarnings("hiding") public final <O, T> T convert(final O object, final T defaultValue) { final T result = this.<O, T>convert(object); return result != null ? result : defaultValue; } @SuppressWarnings({ "unchecked", "hiding" }) public final <O, T> T convert(final O object) { final Class<?>[] supportedClasses = getSupportedClasses(); if (!ArrayUtils.isEmpty(supportedClasses)) { return (T) convert(supportedClasses[0], object); } throw new IllegalStateException(String.format("Can't retrieve no one supported class for converter %s", this)); } public final boolean checkCompatible(final Class<?> targetClass) { return ArrayUtils.contains(getSupportedClasses(), targetClass); } protected abstract Class<?>[] getSupportedClasses();
}