dependency-check-core/src/main/java/org/owasp/dependencycheck/data/nvdcve/CveDB.java
/**
     * Tries to determine the product name of the database.
     *
     * @param conn the database connection
     * @return the product name of the database if successful, {@code null} else
     */
Tries to determine the product name of the database.
@param conn the database connection
@return the product name of the database if successful,  null else
Tries to determine the product name of the database . @param conn the database connection @return the product name of the database if successful null else
private static String determineDatabaseProductName(Connection conn) {
        try {
            final String databaseProductName = conn.getMetaData().getDatabaseProductName().toLowerCase();
            LOGGER.debug("Database product: {}", databaseProductName);
            return databaseProductName;
        } catch (SQLException se) {
            LOGGER.warn("Problem determining database product!", se);
            return null;
        }
    }
private static String determineDatabaseProductName ( Connection conn ) { try { final String databaseProductName = conn . getMetaData ( ) . getDatabaseProductName ( ) . toLowerCase ( ) ; LOGGER . debug ( "Database product: {}" , databaseProductName ) ; return databaseProductName ; } catch ( SQLException se ) { LOGGER . warn ( "Problem determining database product!" , se ) ; return null ; } }
Tries to determine the product name of the database.
Tries to determine the product name of the database .