Searched refs:it (Results 1 - 25 of 381) sorted by relevance

1234567891011>>

/openjdk9/jdk/test/java/util/PriorityQueue/
H A DForgetMeNot.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
42 private static void noMoreElements(final Iterator<Integer> it) { argument
44 THROWS(NoSuchElementException.class, () -> it.next());
45 check(! it.hasNext());
49 private static void removeIsCurrentlyIllegal(final Iterator<Integer> it) { argument
51 THROWS(IllegalStateException.class, () -> it.remove());
55 private static void remove(Iterator<Integer> it, argument
58 it
[all...]
/openjdk9/jdk/src/java.base/share/classes/java/util/
H A DAbstractCollection.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
101 Iterator<E> it = iterator();
103 while (it.hasNext())
104 if (it.next()==null)
107 while (it.hasNext())
108 if (o.equals(it.next()))
140 Iterator<E> it = iterator();
142 if (! it
225 finishToArray(T[] r, Iterator<?> it) argument
[all...]
/openjdk9/jdk/test/java/util/Collections/
H A DSingletonIterator.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
42 static void assertIteratorExhausted(Iterator<?> it) { argument
43 assertFalse(it.hasNext());
45 it.next();
48 it.forEachRemaining(e -> { throw new AssertionError("action called incorrectly"); });
52 Iterator<String> it = Collections.singleton("TheOne").iterator();
55 it.forEachRemaining(s -> {
61 assertIteratorExhausted(it);
[all...]
/openjdk9/jdk/test/java/util/Deque/
H A DChorusLine.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
53 Iterator<Integer> it = deq.descendingIterator();
54 equal(it.next(), 8);
55 it.remove();
57 try {it.remove();}
62 it = deq.descendingIterator();
63 equal(it.next(), 9);
64 equal(it
[all...]
/openjdk9/hotspot/test/compiler/c2/
H A DTest7020614.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
42 for (int it = 0; it < ITERATIONS; ++it) {
/openjdk9/jdk/test/javax/imageio/
H A DGetReaderWriterInfo.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
42 Iterator<ImageReader> it = ImageIO.getImageReadersByFormatName(n);
43 if (!it.hasNext()) {
53 Iterator<ImageReader> it = ImageIO.getImageReadersByMIMEType(t);
54 if (!it.hasNext()) {
64 Iterator<ImageReader> it = ImageIO.getImageReadersBySuffix(s);
65 if (!it.hasNext()) {
75 Iterator<ImageWriter> it
[all...]
/openjdk9/hotspot/src/share/vm/gc/g1/
H A Dg1SurvivorRegions.cpp5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
43 for (GrowableArrayIterator<HeapRegion*> it = _regions->begin();
44 it != _regions->end();
45 ++it) {
46 HeapRegion* hr = *it;
/openjdk9/test/fmw/gtest/src/
H A Dgtest-typed-test.cc71 for (DefinedTestIter it = defined_test_names_.begin();
72 it != defined_test_names_.end();
73 ++it) {
74 if (name == *it) {
88 for (DefinedTestIter it = defined_test_names_.begin();
89 it != defined_test_names_.end();
90 ++it) {
91 if (tests.count(*it) == 0) {
92 errors << "You forgot to list test " << *it << ".\n"; local
/openjdk9/jdk/test/java/util/concurrent/ArrayBlockingQueue/
H A DWhiteBox.java4 * This code is free software; you can redistribute it and/or modify it
8 * This code is distributed in the hope that it will be useful, but WITHOUT
99 boolean isDetached(Iterator it) { argument
100 return prevTakeIndex(it) < 0;
103 void assertIteratorExhausted(Iterator it) { argument
105 assertTrue(!it.hasNext());
106 assertTrue(isDetached(it));
109 it.forEachRemaining(e -> { throw new AssertionError(); });
110 assertTrue(isDetached(it));
142 assertRemoveThrowsISE(Iterator it) argument
148 assertRemoveHasNoEffect(Iterator it, Collection c) argument
[all...]
/openjdk9/jdk/test/java/util/Vector/
H A DComodifiedRemoveAllElements.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
38 Iterator it = v.iterator();
41 it.next();
/openjdk9/jdk/src/jdk.jdi/share/classes/com/sun/tools/example/debug/tty/
H A DThreadIterator.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
43 Iterator<ThreadReference> it = null; field in class:ThreadIterator
60 while (it == null || !it.hasNext()) {
64 it = tgi.nextThreadGroup().threads().iterator();
71 return it.next();
/openjdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.phases/src/org/graalvm/compiler/phases/
H A DPhaseSuite.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
98 ListIterator<BasePhase<? super C>> it = phases.listIterator();
99 if (findNextPhase(it, phaseClass, recursive)) {
100 return it;
106 public static <C> boolean findNextPhase(ListIterator<BasePhase<? super C>> it, Class<? extends BasePhase<? super C>> phaseClass) { argument
107 return findNextPhase(it, phaseClass, false);
110 public static <C> boolean findNextPhase(ListIterator<BasePhase<? super C>> it, Class<? extends BasePhase<? super C>> phaseClass, boolean recursive) { argument
111 while (it
[all...]
/openjdk9/jdk/test/java/util/List/
H A DLockStep.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
91 Iterator it = list.iterator();
93 it.next();}},
95 Iterator it = asSubList(list).iterator();
97 it.next();}},
99 Iterator it = asSubList(asSubList(list)).iterator();
101 it.next();}},
211 ListIterator it
[all...]
H A DSubList.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
216 Iterator<Integer> it = subList.iterator();
218 assertTrue(it.hasNext());
219 assertEquals(list.get(i), it.next());
221 assertFalse(it.hasNext());
228 Iterator<Integer> it = subList.iterator();
230 it.next();
236 Iterator<Integer> it
[all...]
/openjdk9/jdk/src/java.base/share/native/libjli/
H A Dwildcard.c5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
132 // since this is used repeatedly we keep it here.
137 WildcardIterator it = NEW_(WildcardIterator); local
140 JLI_MemFree(it);
143 it->handle = handle;
144 it->firstFile = find_data.cFileName;
145 return it;
149 WildcardIterator_next(WildcardIterator it) argument
161 WildcardIterator_close(WildcardIterator it) argument
192 WildcardIterator it = NEW_(WildcardIterator); local
199 WildcardIterator_next(WildcardIterator it) argument
206 WildcardIterator_close(WildcardIterator it) argument
250 WildcardIterator it = WildcardIterator_for(wildcard); local
[all...]
/openjdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/phases/
H A DLIRPhaseSuite.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
57 ListIterator<LIRPhase<C>> it = phases.listIterator();
58 if (findNextPhase(it, phaseClass)) {
59 return it;
66 ListIterator<LIRPhase<C>> it = phases.listIterator();
67 while (it.hasNext()) {
68 LIRPhase<C> phase = it.next();
76 public static <C> boolean findNextPhase(ListIterator<LIRPhase<C>> it, Clas argument
[all...]
H A DGenericContext.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
61 ListIterator<Object> it = context.listIterator();
62 while (it.hasNext()) {
63 Object e = it.next();
66 it.remove();
/openjdk9/jdk/test/java/util/concurrent/DelayQueue/
H A DIterate.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
46 Iterator<Godot> it = q.iterator();
48 check(it.hasNext());
49 equal(it.next(), godots[0]);
50 it.remove();
54 it = q.iterator();
55 check(it.hasNext());
56 it
[all...]
/openjdk9/jdk/test/java/util/concurrent/ConcurrentQueues/
H A DIteratorWeakConsistency.java4 * This code is free software; you can redistribute it and/or modify it
8 * This code is distributed in the hope that it will be useful, but WITHOUT
71 void checkExhausted(Iterator it) { argument
73 check(!it.hasNext());
76 it.forEachRemaining(e -> { throw new AssertionError(); });
79 try { it.next(); fail("should throw"); }
83 void checkRemoveThrowsISE(Iterator it) { argument
85 try { it.remove(); fail("should throw"); }
90 void checkRemoveHasNoEffect(Iterator it, Collectio argument
[all...]
/openjdk9/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/util/
H A DWhich.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
47 * @return the source location of the resource, or null if it wasn't found
57 URL it = loader.getResource(classnameAsResource);
58 if (it != null) {
59 return it.toString();
/openjdk9/jdk/test/java/util/zip/
H A DReadLoc.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
41 for (Iterator it = entries.iterator(); it.hasNext();) {
42 ZipEntry zipEntry = (ZipEntry)it.next();
/openjdk9/langtools/test/tools/javac/lambda/
H A DLambdaInnerTypeVarSerialize.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
49 abstract Object it(); method in class:LambdaInnerTypeVarSerialize.C
61 Object it() { return xxxxx; };
67 assertTrue(new TV().go().it().equals("Frump"));
/openjdk9/nashorn/test/src/jdk/nashorn/test/models/
H A DJDK_8081015_TestModel.java5 * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
66 final Iterator<Object> it = c.iterator();
67 assertEquals(it.next(), 1);
68 assertEquals(it.next(), 2);
69 assertEquals(it.next(), 3.3);
70 assertEquals(it.next(), "foo");
71 assertFalse(it.hasNext());
/openjdk9/jdk/test/java/util/WeakHashMap/
H A DGCDuringIteration.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
98 void checkIterator(final Iterator<Map.Entry<Foo, Integer>> it, int first) { argument
100 if (rnd.nextBoolean()) check(it.hasNext());
101 equal(it.next().getValue(), i);
105 it.next();
111 check(! it.hasNext());
135 final Iterator<Map.Entry<Foo,Integer>> it = map.entrySet().iterator();
138 checkIterator(it, firs
[all...]
/openjdk9/hotspot/make/src/classes/build/tools/projectcreator/
H A DWinGammaPlatform.java5 * This code is free software; you can redistribute it and/or modify it
9 * This code is distributed in the hope that it will be useful, but WITHOUT
40 boolean nextNotKey(ArgIterator it) { argument
41 if (it.next()) {
42 String s = it.get();
86 public void handle(ArgIterator it) { argument
87 String cfg = getCfg(it.get());
88 if (nextNotKey(it)) {
89 String val = it
[all...]

Completed in 209 milliseconds

1234567891011>>