Fix correctness and threading issue in new Manufacturer lookup mechanism. It was...
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Fri, 24 Aug 2012 20:31:13 +0000 (20:31 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Fri, 24 Aug 2012 20:31:13 +0000 (20:31 +0000)
commit0e2104d1ddd05ac08568195d27ca6d3dbde25de9
treea03a65cf13ea7acffc27f312fcb36e3bfefae5ba
parent95297bffa2a0dba4a12c855e4fdd86a0bf6b1074
Fix correctness and threading issue in new Manufacturer lookup mechanism.  It was incorrect because the Manufacturer objects should be registered under the searchNames.  The threading correctness is only an issue in the Manufacturer.get(String) method when the name does not exist.  This is handled by using external locking mechanism.  Added a unit test which exposed the problem looking for the manufacturer "Contrail_Rockets".

git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@1000 180e2498-e6e9-4542-8430-84ac67f01cd8
core/src/net/sf/openrocket/motor/Manufacturer.java
core/test/net/sf/openrocket/motor/ManufacturerTest.java