-
Notifications
You must be signed in to change notification settings - Fork 702
SONARJAVA-4368 Support of Java 19 #4218
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
Closed
Closed
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
9b60268
SONARJAVA-4368 Wip upgrade of ECJ to 3.31.0
dorian-burihabwa-sonarsource 9f368e0
SONARJAVA-4368 Restore old guarded pattern syntax in SE test
dorian-burihabwa-sonarsource 11c9361
SONARJAVA-4368 Remove TODO comments
dorian-burihabwa-sonarsource 61dc5d0
SONARJAVA-4368 setup local libraries to temporariy store eclipse snap…
Wohops f16a1dd
SONARJAVA-4368 add eclipse.jdt.core
Wohops 5c5f586
SONARJAVA-4368 add all missing poms with version 4.26.0-SNAPSHOT
Wohops 8c6210b
SONARJAVA-4368 drop useless files
Wohops cd17163
SONARJAVA-4368 drop more useless files
Wohops b2f8734
Replace '&&' usage by 'when'
chrislain-razafimahefa-sonarsource 9128774
SONARJAVA-4368 WIP add recordpattern type to public API
dorian-burihabwa-sonarsource e732ff7
Start adding RecordPattern
chrislain-razafimahefa-sonarsource a308248
[NOT WORKING] Add test
chrislain-razafimahefa-sonarsource d2c356a
SONARJAVA-4368 Drop again more useless files
Wohops 316e14f
SONARJAVA-4368 Fixes from review
dorian-burihabwa-sonarsource fb202f3
SONARJAVA-4368 Fixes from review 2: electric boogaloo
dorian-burihabwa-sonarsource f4f4a28
Add annotations
Wohops 9998e2f
SONARJAVA-4368 Workaround CFG and SE to support patterns
Wohops eb49b00
SONARJAVA-4368 Fix UnusedLocalVariableCheck
Wohops cabe978
SONARJAVA-4368 Fix QuickFixHelper
Wohops 50a0818
SONARJAVA-4368 Fix unit tests
Wohops a58f9cd
SONARJAVA-4368 Fix coverage
Wohops 09314c8
SONARJAVA-4368 Drop local repository and rely on released artifact
Wohops ca4bf64
SONARJAVA-4368 Document public API changes
dorian-burihabwa-sonarsource 6192e21
SONARJAVA-4368 Fix broken sentence in new API documentation
dorian-burihabwa-sonarsource ad7c2fb
Fix dependencies and comments
Wohops edc7a60
Fix typo in documentation
Wohops 11aa3a2
Fix inconsistency in java versions handling
Wohops b7f1b27
Fix documentation
Wohops 1a94f0a
Fix SanityCheck
Wohops File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...es/src/main/java/symbolicexecution/checks/ConditionAlwaysTrueOrFalseCheckWithPattern.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package symbolicexecution.checks; | ||
|
||
public class ConditionAlwaysTrueOrFalseCheckWithPattern { | ||
|
||
public void instanceOfPatternMathing() { | ||
Object object = new Object(); | ||
// Java 16 pattern matching instance of | ||
if (object instanceof String s) { // Compliant | ||
} else if (object instanceof Integer i) { // Compliant | ||
} | ||
|
||
if (object instanceof String str) { | ||
// str inherits the contraints from objects | ||
if (str == null) { // Noncompliant {{Change this condition so that it does not always evaluate to "false"}} | ||
} | ||
} | ||
} | ||
|
||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.