- remove some unused statement
- remove unnecessary check
Issue-ID: POLICY-2616
Change-Id: Ieb2c898a3c6ad7210642aef990b43c9a01fc15b3
Signed-off-by: Taka Cho <takamune.cho@att.com>
if (session != null) {
// we found the 'PolicySession' -- now, look for the adjunct
Object adj = session.getAdjunct(Adjunct.class);
- if (adj == null || !(adj instanceof Adjunct)) {
+ if (!(adj instanceof Adjunct)) {
// adjunct does not exist, or has the wrong type -- create it
adjunct = new Adjunct();
session.setAdjunct(Adjunct.class, adjunct);
} else {
// found the adjunct -- return it
adjunct = (Adjunct) adj;
- //adjunct = Adjunct.class.cast(adj);
}
}
return adjunct;