Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getClassLoader (0.06 sec)

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

            .addEqualityGroup(classInfo(Test.class), classInfo(Test.class, getClass().getClassLoader()))
            .addEqualityGroup(
                new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()),
                new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()))
            .addEqualityGroup(new ResourceInfo(FILE, "x.txt", getClass().getClassLoader()))
            .testEquals();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java

            // Load both resources
            try (InputStream is1 = getClass().getClassLoader().getResourceAsStream("suggest_indices/suggest/mappings-default.json")) {
                assertNotNull("Mappings resource should exist", is1);
                mappings = new String(is1.readAllBytes(), StandardCharsets.UTF_8);
            }
    
            try (InputStream is2 = getClass().getClassLoader().getResourceAsStream("suggest_indices/suggest.json")) {
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

            .addEqualityGroup(classInfo(Test.class), classInfo(Test.class, getClass().getClassLoader()))
            .addEqualityGroup(
                new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()),
                new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()))
            .addEqualityGroup(new ResourceInfo(FILE, "x.txt", getClass().getClassLoader()))
            .testEquals();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 23K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/EnumsTest.java

        assertEquals("BAR", bar.getName());
        assertFalse(bar.isAnnotationPresent(ExampleAnnotation.class));
      }
    
      @J2ktIncompatible
      private URL[] getClassPathUrls() {
        ClassLoader classLoader = getClass().getClassLoader();
        return classLoader instanceof URLClassLoader
            ? ((URLClassLoader) classLoader).getURLs()
            : parseJavaClassPath().toArray(new URL[0]);
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

                ClassLoader parentClassLoader = Thread.currentThread().getContextClassLoader();
                if (parentClassLoader == null) {
                    parentClassLoader = GroovyEngine.class.getClassLoader();
                }
                classLoader = new GroovyClassLoader(parentClassLoader);
                final GroovyShell groovyShell = new GroovyShell(classLoader, new Binding(bindingMap));
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/Suggester.java

        }
    
        private String getDefaultMappings() throws IOException {
            try (final InputStream is = this.getClass().getClassLoader().getResourceAsStream("suggest_indices/suggest/mappings-default.json")) {
                if (is == null) {
                    throw new IOException("Resource not found: suggest_indices/suggest/mappings-default.json");
                }
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 21.6K bytes
    - Viewed (3)
  7. impl/maven-core/src/test/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelperTest.java

            evaluator = mock(ExpressionEvaluator.class);
            listener = mock(ConfigurationListener.class);
            helper = new EnhancedCompositeBeanHelper(converterLookup, getClass().getClassLoader(), evaluator, listener);
        }
    
        @AfterEach
        void tearDown() {
            EnhancedCompositeBeanHelper.clearCaches();
        }
    
        @Test
        void testSetPropertyWithSetter() throws Exception {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Nov 12 14:59:46 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  8. CLAUDE.md

                                    + converter.getClass().getName(), e);
    }
    ```
    
    **Resource Management:**
    ```java
    try (InputStream is = getClass().getClassLoader()
            .getResourceAsStream("suggest_indices/suggest.json")) {
        if (is == null) {
            throw new IOException("Resource not found");
        }
        return new String(is.readAllBytes(), StandardCharsets.UTF_8);
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

            final StringBuilder sb = new StringBuilder();
            try (BufferedReader br = new BufferedReader(
                    new InputStreamReader(this.getClass().getClassLoader().getResourceAsStream("suggest_indices/suggest_settings.json")));) {
    
                String line;
                while ((line = br.readLine()) != null) {
                    sb.append(line);
                }
            }
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/suggest/settings/ArraySettings.java

            final StringBuilder sb = new StringBuilder();
            try (BufferedReader br = new BufferedReader(new InputStreamReader(
                    this.getClass().getClassLoader().getResourceAsStream("suggest_indices/suggest_settings_array.json")))) {
    
                String line;
                while ((line = br.readLine()) != null) {
                    sb.append(line);
                }
            }
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top