All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.cdi.lang.model.tck.DefaultConstructors Maven / Gradle / Ivy

There is a newer version: 4.1.0
Show newest version
package org.jboss.cdi.lang.model.tck;

import jakarta.enterprise.lang.model.declarations.ClassInfo;

class ClassWithDefaultConstructor {
}

enum EnumWithDefaultConstructor {
    SINGLETON
}

public class DefaultConstructors {
    ClassWithDefaultConstructor classWithDefaultConstructor;
    EnumWithDefaultConstructor enumWithDefaultConstructor;

    public static void verify(ClassInfo clazz) {
        assert LangModelUtils.classOfField(clazz, "classWithDefaultConstructor").constructors().size() == 1;
        assert LangModelUtils.classOfField(clazz, "enumWithDefaultConstructor").constructors().size() == 1;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy