Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Unnecessary resetting of object references
Unnecessary resetting of object references [message #615892] Sun, 16 March 2008 13:33
Manfred Hahn is currently offline Manfred HahnFriend
Messages: 64
Registered: July 2009
Member
Hi Martin,

in the context of another problem I had with the generated gmf source (for
a detailed description look at my question in the gmf group) I discovered
that the EReferencePropertyHandler.set() does a reset of an object even if
the new object is the same as the old one.

If the reference is not bidirectional the current source lines are
if (curValue == null && value == null) {
return; // do nothing in this case
}
...

Could this be replaced by something like this
if (curValue == value) {
return; // do nothing in this case
}
...
without any harm?

Best regards

Manfred
Previous Topic:emf query big doubt
Next Topic:Unnecessary resetting of object references
Goto Forum:
  


Current Time: Tue Apr 16 13:51:05 GMT 2024

Powered by FUDForum. Page generated in 0.82977 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top