Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NULL 文字列へ置換え時の判定が null かどうかになっている #38

Open
Koichi-Kobayashi opened this issue Jun 5, 2015 · 0 comments

Comments

@Koichi-Kobayashi
Copy link

該当コードはこちらです。
https://github.com/orangesignal/orangesignal-csv/blob/master/src/main/java/com/orangesignal/csv/CsvWriter.java#L160

ここは value == null とするよりも、
value == null || "".equals(value) とした方がよいのではないでしょうか?

CsvConfig#setNullString で値がないことを表す文字列が設定設定できますが、
文字列の場合、空白も値がないという事にはならないでしょうか?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant