- Sort Score
- Num 10 results
- Language All
Results 961 - 970 of 5,478 for newA (0.03 seconds)
-
guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java
ListenableFuture<String> f = new SimpleForwardingListenableFuture<String>(immediateFuture("a")) {}; verify(!(f instanceof FluentFuture)); assertThat(FluentFuture.from(f).get()).isEqualTo("a"); // TODO(cpovirk): Test forwarding more extensively. } public void testAddCallback() { FluentFuture<String> f = FluentFuture.from(immediateFuture("a")); boolean[] called = new boolean[1]; f.addCallback(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 5.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/DenseImmutableTable.java
@Nullable V[][] array = (@Nullable V[][]) new Object[rowSpace.size()][columnSpace.size()]; this.values = array; this.rowKeyToIndex = Maps.indexMap(rowSpace); this.columnKeyToIndex = Maps.indexMap(columnSpace); rowCounts = new int[rowKeyToIndex.size()]; columnCounts = new int[columnKeyToIndex.size()]; int[] cellRowIndices = new int[cellList.size()]; int[] cellColumnIndices = new int[cellList.size()];
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 9.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbExceptionTest.java
@DisplayName("Should handle exception chaining") void testExceptionChaining() { // Given Exception rootCause = new RuntimeException("Root cause"); SmbException intermediateCause = new SmbException("Intermediate", rootCause); // When SmbException finalException = new SmbException("Final error", intermediateCause); // Then assertEquals(intermediateCause, finalException.getCause());Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/normalizer/ICUNormalizerTest.java
ICUNormalizer normalizer = new ICUNormalizer("Halfwidth-Fullwidth"); assertEquals("ケンサク", normalizer.normalize("ケンサク", null)); } public void test_nullInput() { ICUNormalizer normalizer = new ICUNormalizer("Any-Lower"); assertNull(normalizer.normalize(null, null)); } public void test_nullTransliteratorId() { try { new ICUNormalizer(null);
Created: Sat Dec 20 13:04:59 GMT 2025 - Last Modified: Mon Nov 17 14:23:01 GMT 2025 - 2.2K bytes - Click Count (0) -
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
void testJavaSerialization() throws Exception { // Given SpnegoException original = new SpnegoException("serialize me", new IllegalArgumentException("iaex")); // When byte[] bytes; try (ByteArrayOutputStream bout = new ByteArrayOutputStream(); ObjectOutputStream oout = new ObjectOutputStream(bout)) { oout.writeObject(original); oout.flush();
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheLoaderTest.java
assertThat(loadAllCount.get()).isEqualTo(0); Object unused1 = baseLoader.load(new Object()); @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored Future<?> possiblyIgnoredError = baseLoader.reload(new Object(), new Object()); Map<Object, Object> unused2 = baseLoader.loadAll(ImmutableList.of(new Object())); assertThat(loadCount.get()).isEqualTo(1);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 3.8K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformerTest.java
Model model = new Model(new MavenStaxReader().read(expected)); MavenProject project = new MavenProject(model); project.setOriginalModel(model); ConsumerPomArtifactTransformer t = new ConsumerPomArtifactTransformer((s, p, f) -> { try (InputStream is = f.openStream()) { return DefaultConsumerPomBuilder.transformPom(new MavenStaxReader().read(is), project);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Nov 06 18:32:25 GMT 2025 - 13.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java
public class PreauthIntegrityServiceTest { private PreauthIntegrityService preauthService; private SecureRandom secureRandom; @BeforeEach public void setUp() { secureRandom = new SecureRandom(); preauthService = new PreauthIntegrityService(secureRandom, PreauthIntegrityService.HASH_ALGO_SHA512, true); } @AfterEach public void tearDown() { if (preauthService != null) {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableMultimap.java
} // looking for of() with > 5 entries? Use the builder instead. /** * Returns a new builder. The generated builder is equivalent to the builder created by the {@link * Builder} constructor. */ public static <K, V> Builder<K, V> builder() { return new Builder<>(); } /** * Returns a new builder with a hint for how many distinct keys are expected to be added. The
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 28.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/Smb3KeyDerivation.java
*/ private static byte[] derive(final byte[] sessionKey, final byte[] label, final byte[] context) { final KDFCounterBytesGenerator gen = new KDFCounterBytesGenerator(new HMac(new SHA256Digest())); final int r = 32; final byte[] suffix = new byte[label.length + context.length + 5]; // per bouncycastleCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.5K bytes - Click Count (0)