Fix findbug warnings.
Merge pull request #169 from EasonLiao/fix_findbugs

Fix findbug warnings.