Skip to content

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

Merged
danicheg merged 1 commit into
typelevel:mainfrom
opencastsoftware:scala-library-attribution
Apr 25, 2022
Merged

Add copyright notices and Scala license for code derived from the standard library#4196
danicheg merged 1 commit into
typelevel:mainfrom
opencastsoftware:scala-library-attribution

Conversation

@DavidGregory084

@DavidGregory084 DavidGregory084 commented Apr 25, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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