- Sort Score
- Result 10 results
- Languages All
Results 961 - 970 of 1,790 for threw (0.06 sec)
-
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
SecurityManager disallowFilesSecurityManager = new SecurityManager() { @Override public void checkPermission(Permission p) { if (readClassPathFiles.implies(p)) { throw new SecurityException("Disallowed: " + p); } } }; System.setSecurityManager(disallowFilesSecurityManager); try { file.exists();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 22:09:38 UTC 2024 - 25K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/BytesTest.java
List<Byte> one = Arrays.asList((byte) 1); assertThat(Bytes.toArray(one)).isEqualTo(ARRAY1); byte[] array = {(byte) 0, (byte) 1, (byte) 0x55}; List<Byte> three = Arrays.asList((byte) 0, (byte) 1, (byte) 0x55); assertThat(Bytes.toArray(three)).isEqualTo(array); assertThat(Bytes.toArray(Bytes.asList(array))).isEqualTo(array); } public void testToArray_threadSafe() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 17.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassUtil.java
try { return clazz.newInstance(); } catch (final InstantiationException e) { throw new InstantiationRuntimeException(clazz, e); } catch (final IllegalAccessException e) { throw new IllegalAccessRuntimeException(clazz, e); } } /** * 指定されたクラスをコンテキストクラスローダから取得し、デフォルトコンストラクタで、クラスの新しいインスタンスを作成および初期化します。 *
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 27.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/InterceptorTest.kt
client.newCall(requestA).enqueue(callbackA) callbackA.await(requestA.url).assertBody("a") } catch (e: Exception) { throw RuntimeException(e) } } chain.proceed(chain.request()) }, ) .build() val requestB = Request.Builder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 27.8K bytes - Viewed (0) -
okhttp-android/src/test/kotlin/okhttp3/android/RobolectricOkHttpClientTest.kt
assertThat(response.cacheResponse).isNotNull() } } private fun assumeNetwork() { try { InetAddress.getByName("www.google.com") } catch (uhe: UnknownHostException) { throw AssumptionViolatedException(uhe.message, uhe) } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java
@Override public SampleElements<Entry<String, String>> samples() { return new SampleElements<>( mapEntry("one", "January"), mapEntry("two", "February"), mapEntry("three", "March"), mapEntry("four", "April"), mapEntry("five", "May")); } @Override public Map<String, String> create(Object... entries) { @SuppressWarnings("unchecked")
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.4K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java
} @BeforeExperiment public void doBefore() { recursionCount = stackDepth - new Throwable().getStackTrace().length - 1; if (recursionCount < 0) { throw new SkipThisScenarioException(); } } @Benchmark public boolean timeFindCaller(int reps) { return timeFindCaller(reps, recursionCount); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.5K bytes - Viewed (0) -
samples/slack/src/main/java/okhttp3/slack/RtmSession.java
private WebSocket webSocket; public RtmSession(SlackApi slackApi) { this.slackApi = slackApi; } public void open(String accessToken) throws IOException { if (webSocket != null) throw new IllegalStateException(); RtmStartResponse rtmStartResponse = slackApi.rtmStart(accessToken); webSocket = slackApi.rtm(rtmStartResponse.url, this); }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Nov 19 20:16:58 UTC 2016 - 2.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/LegacyComparable.java
private final String value; LegacyComparable(String value) { this.value = value; } @Override public int compareTo(Object object) { // This method is spec'd to throw CCE if object is of the wrong type LegacyComparable that = (LegacyComparable) object; return this.value.compareTo(that.value); } @Override public boolean equals(@Nullable Object object) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2.3K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java
} @BeforeExperiment public void doBefore() { recursionCount = stackDepth - new Throwable().getStackTrace().length - 1; if (recursionCount < 0) { throw new SkipThisScenarioException(); } } @Benchmark public boolean timeFindCaller(int reps) { return timeFindCaller(reps, recursionCount); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.5K bytes - Viewed (0)