package test; public class PrivateSamAdapter { private void samAdapter(SamInterface r) { } private interface SamInterface { void foo(); } }