package com.yahoo.container.plugin.classanalysis.sampleclasses; import com.google.common.collect.ImmutableList; import java.util.List; /** * Input for class analysis test verifying Java 15 records, * plus Java 16 pattern matching for instanceof. * * @author gjoranv */ public record RecordWithOverride(List list) { public RecordWithOverride { if (list instanceof ImmutableList l) { throw new IllegalArgumentException(l.toString()); } } }