- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 135 for isIncompatible (0.09 seconds)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java
FileBasicInfo info = response.getInfo(FileBasicInfo.class); assertNotNull(info); assertTrue(info instanceof FileBasicInfo); } @Test @DisplayName("Test getInfo with incompatible type throws CIFSException") void testGetInfoWithIncompatibleType() throws Exception { response = new Trans2QueryPathInformationResponse(mockConfig, FileInformation.FILE_BASIC_INFO);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableMapValues.java
* the backport does. For now, we're keeping the class declaration in *both* flavors so that both * flavors can read old data or data from the other flavor. However, we strongly discourage * relying on this, as we have made incompatible changes to serialized forms in the past and * expect to do so again, as discussed in https://github.com/google/guava#important-warnings. */ @SuppressWarnings("unused")
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 4.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.java
@SuppressWarnings("unchecked") public <T extends Decodable> T getInfo(final Class<T> clazz) throws CIFSException { if (!clazz.isAssignableFrom(this.info.getClass())) { throw new CIFSException("Incompatible file information class"); } return (T) getInfo(); } /** * {@inheritDoc} * * @see jcifs.internal.smb2.ServerMessageBlock2#writeBytesWireFormat(byte[], int) */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2Request.java
@Override public final void setResponse(final CommonServerMessageBlockResponse msg) { if (msg != null && !(msg instanceof ServerMessageBlock2)) { throw new IllegalArgumentException("Incompatible response"); } this.response = (T) msg; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Mon Aug 25 14:34:10 GMT 2025 - 7.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponse.java
public <T extends FileSystemInformation> T getInfo(final Class<T> clazz) throws CIFSException { if (!clazz.isAssignableFrom(this.info.getClass())) { throw new CIFSException("Incompatible file information class"); } return (T) getInfo(); } @Override protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) { return 0; }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5K bytes - Click Count (0) -
guava/src/com/google/common/base/Predicates.java
* {@code Pattern.compile(pattern).matcher(arg).find()} * * @throws IllegalArgumentException if the pattern is invalid * @since 3.0 */ @GwtIncompatible // Only used by other GWT-incompatible code. public static Predicate<CharSequence> containsPattern(String pattern) { return new ContainsPatternFromStringPredicate(pattern); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 26.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
CIFSException exception = assertThrows(CIFSException.class, () -> response.getInfo(FileFsSizeInformation.class), "Should throw CIFSException for incompatible class"); assertEquals("Incompatible file information class", exception.getMessage()); } @Test @DisplayName("Test writeBytesWireFormat returns 0") void testWriteBytesWireFormat() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.5K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NbtAddressTest.java
assertSame(nbtAddress, unwrapped); // Test unwrap for incompatible type - NbtAddress implements NetbiosAddress so it should return itself NetbiosAddress netbiosUnwrapped = nbtAddress.unwrap(NetbiosAddress.class); assertNotNull(netbiosUnwrapped); assertSame(nbtAddress, netbiosUnwrapped); // Test unwrap for truly incompatible type assertNull(nbtAddress.unwrap(UniAddress.class)); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/EvictingQueue.java
clear(); return Iterables.addAll(this, Iterables.skip(collection, size - maxSize)); } return standardAddAll(collection); } @Override @J2ktIncompatible // Incompatible return type change. Use inherited implementation public Object[] toArray() { /* * If we could, we'd declare the no-arg `Collection.toArray()` to return "Object[] but elements
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 4.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/SubtypeTester.java
* * The calls to {@link #isSubtype} and {@link #notSubtype} tells the framework what assertions need * to be made. * * <p>The declaration methods must be public. */ @AndroidIncompatible // only used by android incompatible tests. @NullUnmarked abstract class SubtypeTester implements Cloneable { /** Annotates a public method that declares subtype assertion. */ @RequiredModifiers(modifier = Modifier.PUBLIC)Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 6.1K bytes - Click Count (0)