Here you can find the source of checkMethod(NetworkInterface iface, Method toCheck)
private static Boolean checkMethod(NetworkInterface iface, Method toCheck)
//package com.java2s; //License from project: Apache License import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.*; public class Main { private static Boolean checkMethod(NetworkInterface iface, Method toCheck) { if (toCheck != null) { try { return (Boolean) toCheck.invoke(iface, (Object[]) null); } catch (IllegalAccessException e) { return false; } catch (InvocationTargetException e) { return false; }// w ww. ja v a 2s . com } // Cannot check, hence we assume that is true return true; } }