mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
IDEA-237601 Infer mutation signature from the bytecode
GitOrigin-RevId: d3c47f6a35f948f65f5d447d8561044d7ec9ce23
This commit is contained in:
committed by
intellij-monorepo-bot
parent
097416297a
commit
d17aa59d6d
Binary file not shown.
Binary file not shown.
@@ -12,5 +12,6 @@ import java.lang.annotation.Target;
|
||||
@Target(ElementType.METHOD)
|
||||
public @interface ExpectContract {
|
||||
String value() default "";
|
||||
String mutates() default "";
|
||||
boolean pure() default false;
|
||||
}
|
||||
@@ -163,6 +163,7 @@ public class Test01 {
|
||||
return copy;
|
||||
}
|
||||
|
||||
@ExpectContract(mutates="param1")
|
||||
private static void set(@ExpectNotNull long[] copy) {
|
||||
copy[1] = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user