- Sort Score
- Num 10 results
- Language All
Results 681 - 690 of 5,187 for full (0.02 seconds)
-
compat/maven-model/src/main/java/org/apache/maven/model/io/xpp3/MavenXpp3Reader.java
try { org.apache.maven.api.model.Model model = delegate.read(reader, strict, source != null ? source.toApiSource() : null); return new Model(model); } catch (XMLStreamException e) { throw new XmlPullParserException(e.getMessage(), null, e); } } /** * * @param reader a reader object. * @param strict a strict object.Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 5.2K bytes - Click Count (0) -
architecture/standards/0008-use-nullaway.md
* When annotating existing internal code, use `org.jetbrains.annotations.Contract`, e.g. `@Contract(null -> null; !null -> !null)`. When doing so, still annotate nullable parameters and the return type as `@Nullable`. * Do not use `@Contract` for public APIs. * For polynull public APIs, the solution has to be decided on a case-by-case basis. Do not remove `null` checks on public API boundaries, even if the annotations (or rather lack of them) suggest this.Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Mar 05 12:39:41 GMT 2026 - 4K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java
throws GraphConflictResolutionException { if (policy == null) { throw new GraphConflictResolutionException("no GraphConflictResolutionPolicy injected"); } if (graph == null) { return null; } final MetadataGraphVertex entry = graph.getEntry(); if (entry == null) { return null; } if (graph.isEmpty()) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 7.4K bytes - Click Count (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java
} @Test void testVersionParsing() { checkVersionParsing("1", 1, 0, 0, 0, null); checkVersionParsing("1.2", 1, 2, 0, 0, null); checkVersionParsing("1.2.3", 1, 2, 3, 0, null); checkVersionParsing("1.2.3-1", 1, 2, 3, 1, null); checkVersionParsing("1.2.3-alpha-1", 1, 2, 3, 0, "alpha-1"); checkVersionParsing("1.2-alpha-1", 1, 2, 0, 0, "alpha-1");Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 9.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SessionSetupHandlerTest.java
// Intent: demonstrate defensive behavior with null when resolving this type by name assertThrows(NullPointerException.class, () -> Class.forName(null)); } @Test @DisplayName("Happy path: class is loadable via fully qualified name") void testClassForName() throws Exception { // Act Class<?> c = Class.forName("jcifs.smb.SessionSetupHandler"); // AssertCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.3K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/ModelValidator.java
* * @param model The model to validate, must not be {@code null}. * @param request The model building request that holds further settings, must not be {@code null}. * @param problems The container used to collect problems that were encountered, must not be {@code null}. */ void validateRawModel(Model model, ModelBuildingRequest request, ModelProblemCollector problems);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 2.4K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ChecksumAlgorithmService.java
* @param algorithms The checksum algorithms to use, must not be {@code null}. * @return The calculated checksums, indexed by algorithms, never {@code null}. * @throws NullPointerException if passed in any parameter is {@code null}. * @throws IOException In case of any IO problem. */ @NonnullCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 10 20:52:34 GMT 2024 - 6.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
assertNotNull(writeRequest); } @Test @DisplayName("Should accept null file ID in constructor") void testConstructorWithNullFileId() { assertDoesNotThrow(() -> new Smb2WriteRequest(mockConfig, null)); } @Test @DisplayName("Should accept empty file ID in constructor") void testConstructorWithEmptyFileId() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 22.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
assertArrayEquals(testSalt, Arrays.copyOfRange(buffer, 6, 14)); } @Test @DisplayName("Should encode with null values") void testEncodeWithNullValues() { // Arrange context = new PreauthIntegrityNegotiateContext(mockConfig, null, null); byte[] buffer = new byte[100]; // Act int encodedSize = context.encode(buffer, 0);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 19.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
} @Test void testReadDataWireFormatNullOutputBuffer() { // Test behavior when outputBuffer is null (edge case) TransTransactNamedPipeResponse nullBufferResponse = new TransTransactNamedPipeResponse(mockConfig, null); byte[] buffer = new byte[100]; assertThrows(NullPointerException.class, () -> nullBufferResponse.readDataWireFormat(buffer, 0, 50)); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.5K bytes - Click Count (0)