Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add copyright notices and Scala license for code derived from the standard library #4196

Merged
merged 1 commit into from
Apr 25, 2022
Merged

Add copyright notices and Scala license for code derived from the standard library #4196

merged 1 commit into from
Apr 25, 2022

Conversation

DavidGregory084
Copy link
Member

@DavidGregory084 DavidGregory084 commented Apr 25, 2022

Fixes #4189 by adding the Scala license to the COPYING file, and adding the suggested copyright notice to code adapted from the standard library.

Contributed on behalf of the @opencastsoftware open source team. 👋

@danicheg danicheg merged commit cf1d2ff into typelevel:main Apr 25, 2022
@DavidGregory084 DavidGregory084 deleted the scala-library-attribution branch April 25, 2022 16:16
Comment on lines +682 to +693
*
* The method does not call `length` directly; its running time
* is `O(length min len)` instead of `O(length)`.
*
*
* @param len the test value that gets compared with the length.
* @return a negative value if `this.length < len`,
* zero if `this.length == len` or
* a positive value if `this.length > len`.
* @note an adapted version of
[[https://github.com/scala/scala/blob/v2.13.8/src/library/scala/collection/Iterable.scala#L272-L288 Iterable#sizeCompare]]
from Scala Library v2.13.8 is used in a part of the implementation.
*
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I completely missed this part. Seems that it is not derived from the Scala library anymore. It was so initially indeed, but then it was re-worked for the sake of optimization. Moreover, Cats has never been released with the original Scala-derived version. cc @DavidGregory084 @johnynek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure attribution of code adapted from Scala standard library
5 participants