Skip to content

Commit f19bf61

Browse files
committed
comment added
1 parent d2334c5 commit f19bf61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vaadoo-bytebuddy/src/main/java/com/github/pfichtner/vaadoo/fragments/impl/JdkOnlyCodeFragment.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ public void check(NotBlank anno, CharSequence charSequence) {
7373
if (charSequence == null) {
7474
throw new NullValueException(anno.message());
7575
}
76+
// since there is no #isEmpty on CharSequence and we handle CharSequence s in
77+
// #notEmpty we use "length() == 0" here too to be consistent, even if we could
78+
// use String#isEmpty here
7679
if (charSequence.toString().trim().length() == 0) {
7780
throw new IllegalArgumentException(anno.message());
7881
}

0 commit comments

Comments
 (0)