IJP-1077 Inlay hints: new settings UI

snippets & descriptions updated

GitOrigin-RevId: 111699b4da89302ca27e8ea67de9b9d043b8d4c2
This commit is contained in:
Dmitry Avdeev
2022-02-02 18:35:25 +03:00
committed by intellij-monorepo-bot
parent 6db06ce969
commit eb54bfca5b
3 changed files with 31 additions and 11 deletions

View File

@@ -1,10 +1,16 @@
a.printSomething(switch (i) {
case 1:
yield "Apples";
case 2:
yield "Bananas";
default:
yield "Apples and bananas";
});
class Test {
public static final int i = new Random().nextInt(3);
a.printSomething(Math.random() > 0.5 ? "Apples" : "Bananas");
public static void main(String[] args) {
System.out.println(switch (i) {
case 1:
yield "Apples";
case 2:
yield "Bananas";
default:
yield "Apples and bananas";
});
System.out.println(Math.random() > 0.5 ? "Apples" : "Bananas");
}
}

View File

@@ -1 +1,15 @@
new Duckling("Franklin", Color.YELLOW)
class Test {
public static void main(String[] args) {
new Duckling("Franklin", Color.YELLOW);
}
}
class Duckling {
String name;
Color color;
public Duckling(String name, Color color) {
this.name = name;
this.color = color;
}
}

View File

@@ -1169,7 +1169,7 @@ set.language.level.to.0=Set language level to {0}
settings.completion.ml.java.display.name=Java
settings.inlay.java.annotations=Annotations
settings.inlay.java.builder.like.methods=Builder-like methods
settings.inlay.java.complex.expressions.binary.functional.array.access.and.other=Complex expressions: binary, functional, array access and other
settings.inlay.java.complex.expressions.binary.functional.array.access.and.other=Complex expressions as arguments
settings.inlay.java.enum.constants=Enum constants
settings.inlay.java.external.annotations=External annotations
settings.inlay.java.inferred.annotations=Inferred annotations