Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 22 for isFinal (0.05 seconds)

  1. src/main/java/org/codelibs/core/lang/ModifierUtil.java

         */
        public static boolean isFinal(final int modifier) {
            return Modifier.isFinal(modifier);
        }
    
        /**
         * Checks if the specified method is final.
         *
         * @param method
         *            the method to check
         * @return true if final, false otherwise
         */
        public static boolean isFinal(final Method method) {
            return isFinal(method.getModifiers());
        }
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/reflect/Invokable.java

       *
       * <p>Note that a method may still be effectively "final", or non-overridable when it has no
       * {@code final} keyword. For example, it could be private, or it could be declared by a final
       * class. To tell whether a method is overridable, use {@link Invokable#isOverridable}.
       */
      public final boolean isFinal() {
        return Modifier.isFinal(getModifiers());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 18.5K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/lang/MethodUtil.java

         *            The method. Cannot be {@literal null}
         * @return <code>final </code> if the method is final
         */
        public static boolean isFinal(final Method method) {
            assertArgumentNotNull("method", method);
    
            return Modifier.isFinal(method.getModifiers());
        }
    
        /**
         * Returns the string representation of the method signature.
         *
         * @param methodName
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/net/MediaTypeTest.java

    import static com.google.common.net.MediaType.PLAIN_TEXT_UTF_8;
    import static com.google.common.net.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.truth.Truth.assertThat;
    import static java.lang.reflect.Modifier.isFinal;
    import static java.lang.reflect.Modifier.isPublic;
    import static java.lang.reflect.Modifier.isStatic;
    import static java.nio.charset.StandardCharsets.UTF_16;
    import static java.nio.charset.StandardCharsets.UTF_8;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 20.4K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/mylasta/action/FessLabelsTest.java

            assertNotNull(serialVersionField);
            assertTrue(Modifier.isStatic(serialVersionField.getModifiers()));
            assertTrue(Modifier.isFinal(serialVersionField.getModifiers()));
            assertTrue(Modifier.isPrivate(serialVersionField.getModifiers()));
            serialVersionField.setAccessible(true);
            assertEquals(1L, serialVersionField.getLong(null));
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 14K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/mylasta/action/FessHtmlPathTest.java

            for (Field field : fields) {
                int modifiers = field.getModifiers();
                if (Modifier.isPublic(modifiers) && Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers)) {
                    if (field.getType().equals(HtmlNext.class)) {
                        Object value = field.get(null);
                        assertNotNull(value, "Field " + field.getName() + " should not be null");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertFalse(invokable.isFinal());
        assertTrue(invokable.isAnnotationPresent(Tested.class));
      }
    
      public void testOverridableMethod() throws Exception {
        Invokable<?, Object> invokable = A.method("overridableMethod");
        assertTrue(invokable.isPackagePrivate());
        assertFalse(invokable.isAbstract());
        assertFalse(invokable.isFinal());
    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)
  8. src/test/java/jcifs/internal/dtyp/SecurityInfoTest.java

                assertTrue(Modifier.isStatic(modifiers), "Field " + field.getName() + " should be static");
                assertTrue(Modifier.isFinal(modifiers), "Field " + field.getName() + " should be final");
            }
        }
    
        @Test
        @DisplayName("Test constant values are unique")
        void testConstantValuesAreUnique() throws IllegalAccessException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/cors/CorsHandlerTest.java

            assertTrue("ACCESS_CONTROL_ALLOW_ORIGIN should be final", Modifier.isFinal(originField.getModifiers()));
    
            Field headersField = CorsHandler.class.getDeclaredField("ACCESS_CONTROL_ALLOW_HEADERS");
            assertTrue("ACCESS_CONTROL_ALLOW_HEADERS should be final", Modifier.isFinal(headersField.getModifiers()));
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 26.3K bytes
    - Click Count (0)
  10. src/test/java/jcifs/spnego/SpnegoConstantsTest.java

                int m = f.getModifiers();
    
                assertTrue(Modifier.isPublic(m), e.getKey() + " must be public");
                assertTrue(Modifier.isStatic(m), e.getKey() + " must be static");
                assertTrue(Modifier.isFinal(m), e.getKey() + " must be final");
                assertEquals(String.class, f.getType(), e.getKey() + " must be String");
                assertEquals(e.getValue(), f.get(null), e.getKey() + " value mismatch");
            }
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.7K bytes
    - Click Count (0)
Back to Top