Searched refs:optionalInt (Results 1 – 2 of 2) sorted by relevance
266 Optional<Integer> optionalInt = getSomeOptionalInt(); in testSampleCodeError1() local279 Optional<Number> optionalInt = Optional.of((Number) 1); in testSampleCodeFine1() local280 Number value = optionalInt.or(0.5); // fine in testSampleCodeFine1()
269 Optional<Integer> optionalInt = getSomeOptionalInt(); in testSampleCodeError1() local282 Optional<Number> optionalInt = Optional.of((Number) 1); in testSampleCodeFine1() local283 Number value = optionalInt.or(0.5); // fine in testSampleCodeFine1()