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 redundant public and abstract modifiers from interfaces #3560

Merged
merged 2 commits into from
Apr 20, 2023

Conversation

wborn
Copy link
Member

@wborn wborn commented Apr 16, 2023

I wrote a small script to remove redundant public modifiers from the interfaces (#3522 (comment)). WDYT?

Signed-off-by: Wouter Born <github@maindrain.net>
@wborn wborn requested a review from a team as a code owner April 16, 2023 20:10
@@ -30,5 +30,5 @@ public interface TimeBasedConditionHandler extends ConditionHandler {
* @param time The time to check.
* @return <code>true</code> if and only if the given time satisfies this condition.
*/
public abstract boolean isSatisfiedAt(ZonedDateTime time);
abstract boolean isSatisfiedAt(ZonedDateTime time);
Copy link
Member

Choose a reason for hiding this comment

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

Could the abstract keyword be removed as well by the script?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes it worked, though I had to make one manual correction. See the new commit.

Signed-off-by: Wouter Born <github@maindrain.net>
@wborn wborn changed the title Remove redundant public modifiers from interfaces Remove redundant public and abstract modifiers from interfaces Apr 16, 2023
kaikreuzer pushed a commit to openhab/openhab-webui that referenced this pull request Apr 20, 2023
This removes redundant modifiers from the interfaces similar to
openhab/openhab-core#3560.

Signed-off-by: Wouter Born <github@maindrain.net>
Copy link
Member

@J-N-K J-N-K left a comment

Choose a reason for hiding this comment

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

Thanks

@J-N-K J-N-K added the enhancement An enhancement or new feature of the Core label Apr 20, 2023
@J-N-K J-N-K added this to the 4.0 milestone Apr 20, 2023
@J-N-K J-N-K merged commit 3c6d855 into openhab:main Apr 20, 2023
@wborn wborn deleted the interface-public-modifier branch April 20, 2023 21:47
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 12, 2023
…ab#3560)

* Remove redundant public modifiers from interfaces
* Remove redundant abstract modifiers from interfaces

Signed-off-by: Wouter Born <github@maindrain.net>
GitOrigin-RevId: 3c6d855
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants