Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for cls (0.01 sec)

  1. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *       {@code cls}, instance methods are skipped for nulls test.
       *   <li>Nulls test is not performed on method return values unless the method is a non-private
       *       static factory method whose return type is {@code cls} or {@code cls}'s subtype.
       * </ul>
       */
      public void testNulls(Class<?> cls) {
        try {
          doTestNulls(cls, Visibility.PACKAGE);
        } catch (Exception e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *       {@code cls}, instance methods are skipped for nulls test.
       *   <li>Nulls test is not performed on method return values unless the method is a non-private
       *       static factory method whose return type is {@code cls} or {@code cls}'s subtype.
       * </ul>
       */
      public void testNulls(Class<?> cls) {
        try {
          doTestNulls(cls, Visibility.PACKAGE);
        } catch (Exception e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

        private static Object newPrivateInner(String simpleName, Class<?>[] paramTypes, Object... args) {
            try {
                Class<?> cls = Class.forName("jcifs.smb.SmbEnumerationUtil$" + simpleName);
                Constructor<?> ctor = cls.getDeclaredConstructor(paramTypes);
                ctor.setAccessible(true);
                return ctor.newInstance(args);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/reflect/Types.java

      }
    
      private static void disallowPrimitiveType(Type[] types, String usedAs) {
        for (Type type : types) {
          if (type instanceof Class) {
            Class<?> cls = (Class<?>) type;
            checkArgument(!cls.isPrimitive(), "Primitive type '%s' used as %s", cls, usedAs);
          }
        }
      }
    
      /** Returns the {@code Class} object of arrays with {@code componentType}. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

          Iterable<ClassPath.ClassInfo> classes, Class<?> cls) {
        for (ClassPath.ClassInfo classInfo : classes) {
          if (classInfo.getName().equals(cls.getName())) {
            return classInfo;
          }
        }
        throw new AssertionError("failed to find " + cls);
      }
    
      private static ResourceInfo resourceInfo(Class<?> cls) {
        String resource = cls.getName().replace('.', '/') + ".class";
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 20:58:01 UTC 2025
    - 23K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/Types.java

      }
    
      private static void disallowPrimitiveType(Type[] types, String usedAs) {
        for (Type type : types) {
          if (type instanceof Class) {
            Class<?> cls = (Class<?>) type;
            checkArgument(!cls.isPrimitive(), "Primitive type '%s' used as %s", cls, usedAs);
          }
        }
      }
    
      /** Returns the {@code Class} object of arrays with {@code componentType}. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

                fail("access field " + name, e);
                return null;
            }
        }
    
        private static int invokeProtectedInt(Object target, String name, Object... params) {
            try {
                var cls = target.getClass();
                // Build proper parameter types array, handling primitive types
                Class<?>[] paramTypes = new Class<?>[params.length];
                for (int i = 0; i < params.length; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

      }
    
      private void assertBadUseOfReferentialEquality(Class<?> cls) throws Exception {
        try {
          tester.testEquals(cls);
        } catch (AssertionError expected) {
          assertThat(expected).hasMessageThat().contains(cls.getSimpleName() + "(");
          return;
        }
        fail("should have failed for " + cls);
      }
    
      public void testParameterNotInstantiableForEqualsTest() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

        /**
         * Reflectively get the chained next request from a SMB2 request.
         */
        private static Object getNextOf(Object req) throws Exception {
            Class<?> cls = req.getClass().getSuperclass(); // ServerMessageBlock2Request
            Field f = cls.getSuperclass().getDeclaredField("next"); // ServerMessageBlock2.next
            f.setAccessible(true);
            return f.get(req);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
Back to top