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

CloseAllHandlerTest cleanup #2446

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akurtakov
Copy link
Member

Use static imports and pattern matching to ease reading.

Use static imports and pattern matching to ease reading.
Copy link
Contributor

Test Results

 1 821 files   1 821 suites   1h 44m 47s ⏱️
 7 714 tests  7 486 ✅ 228 💤 0 ❌
24 303 runs  23 556 ✅ 747 💤 0 ❌

Results for commit 0a7597e.

Comment on lines +144 to 145
assertTrue("Active workbench window not found.", activeWindow instanceof IWorkbenchWindow);
IWorkbenchWindow window = (IWorkbenchWindow) activeWindow;
Copy link
Member

Choose a reason for hiding this comment

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

Probably the following would be possible, but not everyone finds it more readable.

Suggested change
assertTrue("Active workbench window not found.", activeWindow instanceof IWorkbenchWindow);
IWorkbenchWindow window = (IWorkbenchWindow) activeWindow;
assertTrue("Active workbench window not found.", activeWindow instanceof IWorkbenchWindow window);

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