[java-inspections] SillyAssignment: warn of assigning array element to itself

IDEA-254504

GitOrigin-RevId: 64c608f339c5c417848d7e82b378acb1d0dd3ac2
This commit is contained in:
Andrey.Cherkasov
2022-04-27 22:48:45 +03:00
committed by intellij-monorepo-bot
parent c904db5eb0
commit 54d96d4525
8 changed files with 66 additions and 96 deletions

View File

@@ -0,0 +1,5 @@
class X {
void a(int[] arr) {
arr[arr.length - 1] = 1;
}
}