Commit Graph
24267 Commits
Author SHA1 Message Date
Michael Brohl 6639ffa89d Fixed: ContentWorker#findAlternateLocaleContent(Delegator, GenericValue, Locale)
does not use fallback locale.
(OFBIZ-9445)

If no alternate locale content for the requested locale is found, search for an 
alternate locale content with the locale configured in general.properties at 
locale.properties.fallback. If this one isn't found either we can still return 
the original content.

Thanks Tobias Laufkötter for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800780 13f79535-47bb-0310-9956-ffa450edef68
2017-07-04 12:56:38 +00:00
Taher A. Alkhateeb 707e8e86f5 Improved: Refactor Config.java and properties files
(OFBIZ-9435)

Another round of refactoring in the start component with the following changes:

- Change the default adminKey to "NA" since it is only used in the "start"
  context. Other contexts do not require an admin server (test, load-data)
- Simplify and cleanup the locale creation logic in the constructor and move
  things out to the method with a return value
- Simplify the Timezone creation logic by moving it outside the constructor into
  a small method
- Substantially simplify the determineOfbizPropertiesFileName(..) method by
  reversing the order of condition evaluation (first, load-data, then test, then
  anything else is start)
- Change default locale to be 'en' as the system crashes if not provided.
- Remove all comments from properties files except for start.properties and
  refer to it from the other properties files
- Update the properties files accordingly

Thanks: Jacques Le Roux for review and suggestion to remove the comments from
        properties files


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800368 13f79535-47bb-0310-9956-ffa450edef68
2017-06-30 10:19:50 +00:00
Michael Brohl 8b3b0ecf41 Improved: Several file names do not adhere to conventions applied to same files
in other components.
(OFBIZ-9338)

Thanks Pierre Smits for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800303 13f79535-47bb-0310-9956-ffa450edef68
2017-06-29 16:39:27 +00:00
Michael Brohl eab1123394 Improved: UtilMisc.toMap(), toList() and toSet() refactoring taking Varargs for
creating the wanted data structure.
(OFBIZ-9393)

This patch removes a number of outdated methods that took a fixed number of 
objects to create a data structure, such as a linked list. Since the code is 
outdated and inflexible, this patch removes these methods and added methods to 
create the given data structure via a variable amount of arguments. 
This approach also ensures that no other code needs a refactoring. In addition 
the method populateMap() was removed which was private and was only used by the 
multiple outdated toMap() functions.

Thanks Martin Becker for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800299 13f79535-47bb-0310-9956-ffa450edef68
2017-06-29 16:04:01 +00:00
Michael Brohl babe08a1b2 Improved: Upgrade Tomcat to 8.5.16
(OFBIZ-9437)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800296 13f79535-47bb-0310-9956-ffa450edef68
2017-06-29 15:51:18 +00:00
Jacques Le Roux 7dd842cf3e Improved: Typo in value of SfaAddSalesForecastDetail uiLabel
(OFBIZ-9424)

It should be Forecast not Forcast 

Thanks: Aditya Sharma for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800250 13f79535-47bb-0310-9956-ffa450edef68
2017-06-29 08:41:18 +00:00
Nicolas Malin 987feeb2a8 Improved: Convert RateServices.xml mini-lang to groovyDSL (OFBIZ-9381)
finish the service conversion : getRateAmount, getRatesAmountsFromWorkEffortId, getRatesAmountsFromPartyId, getRatesAmountsFromEmplPositionTypeId and filterRateAmountList
I create a generic groovy function getRateAmoutForm to remove duplicate code and refactoring the filterRateAmount for simplicity

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800245 13f79535-47bb-0310-9956-ffa450edef68
2017-06-29 07:46:02 +00:00
Taher A. Alkhateeb 89a041c97a Improved: refactored and improved the createPlugin task in gradle script
(OFBIZ-9436)

Applied the following changes:

- reduced the copy-paste pattern in creating the directory structure for a
  new component by converting the mkdir logic into a loop over a list of the
  directory names
- reduced the copy-paste pattern in creating the files from their templates
  by converting the calls to the generator function to a loop over a list
  of maps containing the arguments to the generator function
- added missing src/java/main and src/java/test
- removed duplicate / redundant directories as creating child directory
  automatically creates the parent


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800073 13f79535-47bb-0310-9956-ffa450edef68
2017-06-27 15:39:34 +00:00
Jacques Le Roux db272d8ff4 No functional change,
While checking there were no other cases like in OFBIZ-9432 
(missing path to class), to be consistent I removed the trailing semicolons in 
groovy scripts and made few formatting

I did not changes tests code

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799867 13f79535-47bb-0310-9956-ffa450edef68
2017-06-26 09:55:10 +00:00
Jacques Le Roux 6e61e09fcc Reverts r1799736
Taher pointed out in dev ML that kill is not an atomic operation. 
So the previous behaviour does not change. In most cases SIGKILL is still the 
action which kills the process before SIGTERM has a chance to terminate it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799852 13f79535-47bb-0310-9956-ffa450edef68
2017-06-26 06:03:35 +00:00
Michael Brohl 59ed752fe4 Fixed: Cannot create a new GL Account
(OFBIZ-9429)

This changes the service definition of createGLAccount to use the pk
attributes as OUT instead of INOUT so that the glAccountId will be 
generated by OFBiz instead of being provided to the service.

Thanks Sharan Foga for reporting.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799793 13f79535-47bb-0310-9956-ffa450edef68
2017-06-25 10:37:48 +00:00
Taher A. Alkhateeb 5275aaf233 Fixed: renamed help file that is missing an underscore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799779 13f79535-47bb-0310-9956-ffa450edef68
2017-06-24 20:19:32 +00:00
Michael Brohl 2fac415800 Improved: Upgrade Groovy to 2.4.12
(OFBIZ-9430)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799771 13f79535-47bb-0310-9956-ffa450edef68
2017-06-24 13:30:24 +00:00
Jacques Le Roux ccebb2833e Fixed: CreateShipment code logic error
(OFBIZ-9425)

Service createShipment can create both sales and purchase shipment with 
workeffort.
For sales shipment it creates SHIPMENT_OUTBOUND type work effort 
For purchase shipment it creates SHIPMENT_INBOUND type work effort.

The maps used are shipWorkEffortMap to create outbound work effort and 
arrivalWorkEffortMap to create inbound shipment.

Which work effort will be created decided by the condition whether parameters.
estimatedShipDate is coming or parameters.estimatedArrivalDate is coming.

With existing logic the workEffort.workEffortTypeId, workEffort.currentStatusId 
and workEffort.workEffortPurposeTypeId is not persist into db as values set 
into the wrong map. 


Thanks: Wai for report and patch, Rishi Solanki for clear explanation

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799767 13f79535-47bb-0310-9956-ffa450edef68
2017-06-24 12:00:25 +00:00
Jacques Le Roux b856ea7c5b No functional change
Improves terminateOfbiz byt using TERM before KILL
https://fr.wikipedia.org/wiki/Kill_(Unix)
https://unix.stackexchange.com/questions/8916/when-should-i-not-kill-9-a-process

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799736 13f79535-47bb-0310-9956-ffa450edef68
2017-06-24 07:56:45 +00:00
Deepak Dixit a928d3db63 Improved: Added lookup for contentId field and also added required-field true for pathAlias on EditWebSitePathAlias screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799735 13f79535-47bb-0310-9956-ffa450edef68
2017-06-24 07:34:19 +00:00
Taher A. Alkhateeb 662b54cf8a Improved: exception handling block in ContainerConfig removing code duplication
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799712 13f79535-47bb-0310-9956-ffa450edef68
2017-06-23 21:40:51 +00:00
Taher A. Alkhateeb 6f82482c4c Implemented: Refactor CatalinaContainer
(OFBIZ-9392)

No functional change, but an almost complete rewrite of the tomcat container
with the following highlights:

- breakup the logic in init() many smaller functions each specializing in one
  thing
- Unify the host creation logic between main host and context-specific hosts
- introduce streams and lambdas where appropriate
- rename loadComponents() to loadWebapps()
- rename createContext() to createCallableContext()
- rename configureContext() to prepareContext()
- remove instance variables that are not necessary / redundant for operating
  the container correctly and refactor the code logic accordingly
- remove unnecessary valve comments and point to documentation URL
- remove any commented out code
- remove the static block for initializing SSLUtil.loadJsseProperties(). This
- code is already called and hence redundant
- remove redundant / dead / unused code
- add missing FilterDef to context
- rename J2EE server from "ofbiz container 3.1" to "ofbiz container"
- lots and lots of re-arranging and small code improvements

Thanks: Jacopo Capellato, Michael Brohl, Scott Gray and Jacques Le Roux for
        your help in testing, reviewing and providing feedback.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799708 13f79535-47bb-0310-9956-ffa450edef68
2017-06-23 21:34:48 +00:00
Deepak Dixit 4d48388818 Fixed: The following required parameter is missing: [IN] [removeWebSitePathAlias.fromDate].(OFBIZ-9426)
Thanks Daniel Coric for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799687 13f79535-47bb-0310-9956-ffa450edef68
2017-06-23 17:35:44 +00:00
Jacopo Cappellato 5a97d0de2b Fixed: unit test failure when "verbose" logging was on.
(OFBIZ-9305)

When print.verbose was set to true in debug.properties, the unit test 
EntitySaxReaderTests.parse was failing because it is using some mock objects; 
fixed by temporarily disabling the verbose logging during the test.

Thanks: William Wang for the report.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799417 13f79535-47bb-0310-9956-ffa450edef68
2017-06-21 09:41:38 +00:00
Jacques Le Roux f6bd4d460a Improved: Accounting Manager \ Fixed Assets, press button [NEW FIXED ASSET],
but action button is [Update], not [Save]
(OFBIZ-9422)

Thanks: Do Nhu Vy for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799327 13f79535-47bb-0310-9956-ffa450edef68
2017-06-20 09:33:51 +00:00
Nicolas Malin a1b7e5a23d Improved: Convert RateServices.xml mini-lang to groovyDSL (OFBIZ-9381)
With service rate minilang conversion to groovy, I renamed deleteRateAmount and deletePartyRate to expireRateAmount and expirePartyRate for more coherence between the service process and the name. The previous service naming have been kept to set them as deprecated

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799252 13f79535-47bb-0310-9956-ffa450edef68
2017-06-19 18:27:14 +00:00
Jacques Le Roux fcfef0f359 Fixed: Wiki restructure issues
(OFBIZ-9416)

Removes few files inadvertently committed with r1799242 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799243 13f79535-47bb-0310-9956-ffa450edef68
2017-06-19 17:46:09 +00:00
Jacques Le Roux ab36d3297e Fixed: Wiki restructure issues
(OFBIZ-9416)

Replaces a bunch of deprecated links or shortcuts

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799242 13f79535-47bb-0310-9956-ffa450edef68
2017-06-19 17:38:38 +00:00
Jacques Le Roux b372360a85 Fixed: Wiki restructure issues
(OFBIZ-9416)

Replaces a bunch of deprecated links

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799241 13f79535-47bb-0310-9956-ffa450edef68
2017-06-19 17:26:23 +00:00
Deepak Dixit 8aecef8445 Improved: Removed unused entity uiLabels for removed currency UOM (OFBIZ-9413)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799209 13f79535-47bb-0310-9956-ffa450edef68
2017-06-19 13:50:34 +00:00
Deepak Dixit 6f39c2d18d Improved: Update Currency Uom data (OFBIZ-9413)
While adding numericCode to currency UOM, I found that we need to update some old currency UOM, as uomId has been updated.
https://www.currency-iso.org/en/home/tables/table-a1.html
https://www.currency-iso.org/en/home/amendments.html

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799183 13f79535-47bb-0310-9956-ffa450edef68
2017-06-19 11:47:58 +00:00
Taher A. Alkhateeb 632e55f378 Implemented: removed unused private variables from UtilDateTime
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799148 13f79535-47bb-0310-9956-ffa450edef68
2017-06-19 08:08:36 +00:00
Jacques Le Roux 371ebe2913 Fixed: Create new blog article entry error.
(OFBIZ-9373)

After using plain text for the field [articleData], when I post the form, 
I get the following error message:
 The following required parameter is missing: [IN] 
 [createElectronicText.dataResourceId]]
 
jleroux: it was a bug introduced with r1765319 while refactoring to use 
entity-auto

Thanks: Daniel Coric who find the reason and Yao who initially reported and 
helped to find a solution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799088 13f79535-47bb-0310-9956-ffa450edef68
2017-06-18 14:32:36 +00:00
Deepak Dixit 29bea444f5 Improved: Added numeric code for Currency UOM. (OFBIZ-9409)
The three-digit numeric code is useful when currency codes need to be understood in countries that do not use Latin scripts and for computerised systems. Where possible the 3 digit numeric code is the same as the numeric country code.

https://www.iso.org/iso-4217-currency-codes.html
https://www.currency-iso.org/en/home/tables/table-a1.html

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798907 13f79535-47bb-0310-9956-ffa450edef68
2017-06-16 10:26:03 +00:00
Jacques Le Roux 2dfdb7bd7a Implemented: Rename "loadAll" the "loadDefault" Gradle task
(OFBIZ-9411)

As discussed on user ML (https://s.apache.org/xjFj) rename "loadAll" 
the "loadDefault" Gradle task.

This moves the README.md.html file from the unique separated branch tools 

I used the documentation subfolder to put the README.md.hmlt file which is then 
used in the https://cwiki.apache.org/confluence/display/OFBIZ/From+Ant+to+Gradle 
page. So only the trunk version is used in this page. I'll rather put the 
README.md.hmlt file in the root directory (at least for now, maybe a 
documentation page would fit better notably in relation with my proposition 
at https://s.apache.org/mpRV where README.md.hmlt files would more used) 
and create a separated version for the R11 branch 
(README.md.hmlt file and wiki page)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798859 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 16:58:05 +00:00
Jacques Le Roux d952873c74 Implemented: Rename "loadAll" the "loadDefault" Gradle task
(OFBIZ-9411)

As discussed on user ML (https://s.apache.org/xjFj) rename "loadAll" 
the "loadDefault" Gradle task.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798844 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 15:35:59 +00:00
Deepak Dixit d78bd1d62b Improved: Only formatting changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798817 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 10:29:53 +00:00
Jacques Le Roux 195171a37c Fixed: RequestHandlerException on request link of Quote Price page
(OFBIZ-9384)

To reproduce get to 
https://localhost:8443/ordermgr/control/ManageQuotePrices?quoteId=CQ0001
Click on link under View Request. It gives a RequestHandlerException.

jleroux: I simply changed the link from inter-app to simple (inter-app works 
also but is not right)

Thanks: Aditya

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798808 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 08:52:43 +00:00
Jacques Le Roux ac67cc7ad3 Fixed: RequestHandlerException on request link of Quote Profit page
(OFBIZ-9386)

To reproduce get to 
https://localhost:8443/ordermgr/control/ViewQuoteProfit?quoteId=CQ0001
Click on link under View Request. It gives a RequestHandlerException.

jleroux: I simply changed the link from inter-app to simple (inter-app works 
also but is not right)

Thanks: Aditya

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798803 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 08:39:17 +00:00
Deepak Dixit f149a0d95c Improved: Updated Geo data for India (OFBIZ-9406)
India has 29 states and 7 Union Territory. Need to update data as in data Union Territory also added as STATE,
used TERRITORY as GeoTypeId for Union Territories.

Applied patch from jira issue 
- Updated geoTypeId for 7 union territory from STATE to TERRITORY
- Update geoName for Andaman And Nicobar it should be Andaman and Nicobar Islands
- Corrected geoName and gooId and other detail for Delhi union territory
- Corrected to the name for Jammu and Kashmir (And should be in lower camel case)
- Corrected name for Odisha (Orissa>> Odisha)
- Corrected geoName for Puducherry, also added wellKnownText = "Pondicherry"
- Corrected geoName for Tamil Nadu (Tamilnadu >> Tamil Nadu)
- Added data for new state Telangana
- Corrected geoName for Uttarakhand (Uttaranchal >> Uttarakhand)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798796 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 08:16:45 +00:00
Jacques Le Roux e2b9b26cb4 Fixed: simple methods not terminating on error condition
(OFBIZ-9407)

jleroux: adding a <check-errors/> is quite right

Thanks: Wai 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798682 13f79535-47bb-0310-9956-ffa450edef68
2017-06-14 13:47:25 +00:00
Jacques Le Roux ff549a43aa No functional change
Just removes trailing blanks

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798681 13f79535-47bb-0310-9956-ffa450edef68
2017-06-14 13:46:17 +00:00
Deepak Dixit 300f0b2701 Improved: No functional change, only convert the Geo_IN.xml data geoName from upper case to upper camel case (OFBIZ-9406)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798668 13f79535-47bb-0310-9956-ffa450edef68
2017-06-14 11:28:45 +00:00
Jacques Le Roux 2d409ff0e2 No functional change
Just comments about EntityListIterator usage in Paginator class. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798599 13f79535-47bb-0310-9956-ffa450edef68
2017-06-13 13:28:04 +00:00
Jacques Le Roux 93dc619f0a No functional changes.
Replaces EntityListIterator.close() in finally by try-with-ressource

I think I have done all these kinds of changes. This is tested.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798571 13f79535-47bb-0310-9956-ffa450edef68
2017-06-13 09:48:49 +00:00
Jacques Le Roux 2929627451 Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

The solution is to use try-with-ressources when possible

This completes OFBIZ-9385, there are no other cases left.

There are few methods like FindServices.executeFind() or performFindParty 
service which can't be improved because they return an EntityListIterator. 
So methods using them must be carefully crafted to close the EntityListIterator. 
Most where already documented (in the framework). I completed few in 
applications at r1798495  




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798566 13f79535-47bb-0310-9956-ffa450edef68
2017-06-13 08:29:28 +00:00
Jacques Le Roux aa644a0975 No functional change
Completes the JavaDoc of few methods which return an EntityListIterator

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798563 13f79535-47bb-0310-9956-ffa450edef68
2017-06-13 08:16:28 +00:00
Jacques Le Roux df46ff51de No functional change
Improves the documentation of few methods which return an EntityListIterator

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798495 13f79535-47bb-0310-9956-ffa450edef68
2017-06-12 17:20:36 +00:00
Jacques Le Roux 29a55bc4b0 No functional change, just a debug log change
As mentioned by Scott on dev ML the stack trace at this point is irrelevant

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798422 13f79535-47bb-0310-9956-ffa450edef68
2017-06-12 07:35:54 +00:00
Jacques Le Roux 19d6c74fce No functional change, this is better than r1798060
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798388 13f79535-47bb-0310-9956-ffa450edef68
2017-06-11 17:30:26 +00:00
Jacques Le Roux ce3fcec143 No functional change, fix an ugly bug put in with r1798335 due to an
abandoned refactoring

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798358 13f79535-47bb-0310-9956-ffa450edef68
2017-06-11 12:19:19 +00:00
Jacques Le Roux f0b87bd3e0 Fixed: ERROR: Cannot do a find that returns an EntityListIterator with no
transaction in place
(OFBIZ-9286)

While working on OFBIZ-9385 "EntityListIterator closed but not in case of 
exception" I forgot that  you must begin the transaction before the 
try-with-resources, this fixes last cases, lesson learned the hard way!


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798353 13f79535-47bb-0310-9956-ffa450edef68
2017-06-11 10:12:32 +00:00
Jacques Le Roux dfbacd84c2 No functional change, removes an useless EntityListIterator initialisation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798335 13f79535-47bb-0310-9956-ffa450edef68
2017-06-10 19:42:08 +00:00
Jacques Le Roux 41d19f3d1c Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

The solution is to use try-with-ressources

The getProductSearchResults() method was public but only used in the class.
I made it private

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798300 13f79535-47bb-0310-9956-ffa450edef68
2017-06-10 09:12:05 +00:00