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

Correct contract of Window#getShell() #2252

Merged

Conversation

HeikoKlare
Copy link
Contributor

Currently, Window#getShell() only states to return null if the shell has not been created yet. It will, however, also return null if the Window has been closed. The contract of Window#close() only states that the shell will be disposed, but not that #getShell() will return null afterwards as well. This change improves the explicit contract with this information. It has been part of the implicit contract anyway, since it is the behavior ever since the class and method exist.

Copy link
Contributor

github-actions bot commented Sep 7, 2024

Test Results

 1 815 files  ±0   1 815 suites  ±0   1h 37m 31s ⏱️ + 1m 33s
 7 704 tests ±0   7 476 ✅ ±0  228 💤 ±0  0 ❌ ±0 
24 273 runs  ±0  23 526 ✅ ±0  747 💤 ±0  0 ❌ ±0 

Results for commit 391d921. ± Comparison against base commit c777660.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review September 7, 2024 10:17
HeikoKlare and others added 2 commits October 3, 2024 15:40
Currently, Window#getShell() only states to return null if the shell has
not been created yet. It will, however, also return null if the Window
has been closed. The contract of Window#close() only states that the
shell will be disposed, but not that #getShell() will return null
afterwards as well. This change improves the explicit contract with this
information. It has been part of the implicit contract anyway, since it
is the behavior ever since the class and method exist.
@HeikoKlare HeikoKlare merged commit 73b5314 into eclipse-platform:master Oct 3, 2024
17 checks passed
@HeikoKlare HeikoKlare deleted the window-getshell-contract branch October 3, 2024 14:31
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.

1 participant