Code example for CodeSource

0
public class ProtectionDomainUtil { 
  private static ProtectionDomain defaultDomain = null; 
 
  public static ProtectionDomain loadedClassDomain() { 
    if (defaultDomain == null) { 
      CodeSource cs = new CodeSource(null, (Certificate[]) null); 
      defaultDomain = new ProtectionDomain(cs, null); 
    } 
    return defaultDomain; 
  } 
} 
Connect your IDE to all the code out there  Get Codota for Java