Revision 398

View differences:

org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/dataTypes/impl/DefaultDataType.java
76 76
	}
77 77

  
78 78
	public void setCoercion(Coercion coercion) {
79
		if( (type & DataTypes.OBJECT) != DataTypes.OBJECT ) {
80
			throw new IllegalArgumentException();
81
		}
82 79
		this.coercion = coercion;
83 80
		LOG.trace("Add coercion operation for data type {}.", new Object[] { name });
84 81
	}

Also available in: Unified diff