jcommander
jcommander copied to clipboard
Maven has a source compatibility for Java 1.5. The source does not.
The pom.xml specifies 1.5 source compatibility:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
The source code is actually 1.6 compatible.
@Override at methods inherited from interfaces:
private Comparator<? super ParameterDescription> m_parameterDescriptionComparator
= new Comparator<ParameterDescription>() {
@Override
public int compare(ParameterDescription p0, ParameterDescription p1) {
return p0.getLongestName().compareTo(p1.getLongestName());
}
};
The String.isEmpty() method:
if (Enum.class.isAssignableFrom(parameterized.getType())
&& m_parameterAnnotation.description().isEmpty()) {
~~Actually the source seems to have a 1.7 compatibility. There are several uses of the java.nio.file package.~~ Should have looked before commenting - the POM specifies 1.7 compatibility now.
The test I used with compiling this project with a 1.5 JDK has just become irrelevant. I am closing the issue.