Commit bcd1e38
committed
Correct contract of Window#getShell()
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.1 parent c777660 commit bcd1e38
File tree
1 file changed
+2
-2
lines changed- bundles/org.eclipse.jface/src/org/eclipse/jface/window
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
658 | | - | |
659 | | - | |
| 658 | + | |
| 659 | + | |
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
| |||
0 commit comments