fitnesse.slim.converters.PrimitiveIntConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fitnesse Show documentation
Show all versions of fitnesse Show documentation
The fully integrated standalone wiki, and acceptance testing framework.
package fitnesse.slim.converters;
public class PrimitiveIntConverter extends IntConverter {
public static final Integer DEFAULT_VALUE = Integer.valueOf(0);
@Override
public Integer fromString(String arg) {
Integer i = super.fromString(arg);
return i != null ? i : DEFAULT_VALUE;
}
}