Skip to content

A package 'java.util.*' conflict from Maven dependency 'high-scale-lib' #141

@netskill

Description

@netskill

I found that the jar file 'high-scale-lib' has a package 'java.util', and then the project 'basic-server' got a package conflict issue.

I remove the maven dependency, as following.
<dependency> <groupId>com.boundary</groupId> <artifactId>high-scale-lib</artifactId> </dependency>

After that, I replace the following codes at classLocalFileSystem.
private final NonBlockingHashMapLong<Path> inodeToPath = new NonBlockingHashMapLong<>(); private final NonBlockingHashMap<Path, Long> pathToInode = new NonBlockingHashMap<>();

private final ConcurrentHashMap<Long,Path> inodeToPath = new ConcurrentHashMap<>(); private final ConcurrentHashMap<Path,Long> pathToInode = new ConcurrentHashMap<>();

I want to know if this way is correct, or I have to use the class 'NonBlockingHashMapLong' ?

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions