- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 277 for unused (0.32 sec)
-
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
private static class VisibilityMethods { @SuppressWarnings("unused") // Called by reflection private void privateMethod() {} @SuppressWarnings("unused") // Called by reflection void packagePrivateMethod() {} @SuppressWarnings("unused") // Called by reflection protected void protectedMethod() {} @SuppressWarnings("unused") // Called by reflection public void publicMethod() {} }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 47.7K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
// ignored by testEquals() GoodEquals(@SuppressWarnings("unused") NotInstantiable x) { this.a = "x"; this.b = -1; } // will keep trying public GoodEquals(@SuppressWarnings("unused") NotInstantiable x, int b) { this.a = "x"; this.b = b; } // keep trying @SuppressWarnings("unused") static GoodEquals create(int a, int b) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 36.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java
assertThrows( IllegalStateException.class, () -> { FluentFuture<Closeable> unused = closingFuture.finishToFuture(); }); } public void testFinishToFuture_preventsFurtherDerivation() { ClosingFuture<String> closingFuture = ClosingFuture.from(immediateFuture("value1")); FluentFuture<String> unused = closingFuture.finishToFuture(); assertDerivingThrowsIllegalStateException(closingFuture); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 3.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
} public void testCallableStartsAfterFirstFutureCompletes() { @SuppressWarnings({"unused", "nullness"}) Future<?> possiblyIgnoredError = serializer.submitAsync(firstCallable, directExecutor()); TestCallable secondCallable = new TestCallable(Futures.<Void>immediateFuture(null)); @SuppressWarnings({"unused", "nullness"}) Future<?> possiblyIgnoredError1 = serializer.submitAsync(secondCallable, directExecutor());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 16.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
sink.putByte((byte) 7); sink.putBytes(new byte[] {}); sink.putBytes(new byte[] {8}); HashCode unused = sink.hash(); sink.assertInvariants(8); sink.assertBytes(expected); } public void testShort() { Sink sink = new Sink(4); sink.putShort((short) 0x0201); HashCode unused = sink.hash(); sink.assertInvariants(2); sink.assertBytes(new byte[] {1, 2, 0, 0}); // padded with zeros }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 8.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/InvokableTest.java
assertEquals(TypeToken.of(String.class), invokable.getOwnerType()); } private static final class FinalClass { @SuppressWarnings("unused") // used by reflection void notFinalMethod() {} } public void testNonFinalMethodInFinalClass_isOverridable() throws Exception {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 30.8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java
* * How this works is best explained with an example: * * For a RateLimiter that produces 1 token per second, every second that goes by with the * RateLimiter being unused, we increase storedPermits by 1. Say we leave the RateLimiter unused * for 10 seconds (i.e., we expected a request at time X, but we are at time X + 10 seconds before * a request actually arrives; this is also related to the point made in the last paragraph), thus
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 19.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java
public void testCompareAndSet() { double prev = Math.E; double unused = Math.E + Math.PI; AtomicDouble at = new AtomicDouble(prev); for (double x : VALUES) { assertBitEquals(prev, at.get()); assertFalse(at.compareAndSet(unused, x)); assertBitEquals(prev, at.get()); assertTrue(at.compareAndSet(prev, x)); assertBitEquals(x, at.get());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jun 10 19:21:11 UTC 2024 - 6.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypesTest.java
} private static class WithWildcardType { @SuppressWarnings("unused") void withoutBound(List<?> list) {} @SuppressWarnings("unused") void withObjectBound(List<? extends Object> list) {} @SuppressWarnings("unused") void withUpperBound(List<? extends int[][]> list) {} @SuppressWarnings("unused") void withLowerBound(List<? super String[][]> list) {}
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 14.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ParameterTest.java
for (Parameter param : Invokable.from(method).getParameters()) { tester.addEqualityGroup(param); } } tester.testEquals(); } @SuppressWarnings("unused") private void someMethod(int i, int j) {} @SuppressWarnings("unused") private void anotherMethod(int i, String s) {}
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Apr 06 02:06:03 UTC 2023 - 2K bytes - Viewed (0)