This is an automated email from the ASF dual-hosted git repository.
pvillard31 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new a8473d374c9 NIFI-16588 Declare the GitHub client pattern variable
final (#11931)
a8473d374c9 is described below
commit a8473d374c976660e4ef3aa932936adaa1e21dbd
Author: Raul Roberto da Silva <[email protected]>
AuthorDate: Tue Nov 17 08:20:55 2026 -0300
NIFI-16588 Declare the GitHub client pattern variable final (#11931)
---
.../src/main/java/org/apache/nifi/github/GitHubRepositoryClient.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/nifi-extension-bundles/nifi-github-bundle/nifi-github-extensions/src/main/java/org/apache/nifi/github/GitHubRepositoryClient.java
b/nifi-extension-bundles/nifi-github-bundle/nifi-github-extensions/src/main/java/org/apache/nifi/github/GitHubRepositoryClient.java
index 8302691947d..24bfb297ba9 100644
---
a/nifi-extension-bundles/nifi-github-bundle/nifi-github-extensions/src/main/java/org/apache/nifi/github/GitHubRepositoryClient.java
+++
b/nifi-extension-bundles/nifi-github-bundle/nifi-github-extensions/src/main/java/org/apache/nifi/github/GitHubRepositoryClient.java
@@ -379,7 +379,7 @@ public class GitHubRepositoryClient implements
GitRepositoryClient {
return commits.hasNext() ? Optional.of(commits.next().getSHA1()) :
Optional.empty();
} catch (final GHException e) {
// Iterators wrap request failures, such as Not Found for an
unknown branch, which callers handle as IOException
- if (e.getCause() instanceof IOException ioException) {
+ if (e.getCause() instanceof final IOException ioException) {
throw ioException;
}
throw e;