-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(reporter)!: Use default interface implementations to reduce …
…code Use default implementations for the `getLicenseText()` and `hasLicenseText()` interface functions that refer to `getLicenseTextReader()`, so usually only that function needs to be implemented. That allows to remove the code for some function overrides as well as the `hasLicenseText()` stand-alone function itself. Note that this is only an intermediate step towards a bigger refactoring that plans to make license text providers first-class plugins in ORT. Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
- Loading branch information
1 parent
1109a7a
commit ce6839d
Showing
3 changed files
with
2 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters