Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace guava's com.google.common.io.Files implementation with analog from jdk7 #3808

Open
kofemann opened this issue Feb 11, 2018 · 1 comment · May be fixed by #7278
Open

Replace guava's com.google.common.io.Files implementation with analog from jdk7 #3808

kofemann opened this issue Feb 11, 2018 · 1 comment · May be fixed by #7278

Comments

@kofemann
Copy link
Member

dCache code base heavily uses Googl's guava library. However, newer JDK releases providing similar functionality. For instance, com.google.common.io.Files can be replaced with java.nio.file.Files to reduce dependency on external library.

@jobegrabber
Copy link
Contributor

Will do

jobegrabber added a commit to jobegrabber/dcache that referenced this issue Feb 14, 2019
Motivation:

From dCache#3808: The dCache heavily utilizes Google's guava library. For some
use cases the JDK standard library now offers similar functionality.
Here a few  com.google.common.io.Files can be replaced with java.nio.file.Files
invocations.

Modification:

Reduce dependency on external library guava by utilizing
java.nio.file.Files' methods instead of the ones provided by
com.google.common.io.Files (where applicable).

Result:

Keeping behaviour the same while having reduced dependency on guava.

Target: master
Signed-off-by: Jonas Grabber <[email protected]>
jobegrabber added a commit to jobegrabber/dcache that referenced this issue Feb 14, 2019
Motivation:

From dCache#3808: The dCache heavily utilizes Google's guava library. For some
use cases the JDK standard library now offers similar functionality.
Here a few  com.google.common.io.Files can be replaced with java.nio.file.Files
invocations.

Modification:

Reduce dependency on external library guava by utilizing
java.nio.file.Files' methods instead of the ones provided by
com.google.common.io.Files (where applicable).

Result:

Keeping behaviour the same while having reduced dependency on guava.

Target: master
Signed-off-by: Jonas Grabber <[email protected]>
jobegrabber added a commit to jobegrabber/dcache that referenced this issue Feb 14, 2019
Motivation:

From dCache#3808: The dCache library heavily utilizes Google's guava library. For some
use cases the JDK standard library now offers similar functionality.
Here a few  com.google.common.io.Files can be replaced with java.nio.file.Files
invocations.

Modification:

Reduce dependency on external library guava by utilizing
java.nio.file.Files' methods instead of the ones provided by
com.google.common.io.Files (where applicable).

Result:

Keeping behaviour the same while having reduced dependency on guava.

Target: master
Signed-off-by: Jonas Grabber <[email protected]>
jobegrabber added a commit to jobegrabber/dcache that referenced this issue Feb 14, 2019
Motivation:

From dCache#3808: The dCache library heavily utilizes Google's guava library. For some
use cases the JDK standard library now offers similar functionality.
Here a few  com.google.common.io.Files can be replaced with java.nio.file.Files
invocations.

Modification:

Reduce dependency on external library guava by utilizing
java.nio.file.Files' methods instead of the ones provided by
com.google.common.io.Files (where applicable).

Result:

Keeping behaviour the same while having reduced dependency on guava.

Target: master
Signed-off-by: Jonas Grabber <[email protected]>
jobegrabber added a commit to jobegrabber/dcache that referenced this issue Feb 14, 2019
Motivation:

From dCache#3808: The dCache library heavily utilizes Google's guava library. For some
use cases the JDK standard library now offers similar functionality.
Here a few  com.google.common.io.Files can be replaced with java.nio.file.Files
invocations.

Modification:

Reduce dependency on external library guava by utilizing
java.nio.file.Files' methods instead of the ones provided by
com.google.common.io.Files (where applicable).

Result:

Keeping behaviour the same while having reduced dependency on guava.

Target: master
Signed-off-by: Jonas Grabber <[email protected]>
jobegrabber added a commit to jobegrabber/dcache that referenced this issue Feb 14, 2019
Motivation:

From dCache#3808: The dCache library heavily utilizes Google's guava library. For some
use cases the JDK standard library now offers similar functionality.
Here a few  com.google.common.io.Files can be replaced with java.nio.file.Files
invocations.

Modification:

Reduce dependency on external library guava by utilizing
java.nio.file.Files' methods instead of the ones provided by
com.google.common.io.Files (where applicable).

Result:

Keeping behaviour the same while having reduced dependency on guava.

Fixes: dCache#3808
Target: master
Require-book: no
Require-notes: no
Signed-off-by: Jonas Grabber <[email protected]>
jobegrabber added a commit to jobegrabber/dcache that referenced this issue Feb 16, 2019
Motivation:

From dCache#3808: The dCache heavily utilizes Google's guava library. For some
use cases the JDK standard library now offers similar functionality.
Here a few  com.google.common.io.Files can be replaced with java.nio.file.Files
invocations.

Modification:

Reduce dependency on external library guava by utilizing
java.nio.file.Files' methods instead of the ones provided by
com.google.common.io.Files (where applicable).

Result:

Keeping behaviour the same while having reduced dependency on guava.

Target: master
Signed-off-by: Jonas Grabber <[email protected]>
jobegrabber added a commit to jobegrabber/dcache that referenced this issue Feb 16, 2019
Motivation:

From dCache#3808: The dCache heavily utilizes Google's guava library. For some
use cases the JDK standard library now offers similar functionality.
Here a few  com.google.common.io.Files can be replaced with java.nio.file.Files
invocations.

Modification:

Reduce dependency on external library guava by utilizing
java.nio.file.Files' methods instead of the ones provided by
com.google.common.io.Files (where applicable).

Result:

Keeping behaviour the same while having reduced dependency on guava.

Target: master
Signed-off-by: Jonas Grabber <[email protected]>
jobegrabber added a commit to jobegrabber/dcache that referenced this issue Feb 16, 2019
Motivation:

From dCache#3808: The dCache heavily utilizes Google's guava library. For some
use cases the JDK standard library now offers similar functionality.
Here a few  com.google.common.io.Files can be replaced with java.nio.file.Files
invocations.

Modification:

Reduce dependency on external library guava by utilizing
java.nio.file.Files' methods instead of the ones provided by
com.google.common.io.Files (where applicable).

Result:

Keeping behaviour the same while having reduced dependency on guava.

Target: master
Signed-off-by: Jonas Grabber <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants