in dataenum-processor/src/main/java/com/spotify/dataenum/processor/generator/data/OutputSpecFactory.java [54:66]
static ClassName toOutputClassName(ClassName specClassName) throws ParserException {
String packageName = specClassName.packageName();
String name = specClassName.simpleName();
if (!isSpecClassName(specClassName)) {
throw new ParserException(
String.format(
"Bad name for DataEnum interface! Name must end with '%s', found: %s", SUFFIX, name));
}
String nameWithoutSuffix = name.substring(0, name.length() - SUFFIX.length());
return ClassName.get(packageName, nameWithoutSuffix);
}