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 property setters #8929

Merged

Conversation

drewnoakes
Copy link
Member

Proposed changes

Remove redundant property setters. Read only properties have the stronger guarantee that their value will not change over time, making reasoning about the containing type's behaviour easier.

Test methodology

  • Manual review. Couldn't find any late binding to these properties. CI will run tests.

✒️ I contribute this code under The Developer Certificate of Origin.

Read only properties have the stronger guarantee that their value will not change over time, making reasoning about the containing type's behaviour easier.
@ghost ghost assigned drewnoakes Mar 5, 2021
@codecov
Copy link

codecov bot commented Mar 5, 2021

Codecov Report

Merging #8929 (db53420) into master (273a0f6) will increase coverage by 0.01%.
The diff coverage is 58.97%.

@@            Coverage Diff             @@
##           master    #8929      +/-   ##
==========================================
+ Coverage   56.05%   56.07%   +0.01%     
==========================================
  Files         925      925              
  Lines       65913    65913              
  Branches    12095    12095              
==========================================
+ Hits        36948    36958      +10     
+ Misses      25949    25941       -8     
+ Partials     3016     3014       -2     
Flag Coverage Δ
production 43.31% <56.75%> (+0.01%) ⬆️
tests 94.83% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Member

@RussKie RussKie left a comment

Choose a reason for hiding this comment

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

Looks sensible from ☎️

@RussKie RussKie merged commit d3ef692 into gitextensions:master Mar 5, 2021
@ghost ghost added this to the 3.6 milestone Mar 5, 2021
@drewnoakes drewnoakes deleted the remove-redundant-property-setters branch March 5, 2021 21:44
@thimmy687
Copy link
Contributor

Hi,

this change breaks the Gerrit Plugin again :/

But I'm not totally sure if we can replace or remove it in the plugin, so maybe I can get a hint for this

-> PR 29

thimmy687 added a commit to thimmy687/GitExtensions.GerritPlugin that referenced this pull request Mar 21, 2021
https: //github.com/gitextensions/gitextensions/pull/8929
Change-Id: I56b620441afc4db9ab1010ee49ca0bd36ba18226
thimmy687 added a commit to thimmy687/GitExtensions.GerritPlugin that referenced this pull request Mar 21, 2021
https: //github.com/gitextensions/gitextensions/pull/8929
Change-Id: I6133f86eb0b6305b87c0a30a386a157e2069d422
@drewnoakes
Copy link
Member Author

@thimmy687 can you open a new issue with the stack trace of the failure? We may be able to preserve the old behaviour.

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.

None yet

3 participants