diff --git a/PROPERTIES.bzl b/PROPERTIES.bzl index 8abf2dd26f..78b7d809c0 100644 --- a/PROPERTIES.bzl +++ b/PROPERTIES.bzl @@ -11,7 +11,7 @@ PROPERTIES = { "maven.com_google_auto_value_auto_value_annotations": "com.google.auto.value:auto-value-annotations:1.7.2", "maven.com_google_code_gson": "com.google.code.gson:gson:2.8.6", "maven.com_google_protobuf_protobuf_java": "com.google.protobuf:protobuf-java:3.19.1", - "maven.io_github_java_diff_utils": "io.github.java-diff-utils:java-diff-utils:4.0", + "maven.io_github_java_diff_utils": "io.github.java-diff-utils:java-diff-utils:4.11", "maven.javax_annotation_javax_annotation_api": "javax.annotation:javax.annotation-api:1.3.2", # Gapic YAML parsing for batching settings. diff --git a/src/test/java/com/google/api/generator/test/framework/Differ.java b/src/test/java/com/google/api/generator/test/framework/Differ.java index 488282c070..74e5d76135 100644 --- a/src/test/java/com/google/api/generator/test/framework/Differ.java +++ b/src/test/java/com/google/api/generator/test/framework/Differ.java @@ -16,7 +16,6 @@ import com.github.difflib.DiffUtils; import com.github.difflib.UnifiedDiffUtils; -import com.github.difflib.algorithm.DiffException; import com.github.difflib.patch.Patch; import java.io.IOException; import java.nio.file.Files; @@ -49,7 +48,7 @@ private static List diffTwoStringLists(List original, List diff = null; try { diff = DiffUtils.diff(original, revised); - } catch (DiffException e) { + } catch (RuntimeException e) { throw new ComputeDiffException("Could not compute the differences.", e); } List unifiedDiff =