-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved: Refactoring ‘EntityCondition’ - Turn EntityCondition into a…
…n interface (OFBIZ-10691) This is done in the spirit of favouring abstraction over implementation. To achieve that the following change has been made: * The useless ‘EntityCondition#eval’ methods has been removed * The ‘PriceServices#calculatePurchasePrice’ method has been fixed to refer to ‘EntityCondition#makeCondition’ instead of ‘EntityExpr#makeCondition’. Additionally, the genericity of the ‘makeCondition’ methods has been improved to allow having a hierarchy of class between the ‘EntityCondition’ type and the subtypes. Exceptionally a ‘serialVersionUID’ has been used instead of suppressing the 'serial' warning for the ‘EntityCondition’ interface to satisfy both Eclipse and OpenJDK linting features which disagree on the validity of using the ‘@SuppressWarnings’ annotation in the case of interfaces extending ‘Serializable’. Thanks Mathieu for the contribution git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1850373 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
9 changed files
with
228 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.