Revision 130 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/dataTypes/impl/DefaultDataTypesManager.java

View differences:

DefaultDataTypesManager.java
48 48
	}
49 49
	
50 50
	public  String getTypeName(int type) {
51
		if( type<0 || type>0x40 ) {
51
		if( type<1 || type>0x40 ) {
52 52
			return "unknow";
53 53
		}
54 54
		String name = TYPE_NAMES[type];
......
70 70
	}
71 71

  
72 72
	public  Class getDefaultClass(int type) {
73
		if( type<0 || type>0x40 ) {
73
		if( type<1 || type>0x40 ) {
74 74
			return null;
75 75
		}
76 76
		return DEFAULT_CLASSES[type];
77 77
	}
78 78

  
79 79
	public String getSubtype(int type) {
80
		if( type<0 || type>0x40 ) {
80
		if( type<1 || type>0x40 ) {
81 81
			return null;
82 82
		}
83 83
		return SUBTYPES[type];

Also available in: Unified diff