mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-analysis] Do not mark parameter as UNMODIFIABLE_VIEW if the method mutability is inferred
Fixes false-positive in RedundantUnmodifiableInspection GitOrigin-RevId: 82cd0651ea87f62066a8a299ba3d5b572d617ab0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
921299cff4
commit
5495f1f9ea
+10
@@ -0,0 +1,10 @@
|
||||
// "Fix all 'Redundant usage of unmodifiable collection wrappers' problems in file" "false"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
class Main {
|
||||
|
||||
static List<String> test(List<String> list) {
|
||||
return Collections.<caret>unmodifiableList(list);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user