Hutool 39 New 〈100% TRUSTED〉

Before diving into code, let's break down the scope of this update. Version 6.0.0.M39 introduces:

If you are still on Hutool 5.x, you are missing out on performance gains of up to 40% in file I/O and first-class OAuth2 support.


This version focuses heavily on stability and edge-case handling. Below are the highlights: hutool 39 new

If you actually meant 5.8.39 (patch release), here are the small fixes/features:

The keyword "new" doesn't just mean new methods; it means new performance. Before diving into code, let's break down the

Before (plain JDK):

List<String> lines = new ArrayList<>();
try (BufferedReader br = new BufferedReader(new FileReader("data.txt"))) 
    String line;
    while ((line = br.readLine()) != null) 
        if (line.trim().length() > 0) 
            lines.add(line.toUpperCase());
catch (IOException e) 
    e.printStackTrace();

After (Hutool 0.39):

List<String> lines = FileUtil.readLines("data.txt", "UTF-8")
    .stream()
    .filter(StrUtil::isNotBlank)
    .map(String::toUpperCase)
    .collect(Collectors.toList());

No catch, no while, no null checks.