/openjdk9/jdk/test/java/util/concurrent/atomic/ |
H A D | AtomicReferenceTest.java | 41 AtomicReference<Integer> instance = new AtomicReference<>(3); 42 assertEquals((int) instance.get(), 3); 43 assertEquals((int) instance.updateAndGet(x -> x + 2), 5); 44 assertEquals((int) instance.get(), 5); 52 AtomicReference<Integer> instance = new AtomicReference<>(3); 53 assertEquals((int) instance.get(), 3); 54 assertEquals((int) instance.getAndUpdate(x -> x + 3), 3); 55 assertEquals((int) instance.get(), 6);
|
/openjdk9/jdk/src/java.desktop/share/classes/sun/java2d/ |
H A D | SurfaceManagerFactory.java | 43 * The single shared instance. 45 private static SurfaceManagerFactory instance; field in class:SurfaceManagerFactory 48 * Returns the surface manager factory instance. This returns a factory 55 if (instance == null) { 58 return instance; 75 if (instance != null) { 76 // We don't want to re-set the instance at any time. 80 instance = factory; 84 * Creates a new instance of a VolatileSurfaceManager given any
|
/openjdk9/jdk/test/java/lang/instrument/ |
H A D | AppendToBootstrapClassPathTest.java | 62 Object instance = loadExampleClass(); 63 assertTrue(instance.getClass().getClassLoader() == null); 67 ExampleForBootClassPath instance = new ExampleForBootClassPath(); 68 assertTrue(instance.fifteen() == 15); 69 return instance;
|
H A D | ManifestTestApp.java | 35 Object instance = loadExampleClass(); 36 if (instance.getClass().getClassLoader() == null) { 55 ExampleForBootClassPath instance = new ExampleForBootClassPath(); 57 if (instance.fifteen() == 15) { 63 System.out.println("FAIL: instance.fifteen()=" + 64 instance.fifteen()); 67 return instance;
|
/openjdk9/jdk/src/java.desktop/share/classes/com/sun/media/sound/ |
H A D | ModelIdentifier.java | 90 private int instance = 0; field in class:ModelIdentifier 96 public ModelIdentifier(String object, int instance) { argument 98 this.instance = instance; 107 public ModelIdentifier(String object, String variable, int instance) { argument 110 this.instance = instance; 115 return instance; 118 public void setInstance(int instance) { argument 119 this.instance [all...] |
H A D | SoftControl.java | 36 double[] get(int instance, String name); argument
|
/openjdk9/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/fastinfoset/ |
H A D | CommonResourceBundle.java | 38 private static volatile CommonResourceBundle instance = null; field in class:CommonResourceBundle 53 if (instance == null) { 55 instance = new CommonResourceBundle(); 63 return instance; 67 if (instance == null) { 69 instance = new CommonResourceBundle(locale); 74 instance = new CommonResourceBundle(locale); 78 return instance;
|
/openjdk9/jdk/src/jdk.internal.jvmstat/share/classes/sun/jvmstat/perfdata/monitor/protocol/local/ |
H A D | LocalEventTimer.java | 42 private static LocalEventTimer instance; // singleton instance field in class:LocalEventTimer 45 * Creates the singleton LocalEventTimer instance. 52 * Get the singleton LocalEventTimer instance 54 * @return LocalEventTimer - the singleton LocalEventTimer instance 57 if (instance == null) { 58 instance = new LocalEventTimer(); 60 return instance;
|
/openjdk9/jdk/src/java.base/share/classes/java/lang/ |
H A D | CharacterData.java | 78 return CharacterDataLatin1.instance; 82 return CharacterData00.instance; 84 return CharacterData01.instance; 86 return CharacterData02.instance; 88 return CharacterData0E.instance; 91 return CharacterDataPrivateUse.instance; 93 return CharacterDataUndefined.instance;
|
/openjdk9/jdk/test/com/sun/crypto/provider/Cipher/UTIL/ |
H A D | TestUtil.java | 30 private static TestUtil instance = null; field in class:TestUtil 33 instance = new TestUtil(); 48 if (instance == null) { 60 return instance.isUnlimited; 66 if (instance == null) { 67 instance = new TestUtil(); 69 if ((instance.isUnlimited) ||
|
/openjdk9/nashorn/test/script/basic/ |
H A D | typedarrays.js | 72 //push the instances, they will be reused to do instance based construction 83 // build new instances with TypeArray instance as parameter. 92 all.forEach(function(instance) { 93 // cover instance props and functions 94 var arr = Object.getOwnPropertyNames(instance); 96 var val = instance[p]; 102 instance.set(instance, 0); 103 instance.set(instance); [all...] |
/openjdk9/jdk/test/java/security/SecureRandom/ |
H A D | DefaultProvider.java | 57 SecureRandom instance = SecureRandom.getInstance(algorithm); 58 assertInstance(instance, algorithm, provider); 72 instance = SecureRandom.getInstance(algorithm); 73 assertInstance(instance, algorithm, provider); 77 private static void assertInstance(SecureRandom instance, argument 80 if (instance != null) { 81 if (!expectedAlgorithm.equalsIgnoreCase(instance.getAlgorithm())) { 83 + expectedAlgorithm + " actual: " + instance.getAlgorithm()); 86 if (!expectedProvider.equalsIgnoreCase(instance.getProvider().getName())) { 89 + instance [all...] |
/openjdk9/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/ |
H A D | ParserFactory.java | 51 public static ParserFactory instance(Context context) { method in class:ParserFactory 52 ParserFactory instance = context.get(parserFactoryKey); 53 if (instance == null) { 54 instance = new ParserFactory(context); 56 return instance; 72 this.F = TreeMaker.instance(context); 73 this.docTreeMaker = DocTreeMaker.instance(context); 74 this.log = Log.instance(context); 75 this.names = Names.instance(context); 76 this.tokens = Tokens.instance(contex [all...] |
H A D | ScannerFactory.java | 48 /** Get the Factory instance for this context. */ 49 public static ScannerFactory instance(Context context) { method in class:ScannerFactory 50 ScannerFactory instance = context.get(scannerFactoryKey); 51 if (instance == null) 52 instance = new ScannerFactory(context); 53 return instance; 64 this.log = Log.instance(context); 65 this.names = Names.instance(context); 66 this.source = Source.instance(context); 67 this.tokens = Tokens.instance(contex [all...] |
/openjdk9/jdk/test/java/util/Collections/ |
H A D | SyncSubMutexes.java | 44 public void testCollections(Collection<String> instance) { argument 49 public void testLists(List<String> instance) { argument 50 assertSame(getSyncCollectionMutex(instance.subList(0, 1)), getSyncCollectionMutex(instance)); 54 public void testSets(Set<String> instance) { argument 60 public void testSortedSets(SortedSet<String> instance) { argument 61 assertSame(getSyncCollectionMutex(instance.headSet("Echo")), getSyncCollectionMutex(instance)); 62 assertSame(getSyncCollectionMutex(instance.tailSet("Charlie")), getSyncCollectionMutex(instance)); 68 testNavigableSets(NavigableSet<String> instance) argument 79 testMaps(Map<String, String> instance) argument 86 testSortedMaps(SortedMap<String, String> instance) argument 96 testNavigableMaps(NavigableMap<String, String> instance) argument [all...] |
/openjdk9/hotspot/test/compiler/c2/ |
H A D | TestNPEHeapBased.java | 39 TestNPEHeapBased instance = null; field in class:TestNPEHeapBased 43 instance.i = value; 51 xyz.instance = xyz; 53 xyz.instance = null;
|
/openjdk9/jdk/test/java/awt/Mixing/AWT_Mixing/ |
H A D | OpaqueOverlappingChoice.java | 51 instance = new OpaqueOverlappingChoice();
|
/openjdk9/jdk/src/java.desktop/share/classes/com/sun/imageio/plugins/wbmp/ |
H A D | WBMPMetadataFormat.java | 35 private static IIOMetadataFormat instance = null; field in class:WBMPMetadataFormat 65 if (instance == null) { 66 instance = new WBMPMetadataFormat(); 68 return instance;
|
/openjdk9/jdk/src/java.desktop/share/classes/java/awt/ |
H A D | GraphicsCallback.java | 35 private static PaintCallback instance = new PaintCallback(); field in class:GraphicsCallback.PaintCallback 42 return instance; 46 private static PrintCallback instance = new PrintCallback(); field in class:GraphicsCallback.PrintCallback 53 return instance; 57 private static PaintAllCallback instance = new PaintAllCallback(); field in class:GraphicsCallback.PaintAllCallback 64 return instance; 68 private static PrintAllCallback instance = new PrintAllCallback(); field in class:GraphicsCallback.PrintAllCallback 75 return instance; 79 private static PeerPaintCallback instance = new PeerPaintCallback(); field in class:GraphicsCallback.PeerPaintCallback 91 return instance; 95 private static PeerPrintCallback instance = new PeerPrintCallback(); field in class:GraphicsCallback.PeerPrintCallback 113 private static PaintHeavyweightComponentsCallback instance = field in class:GraphicsCallback.PaintHeavyweightComponentsCallback 131 private static PrintHeavyweightComponentsCallback instance = field in class:GraphicsCallback.PrintHeavyweightComponentsCallback [all...] |
/openjdk9/jdk/test/javax/imageio/plugins/external_plugin_tests/src/simp/ |
H A D | SIMPMetadataFormat.java | 33 private static IIOMetadataFormat instance = null; field in class:SIMPMetadataFormat 36 if (instance == null) { 37 instance = new SIMPMetadataFormat(); 39 return instance;
|
/openjdk9/jdk/src/java.base/share/classes/sun/security/jca/ |
H A D | JCAUtil.java | 57 // cached SecureRandom instance 59 public static SecureRandom instance = new SecureRandom(); field in class:JCAUtil.CachedSecureRandomHolder 63 * Get a SecureRandom instance. This method should be used by JDK 69 return CachedSecureRandomHolder.instance;
|
/openjdk9/jdk/src/java.desktop/share/classes/sun/awt/ |
H A D | DesktopBrowse.java | 33 public static void setInstance(DesktopBrowse instance) { argument 35 throw new IllegalStateException("DesktopBrowse instance has already been set."); 37 mInstance = instance;
|
/openjdk9/langtools/test/tools/javac/unicode/ |
H A D | SupplementaryJavaID6.java | 40 \ud801\udc00 instance = new \ud801\udc00(); 41 instance.\ud801\udc01();
|
/openjdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/jdk/ |
H A D | Unsafe_compareAndSwap.java | 51 return instance.value; 56 private static final Unsafe_compareAndSwap instance = new Unsafe_compareAndSwap(); field in class:Unsafe_compareAndSwap 60 instance.value = "a"; 65 runTest("test", instance, instance, "a", "b");
|
/openjdk9/jdk/src/java.desktop/share/classes/sun/font/ |
H A D | FontManagerFactory.java | 39 * Factory class used to retrieve a valid FontManager instance for the current 49 /** Our singleton instance. */ 50 private static FontManager instance = null; field in class:FontManagerFactory 66 * @return a valid FontManager instance for the current platform 70 if (instance != null) { 71 return instance; 83 instance = 93 return instance;
|