- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 607 for reflector (0.04 sec)
-
android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java
assertEquals(Integer.MAX_VALUE, ms.tailMultiset("b", CLOSED).size()); assertEquals(Integer.MAX_VALUE, ms.tailMultiset("a", CLOSED).size()); } @J2ktIncompatible @GwtIncompatible // reflection @AndroidIncompatible // Reflection bug, or actual binary compatibility problem? public void testElementSetBridgeMethods() { for (Method m : TreeMultiset.class.getMethods()) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 13K bytes - Viewed (0) -
android/guava/src/com/google/common/io/TempFileCreator.java
Class<?> optionalClass = Class.forName("java.util.Optional"); /* * We don't *need* to use reflection to access Optional: It's available on all JDKs we * support, and Android code won't get this far, anyway, because ProcessHandle is * unavailable. But given how much other reflection we're using, we might as well use it * here, too, so that we don't need to also suppress an AndroidApiChecker error.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 12.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java
assertTrue("Constructor should be protected", java.lang.reflect.Modifier.isProtected(constructors[0].getModifiers())); // 2. All public methods should be static java.lang.reflect.Method[] methods = ThreadDumpUtil.class.getDeclaredMethods(); for (java.lang.reflect.Method method : methods) { if (java.lang.reflect.Modifier.isPublic(method.getModifiers()) && !method.isSynthetic()) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 15.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
// When smbComRename = new SmbComRename(config, oldFileName, newFileName); // Then assertEquals(ServerMessageBlock.SMB_COM_RENAME, smbComRename.getCommand()); // Use reflection to verify private fields Field oldFileNameField = SmbComRename.class.getDeclaredField("oldFileName"); oldFileNameField.setAccessible(true); assertEquals(oldFileName, oldFileNameField.get(smbComRename));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/http/HandlerTest.java
// Restore system properties and clean up static state System.setProperties(originalSystemProperties); resetHandlerState(); } /** * Resets the static state of the Handler class using reflection. * This is crucial for ensuring that tests are isolated from each other. */ private void resetHandlerState() throws Exception { // Reset the static factory field
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
statement.go
} writer.WriteString(subdb.Statement.SQL.String()) stmt.Vars = subdb.Statement.Vars default: switch rv := reflect.ValueOf(v); rv.Kind() { case reflect.Slice, reflect.Array: if rv.Len() == 0 { writer.WriteString("(NULL)") } else if rv.Type().Elem() == reflect.TypeOf(uint8(0)) { stmt.Vars = append(stmt.Vars, v) stmt.DB.Dialector.BindVarTo(writer, stmt, v) } else {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 20.8K bytes - Viewed (0) -
callbacks/callmethod.go
package callbacks import ( "reflect" "gorm.io/gorm" ) func callMethod(db *gorm.DB, fc func(value interface{}, tx *gorm.DB) bool) { tx := db.Session(&gorm.Session{NewDB: true}) if called := fc(db.Statement.ReflectValue.Interface(), tx); !called { switch db.Statement.ReflectValue.Kind() { case reflect.Slice, reflect.Array: db.Statement.CurDestIndex = 0 for i := 0; i < db.Statement.ReflectValue.Len(); i++ {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sat Feb 18 01:20:29 UTC 2023 - 846 bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java
} @Override int readDataWireFormat(byte[] buffer, int bufferIndex, int len) { return 0; } // Helper methods to access private fields using reflection protected void setFieldValue(String fieldName, Object value) { try { Field field = null; Class<?> clazz = this.getClass();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
callbacks/helper_test.go
} if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); !loaded { t.Fatalf("loaded should be true") } // t1 already exist but t2 not if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf([]*testM{&t1, &t2, &t3})); loaded { t.Fatalf("loaded should be false") } if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf([]*testM{&t2, &t3})); !loaded { t.Fatalf("loaded should be true") } }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Tue Mar 05 02:22:57 UTC 2024 - 3.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java
/** * Returns {@link Method} instances for the tests that assume multisets support duplicates so that * the test of {@code Multisets.forSet()} can suppress them. */ @J2ktIncompatible @GwtIncompatible // reflection public static List<Method> getIteratorDuplicateInitializingMethods() { return asList( getMethod(MultisetIteratorTester.class, "testIteratorKnownOrder"),
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 4.5K bytes - Viewed (0)