fixed private method declared final

[ci skip]
minor warning removals [ci skip]