- Sort Score
- Num 10 results
- Language All
Results 3011 - 3020 of 3,670 for throwIf (0.06 seconds)
-
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
case STRING_ITEM -> 1; case COMBINATION_ITEM -> 1; // 1.1 > 1-sp case LIST_ITEM -> 1; // 1.1 > 1-1 default -> throw new IllegalStateException("invalid item: " + item.getClass()); }; } @Override public boolean equals(Object o) { if (this == o) { return true;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 26.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
"reflect", "util.concurrent", "xml") .transform("com.google.common."::concat) .toSet(); public void testClassesHaveOverrides() throws Exception { for (ClassInfo info : ClassPath.from(getClass().getClassLoader()).getAllClasses()) { if (!GUAVA_PACKAGES.contains(info.getPackageName())) { continue; } if ( /*
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 01 03:07:54 GMT 2025 - 5.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java
MapFeature.ALLOWS_ANY_NULL_QUERIES) .createTestSuite()); return suite; } private ClassToInstanceMap<Number> map; @Override protected void setUp() throws Exception { map = MutableClassToInstanceMap.create(); } public void testConstraint() { /* * We'll give ourselves a pass on testing all the possible ways of breaking the constraint,Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 31 20:00:15 GMT 2026 - 5K bytes - Click Count (0) -
src/main/java/jcifs/SmbResourceException.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs; /** * Exception for resource-related SMB errors * * This exception is thrown when resource issues occur such as: * - File handle leaks * - Connection pool exhaustion * - Memory allocation failures * - Quota exceeded */ public class SmbResourceException extends SmbException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 5.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java
} @Test @DisplayName("writeBytesWireFormat writes the command byte followed by the null terminated string") void testWriteBytesWireFormatHappy() throws UnsupportedEncodingException { byte[] buffer = new byte[50]; int used = cmd.writeBytesWireFormat(buffer, 0); // Calculate expected size: 1 byte for command + string bytes + 1 null terminatorCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java
} /** * Tests the readDataWireFormat method. * This test simulates a response with two share entries. */ @Test void testReadDataWireFormat() throws IOException { NetShareEnumResponse response = new NetShareEnumResponse(); // Manually set parameters that would be read by readParametersWireFormat response.numEntries = 2;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java
assertNull(source.resolve(locator, "subproject")); verify(locator, never()).locateExistingPom(any(Path.class)); } @Test void testStreamReading() throws IOException { // Test stream reading functionality Path testFile = tempDir.resolve("test.txt"); String content = "test content"; Files.writeString(testFile, content);
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Sep 29 14:45:25 GMT 2025 - 5.4K bytes - Click Count (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/Android10SocketAdapter.kt
sslSocket.sslParameters = sslParameters } catch (iae: IllegalArgumentException) { // probably java.lang.IllegalArgumentException: Invalid input to toASCII from IDN.toASCII throw IOException("Android internal error", iae) } } @SuppressSignatureCheck companion object { fun buildIfSupported(): SocketAdapter? = if (isSupported()) Android10SocketAdapter() else nullCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Jan 10 09:36:53 GMT 2026 - 2.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ClassPathUtil.java
} } catch (MalformedURLException e) { AssertionError error = new AssertionError("malformed class path entry: " + entry); error.initCause(e); throw error; } } return urls.build().toArray(new URL[0]); } /** Returns the URLs in the class path. */ static URL[] getClassPathUrls() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 2.5K bytes - Click Count (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/DefaultProfileSelectorTest.java
selector.addProfileActivator(new ProfileActivator() { @Override public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) { throw new RuntimeException("BOOM"); } @Override public boolean presentInConfig( Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 2.9K bytes - Click Count (0)