Skip to content

Commit

Permalink
replace null comparison by Objects methods
Browse files Browse the repository at this point in the history
  • Loading branch information
yvrng committed Jan 16, 2017
1 parent 70ce8c3 commit 8b7f4c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public EStructuralFeature getContainingFeature(InternalEObject internalObject) {
@Override
public EObject eObject(Id id) {
PersistentEObject object = null;
if(id != null) {
if(nonNull(id)) {
EClass eClass = resolveInstanceOf(id);
object = persistentObjectsCache.get(id, new PersistentEObjectCacheLoader(eClass));
if (object.resource() != resource()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public EStructuralFeature getContainingFeature(InternalEObject internalObject) {
@Override
public EObject eObject(Id id) {
PersistentEObject object = null;
if(id != null) {
if(nonNull(id)) {
EClass eClass = resolveInstanceOf(id);
object = persistentObjectsCache.get(id, new PersistentEObjectCacheLoader(eClass));
if (object.resource() != resource()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public EStructuralFeature getContainingFeature(InternalEObject internalObject) {
@Override
public EObject eObject(Id id) {
PersistentEObject object = null;
if(id != null) {
if(nonNull(id)) {
EClass eClass = resolveInstanceOf(id);
object = persistentObjectsCache.get(id, new PersistentEObjectCacheLoader(eClass));
if (object.resource() != resource()) {
Expand Down

0 comments on commit 8b7f4c5

Please sign in to comment.