Adapt to ChangeData signature changes Change-Id: Ic2cc265c935f32d2a8d0b46509ea46c482fc6642
diff --git a/src/main/java/com/googlesource/gerrit/plugins/findowners/Checker.java b/src/main/java/com/googlesource/gerrit/plugins/findowners/Checker.java index be9558d..c3422ef 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/findowners/Checker.java +++ b/src/main/java/com/googlesource/gerrit/plugins/findowners/Checker.java
@@ -107,7 +107,7 @@ } /** Returns 1 if owner approval is found, -1 if missing, 0 if unneeded. */ - int findApproval(AccountCache accountCache, OwnersDb db) throws StorageException, IOException { + int findApproval(AccountCache accountCache, OwnersDb db) throws StorageException { Map<String, Set<String>> file2Owners = db.findOwners(changeData.currentFilePaths()); if (file2Owners.isEmpty()) { // do not need owner approval return 0; @@ -168,7 +168,7 @@ if (message.contains(EXEMPT_MESSAGE1) || message.contains(EXEMPT_MESSAGE2)) { return true; } - } catch (IOException | StorageException e) { + } catch (StorageException e) { logger.atSevere().withCause(e).log( "Cannot get commit message for %s", Config.getChangeId(changeData)); return true; // exempt from owner approval due to lack of data