Skip to content

kotlinx.serialization.properties.Properties object name conflicts with java.util.Properties #2914

Open
@joffrey-bion

Description

@joffrey-bion

When dealing with serialization to Properties format, there is a high chance that we're using both Java's Properties type and Kotlin's Properties object. This is quite annoying import-wise.

Renaming to something different would be nice, although it would also unfortunately break the pattern of naming the serializer object like the format.

Alternatively, providing extensions like Properties.decodeFromFile<T>(path: Path) might solve the problem because we wouldn't have to first read the file into a java.util.Properties instance, convert it to a map, and then call the Properties deserialization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions