[OLINGO-356] removed several warnings + code clean-up

Change-Id: Id7a6ede6309e6f1109a0ded6df9c436df2449764