[java-tests] Mock JDK 21 (downloaded from the repository); remove in-place mocks where possible

Part of IDEA-334171 Store MockJDK in artifact repository, rather than in Git

GitOrigin-RevId: 9c6214e3ead47cc164d20813f5a2b37136607213
This commit is contained in:
Tagir Valeev
2023-10-05 17:32:49 +02:00
committed by intellij-monorepo-bot
parent 2204b08d1c
commit 77d1d0ab2e
35 changed files with 147 additions and 473 deletions

View File

@@ -1,17 +1,4 @@
// "Fix all 'Redundant embedded expression in string template' problems in file" "true"
package java.lang;
import java.util.*;
public interface StringTemplate {
List<String> fragments();
List<Object> values();
native static StringTemplate of(String string);
Processor<String, RuntimeException> STR;
Processor<StringTemplate, RuntimeException> RAW;
interface Processor<R, E extends Throwable> {
R process(StringTemplate stringTemplate) throws E;
}
}
class Test {
public static void main(String[] args) {
System.out.println(STR."hello|null|world");

View File

@@ -1,17 +1,4 @@
// "Fix all 'Redundant embedded expression in string template' problems in file" "true"
package java.lang;
import java.util.*;
public interface StringTemplate {
List<String> fragments();
List<Object> values();
native static StringTemplate of(String string);
Processor<String, RuntimeException> STR;
Processor<StringTemplate, RuntimeException> RAW;
interface Processor<R, E extends Throwable> {
R process(StringTemplate stringTemplate) throws E;
}
}
class Test {
public static void main(String[] args) {
System.out.println(STR."hello|\{ }|world");