Become a member
Sign in
辰
辰

辰

Just a Java programmer

35 Following
17 Followers
·
  • Profile
  • Claps
  • Responses

Latest

辰
辰
Oct 26 · 1 min read

An anti-pattern for try-with-resources

I just found my own anti-pattern regarding the try-with-resources statements.

Whenever I encountered code like this.

try (InputStream is = getSome()) {
}
辰
辰 in Javarevisited
Apr 25 · 3 min read

How to check whether an Iterable is sorted or not in Java

140

辰
辰 in Javarevisited
Apr 24 · 3 min read

Using temporary files for unit testing

Sometimes we need to create temporary files and use them in…

115

辰
辰 in Javarevisited
Mar 28 · 1 min read

A case of a wrong method reference

Check this out.

91

2 responses
辰
辰 in Javarevisited
Mar 5 · 1 min read

@lombok.Data and MyBatis

With my following result type,

@Data
public class Some {
...
private List<Sting>…

85

1 response