Skip to content

Commit f62c5cd

Browse files
authored
Merge pull request #180 from valfirst/minor-improvement-use-isempty-instead-of-equals
Minor improvement: replace `equals("")` with `isEmpty()`
2 parents 6e69860 + 365589c commit f62c5cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/sstoehr/harreader/model/HarLog.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public String getVersion() {
3838
}
3939

4040
public void setVersion(String version) {
41-
if (version == null || version.trim().equals("")) {
41+
if (version == null || version.trim().isEmpty()) {
4242
version = DEFAULT_VERSION;
4343
}
4444
this.version = version;

0 commit comments

Comments
 (0)