Buggy code:
public final class UdpChannel { private static final String UDP_MEDIA_ID = "udp" ; private static final String REMOTE_KEY = "remote" ; private static final String LOCAL_KEY = "local" ; private static final String INTERFACE_KEY = "interface" ; private static final String GROUP_KEY = "group" ; private static final String [ ] UNICAST_KEYS = new String [ ] { UdpChannel . LOCAL_KEY , UdpChannel . REMOTE_KEY } ; private static final String [ ] MULTICAST_KEYS = new String [ ] { UdpChannel . GROUP_KEY , UdpChannel . INTERFACE_KEY } ; private final InetSocketAddress remoteData ; private final InetSocketAddress localData ; private final InetSocketAddress remoteControl ; private final InetSocketAddress localControl ; private final String uriStr ; private final String canonicalForm ; private final NetworkInterface localInterface ; public static UdpChannel parse ( final String uriStr ) { } private static void validateDataAddress ( final byte [ ] addressAsBytes ) { } private static boolean isMulticast ( AeronUri uri ) { } private static void validateConfiguration ( AeronUri uri ) { } private static void validateMedia ( AeronUri uri ) { } private static void validateUnicastXorMulticast ( AeronUri uri ) { final boolean hasMulticastKeys = uri . containsAnyKey ( UdpChannel . MULTICAST_KEYS ) ; final boolean hasUnicastKeys = uri . containsAnyKey ( UdpChannel . UNICAST_KEYS ) ; if ( ! ( hasMulticastKeys ^ hasUnicastKeys ) ) { final String msg = "URI<seq2seq4repair_space>must<seq2seq4repair_space>contain<seq2seq4repair_space>either<seq2seq4repair_space>a<seq2seq4repair_space>unicast<seq2seq4repair_space>configuration<seq2seq4repair_space>(%s)<seq2seq4repair_space>or<seq2seq4repair_space>a<seq2seq4repair_space>multicast<seq2seq4repair_space>configuration<seq2seq4repair_space>(%s)<seq2seq4repair_space>not<seq2seq4repair_space>both" ; <START_BUG> throw new IllegalArgumentException ( String . format ( msg , Arrays . toString ( UdpChannel . MULTICAST_KEYS ) , Arrays . toString ( UdpChannel . UNICAST_KEYS ) ) ) ; <END_BUG> } } private static AeronUri parseIntoAeronUri ( String uriStr ) throws URISyntaxException , UnknownHostException { } private static AeronUri parseUdpUriToAeronUri ( String uriStr ) throws URISyntaxException , UnknownHostException { } private static String interfaceStringOf ( String userInfo , String subnetPrefix ) { } private static InetSocketAddress resolveToAddressOfInterface ( NetworkInterface localInterface , InterfaceSearchAddress searchAddress ) { } private static NetworkInterface findInterface ( InterfaceSearchAddress searchAddress ) throws SocketException , UnknownHostException { } public InetSocketAddress remoteData ( ) { } public InetSocketAddress localData ( ) { } public InetSocketAddress remoteControl ( ) { } public InetSocketAddress localControl ( ) { } private UdpChannel ( final UdpChannel . Context context ) { } public String canonicalForm ( ) { } public boolean equals ( final Object o ) { } public int hashCode ( ) { } public String toString ( ) { } public static String canonicalise ( final InetSocketAddress localData , final InetSocketAddress remoteData ) { } public boolean isMulticast ( ) { } public NetworkInterface localInterface ( ) throws SocketException { } public String originalUriString ( ) { } public ProtocolFamily protocolFamily ( ) { } private static class Context { private InetSocketAddress remoteData ; private InetSocketAddress localData ; private InetSocketAddress remoteControl ; private InetSocketAddress localControl ; private String uriStr ; private String canonicalForm ; private NetworkInterface localInterface ; public UdpChannel . Context uriStr ( final String uri ) { } public UdpChannel . Context remoteDataAddress ( final InetSocketAddress remoteData ) { } public UdpChannel . Context localDataAddress ( final InetSocketAddress localData ) { } public UdpChannel . Context remoteControlAddress ( final InetSocketAddress remoteControl ) { } public UdpChannel . Context localControlAddress ( final InetSocketAddress localControl ) { } public UdpChannel . Context canonicalForm ( final String canonicalForm ) { } public UdpChannel . Context localInterface ( final NetworkInterface ifc ) { } } private static String errorNoMatchingInterfaces ( final Collection < NetworkInterface > filteredIfcs , final InterfaceSearchAddress address ) throws SocketException { } public String description ( ) { } }

Fix:
throw new IllegalArgumentException ( String . format ( msg , Arrays . toString ( UdpChannel . UNICAST_KEYS ) , Arrays . toString ( UdpChannel . MULTICAST_KEYS ) ) ) ;