Back to Intellij Community

UseOfJDBCDriverClass

java/java-impl/resources/inspectionDescriptions/UseOfJDBCDriverClass.html

2025.3-rc-2340 B
Original Source

Reports uses of specific JDBC driver classes. Use of such classes will bind your project to a specific database and driver, defeating the purpose of JDBC and resulting in loss of portability.

Example:

import java.sql.Driver;

  abstract class Sample implements Driver {
    public void foo() {
        Sample sample;
    }
  }