- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testSampleCodeFine1 (0.08 sec)
-
guava-tests/test/com/google/common/base/OptionalTest.java
Optional<? extends Number> first = numbers.first(); // Number value = first.or(0.5); // error } @SuppressWarnings("unused") // compilation test public void testSampleCodeFine1() { Optional<Number> optionalInt = Optional.of((Number) 1); Number value = optionalInt.or(0.5); // fine } @SuppressWarnings("unused") // compilation test public void testSampleCodeFine2() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 10.5K bytes - Viewed (0)