mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 17:41:28 +01:00
updated to conform with new api (less exceptions caught)
Former-commit-id: ad29d60598be7dd0c44e332a65d68756cadbe3e2
This commit is contained in:
@@ -20,8 +20,6 @@ package org.owasp.dependencycheck;
|
|||||||
|
|
||||||
import java.util.EnumMap;
|
import java.util.EnumMap;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
@@ -455,14 +453,8 @@ public class Engine {
|
|||||||
cpe.open(cve);
|
cpe.open(cve);
|
||||||
} catch (IndexException ex) {
|
} catch (IndexException ex) {
|
||||||
throw new NoDataException(ex.getMessage(), ex);
|
throw new NoDataException(ex.getMessage(), ex);
|
||||||
} catch (IOException ex) {
|
|
||||||
throw new NoDataException(ex.getMessage(), ex);
|
|
||||||
} catch (SQLException ex) {
|
|
||||||
throw new NoDataException(ex.getMessage(), ex);
|
|
||||||
} catch (DatabaseException ex) {
|
} catch (DatabaseException ex) {
|
||||||
throw new NoDataException(ex.getMessage(), ex);
|
throw new NoDataException(ex.getMessage(), ex);
|
||||||
} catch (ClassNotFoundException ex) {
|
|
||||||
throw new NoDataException(ex.getMessage(), ex);
|
|
||||||
} finally {
|
} finally {
|
||||||
cve.close();
|
cve.close();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user