Use switch instead of if-else-if in LzfDecoder