Github user patricker commented on the issue:
https://github.com/apache/nifi/pull/2854
Some further research.
Original source code location:
https://web.archive.org/web/20080516181120/http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html
The code has no listed license. So according to that website:
https://web.archive.org/web/20080512032235/http://java.net/terms.csp
Source Code Submissions. You agree that any source code You contribute to a
Project will be submitted under, and subject to, the license posted for that
Project. If no license is posted, You agree that Your Submission will be
governed by the Apache License, Version 2.0, which terms can be found at
http://opensource.org/licenses/apache2.0.php. You acknowledge that You are
responsible for including all applicable copyright notices and licenses with
Your Submissions, and that You assume the risks of failing to do so, including
the potential loss of Your rights to Your Submissions.
---