Files
openide/java/java-tests/testData/codeInsight/javadoc/snippet/beforeInjectJavaQuotes.java
Anna Kozlova d3f5e85260 [javadoc] [snippet] detect JShell language even if java is explicitly set (IDEA-290710)
java expects top level class but the examples would not contain that boilerplate code

GitOrigin-RevId: 8d047d989de2b836380d1523f98c0bd142b9c9cf
2022-03-18 19:21:26 +00:00

14 lines
262 B
Java

// "JShellLanguage" "true"
/**
* {@snippet<caret> lang = "java" :
* class Main {
* void f(Optional<Object> e) {
* if (v.isPresent()) {
* System.out.println("v: " + v.get());
* }
* }
* }
* }
*/
class InjectJava {}