cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject ObjectContext.localObject refactoring
Date Sat, 03 Sep 2011 21:16:15 GMT

I've got tired of doing:

Artist localArtist = (Artist) context.localArtist(artist.getObjectId(), null);

Aside from causing confusion about the second argument (should it be 'artist'? no, it should
be null), it is still plain ugly. Anyone sees any flaws with the reasoning behind this Jira?

View raw message