Skip to content

ETSI 119 602 Data Classes#547

Open
acrusage-iaik wants to merge 8 commits intodevelopfrom
feature/2026/04/22-etsi-data-classes
Open

ETSI 119 602 Data Classes#547
acrusage-iaik wants to merge 8 commits intodevelopfrom
feature/2026/04/22-etsi-data-classes

Conversation

@acrusage-iaik
Copy link
Copy Markdown
Collaborator

@acrusage-iaik acrusage-iaik commented Apr 28, 2026

@acrusage-iaik acrusage-iaik requested a review from nodh April 28, 2026 14:34
@nodh nodh self-assigned this Apr 29, 2026
@a-sit-plus a-sit-plus deleted a comment from chatgpt-codex-connector Bot Apr 29, 2026
@nodh
Copy link
Copy Markdown
Member

nodh commented Apr 29, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1a890240f8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

return string.compareTo(other.string, ignoreCase = true) == 0
}

override fun hashCode() = string.hashCode()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Make hashCode consistent with case-insensitive equality

equals treats MIME types case-insensitively, but hashCode uses the original case-sensitive string. This breaks the equals/hashCode contract, so equal values like "text/HTML" and "text/html" can behave incorrectly in HashSet/HashMap (duplicate entries, failed lookups), which is a real data-structure correctness bug.

Useful? React with 👍 / 👎.

Comment on lines +32 to +36
require('.' !in it) {
"Expected no second fractions, but got ${it}."
}
}.let{
Instant.parse(it)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Enforce UTC "Z" suffix when deserializing ETSI instants

The deserializer only rejects fractional seconds ('.' !in it) and then calls Instant.parse, so offset timestamps without fractions (for example 2023-01-01T00:00:00+01:00) are accepted even though the class-level contract explicitly requires the UTC designator "Z". This silently accepts non-compliant input instead of failing fast.

Useful? React with 👍 / 👎.

@nodh nodh changed the title Feature/2026/04/22 etsi data classes ETSI 119 602 Data Classes Apr 29, 2026
@acrusage-iaik acrusage-iaik force-pushed the feature/2026/04/22-etsi-data-classes branch from 1a89024 to 8bd564f Compare April 29, 2026 13:48
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

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.

2 participants