Home
last modified time | relevance | path

Searched refs:requireNonNull (Results 1 – 25 of 58) sorted by relevance

123

/external/desugar/test/java/com/google/devtools/build/android/desugar/testdata/
DClassCallingRequireNonNull.java31 return toInt(() -> Objects.requireNonNull(s).length()); in getStringLengthWithLambdaAndExplicitCallToRequireNonNull()
35 Objects.requireNonNull(string); in getFirstCharVersionOne()
40 string = Objects.requireNonNull(string); in getFirstCharVersionTwo()
45 string = Objects.requireNonNull(string, "the string should not be null"); in callRequireNonNullWithArgumentString()
50 string = Objects.requireNonNull(string, () -> "the string should not be null"); in callRequireNonNullWithArgumentSupplier()
/external/okhttp/repackaged/android/src/main/java/com/android/okhttp/internalandroidapi/
DHttpURLConnectionFactory.java78 Objects.requireNonNull(dns); in setDns()
98 Objects.requireNonNull(proxy); in openConnection()
109 Objects.requireNonNull(socketFactory); in openConnection()
121 Objects.requireNonNull(socketFactory); in openConnection()
122 Objects.requireNonNull(proxy); in openConnection()
167 this.adaptee = Objects.requireNonNull(adaptee); in DnsAdapter()
/external/okhttp/android/src/main/java/com/android/okhttp/internalandroidapi/
DHttpURLConnectionFactory.java76 Objects.requireNonNull(dns); in setDns()
96 Objects.requireNonNull(proxy); in openConnection()
107 Objects.requireNonNull(socketFactory); in openConnection()
119 Objects.requireNonNull(socketFactory); in openConnection()
120 Objects.requireNonNull(proxy); in openConnection()
165 this.adaptee = Objects.requireNonNull(adaptee); in DnsAdapter()
/external/turbine/java/com/google/turbine/bytecode/
DConstantPool.java96 Objects.requireNonNull(value); in classInfo()
108 Objects.requireNonNull(value); in utf8()
154 Objects.requireNonNull(value); in string()
166 Objects.requireNonNull(value); in moduleInfo()
178 Objects.requireNonNull(value); in packageInfo()
/external/turbine/java/com/google/turbine/diag/
DTurbineDiagnostic.java21 import static java.util.Objects.requireNonNull;
47 this.severity = requireNonNull(severity); in TurbineDiagnostic()
48 this.kind = requireNonNull(kind); in TurbineDiagnostic()
49 this.args = requireNonNull(args); in TurbineDiagnostic()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/
DIterators.java49 Objects.requireNonNull(collection); in addAll()
50 Objects.requireNonNull(iterator); in addAll()
/external/cbor-java/src/main/java/co/nstant/in/cbor/model/
DLanguageTaggedString.java16 add(Objects.requireNonNull(language)); in LanguageTaggedString()
17 add(Objects.requireNonNull(string)); in LanguageTaggedString()
DDataItem.java12 Objects.requireNonNull(majorType, "majorType is null"); in DataItem()
28 Objects.requireNonNull(tag, "tag is null"); in setTag()
/external/turbine/java/com/google/turbine/main/
DUsageException.java19 import static java.util.Objects.requireNonNull;
53 super(buildMessage(requireNonNull(message))); in UsageException()
/external/turbine/java/com/google/turbine/processing/
DTurbineName.java19 import static java.util.Objects.requireNonNull;
29 requireNonNull(name); in TurbineName()
DModelFactory.java20 import static java.util.Objects.requireNonNull;
127 this.env = requireNonNull(env); in ModelFactory()
129 this.processorLoader = requireNonNull(processorLoader); in ModelFactory()
130 this.tli = requireNonNull(tli); in ModelFactory()
335 requireNonNull(info, symbol.owner().toString()); in getFieldInfo()
/external/turbine/java/com/google/turbine/binder/lookup/
DLookupResult.java19 import static java.util.Objects.requireNonNull;
50 this.sym = requireNonNull(sym); in LookupResult()
/external/kotlinx.coroutines/benchmarks/src/jmh/java/benchmarks/flow/scrabble/optimizations/
DStringFlowable.java26 ObjectHelper.requireNonNull(string, "string is null"); in characters()
52 ObjectHelper.requireNonNull(pattern, "pattern is null"); in split()
/external/turbine/java/com/google/turbine/binder/env/
DCompoundEnv.java19 import static java.util.Objects.requireNonNull;
32 this.env = requireNonNull(env); in CompoundEnv()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/failing/
DJacksonInject2678Test.java27 this.field1 = Objects.requireNonNull(field1); in Some()
28 this.field2 = Objects.requireNonNull(field2); in Some()
/external/javaparser/javaparser-core-serialization/src/main/java/com/github/javaparser/serialization/
DJavaParserJsonSerializer.java36 import static java.util.Objects.requireNonNull;
51 requireNonNull(node); in serialize()
69 requireNonNull(node); in serialize()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/
DRequiredAccessorTest.java68 assertSame(TEST_OBJECT, TEST_OBJECT.requireNonNull()); in testSimpleRequireOk()
80 JsonNode n = TEST_OBJECT.path("data").path("nullable").requireNonNull(); in testSimpleRequireOk()
/external/turbine/java/com/google/turbine/type/
DAnnoInfo.java20 import static java.util.Objects.requireNonNull;
45 this.values = requireNonNull(values); in AnnoInfo()
/external/okio/okio/jvm/jmh/src/jmh/java/com/squareup/okio/benchmarks/
DBufferPerformanceBenchmark.java49 import static java.util.Objects.requireNonNull;
181 requireNonNull(dest, "dest == null"); in storeSourceData()
189 requireNonNull(path, "path == null"); in checkOrigin()
/external/okhttp/okio/benchmarks/src/main/java/com/squareup/okio/benchmarks/
DBufferPerformanceBench.java49 import static java.util.Objects.requireNonNull;
181 requireNonNull(dest, "dest == null"); in storeSourceData()
189 requireNonNull(path, "path == null"); in checkOrigin()
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
DConsumer.java35 Objects.requireNonNull(after); in andThen()
/external/setupdesign/main/src/com/google/android/setupdesign/util/
DThemeHelper.java195 LOG.e(Objects.requireNonNull(ex.getMessage())); in getDynamicColorTheme()
254 LOG.e(Objects.requireNonNull(ex.getMessage())); in trySetDynamicColor()
/external/turbine/javatests/com/google/turbine/processing/
DTurbineElementsGetAllMembersTest.java21 import static java.util.Objects.requireNonNull;
260 javacElements.getAllMembers(requireNonNull(javacElements.getTypeElement("Test"))); in test()
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/i18n/timezone/
DCountryTimeZones.java57 this.timeZoneId = Objects.requireNonNull(timeZoneId); in TimeZoneMapping()
181 this.timeZone = Objects.requireNonNull(timeZone); in OffsetResult()
223 this.countryIso = Objects.requireNonNull(countryIso); in CountryTimeZones()
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/icu/util/
DExtendedCalendar.java50 Objects.requireNonNull(uLocale); in getInstance()

123