import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
-import java.util.List;
/**
* Contains and provides class loader extended with the JDBC Driver hosted on the server-side.
String indexContent = serverClient.request(url);
// File is empty when H2 is used
if (Strings.isNullOrEmpty(indexContent)) {
- return new String[]{};
+ return new String[] {};
}
return indexContent.split("\\|");
} catch (Exception e) {
Class<?> lpClass = defineClass("org.sonar.batch.bootstrap.JdbcLeakPrevention", classBytes, 0, offset, this.getClass().getProtectionDomain());
Object obj = lpClass.newInstance();
- List<String> driverNames = (List<String>) obj.getClass().getMethod("unregisterDrivers").invoke(obj);
-
- for (String name : driverNames) {
- LOG.debug("To prevent a memory leak, the JDBC Driver [{}] has been forcibly deregistered", name);
- }
+ obj.getClass().getMethod("unregisterDrivers").invoke(obj);
} catch (Exception e) {
LOG.warn("JDBC driver deregistration failed", e);
} finally {