Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 24 for getPackage (0.27 seconds)

  1. android/guava/src/com/google/common/reflect/Reflection.java

     *
     * @since 12.0
     */
    public final class Reflection {
    
      /**
       * Returns the package name of {@code clazz} according to the Java Language Specification (section
       * 6.7). Unlike {@link Class#getPackage}, this method only parses the class name, without
       * attempting to define the {@link Package} and hence load files.
       */
      public static String getPackageName(Class<?> clazz) {
        return getPackageName(clazz.getName());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/AbstractProjectInheritanceTestCase.java

    /**
     */
    @Deprecated
    public abstract class AbstractProjectInheritanceTestCase extends AbstractMavenProjectTestCase {
        protected String getTestSeries() {
            String className = getClass().getPackage().getName();
    
            return className.substring(className.lastIndexOf('.') + 1);
        }
    
        protected File projectFile(String name) {
            return projectFile("maven", name);
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Feb 08 16:25:25 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/superpom/DefaultSuperPomProvider.java

                    options.put("xml:4.0.0", "xml:4.0.0");
    
                    String modelId = "org.apache.maven:maven-model-builder:"
                            + this.getClass().getPackage().getImplementationVersion() + ":super-pom";
                    InputSource inputSource = new InputSource();
                    inputSource.setModelId(modelId);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultReportingConverter.java

    @Deprecated
    public class DefaultReportingConverter implements ReportingConverter {
        private final InputLocation location;
    
        {
            String modelId = "org.apache.maven:maven-model-builder:"
                    + this.getClass().getPackage().getImplementationVersion() + ":reporting-converter";
            InputSource inputSource = new InputSource();
            inputSource.setModelId(modelId);
            location = new InputLocation(-1, -1, inputSource);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

        }
        return result;
      }
    
      private List<Class<?>> loadClassesInPackage() throws IOException {
        List<Class<?>> classes = new ArrayList<>();
        String packageName = getClass().getPackage().getName();
        for (ClassPath.ClassInfo classInfo :
            ClassPath.from(getClass().getClassLoader()).getTopLevelClasses(packageName)) {
          Class<?> cls;
          try {
            cls = classInfo.load();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

        }
        return result;
      }
    
      private List<Class<?>> loadClassesInPackage() throws IOException {
        List<Class<?>> classes = new ArrayList<>();
        String packageName = getClass().getPackage().getName();
        for (ClassPath.ClassInfo classInfo :
            ClassPath.from(getClass().getClassLoader()).getTopLevelClasses(packageName)) {
          Class<?> cls;
          try {
            cls = classInfo.load();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java

                }
            }
    
            private boolean isQualifiedForInterpolation(Class<?> cls) {
                return !cls.getPackage().getName().startsWith("java")
                        && !cls.getPackage().getName().startsWith("sun.nio.fs")
                        // org.apache.maven.api.model.InputLocation can be self-referencing
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/validation/FessActionValidatorTest.java

            assertEquals("Type parameter should be MESSAGES", "MESSAGES", typeParameters[0].getName());
        }
    
        @Test
        public void test_packageStructure() {
            final Package pkg = FessActionValidator.class.getPackage();
            assertNotNull(pkg, "Package should not be null");
            assertEquals("Should be in correct package", "org.codelibs.fess.validation", pkg.getName());
        }
    
        @Test
        public void test_isPublicClass() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/tomcat/webresources/FessWebResourceRootTest.java

            }
        }
    
        @Test
        public void test_packageStructure() {
            // Verify the class is in the expected package structure
            final Package pkg = FessWebResourceRoot.class.getPackage();
            assertNotNull(pkg, "Package should not be null");
            assertEquals("Should be in correct package", "org.codelibs.fess.tomcat.webresources", pkg.getName());
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/timer/SystemMonitorTargetTest.java

        }
    
        @Test
        public void test_package_structure() {
            assertEquals("Should be in timer package", "org.codelibs.fess.timer", SystemMonitorTarget.class.getPackage().getName());
        }
    
        @Test
        public void test_class_is_public() {
            assertTrue("Class should be public", java.lang.reflect.Modifier.isPublic(SystemMonitorTarget.class.getModifiers()));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.2K bytes
    - Click Count (0)
Back to Top