Searched refs:ifPresent (Results 1 - 25 of 36) sorted by relevance

12

/openjdk9/jdk/test/java/lang/SecurityManager/
H A DCheckSecurityProvider.java63 .ifPresent(m -> expected.add("com.oracle.security.ucrypto.UcryptoProvider"));
65 .ifPresent(m -> expected.add("sun.security.pkcs11.SunPKCS11"));
70 .ifPresent(m -> expected.add("sun.security.ec.SunEC"));
74 .ifPresent(m -> expected.add("sun.security.jgss.SunProvider"));
76 .ifPresent(m -> expected.add("com.sun.security.sasl.Provider"));
78 .ifPresent(m -> expected.add("org.jcp.xml.dsig.internal.dom.XMLDSigRI"));
80 .ifPresent(m -> expected.add("sun.security.smartcardio.SunPCSC"));
82 .ifPresent(m -> expected.add("sun.security.provider.certpath.ldap.JdkLDAP"));
84 .ifPresent(m -> expected.add("com.sun.security.sasl.gsskerb.JdkSASL"));
87 .ifPresent(
[all...]
H A DCheckPackageAccess.java94 opens.ifPresent(Test::testNonRestricted);
100 qualExports.ifPresent(Test::testRestricted);
103 qualOpens.ifPresent(Test::testRestricted);
106 qualOpensAndExports.ifPresent(Test::testNonRestricted);
/openjdk9/jdk/test/tools/jar/modularJar/src/baz/jdk/test/baz/
H A DBaz.java32 md.mainClass().ifPresent(mc -> System.out.println("mainClass:" + mc));
/openjdk9/jdk/test/java/util/Optional/
H A DBasicDouble.java54 empty.ifPresent(v -> { fail(); });
81 empty.ifPresent(null);
86 present.ifPresent(null);
143 present.ifPresent(v -> presentCheck.set(true));
150 present.ifPresent(v -> { throw new ObscureException(); });
H A DBasicInt.java54 empty.ifPresent(v -> { fail(); });
81 empty.ifPresent(null);
86 present.ifPresent(null);
143 present.ifPresent(v -> presentCheck.set(true));
150 present.ifPresent(v -> { throw new ObscureException(); });
H A DBasicLong.java54 empty.ifPresent(v -> { fail(); });
81 empty.ifPresent(null);
86 present.ifPresent(null);
143 present.ifPresent(v -> presentCheck.set(true));
150 present.ifPresent(v -> { throw new ObscureException(); });
H A DBasic.java59 empty.ifPresent(v -> fail());
89 empty.ifPresent(null);
94 present.ifPresent(null);
152 present.ifPresent(v -> presentCheck.set(true));
159 present.ifPresent(v -> { throw new ObscureException(); });
/openjdk9/jdk/src/java.base/share/classes/java/util/
H A DOptionalLong.java40 * {@link #ifPresent(LongConsumer) ifPresent()} (performs an
153 public void ifPresent(LongConsumer action) { method in class:OptionalLong
H A DOptionalInt.java40 * {@link #ifPresent(IntConsumer) ifPresent()} (performs an
153 public void ifPresent(IntConsumer action) { method in class:OptionalInt
H A DOptionalDouble.java40 * {@link #ifPresent(DoubleConsumer) ifPresent()} (performs
153 public void ifPresent(DoubleConsumer action) { method in class:OptionalDouble
H A DOptional.java41 * {@link #ifPresent(Consumer) ifPresent()} (performs an
173 public void ifPresent(Consumer<? super T> action) { method in class:Optional
/openjdk9/hotspot/test/compiler/jvmci/compilerToVM/
H A DDisassembleCodeBlobTest.java66 testCases.stream().findAny().ifPresent(test::checkZero);
/openjdk9/jaxp/test/javax/xml/jaxp/libs/jaxp/library/
H A DJAXPTestUtilities.java352 policyManager.ifPresent(manager -> manager.setAllowAll(true));
356 policyManager.ifPresent(manager -> manager.setAllowAll(false));
369 policyManager.ifPresent(manager -> manager.setAllowAll(true));
373 policyManager.ifPresent(manager -> manager.setAllowAll(false));
386 policyManager.ifPresent(manager -> manager.setAllowAll(true));
390 policyManager.ifPresent(manager -> manager.setAllowAll(false));
/openjdk9/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/
H A DResourcePoolConfiguration.java67 md.version().ifPresent(builder::version);
68 md.mainClass().ifPresent(builder::mainClass);
/openjdk9/jdk/src/java.base/share/classes/jdk/internal/module/
H A DModuleInfoWriter.java67 md.mainClass().ifPresent(mc -> cw.visitAttribute(new ModuleMainClassAttribute(mc)));
H A DModulePatcher.java166 descriptor.version().ifPresent(builder::version);
167 descriptor.mainClass().ifPresent(builder::mainClass);
/openjdk9/jdk/test/tools/jar/modularJar/src/foo/jdk/test/foo/
H A DFoo.java42 md.mainClass().ifPresent(mc -> System.out.println("mainClass:" + mc));
/openjdk9/jdk/src/java.base/share/classes/java/lang/module/
H A DModuleFinder.java67 * omref.ifPresent(mref -> ... );
400 omref.ifPresent(m -> nameToModule.put(name, m));
/openjdk9/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/
H A DReleaseInfoPlugin.java143 desc.version().ifPresent(v -> release.put("JAVA_VERSION",
/openjdk9/jdk/test/sun/tools/jhsdb/
H A DBasicLauncherTest.java183 unexpectedMessage.ifPresent(output::shouldNotContain);
/openjdk9/jdk/test/tools/jar/modularJar/src/bar/jdk/test/bar/
H A DBar.java47 md.mainClass().ifPresent(mc -> System.out.println("mainClass:" + mc));
/openjdk9/jdk/test/java/lang/module/ModuleReader/
H A DModuleReaderTest.java175 ouri.ifPresent(uri -> {
296 ouri.ifPresent(uri -> {
/openjdk9/langtools/test/tools/javac/lib/combo/
H A DComboTestHelper.java224 initAction.ifPresent(action -> action.accept(x));
360 info.optSetter.ifPresent(setter -> setter.set(x, d));
/openjdk9/jdk/src/java.base/share/classes/sun/launcher/
H A DLauncherHelper.java443 ModuleLayer.boot().findModule("java.instrument").ifPresent(m -> {
497 .ifPresent(m -> {
1010 .ifPresent(any -> ostream.print(" automatic"));
1062 .ifPresent(uri -> ostream.format(" %s", uri));
1161 .ifPresent(uri -> ostream.print(uri + " "));
1215 scanModule(entry).ifPresent(this::process);
1220 scanModule(entry).ifPresent(this::process);
/openjdk9/jdk/src/java.logging/share/classes/java/util/logging/
H A DLevel.java596 .ifPresent((x) -> x.remove(this));
598 .ifPresent((x) -> x.remove(this));

Completed in 117 milliseconds

12