fixed javadoc
fixed javadoc issue
changed "new byte[0]" to constant
minor changes (private static -> private static final, private method -> private static method)
ran some IntelliJ IDEA inspections on code
- removed superfluous String.format() calls
- replaced single character strings with chars
- replaced one regex with precompiled pattern
- replaced tail recursion with loop