Fixed some pmd violations in Block and BlocksterObject