Revision 2883

View differences:

org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/namestranslator/TrimNamesTranslator.java
44 44
    }
45 45

  
46 46
    protected TrimNamesTranslator(int maxNameLen) {
47
        if (maxNameLen < 8) {
48
            throw new IllegalArgumentException("Invalid max name len, can be greater than 7.");
47
        if (maxNameLen < 5) {
48
            throw new IllegalArgumentException("Invalid max name len, can be greater than 4.");
49 49
        }
50 50
        this.maxNameLen = maxNameLen;
51 51
    }

Also available in: Unified diff