Skip to content

Conversation

jlahoda
Copy link
Contributor

@jlahoda jlahoda commented Aug 3, 2020

No description provided.

@jlahoda jlahoda added the Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) label Aug 3, 2020
private void breakTo(Tree target) {
resumeAfter(target, variable2State);

variable2State = new HashMap< Element, State>();

Choose a reason for hiding this comment

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

Jackpot:
warning: Redundant type arguments in new expression (use diamond operator instead).

Boolean result = super.scan(tree, p);
Boolean result;

if (tree != null) {
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it be beneficial to build the visitSwitchExpression and visitYield into baseclasses ?

@lkishalmi lkishalmi added this to the 12.2 milestone Oct 9, 2020
@lkishalmi
Copy link
Contributor

@jlahoda @sdedic what is the state of this PR? Can it go in?

@lkishalmi lkishalmi changed the base branch from master to delivery October 16, 2020 02:53
Copy link
Contributor

@lkishalmi lkishalmi left a comment

Choose a reason for hiding this comment

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

Well skimming through the source code I found nothing that would cry for explanation.

@lkishalmi lkishalmi merged commit b6b73e7 into apache:delivery Oct 22, 2020
lkishalmi pushed a commit that referenced this pull request Oct 23, 2020
…nt. (#2293)

* Handling of switch expressions and rule cases in Flow and NPECheck hint.

* Using a correct overload if TreeScanner.scan

* Fixing FlowTest on JDK 8.

* Attempting to improve stability of HideFieldByVarTest.

* Using a diamond instead of explicit type parameters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants