fusesource / jansi

Jansi is a small java library that allows you to use ANSI escape sequences to format your console output which works even on windows.
http://fusesource.github.io/jansi/
Apache License 2.0
1.11k stars 140 forks source link

Add missing volatile modifier #273

Open Glavo opened 1 year ago

Glavo commented 1 year ago

Some static fields may be read and written by multiple threads, but they are not volatile, so there are potential thread safety issues. This PR fixes this issue.