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

Remove 'new' keyword when creating instances of case class #1522

Merged
merged 3 commits into from
Sep 11, 2019

Conversation

Zukkari
Copy link
Contributor

@Zukkari Zukkari commented Sep 5, 2019

Remove 'new' keyword when creating instances of 'Circle' class in 'Singleton Objects' section.

Class 'Circle' is defined as case class in given code segment.
Using 'new' keyword is redundant when creating instances of case class
as explained in section 'Case Classes'.

…ngleton Objects' section.

Class 'Circle' is defined as case class in given code segment.
Using 'new' keyword is redundant when creating instances of case class
as explained in section 'Case Classes'.
@Zukkari Zukkari changed the title Remove 'new' keyword when creating instances of 'Circle' class Remove 'new' keyword when creating instances of case class Sep 5, 2019
Mõškovski Stanislav added 2 commits September 11, 2019 08:23
Remove 'new' keyword when creating instances of case class
in 'Lower type bounds' section.
Apply IntelliJ suggestion in 'Inner classes' section to make code
more concise and shorter.
@SethTisue SethTisue merged commit 6e56e06 into scala:master Sep 11, 2019
@SethTisue
Copy link
Member

thank you!

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.

3 participants