openrewrite / openrewrite/rewrite-static-analysis

Migrate from `java.io.File` to `java.nio.Path`

Open
#509 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement recipe
Dominant language
Java
Stars
62
Forks
112
Avg merge
1d 19h
Merged PRs (30d)
40

Description

Migrate from java.io.File to java.nio.Path.

It would be nice to have a migration for this massive task. Its might be a little complex but doable and highly aprechiated.

Basically we would like to automate something like this:

Image

https://github.com/checkstyle/checkstyle/pull/16861#discussion_r2042437612

https://docs.openrewrite.org/recipes/java/migrate/nio/file

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing java.nio.file migration recipe at docs.openrewrite.org/recipes/java/migrate/nio/file and the linked Checkstyle discussion. Identify the intended java.io.File migration patterns and how this repository structures comparable recipes. Done means the requested migration is automated across the stated cases and covered by the repository's relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.