Suppressed generic warnings.
BDecoder - Moved check of next element presence from the hasNext() method to the decode() one.