Files
Tagir Valeev a35bbc7c9c [java-inspections] Preview feature warning: limit highlighting to method name
Fixes IDEA-362013 Stream.of should not be highlighted because it's not a preview feature


(cherry picked from commit 0818188d2e5ae25916c0433dfe976c808eebf869)

IJ-CR-151174

GitOrigin-RevId: c81154ec031a4da1ef432831628fe93537ce599b
2024-12-13 10:37:17 +00:00

8 lines
223 B
Java

import com.mycom.PreviewFeatureMethod;
class Main {
void test(PreviewFeatureMethod m){
m.<warning descr="com.mycom.PreviewFeatureMethod#f is a preview API and may be removed in a future release">f</warning>();
}
}