xbean-blueprint/src/main/java/org/apache/xbean/blueprint/generator/Type.java [28:42]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class Type {
    private final String name;
    private final Type nestedType;
    private final boolean primitive;

    public static Type newSimpleType(String name) {
        if (name == null) throw new NullPointerException("type");
        if (name.indexOf("[") >= 0 || name.indexOf("]") >= 0) {
            throw new IllegalArgumentException("Name can not contain '[' or ']' " + name);
        }
        return new Type(name, null);
    }

    public static Type newArrayType(String type, int dimensions) {
        if (type == null) throw new NullPointerException("type");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



xbean-spring/src/main/java/org/apache/xbean/spring/generator/Type.java [28:42]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class Type {
    private final String name;
    private final Type nestedType;
    private final boolean primitive;

    public static Type newSimpleType(String name) {
        if (name == null) throw new NullPointerException("type");
        if (name.indexOf("[") >= 0 || name.indexOf("]") >= 0) {
            throw new IllegalArgumentException("Name can not contain '[' or ']' " + name);
        }
        return new Type(name, null);
    }

    public static Type newArrayType(String type, int dimensions) {
        if (type == null) throw new NullPointerException("type");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



