| Summary: | CommitIntegrityCheck should use #equals when comparing OIDs | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Caspar D. <caspar_d> | ||||
| Component: | cdo.core | Assignee: | Caspar D. <caspar_d> | ||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | saulius.tvarijonas | ||||
| Version: | 4.1 | Flags: | stepper:
review+
|
||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Caspar D.
[NoMagic note: SVR-3205] Created attachment 198069 [details]
Patch v1
Changing to 4.1 to ensure that the fix will "last". Please clone this bugzilla to 4.0 if you want a maintenance fix, too. The patch looks okay. But I also still see code like this: if (currentContainerID != CDOID.NULL) It'd be safer to use CDOIDUtil.isNull(id) instead. Please feel free to chnage thos plcaes, too, before you commit to *trunk* ! Committed revision 8577 to trunk. Resolving to FIXED. Cloned as bug 351042 I can still see checks like "currentContainerID != CDOID.NULL" and from the context I can not see that currentContainerID!=null. Don't you think it's worth fixing that to "!CDOIDUtil.isNull(currentContainerID)"? Closing. |