Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 381 - 390 of 2,240 for throwIf (0.04 seconds)

  1. src/main/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticator.java

            default -> null; // Or throw an exception if unexpected token
            };
        }
    
        /**
         * Parses array values from JSON parser.
         *
         * @param jsonParser the JSON parser
         * @return the parsed array as a list
         * @throws IOException if an I/O error occurs
         */
        protected Object parseArray(final JsonParser jsonParser) throws IOException {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Dec 14 01:18:25 GMT 2025
    - 16.5K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/core/io/PropertiesUtilTest.java

        /**
         * Test method for
         * {@link org.codelibs.core.io.PropertiesUtil#store(Properties, java.io.OutputStream, String)}
         * .
         *
         * @throws IOException
         */
        @Test
        public void testStorePropertiesOutputStreamString() throws IOException {
            final Properties outProperties = new Properties();
            outProperties.setProperty("a", "A");
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/sso/entraid/EntraIdAuthenticatorTest.java

                // May throw due to null user when task executes, which is expected
            }
    
            assertTrue("scheduleParentGroupLookup should complete without immediate error", true);
        }
    
        /**
         * Test that empty groupIds list does not schedule any task.
         */
        @Test
        public void test_updateMemberOf_emptyGroupIds_noScheduledTask() throws Exception {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 19.3K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

            (thread, throwable) -> thrownByExecutionThread = throwable);
        executionThread.start();
      }
    
      private static void throwIfSet(Throwable t) throws Throwable {
        if (t != null) {
          throw t;
        }
      }
    
      public void testStopUnstartedService() throws Exception {
        NoOpService service = new NoOpService();
        RecordingListener listener = RecordingListener.record(service);
    
        service.stopAsync();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

            (thread, throwable) -> thrownByExecutionThread = throwable);
        executionThread.start();
      }
    
      private static void throwIfSet(Throwable t) throws Throwable {
        if (t != null) {
          throw t;
        }
      }
    
      public void testStopUnstartedService() throws Exception {
        NoOpService service = new NoOpService();
        RecordingListener listener = RecordingListener.record(service);
    
        service.stopAsync();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

        private DataStoreFactory dataStoreFactory;
        private SystemHelper systemHelper;
        private File tempDir;
    
        @Override
        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            dataStoreFactory = new DataStoreFactory();
            systemHelper = new SystemHelper() {
                @Override
                public long getCurrentTimeAsLong() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.2K bytes
    - Click Count (0)
  7. samples/slack/src/main/java/okhttp3/slack/RtmSession.java

      /** Guarded by this. */
      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);
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Nov 19 20:16:58 GMT 2016
    - 2.4K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Interceptor.kt

     *    libraries may customize this behavior.)
     *
     * A good way to signal a failure is with a synthetic HTTP response:
     *
     * ```kotlin
     *   @Throws(IOException::class)
     *   override fun intercept(chain: Interceptor.Chain): Response {
     *     if (myConfig.isInvalid()) {
     *       return Response.Builder()
     *           .request(chain.request())
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  9. samples/guide/src/main/java/okhttp3/recipes/PostString.java

            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
      public static void main(String... args) throws Exception {
        new PostString().run();
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat May 25 18:02:55 GMT 2019
    - 1.7K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

       */
      @GwtIncompatible
      @J2ktIncompatible
        private void writeObject(ObjectOutputStream stream) throws IOException {
        stream.defaultWriteObject();
        Serialization.writeMultiset(this, stream);
      }
    
      @GwtIncompatible
      @J2ktIncompatible
        private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
        stream.defaultReadObject();
        int distinctElements = stream.readInt();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 05 23:15:58 GMT 2025
    - 7.9K bytes
    - Click Count (0)
Back to Top