Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 28 for ANONYMOUS (0.05 seconds)

  1. guava-tests/test/com/google/common/reflect/InvokableTest.java

      public void testAnonymousClassDefaultConstructor() {
        int i = 1;
        String s = "hello world";
        Class<?> anonymous =
            new Runnable() {
              @Override
              public void run() {
                System.out.println(s + i);
              }
            }.getClass();
        Constructor<?> constructor = anonymous.getDeclaredConstructors()[0];
        assertEquals(0, Invokable.from(constructor).getParameters().size());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 31.1K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Handshake.kt

        level = DeprecationLevel.ERROR,
      )
      fun peerCertificates(): List<Certificate> = peerCertificates
    
      /** Returns the remote peer's principle, or null if that peer is anonymous. */
      @get:JvmName("peerPrincipal")
      val peerPrincipal: Principal?
        get() = (peerCertificates.firstOrNull() as? X509Certificate)?.subjectX500Principal
    
      @JvmName("-deprecated_peerPrincipal")
      @Deprecated(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 6.6K bytes
    - Click Count (1)
  3. android/guava/src/com/google/common/reflect/TypeToken.java

      @LazyInit private transient @Nullable TypeResolver covariantTypeResolver;
    
      /**
       * Constructs a new type token of {@code T}.
       *
       * <p>Clients create an empty anonymous subclass. Doing so embeds the type parameter in the
       * anonymous class's type hierarchy so we can reconstitute it at runtime despite erasure.
       *
       * <p>For example:
       *
       * {@snippet :
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 53.8K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/job/JobExecutorTest.java

            jobExecutor.shutdown();
            assertEquals(3, shutdownCount.get());
        }
    
        @Test
        public void test_shutdownListener_interface() {
            // Test anonymous ShutdownListener implementation
            final AtomicBoolean flag = new AtomicBoolean(false);
            ShutdownListener listener = new ShutdownListener() {
                @Override
                public void onShutdown() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

        assertTrue(toTest, toTest.matches(".*\\{\\}"));
      }
    
      @GwtIncompatible // Class names are obfuscated in GWT
      public void testToStringHelper_moreThanNineAnonymousClasses() {
        // The nth anonymous class has a name ending like "Outer.$n"
        Object unused1 = new Object() {};
        Object unused2 = new Object() {};
        Object unused3 = new Object() {};
        Object unused4 = new Object() {};
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 22K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

       *
       * @return the fully constructed {@link ThreadFactory}
       */
      public ThreadFactory build() {
        return doBuild(this);
      }
    
      // Split out so that the anonymous ThreadFactory can't contain a reference back to the builder.
      // At least, I assume that's why. TODO(cpovirk): Check, and maybe add a test for this.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Dec 29 17:36:00 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/chat/ChatClient.java

         * Performs a chat request with RAG.
         *
         * @param sessionId the session ID (can be null for new sessions)
         * @param userMessage the user's message
         * @param userId the user ID (can be null for anonymous users)
         * @return the chat response including session info and sources
         */
        public ChatResult chat(final String sessionId, final String userMessage, final String userId) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 56.6K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java

    import org.codelibs.fess.unit.UnitFessTestCase;
    import org.junit.jupiter.api.Test;
    
    public class IndexUpdateCallbackTest extends UnitFessTestCase {
    
        @Test
        public void test_interface_methods() {
            // Test with anonymous implementation
            IndexUpdateCallback callback = new IndexUpdateCallback() {
                private final AtomicLong docSize = new AtomicLong(0);
                private final AtomicLong execTime = new AtomicLong(0);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

       * methods to be subscribed (since both are annotated @Subscribe) without specifically checking
       * for bridge methods.
       */
      // We use an anonymous class to be sure that we generate two methods (bridge and original).
      @SuppressWarnings("AnonymousToLambda")
      public void testRegistrationWithBridgeMethod() {
        AtomicInteger calls = new AtomicInteger();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/eventbus/EventBusTest.java

       * methods to be subscribed (since both are annotated @Subscribe) without specifically checking
       * for bridge methods.
       */
      // We use an anonymous class to be sure that we generate two methods (bridge and original).
      @SuppressWarnings("AnonymousToLambda")
      public void testRegistrationWithBridgeMethod() {
        AtomicInteger calls = new AtomicInteger();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
Back to Top