google / google/error-prone

FieldCanBeLocal static field incorrectly patched

Open
#3,814 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

Where
`private static String logFileNameBase;`
is only used locally, the patch replaces
`Logger.logFileNameBase = Logger.logFolderName + name;`
with
`String Logger.logFileNameBase = Logger.logFolderName + name;`
when it should be
`String logFileNameBase = Logger.logFolderName + name;`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.