Skip to content

EmitterShape: javadoc improvements #2420

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

Merged
merged 6 commits into from
May 16, 2025

Conversation

capdevon
Copy link
Contributor

@capdevon capdevon commented May 3, 2025

This pull request introduces several enhancements to the EmitterShape class hierarchy to improve code clarity and maintainability. The changes include:

  • Removal of redundant Cloneable extension: The EmitterShape interface extends JmeCloneable, which itself already extends Cloneable. The explicit extension of Cloneable in EmitterShape is therefore redundant and has been removed.

  • Improved Javadoc documentation: Comprehensive Javadoc documentation has been added to the EmitterPointShape, EmitterSphereShape, and EmitterBoxShape classes, including field and method descriptions, to improve class understanding and usability.

capdevon added 6 commits May 3, 2025 20:40
The interface code has been updated with two key changes for conciseness and adherence to Java conventions. 

1. The explicit public keyword has been removed from the interface methods, as interface methods are implicitly public by default. 

2. The EmitterShape interface no longer explicitly extends Cloneable. This is because the JmeCloneable interface, which EmitterShape already extends, itself extends Cloneable, thus making the direct extension redundant
@yaRnMcDonuts yaRnMcDonuts added this to the v3.9.0 milestone May 6, 2025
@yaRnMcDonuts yaRnMcDonuts merged commit 1327f1e into jMonkeyEngine:master May 16, 2025
15 checks passed
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.

2 participants