Skip to content

Conversation

afranken
Copy link
Member

@afranken afranken commented Jun 14, 2025

Description

  • Cleanup JavaDoc
    • The API doc and function signatures describe what the functions do, let's describe what they do differently from what is described in the API instead of stating the obvious.
  • Implement Delete ObjectTagging
  • Add JSpecify Nullability annotations.
  • Migrate all Unit tests to Kotlin.

Related Issue

N/A

Tasks

  • I have signed the CLA.
  • I have written tests and verified that they fail without my change.

@afranken afranken force-pushed the controller-improvements branch 2 times, most recently from 0dc3443 to 2b59753 Compare June 14, 2025 17:12
The API doc and function signatures describe what the functions do,
let's describe what they do differently from what is described in the
API instead of stating the obvious.
@afranken afranken force-pushed the controller-improvements branch 3 times, most recently from f389f23 to 8a57dcb Compare June 15, 2025 10:44
afranken added 5 commits June 15, 2025 13:50
The API doc and function signatures describe what the functions do,
let's describe what they do differently from what is described in the
API instead of stating the obvious.
The API doc and function signatures describe what the functions do,
let's describe what they do differently from what is described in the
API instead of stating the obvious.
@afranken afranken force-pushed the controller-improvements branch from 44243bb to d4abaf6 Compare June 15, 2025 11:50
@afranken afranken force-pushed the controller-improvements branch from d4abaf6 to 466f8ef Compare June 15, 2025 15:43
@afranken afranken requested a review from Copilot June 15, 2025 18:36
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR cleans up JavaDoc formatting, adds JSpecify @nullable annotations for improved nullability handling, and refactors several API methods and unit tests (including migrating tests to Kotlin).

  • Improved JavaDocs with more concise API references
  • Added JSpecify nullability annotations and removed Spring-specific annotations
  • Refactored tests to utilize Kotlin naming conventions and updated the build configuration

Reviewed Changes

Copilot reviewed 81 out of 81 changed files in this pull request and generated no comments.

Show a summary per file
File Description
server/src/main/java/com/adobe/testing/s3mock/dto/* Added @nullable annotations in enum fromValue methods
server/src/main/java/com/adobe/testing/s3mock/ObjectController.java Updated JavaDocs and added @nullable to request parameters
server/src/main/java/com/adobe/testing/s3mock/MultipartController.java Refactored test method names and updated tagging tests
server/src/main/java/com/adobe/testing/s3mock/BucketController.java Updated JavaDocs and modified region resolution logic
pom.xml and server/pom.xml Added jspecify dependency and configuration updates
integration-tests/...ObjectTaggingIT.kt Updated integration tests with Kotlin idioms
README.md and CHANGELOG.md Updated documentation per new API changes
Comments suppressed due to low confidence (1)

server/src/main/java/com/adobe/testing/s3mock/BucketController.java:373

  • Removing the fallback to 'region.toString()' may lead to a null value for bucketRegion if bucketMetadata.bucketRegion() is null. Consider restoring the fallback to ensure LocationConstraint is never constructed with null.
String bucketRegion = bucketMetadata.bucketRegion();

@afranken afranken merged commit 2fe5ac0 into main Jun 15, 2025
6 checks passed
@afranken afranken deleted the controller-improvements branch June 15, 2025 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant