Skip to content

Conversation

@ArnyminerZ
Copy link
Member

No description provided.

@ArnyminerZ ArnyminerZ requested review from Copilot and rfc2822 October 29, 2025 14:43
@ArnyminerZ ArnyminerZ self-assigned this Oct 29, 2025
@ArnyminerZ ArnyminerZ added the refactoring Internal improvement of existing functions label Oct 29, 2025
@ArnyminerZ ArnyminerZ linked an issue Oct 29, 2025 that may be closed by this pull request
Copy link

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 pull request refactors the HREF constant definition by moving it from DavResource.Companion to HrefListProperty.Companion, improving code organization and reducing coupling between classes.

Key changes:

  • Added HREF constant to HrefListProperty.Companion
  • Updated references within HrefListProperty to use the local HREF constant
  • Removed dependency on DavResource import in HrefListProperty

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rfc2822 rfc2822 requested review from sunkup and removed request for rfc2822 November 2, 2025 18:31
@ArnyminerZ ArnyminerZ requested a review from Copilot November 5, 2025 12:28
@ArnyminerZ
Copy link
Member Author

@sunkup should be good

Copy link

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

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +42 to +44
import kotlin.text.Charsets
import kotlin.text.toByteArray
import kotlin.text.trim
Copy link

Copilot AI Nov 5, 2025

Choose a reason for hiding this comment

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

These explicit imports from kotlin.text are unnecessary as these are part of Kotlin's standard library and should be available without explicit imports. The Charsets, toByteArray(), and trim() functions are automatically imported by Kotlin. Consider removing these imports.

Suggested change
import kotlin.text.Charsets
import kotlin.text.toByteArray
import kotlin.text.trim

Copilot uses AI. Check for mistakes.
Copy link
Member

@sunkup sunkup left a comment

Choose a reason for hiding this comment

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

Why the deprecation warnings? The HREF attributes are not being used in DAVx⁵ and I don't know any project using dav4jvm besides DAVx⁵. I understand the idea in doing it "properly", but it creates the problem/work of us having to remove the deprecation at some point in the future again too ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Internal improvement of existing functions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix misimport of ktor variable in common module

2 participants