- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 2,232 for Docstring (0.11 seconds)
-
guava-tests/test/com/google/common/cache/CacheReferencesTest.java
// A simple type whose .toString() will return the same value each time, but without maintaining // a strong reference to that value. static class Key { private final int value; private WeakReference<String> toString; Key(int value) { this.value = value; } @Override public synchronized String toString() { String s; if (toString != null) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 5.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java
Checksum checksum = supplier.get(); checksum.update(bytes, 0, bytes.length); long value = checksum.getValue(); String toString = "name"; HashFunction func = new ChecksumHashFunction(supplier, 32, toString); assertThat(func.toString()).isEqualTo(toString); assertEquals(value, func.hashBytes(bytes).padToLong()); } private static void assertHash32(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypesTest.java
assertThat(ourType1.toString()).isEqualTo(jvmType1.toString()); assertThat(ourType2.toString()).isEqualTo(jvmType2.toString()); } public void testNewArrayTypeOfArray() { Type jvmType = new TypeCapture<int[][]>() {}.capture(); Type ourType = Types.newArrayType(int[].class); assertThat(ourType.toString()).isEqualTo(jvmType.toString());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 15.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/entity/SuggestItemSerializer.java
final long docFreq = Long.parseLong(source.get(FieldNames.DOC_FREQ).toString()); final long queryFreq = Long.parseLong(source.get(FieldNames.QUERY_FREQ).toString()); final float userBoost = Float.parseFloat(source.get(FieldNames.USER_BOOST).toString()); final List<String> tags = SuggestUtil.getAsList(source.get(FieldNames.TAGS));
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 13.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/timer/MonitorTargetTest.java
Exception exception = new RuntimeException("Test error message"); monitorTarget.appendException(buf, exception); assertTrue(buf.toString().startsWith("\"exception\":\"")); assertTrue(buf.toString().contains("Test error message")); assertTrue(buf.toString().contains("RuntimeException")); } // Test appendException method with nested exception @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java
public void testToString_minimal() { assertNotNull("toString() should not return null", getMap().toString()); } @CollectionSize.Require(ZERO) @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING) public void testToString_size0() { assertEquals("emptyMap.toString should return {}", "{}", getMap().toString()); } @CollectionSize.Require(ONE)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashCodeTest.java
HashCode hash2 = HashCode.fromString(hash1.toString()); assertEquals(hash1, hash2); } public void testRoundTrip() { for (ExpectedHashCode expected : expectedHashCodes) { String string = HashCode.fromBytes(expected.bytes).toString(); assertThat(string).isEqualTo(expected.toString); assertThat(HashCode.fromBytes(BaseEncoding.base16().lowerCase().decode(string)).toString()) .isEqualTo(expected.toString);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 13.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
assertEquals(info1.toString(), info2.toString()); } @Test @DisplayName("Test encode does not modify source object") void testEncodeImmutability() { long originalValue = 1000L; FileEndOfFileInformation info = new FileEndOfFileInformation(originalValue); // Get original toString String originalString = info.toString(); // Encode
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
src/main/webapp/WEB-INF/orig/view/error/redirect.jsp
response.sendRedirect(redirectPage.toString()); } else { response.sendError(statusCode); } } else if("logOut".equals(type)) { redirectPage.append("/login/?type=logout&code=" + statusCode); response.sendRedirect(redirectPage.toString()); } else if("badRequest".equals(type)) { redirectPage.append("/error/badrequest/"); response.sendRedirect(redirectPage.toString()); } else if("busy".equals(type)) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Feb 23 08:03:44 GMT 2026 - 1.3K bytes - Click Count (0) -
src/main/webapp/WEB-INF/view/error/redirect.jsp
response.sendRedirect(redirectPage.toString()); } else { response.sendError(statusCode); } } else if("logOut".equals(type)) { redirectPage.append("/login/?type=logout&code=" + statusCode); response.sendRedirect(redirectPage.toString()); } else if("badRequest".equals(type)) { redirectPage.append("/error/badrequest/"); response.sendRedirect(redirectPage.toString()); } else if("busy".equals(type)) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Tue Feb 10 04:24:02 GMT 2026 - 1.3K bytes - Click Count (0)