question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove final keyword from all test class declarations

See original GitHub issue

Discussion and consensus: https://github.com/exercism/xjava/issues/373

Marking our test classes as final is (1) more syntax for a learner to parse, and (2) not increasing the clarity of the writer’s intent given the context of an individual problem’s codebase. We should remove it from all test class declarations.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
stkentcommented, May 21, 2017

@morrme thanks for the latest round of removals! 😍

1reaction
FridaTveitcommented, May 19, 2017

Is there some artificial problem structure we could come up with to ‘introduce’ the concept of public? Perhaps exercises that provide helper files (enums, etc.) could place them in a support package within the main package, thereby forcing the use of the public modifier?

@stkent, I think this sounds like a great idea! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - Removing final keyword from an existing method
The final keyword is used to define an entity that can only be assigned once. When used with methods they can not be...
Read more >
final Keyword in Java - GeeksforGeeks
When a method is declared with final keyword, it is called a final method. A final method cannot be overridden. The Object class...
Read more >
Using the final Keyword | Apex Developer Guide
Methods and classes are final by default. You cannot use the final keyword in the declaration of a class or method. This means...
Read more >
The Java final Keyword – Impact on Performance - Baeldung
We can apply the final keyword to the instance or class variables. That way, we ensure that their value assignment can be done...
Read more >
Not recognizing final keyword in class declaration #672 - GitHub
A simpler workaround is just to run swig with -Dfinal= to make final disappear entirely. That shouldn't make any difference to other cases...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found