commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r899186 [32/43] - in /websites/production/commons/content/proper/commons-pool: cobertura/ cobertura/js/ css/ guide/ js/ testapidocs/ testapidocs/org/apache/commons/pool2/ testapidocs/org/apache/commons/pool2/impl/
Date Tue, 25 Feb 2014 19:23:45 GMT
Modified: websites/production/commons/content/proper/commons-pool/cobertura/org.apache.commons.pool2.impl.SoftReferenceObjectPool.html
==============================================================================
--- websites/production/commons/content/proper/commons-pool/cobertura/org.apache.commons.pool2.impl.SoftReferenceObjectPool.html (original)
+++ websites/production/commons/content/proper/commons-pool/cobertura/org.apache.commons.pool2.impl.SoftReferenceObjectPool.html Tue Feb 25 19:23:44 2014
@@ -12,745 +12,745 @@
 <div class="separator">&nbsp;</div>
 <table class="report">
 <thead><tr>  <td class="heading">Classes in this File</td>  <td class="heading"><a class="dfn" href="help.html" onclick="popupwindow('help.html'); return false;">Line Coverage</a></td>  <td class="heading"><a class="dfn" href="help.html" onclick="popupwindow('help.html'); return false;">Branch Coverage</a></td>  <td class="heading"><a class="dfn" href="help.html" onclick="popupwindow('help.html'); return false;">Complexity</a></td></tr></thead>
-  <tr><td><a href="org.apache.commons.pool2.impl.SoftReferenceObjectPool.html">SoftReferenceObjectPool</a></td><td><table cellpadding="0px" cellspacing="0px" class="percentgraph"><tr class="percentgraph"><td align="right" class="percentgraph" width="40">88%</td><td class="percentgraph"><div class="percentgraph"><div class="greenbar" style="width:88px"><span class="text">120/135</span></div></div></td></tr></table></td><td><table cellpadding="0px" cellspacing="0px" class="percentgraph"><tr class="percentgraph"><td align="right" class="percentgraph" width="40">65%</td><td class="percentgraph"><div class="percentgraph"><div class="greenbar" style="width:65px"><span class="text">42/64</span></div></div></td></tr></table></td><td class="value"><span class="hidden">4.0;</span>4</td></tr
+  <tr><td><a href="org.apache.commons.pool2.impl.SoftReferenceObjectPool.html">SoftReferenceObjectPool</a></td><td><table cellpadding="0px" cellspacing="0px" class="percentgraph"><tr class="percentgraph"><td align="right" class="percentgraph" width="40">88%</td><td class="percentgraph"><div class="percentgraph"><div class="greenbar" style="width:88px"><span class="text">120/135</span></div></div></td></tr></table></td><td><table cellpadding="0px" cellspacing="0px" class="percentgraph"><tr class="percentgraph"><td align="right" class="percentgraph" width="40">65%</td><td class="percentgraph"><div class="percentgraph"><div class="greenbar" style="width:65px"><span class="text">42/64</span></div></div></td></tr></table></td><td class="value"><span class="hidden">4.0;</span>4</td></tr>
 
 </table>
 <div class="separator">&nbsp;</div>
-<table cellspacing="0" cellpadding="0" class="src"
-<tr>  <td class="numLine">&nbsp;1</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">/*</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;2</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;3</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * contributor license agreements.  See the NOTICE file distributed with</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;4</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * this work for additional information regarding copyright ownership.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;5</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;6</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * (the "License"); you may not use this file except in compliance with</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;7</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * the License.  You may obtain a copy of the License at</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;8</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;9</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> *      http://www.apache.org/licenses/LICENSE-2.0</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;10</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;11</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;12</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;13</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;14</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * See the License for the specific language governing permissions and</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;15</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * limitations under the License.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;16</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;17</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="keyword">package</span> org.apache.commons.pool2.impl;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;18</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;19</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="keyword">import</span> java.lang.ref.Reference;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;20</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="keyword">import</span> java.lang.ref.ReferenceQueue;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;21</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="keyword">import</span> java.lang.ref.SoftReference;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;22</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="keyword">import</span> java.util.ArrayList;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;23</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="keyword">import</span> java.util.Iterator;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;24</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="keyword">import</span> java.util.NoSuchElementException;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;25</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;26</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="keyword">import</span> org.apache.commons.pool2.BaseObjectPool;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;27</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="keyword">import</span> org.apache.commons.pool2.ObjectPool;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;28</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="keyword">import</span> org.apache.commons.pool2.PoolUtils;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;29</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="keyword">import</span> org.apache.commons.pool2.PooledObjectFactory;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;30</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;31</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;32</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * A {@link java.lang.ref.SoftReference SoftReference} based {@link ObjectPool}.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;33</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * &lt;p&gt;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;34</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * This class is intended to be thread-safe.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;35</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;36</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * @param &lt;T&gt;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;37</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> *            Type of element pooled in this pool.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;38</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;39</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * @version $Revision: 1566584 $</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;40</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;41</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> * @since 2.0</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;42</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment"> */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;43</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="keyword">public</span> <span class="keyword">class</span> SoftReferenceObjectPool&lt;T&gt; <span class="keyword">extends</span> BaseObjectPool&lt;T&gt; {</pre></td></tr
-<tr>  <td class="numLine">&nbsp;44</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;45</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/** Factory to source pooled objects */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;46</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="keyword">private</span> <span class="keyword">final</span> PooledObjectFactory&lt;T&gt; factory;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;47</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;48</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;49</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Queue of broken references that might be able to be removed from</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;50</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * &lt;code&gt;_pool&lt;/code&gt;. This is used to help {@link #getNumIdle()} be more</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;51</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * accurate with minimal performance overhead.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;52</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;53</td>  <td class="nbHitsCovered">&nbsp;16</td>  <td class="src"><pre class="src">&nbsp;    <span class="keyword">private</span> <span class="keyword">final</span> ReferenceQueue&lt;T&gt; refQueue = <span class="keyword">new</span> ReferenceQueue&lt;T&gt;();</pre></td></tr
-<tr>  <td class="numLine">&nbsp;54</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;55</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/** Count of instances that have been checkout out to pool clients */</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;56</td>  <td class="nbHitsCovered">&nbsp;16</td>  <td class="src"><pre class="src">&nbsp;    <span class="keyword">private</span> <span class="keyword">int</span> numActive = 0; <span class="comment">// @GuardedBy("this")</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;57</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;58</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/** Total number of instances that have been destroyed */</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;59</td>  <td class="nbHitsCovered">&nbsp;16</td>  <td class="src"><pre class="src">&nbsp;    <span class="keyword">private</span> <span class="keyword">long</span> destroyCount = 0;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;60</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;61</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/** Total number of instances that have been created */</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;62</td>  <td class="nbHitsCovered">&nbsp;16</td>  <td class="src"><pre class="src">&nbsp;    <span class="keyword">private</span> <span class="keyword">long</span> createCount = 0;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;63</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;64</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/** Idle references - waiting to be borrowed */</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;65</td>  <td class="nbHitsCovered">&nbsp;16</td>  <td class="src"><pre class="src">&nbsp;    <span class="keyword">private</span> <span class="keyword">final</span> LinkedBlockingDeque&lt;PooledSoftReference&lt;T&gt;&gt; idleReferences =</pre></td></tr
-<tr>  <td class="numLine">&nbsp;66</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        <span class="keyword">new</span> LinkedBlockingDeque&lt;PooledSoftReference&lt;T&gt;&gt;();</pre></td></tr
-<tr>  <td class="numLine">&nbsp;67</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;68</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/** All references - checked out or waiting to be borrowed. */</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;69</td>  <td class="nbHitsCovered">&nbsp;16</td>  <td class="src"><pre class="src">&nbsp;    <span class="keyword">private</span> <span class="keyword">final</span> ArrayList&lt;PooledSoftReference&lt;T&gt;&gt; allReferences =</pre></td></tr
-<tr>  <td class="numLine">&nbsp;70</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        <span class="keyword">new</span> ArrayList&lt;PooledSoftReference&lt;T&gt;&gt;();</pre></td></tr
-<tr>  <td class="numLine">&nbsp;71</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;72</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;73</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Create a &lt;code&gt;SoftReferenceObjectPool&lt;/code&gt; with the specified factory.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;74</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;75</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @param factory object factory to use.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;76</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;77</td>  <td class="nbHitsCovered">&nbsp;16</td>  <td class="src"><pre class="src">&nbsp;    <span class="keyword">public</span> SoftReferenceObjectPool(PooledObjectFactory&lt;T&gt; factory) {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;78</td>  <td class="nbHitsCovered">&nbsp;16</td>  <td class="src"><pre class="src">&nbsp;        <span class="keyword">this</span>.factory = factory;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;79</td>  <td class="nbHitsCovered">&nbsp;16</td>  <td class="src"><pre class="src">&nbsp;    }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;80</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;81</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;82</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Borrow an object from the pool. If there are no idle instances available</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;83</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * in the pool, the configured factory's</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;84</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * {@link PooledObjectFactory#makeObject()} method is invoked to create a</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;85</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * new instance.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;86</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * &lt;p&gt;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;87</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * All instances are {@link PooledObjectFactory#activateObject(</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;88</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * org.apache.commons.pool2.PooledObject) activated}</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;89</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * and {@link PooledObjectFactory#validateObject(</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;90</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * org.apache.commons.pool2.PooledObject)</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;91</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * validated} before being returned by this method. If validation fails or</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;92</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * an exception occurs activating or validating an idle instance, the</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;93</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * failing instance is {@link PooledObjectFactory#destroyObject(</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;94</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * org.apache.commons.pool2.PooledObject)</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;95</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * destroyed} and another instance is retrieved from the pool, validated and</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;96</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * activated. This process continues until either the pool is empty or an</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;97</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * instance passes validation. If the pool is empty on activation or it does</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;98</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * not contain any valid instances, the factory's &lt;code&gt;makeObject&lt;/code&gt;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;99</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * method is used to create a new instance. If the created instance either</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;100</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * raises an exception on activation or fails validation,</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;101</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * &lt;code&gt;NoSuchElementException&lt;/code&gt; is thrown. Exceptions thrown by</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;102</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * &lt;code&gt;MakeObject&lt;/code&gt; are propagated to the caller; but other than</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;103</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * &lt;code&gt;ThreadDeath&lt;/code&gt; or &lt;code&gt;VirtualMachineError&lt;/code&gt;, exceptions</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;104</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * generated by activation, validation or destroy methods are swallowed</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;105</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * silently.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;106</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;107</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @throws NoSuchElementException</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;108</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *             if a valid object cannot be provided</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;109</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @throws IllegalStateException</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;110</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *             if invoked on a {@link #close() closed} pool</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;111</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @throws Exception</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;112</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *             if an exception occurs creating a new instance</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;113</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @return a valid, activated object instance</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;114</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;115</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    @SuppressWarnings(<span class="string">"null"</span>) <span class="comment">// ref can not be null</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;116</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    @Override</pre></td></tr
-<tr>  <td class="numLine">&nbsp;117</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="keyword">public</span> <span class="keyword">synchronized</span> T borrowObject() <span class="keyword">throws</span> Exception {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;118</td>  <td class="nbHitsCovered">&nbsp;33</td>  <td class="src"><pre class="src">&nbsp;        assertOpen();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;119</td>  <td class="nbHitsCovered">&nbsp;31</td>  <td class="src"><pre class="src">&nbsp;        T obj = <span class="keyword">null</span>;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;120</td>  <td class="nbHitsCovered">&nbsp;31</td>  <td class="src"><pre class="src">&nbsp;        <span class="keyword">boolean</span> newlyCreated = <span class="keyword">false</span>;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;121</td>  <td class="nbHitsCovered">&nbsp;31</td>  <td class="src"><pre class="src">&nbsp;        PooledSoftReference&lt;T&gt; ref = <span class="keyword">null</span>;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;122</td>  <td class="nbHitsCovered"><a title="Line 122: Conditional coverage 100% (2/2).">&nbsp;61</a></td>  <td class="src"><pre class="src">&nbsp;<a title="Line 122: Conditional coverage 100% (2/2).">        <span class="keyword">while</span> (<span class="keyword">null</span> == obj) {</a></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;123</td>  <td class="nbHitsCovered"><a title="Line 123: Conditional coverage 100% (2/2).">&nbsp;33</a></td>  <td class="src"><pre class="src">&nbsp;<a title="Line 123: Conditional coverage 100% (2/2).">            <span class="keyword">if</span> (idleReferences.isEmpty()) {</a></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;124</td>  <td class="nbHitsUncovered"><a title="Line 124: Conditional coverage 50% (1/2).">&nbsp;23</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 124: Conditional coverage 50% (1/2).">                <span class="keyword">if</span> (<span class="keyword">null</span> == factory) {</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;125</td>  <td class="nbHitsUncovered">&nbsp;0</td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;                    <span class="keyword">throw</span> <span class="keyword">new</span> NoSuchElementException();</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;126</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                } <span class="keyword">else</span> {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;127</td>  <td class="nbHitsCovered">&nbsp;23</td>  <td class="src"><pre class="src">&nbsp;                    newlyCreated = <span class="keyword">true</span>;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;128</td>  <td class="nbHitsCovered">&nbsp;23</td>  <td class="src"><pre class="src">&nbsp;                    obj = factory.makeObject().getObject();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;129</td>  <td class="nbHitsCovered">&nbsp;22</td>  <td class="src"><pre class="src">&nbsp;                    createCount++;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;130</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                    <span class="comment">// Do not register with the queue</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;131</td>  <td class="nbHitsCovered">&nbsp;22</td>  <td class="src"><pre class="src">&nbsp;                    ref = <span class="keyword">new</span> PooledSoftReference&lt;T&gt;(<span class="keyword">new</span> SoftReference&lt;T&gt;(obj));</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;132</td>  <td class="nbHitsCovered">&nbsp;22</td>  <td class="src"><pre class="src">&nbsp;                    allReferences.add(ref);</pre></td></tr
-<tr>  <td class="numLine">&nbsp;133</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;134</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;            } <span class="keyword">else</span> {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;135</td>  <td class="nbHitsCovered">&nbsp;10</td>  <td class="src"><pre class="src">&nbsp;                ref = idleReferences.pollFirst();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;136</td>  <td class="nbHitsCovered">&nbsp;10</td>  <td class="src"><pre class="src">&nbsp;                obj = ref.getObject();</pre></td></tr
-<tr>  <td class="numLine">&nbsp;137</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                <span class="comment">// Clear the reference so it will not be queued, but replace with a</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;138</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                <span class="comment">// a new, non-registered reference so we can still track this object</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;139</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                <span class="comment">// in allReferences</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;140</td>  <td class="nbHitsCovered">&nbsp;10</td>  <td class="src"><pre class="src">&nbsp;                ref.getReference().clear();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;141</td>  <td class="nbHitsCovered">&nbsp;10</td>  <td class="src"><pre class="src">&nbsp;                ref.setReference(<span class="keyword">new</span> SoftReference&lt;T&gt;(obj));</pre></td></tr
-<tr>  <td class="numLine">&nbsp;142</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;            }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;143</td>  <td class="nbHitsUncovered"><a title="Line 143: Conditional coverage 50% (2/4) [each condition: 50%, 50%].">&nbsp;32</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 143: Conditional coverage 50% (2/4) [each condition: 50%, 50%].">            <span class="keyword">if</span> (<span class="keyword">null</span> != factory &amp;&amp; <span class="keyword">null</span> != obj) {</a></span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;144</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                <span class="keyword">try</span> {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;145</td>  <td class="nbHitsCovered">&nbsp;32</td>  <td class="src"><pre class="src">&nbsp;                    factory.activateObject(ref);</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;146</td>  <td class="nbHitsUncovered"><a title="Line 146: Conditional coverage 50% (1/2).">&nbsp;30</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 146: Conditional coverage 50% (1/2).">                    <span class="keyword">if</span> (!factory.validateObject(ref)) {</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;147</td>  <td class="nbHitsUncovered">&nbsp;0</td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;                        <span class="keyword">throw</span> <span class="keyword">new</span> Exception(<span class="string">"ValidateObject failed"</span>);</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;148</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                    }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;149</td>  <td class="nbHitsCovered">&nbsp;4</td>  <td class="src"><pre class="src">&nbsp;                } <span class="keyword">catch</span> (Throwable t) {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;150</td>  <td class="nbHitsCovered">&nbsp;4</td>  <td class="src"><pre class="src">&nbsp;                    PoolUtils.checkRethrow(t);</pre></td></tr
-<tr>  <td class="numLine">&nbsp;151</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                    <span class="keyword">try</span> {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;152</td>  <td class="nbHitsCovered">&nbsp;4</td>  <td class="src"><pre class="src">&nbsp;                        destroy(ref);</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;153</td>  <td class="nbHitsUncovered">&nbsp;0</td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;                    } <span class="keyword">catch</span> (Throwable t2) {</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;154</td>  <td class="nbHitsUncovered">&nbsp;0</td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;                        PoolUtils.checkRethrow(t2);</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;155</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                        <span class="comment">// Swallowed</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;156</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                    } <span class="keyword">finally</span> {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;157</td>  <td class="nbHitsCovered">&nbsp;4</td>  <td class="src"><pre class="src">&nbsp;                        obj = <span class="keyword">null</span>;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;158</td>  <td class="nbHitsCovered">&nbsp;4</td>  <td class="src"><pre class="src">&nbsp;                    }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;159</td>  <td class="nbHitsCovered"><a title="Line 159: Conditional coverage 100% (2/2).">&nbsp;4</a></td>  <td class="src"><pre class="src">&nbsp;<a title="Line 159: Conditional coverage 100% (2/2).">                    <span class="keyword">if</span> (newlyCreated) {</a></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;160</td>  <td class="nbHitsCovered">&nbsp;2</td>  <td class="src"><pre class="src">&nbsp;                        <span class="keyword">throw</span> <span class="keyword">new</span> NoSuchElementException(</pre></td></tr
-<tr>  <td class="numLine">&nbsp;161</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                                <span class="string">"Could not create a validated object, cause: "</span> +</pre></td></tr
-<tr>  <td class="numLine">&nbsp;162</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                                        t.getMessage());</pre></td></tr
-<tr>  <td class="numLine">&nbsp;163</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                    }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;164</td>  <td class="nbHitsCovered">&nbsp;30</td>  <td class="src"><pre class="src">&nbsp;                }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;165</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;            }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;166</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;167</td>  <td class="nbHitsCovered">&nbsp;28</td>  <td class="src"><pre class="src">&nbsp;        numActive++;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;168</td>  <td class="nbHitsCovered">&nbsp;28</td>  <td class="src"><pre class="src">&nbsp;        ref.allocate();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;169</td>  <td class="nbHitsCovered">&nbsp;28</td>  <td class="src"><pre class="src">&nbsp;        <span class="keyword">return</span> obj;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;170</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;171</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;172</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;173</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Returns an instance to the pool after successful validation and</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;174</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * passivation. The returning instance is destroyed if any of the following</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;175</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * are true:</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;176</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * &lt;ul&gt;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;177</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * &lt;li&gt;the pool is closed&lt;/li&gt;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;178</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * &lt;li&gt;{@link PooledObjectFactory#validateObject(</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;179</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * org.apache.commons.pool2.PooledObject) validation} fails</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;180</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * &lt;/li&gt;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;181</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * &lt;li&gt;{@link PooledObjectFactory#passivateObject(</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;182</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * org.apache.commons.pool2.PooledObject) passivation}</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;183</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * throws an exception&lt;/li&gt;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;184</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * &lt;/ul&gt;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;185</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Exceptions passivating or destroying instances are silently swallowed.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;186</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Exceptions validating instances are propagated to the client.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;187</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;188</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @param obj</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;189</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *            instance to return to the pool</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;190</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;191</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    @Override</pre></td></tr
-<tr>  <td class="numLine">&nbsp;192</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="keyword">public</span> <span class="keyword">synchronized</span> <span class="keyword">void</span> returnObject(T obj) <span class="keyword">throws</span> Exception {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;193</td>  <td class="nbHitsCovered"><a title="Line 193: Conditional coverage 100% (2/2).">&nbsp;15</a></td>  <td class="src"><pre class="src">&nbsp;<a title="Line 193: Conditional coverage 100% (2/2).">        <span class="keyword">boolean</span> success = !isClosed();</a></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;194</td>  <td class="nbHitsCovered">&nbsp;15</td>  <td class="src"><pre class="src">&nbsp;        <span class="keyword">final</span> PooledSoftReference&lt;T&gt; ref = findReference(obj);</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;195</td>  <td class="nbHitsUncovered"><a title="Line 195: Conditional coverage 50% (1/2).">&nbsp;15</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 195: Conditional coverage 50% (1/2).">        <span class="keyword">if</span> (ref == <span class="keyword">null</span>) {</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;196</td>  <td class="nbHitsUncovered">&nbsp;0</td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;            <span class="keyword">throw</span> <span class="keyword">new</span> IllegalStateException(</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;197</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                <span class="string">"Returned object not currently part of this pool"</span>);</pre></td></tr
-<tr>  <td class="numLine">&nbsp;198</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;199</td>  <td class="nbHitsUncovered"><a title="Line 199: Conditional coverage 50% (1/2).">&nbsp;15</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 199: Conditional coverage 50% (1/2).">        <span class="keyword">if</span> (factory != <span class="keyword">null</span>) {</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;200</td>  <td class="nbHitsUncovered"><a title="Line 200: Conditional coverage 50% (1/2).">&nbsp;15</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 200: Conditional coverage 50% (1/2).">            <span class="keyword">if</span> (!factory.validateObject(ref)) {</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;201</td>  <td class="nbHitsUncovered">&nbsp;0</td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;                success = <span class="keyword">false</span>;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;202</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;            } <span class="keyword">else</span> {</pre></td></tr
-<tr>  <td class="numLine">&nbsp;203</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                <span class="keyword">try</span> {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;204</td>  <td class="nbHitsCovered">&nbsp;15</td>  <td class="src"><pre class="src">&nbsp;                    factory.passivateObject(ref);</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;205</td>  <td class="nbHitsCovered">&nbsp;2</td>  <td class="src"><pre class="src">&nbsp;                } <span class="keyword">catch</span> (Exception e) {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;206</td>  <td class="nbHitsCovered">&nbsp;2</td>  <td class="src"><pre class="src">&nbsp;                    success = <span class="keyword">false</span>;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;207</td>  <td class="nbHitsCovered">&nbsp;13</td>  <td class="src"><pre class="src">&nbsp;                }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;208</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;            }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;209</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;210</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;211</td>  <td class="nbHitsCovered"><a title="Line 211: Conditional coverage 100% (2/2).">&nbsp;15</a></td>  <td class="src"><pre class="src">&nbsp;<a title="Line 211: Conditional coverage 100% (2/2).">        <span class="keyword">boolean</span> shouldDestroy = !success;</a></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;212</td>  <td class="nbHitsCovered">&nbsp;15</td>  <td class="src"><pre class="src">&nbsp;        numActive--;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;213</td>  <td class="nbHitsCovered"><a title="Line 213: Conditional coverage 100% (2/2).">&nbsp;15</a></td>  <td class="src"><pre class="src">&nbsp;<a title="Line 213: Conditional coverage 100% (2/2).">        <span class="keyword">if</span> (success) {</a></pre></td></tr
-<tr>  <td class="numLine">&nbsp;214</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;215</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;            <span class="comment">// Deallocate and add to the idle instance pool</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;216</td>  <td class="nbHitsCovered">&nbsp;12</td>  <td class="src"><pre class="src">&nbsp;            ref.deallocate();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;217</td>  <td class="nbHitsCovered">&nbsp;12</td>  <td class="src"><pre class="src">&nbsp;            idleReferences.add(ref);</pre></td></tr
-<tr>  <td class="numLine">&nbsp;218</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;219</td>  <td class="nbHitsCovered">&nbsp;15</td>  <td class="src"><pre class="src">&nbsp;        notifyAll(); <span class="comment">// numActive has changed</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;220</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;221</td>  <td class="nbHitsUncovered"><a title="Line 221: Conditional coverage 75% (3/4) [each condition: 100%, 50%].">&nbsp;15</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 221: Conditional coverage 75% (3/4) [each condition: 100%, 50%].">        <span class="keyword">if</span> (shouldDestroy &amp;&amp; factory != <span class="keyword">null</span>) {</a></span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;222</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;            <span class="keyword">try</span> {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;223</td>  <td class="nbHitsCovered">&nbsp;3</td>  <td class="src"><pre class="src">&nbsp;                destroy(ref);</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;224</td>  <td class="nbHitsCovered">&nbsp;1</td>  <td class="src"><pre class="src">&nbsp;            } <span class="keyword">catch</span> (Exception e) {</pre></td></tr
-<tr>  <td class="numLine">&nbsp;225</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                <span class="comment">// ignored</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;226</td>  <td class="nbHitsCovered">&nbsp;2</td>  <td class="src"><pre class="src">&nbsp;            }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;227</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;228</td>  <td class="nbHitsCovered">&nbsp;15</td>  <td class="src"><pre class="src">&nbsp;    }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;229</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;230</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;231</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * {@inheritDoc}</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;232</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;233</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    @Override</pre></td></tr
-<tr>  <td class="numLine">&nbsp;234</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="keyword">public</span> <span class="keyword">synchronized</span> <span class="keyword">void</span> invalidateObject(T obj) <span class="keyword">throws</span> Exception {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;235</td>  <td class="nbHitsCovered">&nbsp;5</td>  <td class="src"><pre class="src">&nbsp;        <span class="keyword">final</span> PooledSoftReference&lt;T&gt; ref = findReference(obj);</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;236</td>  <td class="nbHitsUncovered"><a title="Line 236: Conditional coverage 50% (1/2).">&nbsp;5</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 236: Conditional coverage 50% (1/2).">        <span class="keyword">if</span> (ref == <span class="keyword">null</span>) {</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;237</td>  <td class="nbHitsUncovered">&nbsp;0</td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;            <span class="keyword">throw</span> <span class="keyword">new</span> IllegalStateException(</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;238</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                <span class="string">"Object to invalidate is not currently part of this pool"</span>);</pre></td></tr
-<tr>  <td class="numLine">&nbsp;239</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;240</td>  <td class="nbHitsUncovered"><a title="Line 240: Conditional coverage 50% (1/2).">&nbsp;5</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 240: Conditional coverage 50% (1/2).">        <span class="keyword">if</span> (factory != <span class="keyword">null</span>) {</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;241</td>  <td class="nbHitsCovered">&nbsp;5</td>  <td class="src"><pre class="src">&nbsp;            destroy(ref);</pre></td></tr
-<tr>  <td class="numLine">&nbsp;242</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;243</td>  <td class="nbHitsCovered">&nbsp;4</td>  <td class="src"><pre class="src">&nbsp;        numActive--;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;244</td>  <td class="nbHitsCovered">&nbsp;4</td>  <td class="src"><pre class="src">&nbsp;        notifyAll(); <span class="comment">// numActive has changed</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;245</td>  <td class="nbHitsCovered">&nbsp;4</td>  <td class="src"><pre class="src">&nbsp;    }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;246</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;247</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;248</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Create an object, and place it into the pool. addObject() is useful for</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;249</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * "pre-loading" a pool with idle objects.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;250</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * &lt;p&gt;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;251</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Before being added to the pool, the newly created instance is</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;252</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * {@link PooledObjectFactory#validateObject(</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;253</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * org.apache.commons.pool2.PooledObject) validated} and</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;254</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * {@link PooledObjectFactory#passivateObject(</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;255</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * org.apache.commons.pool2.PooledObject) passivated}. If</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;256</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * validation fails, the new instance is</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;257</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * {@link PooledObjectFactory#destroyObject(</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;258</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * org.apache.commons.pool2.PooledObject) destroyed}. Exceptions</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;259</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * generated by the factory &lt;code&gt;makeObject&lt;/code&gt; or</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;260</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * &lt;code&gt;passivate&lt;/code&gt; are propagated to the caller. Exceptions</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;261</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * destroying instances are silently swallowed.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;262</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;263</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @throws IllegalStateException</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;264</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *             if invoked on a {@link #close() closed} pool</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;265</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @throws Exception</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;266</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *             when the {@link #getFactory() factory} has a problem creating</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;267</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *             or passivating an object.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;268</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;269</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    @Override</pre></td></tr
-<tr>  <td class="numLine">&nbsp;270</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="keyword">public</span> <span class="keyword">synchronized</span> <span class="keyword">void</span> addObject() <span class="keyword">throws</span> Exception {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;271</td>  <td class="nbHitsCovered">&nbsp;31</td>  <td class="src"><pre class="src">&nbsp;        assertOpen();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;272</td>  <td class="nbHitsUncovered"><a title="Line 272: Conditional coverage 50% (1/2).">&nbsp;30</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 272: Conditional coverage 50% (1/2).">        <span class="keyword">if</span> (factory == <span class="keyword">null</span>) {</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;273</td>  <td class="nbHitsUncovered">&nbsp;0</td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;            <span class="keyword">throw</span> <span class="keyword">new</span> IllegalStateException(</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;274</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                    <span class="string">"Cannot add objects without a factory."</span>);</pre></td></tr
-<tr>  <td class="numLine">&nbsp;275</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;276</td>  <td class="nbHitsCovered">&nbsp;30</td>  <td class="src"><pre class="src">&nbsp;        T obj = factory.makeObject().getObject();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;277</td>  <td class="nbHitsCovered">&nbsp;29</td>  <td class="src"><pre class="src">&nbsp;        createCount++;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;278</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        <span class="comment">// Create and register with the queue</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;279</td>  <td class="nbHitsCovered">&nbsp;29</td>  <td class="src"><pre class="src">&nbsp;        PooledSoftReference&lt;T&gt; ref = <span class="keyword">new</span> PooledSoftReference&lt;T&gt;(</pre></td></tr
-<tr>  <td class="numLine">&nbsp;280</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                <span class="keyword">new</span> SoftReference&lt;T&gt;(obj, refQueue));</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;281</td>  <td class="nbHitsCovered">&nbsp;29</td>  <td class="src"><pre class="src">&nbsp;        allReferences.add(ref);</pre></td></tr
-<tr>  <td class="numLine">&nbsp;282</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;283</td>  <td class="nbHitsCovered">&nbsp;29</td>  <td class="src"><pre class="src">&nbsp;        <span class="keyword">boolean</span> success = <span class="keyword">true</span>;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;284</td>  <td class="nbHitsUncovered"><a title="Line 284: Conditional coverage 50% (1/2).">&nbsp;29</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 284: Conditional coverage 50% (1/2).">        <span class="keyword">if</span> (!factory.validateObject(ref)) {</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;285</td>  <td class="nbHitsUncovered">&nbsp;0</td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;            success = <span class="keyword">false</span>;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;286</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        } <span class="keyword">else</span> {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;287</td>  <td class="nbHitsCovered">&nbsp;29</td>  <td class="src"><pre class="src">&nbsp;            factory.passivateObject(ref);</pre></td></tr
-<tr>  <td class="numLine">&nbsp;288</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;289</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;290</td>  <td class="nbHitsUncovered"><a title="Line 290: Conditional coverage 50% (1/2).">&nbsp;28</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 290: Conditional coverage 50% (1/2).">        <span class="keyword">boolean</span> shouldDestroy = !success;</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;291</td>  <td class="nbHitsUncovered"><a title="Line 291: Conditional coverage 50% (1/2).">&nbsp;28</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 291: Conditional coverage 50% (1/2).">        <span class="keyword">if</span> (success) {</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;292</td>  <td class="nbHitsCovered">&nbsp;28</td>  <td class="src"><pre class="src">&nbsp;            idleReferences.add(ref);</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;293</td>  <td class="nbHitsCovered">&nbsp;28</td>  <td class="src"><pre class="src">&nbsp;            notifyAll(); <span class="comment">// numActive has changed</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;294</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;295</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;296</td>  <td class="nbHitsUncovered"><a title="Line 296: Conditional coverage 50% (1/2).">&nbsp;28</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 296: Conditional coverage 50% (1/2).">        <span class="keyword">if</span> (shouldDestroy) {</a></span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;297</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;            <span class="keyword">try</span> {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;298</td>  <td class="nbHitsUncovered">&nbsp;0</td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;                destroy(ref);</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;299</td>  <td class="nbHitsUncovered">&nbsp;0</td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;            } <span class="keyword">catch</span> (Exception e) {</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;300</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                <span class="comment">// ignored</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;301</td>  <td class="nbHitsUncovered">&nbsp;0</td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;            }</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;302</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;303</td>  <td class="nbHitsCovered">&nbsp;28</td>  <td class="src"><pre class="src">&nbsp;    }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;304</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;305</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;306</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Returns an approximation not less than the of the number of idle</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;307</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * instances in the pool.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;308</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;309</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @return estimated number of idle instances in the pool</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;310</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;311</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    @Override</pre></td></tr
-<tr>  <td class="numLine">&nbsp;312</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="keyword">public</span> <span class="keyword">synchronized</span> <span class="keyword">int</span> getNumIdle() {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;313</td>  <td class="nbHitsCovered">&nbsp;28</td>  <td class="src"><pre class="src">&nbsp;        pruneClearedReferences();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;314</td>  <td class="nbHitsCovered">&nbsp;28</td>  <td class="src"><pre class="src">&nbsp;        <span class="keyword">return</span> idleReferences.size();</pre></td></tr
-<tr>  <td class="numLine">&nbsp;315</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;316</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;317</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;318</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Return the number of instances currently borrowed from this pool.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;319</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;320</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @return the number of instances currently borrowed from this pool</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;321</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;322</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    @Override</pre></td></tr
-<tr>  <td class="numLine">&nbsp;323</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="keyword">public</span> <span class="keyword">synchronized</span> <span class="keyword">int</span> getNumActive() {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;324</td>  <td class="nbHitsCovered">&nbsp;27</td>  <td class="src"><pre class="src">&nbsp;        <span class="keyword">return</span> numActive;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;325</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;326</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;327</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;328</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Clears any objects sitting idle in the pool.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;329</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;330</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    @Override</pre></td></tr
-<tr>  <td class="numLine">&nbsp;331</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="keyword">public</span> <span class="keyword">synchronized</span> <span class="keyword">void</span> clear() {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;332</td>  <td class="nbHitsUncovered"><a title="Line 332: Conditional coverage 50% (1/2).">&nbsp;30</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 332: Conditional coverage 50% (1/2).">        <span class="keyword">if</span> (<span class="keyword">null</span> != factory) {</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;333</td>  <td class="nbHitsCovered">&nbsp;30</td>  <td class="src"><pre class="src">&nbsp;            Iterator&lt;PooledSoftReference&lt;T&gt;&gt; iter = idleReferences.iterator();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;334</td>  <td class="nbHitsCovered"><a title="Line 334: Conditional coverage 100% (2/2).">&nbsp;60</a></td>  <td class="src"><pre class="src">&nbsp;<a title="Line 334: Conditional coverage 100% (2/2).">            <span class="keyword">while</span> (iter.hasNext()) {</a></pre></td></tr
-<tr>  <td class="numLine">&nbsp;335</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                <span class="keyword">try</span> {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;336</td>  <td class="nbHitsCovered">&nbsp;30</td>  <td class="src"><pre class="src">&nbsp;                    <span class="keyword">final</span> PooledSoftReference&lt;T&gt; ref = iter.next();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;337</td>  <td class="nbHitsUncovered"><a title="Line 337: Conditional coverage 50% (1/2).">&nbsp;30</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 337: Conditional coverage 50% (1/2).">                    <span class="keyword">if</span> (<span class="keyword">null</span> != ref.getObject()) {</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;338</td>  <td class="nbHitsCovered">&nbsp;30</td>  <td class="src"><pre class="src">&nbsp;                        factory.destroyObject(ref);</pre></td></tr
-<tr>  <td class="numLine">&nbsp;339</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                    }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;340</td>  <td class="nbHitsCovered">&nbsp;10</td>  <td class="src"><pre class="src">&nbsp;                } <span class="keyword">catch</span> (Exception e) {</pre></td></tr
-<tr>  <td class="numLine">&nbsp;341</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;                    <span class="comment">// ignore error, keep destroying the rest</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;342</td>  <td class="nbHitsCovered">&nbsp;30</td>  <td class="src"><pre class="src">&nbsp;                }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;343</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;            }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;344</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;345</td>  <td class="nbHitsCovered">&nbsp;30</td>  <td class="src"><pre class="src">&nbsp;        idleReferences.clear();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;346</td>  <td class="nbHitsCovered">&nbsp;30</td>  <td class="src"><pre class="src">&nbsp;        pruneClearedReferences();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;347</td>  <td class="nbHitsCovered">&nbsp;30</td>  <td class="src"><pre class="src">&nbsp;    }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;348</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;349</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;350</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Close this pool, and free any resources associated with it. Invokes</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;351</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * {@link #clear()} to destroy and remove instances in the pool.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;352</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * &lt;p&gt;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;353</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Calling {@link #addObject} or {@link #borrowObject} after invoking this</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;354</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * method on a pool will cause them to throw an</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;355</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * {@link IllegalStateException}.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;356</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;357</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    @Override</pre></td></tr
-<tr>  <td class="numLine">&nbsp;358</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="keyword">public</span> <span class="keyword">void</span> close() {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;359</td>  <td class="nbHitsCovered">&nbsp;17</td>  <td class="src"><pre class="src">&nbsp;        <span class="keyword">super</span>.close();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;360</td>  <td class="nbHitsCovered">&nbsp;17</td>  <td class="src"><pre class="src">&nbsp;        clear();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;361</td>  <td class="nbHitsCovered">&nbsp;17</td>  <td class="src"><pre class="src">&nbsp;    }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;362</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;363</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;364</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Returns the {@link PooledObjectFactory} used by this pool to create and</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;365</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * manage object instances.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;366</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;367</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @return the factory</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;368</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;369</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="keyword">public</span> <span class="keyword">synchronized</span> PooledObjectFactory&lt;T&gt; getFactory() {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;370</td>  <td class="nbHitsUncovered">&nbsp;0</td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;        <span class="keyword">return</span> factory;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;371</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;372</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;373</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;374</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * If any idle objects were garbage collected, remove their</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;375</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * {@link Reference} wrappers from the idle object pool.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;376</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;377</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="keyword">private</span> <span class="keyword">void</span> pruneClearedReferences() {</pre></td></tr
-<tr>  <td class="numLine">&nbsp;378</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        <span class="comment">// Remove wrappers for enqueued references from idle and allReferences lists</span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;379</td>  <td class="nbHitsCovered">&nbsp;58</td>  <td class="src"><pre class="src">&nbsp;        removeClearedReferences(idleReferences.iterator());</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;380</td>  <td class="nbHitsCovered">&nbsp;58</td>  <td class="src"><pre class="src">&nbsp;        removeClearedReferences(allReferences.iterator());</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;381</td>  <td class="nbHitsUncovered"><a title="Line 381: Conditional coverage 50% (1/2).">&nbsp;58</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 381: Conditional coverage 50% (1/2).">        <span class="keyword">while</span> (refQueue.poll() != <span class="keyword">null</span>) {}</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;382</td>  <td class="nbHitsCovered">&nbsp;58</td>  <td class="src"><pre class="src">&nbsp;    }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;383</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;384</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;385</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Find the PooledSoftReference in allReferences that points to obj.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;386</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;387</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @param obj returning object</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;388</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @return PooledSoftReference wrapping a soft reference to obj</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;389</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;390</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="keyword">private</span> PooledSoftReference&lt;T&gt; findReference(T obj) {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;391</td>  <td class="nbHitsCovered">&nbsp;20</td>  <td class="src"><pre class="src">&nbsp;        Iterator&lt;PooledSoftReference&lt;T&gt;&gt; iterator = allReferences.iterator();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;392</td>  <td class="nbHitsUncovered"><a title="Line 392: Conditional coverage 50% (1/2).">&nbsp;27</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 392: Conditional coverage 50% (1/2).">        <span class="keyword">while</span> (iterator.hasNext()) {</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;393</td>  <td class="nbHitsCovered">&nbsp;27</td>  <td class="src"><pre class="src">&nbsp;            <span class="keyword">final</span> PooledSoftReference&lt;T&gt; reference = iterator.next();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;394</td>  <td class="nbHitsUncovered"><a title="Line 394: Conditional coverage 75% (3/4) [each condition: 50%, 100%].">&nbsp;27</a></td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;<a title="Line 394: Conditional coverage 75% (3/4) [each condition: 50%, 100%].">            <span class="keyword">if</span> (reference.getObject() != <span class="keyword">null</span> &amp;&amp; reference.getObject().equals(obj)) {</a></span></pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;395</td>  <td class="nbHitsCovered">&nbsp;20</td>  <td class="src"><pre class="src">&nbsp;                <span class="keyword">return</span> reference;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;396</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;            }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;397</td>  <td class="nbHitsCovered">&nbsp;7</td>  <td class="src"><pre class="src">&nbsp;        }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;398</td>  <td class="nbHitsUncovered">&nbsp;0</td>  <td class="src"><pre class="src"><span class="srcUncovered">&nbsp;        <span class="keyword">return</span> <span class="keyword">null</span>;</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;399</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;400</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;401</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;402</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Destroy a {@code PooledSoftReference} and remove it from the idle and all</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;403</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * references pools.</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;404</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;405</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @param toDestroy PooledSoftReference to destroy</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;406</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     *</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;407</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @throws Exception If an error occurs while trying to destroy the object</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;408</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;409</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="keyword">private</span> <span class="keyword">void</span> destroy(PooledSoftReference&lt;T&gt; toDestroy) <span class="keyword">throws</span> Exception {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;410</td>  <td class="nbHitsCovered">&nbsp;12</td>  <td class="src"><pre class="src">&nbsp;        toDestroy.invalidate();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;411</td>  <td class="nbHitsCovered">&nbsp;12</td>  <td class="src"><pre class="src">&nbsp;        idleReferences.remove(toDestroy);</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;412</td>  <td class="nbHitsCovered">&nbsp;12</td>  <td class="src"><pre class="src">&nbsp;        allReferences.remove(toDestroy);</pre></td></tr
-<tr>  <td class="numLine">&nbsp;413</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        <span class="keyword">try</span> {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;414</td>  <td class="nbHitsCovered">&nbsp;12</td>  <td class="src"><pre class="src">&nbsp;            factory.destroyObject(toDestroy);</pre></td></tr
-<tr>  <td class="numLine">&nbsp;415</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;        } <span class="keyword">finally</span> {</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;416</td>  <td class="nbHitsCovered">&nbsp;12</td>  <td class="src"><pre class="src">&nbsp;            destroyCount++;</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;417</td>  <td class="nbHitsCovered">&nbsp;12</td>  <td class="src"><pre class="src">&nbsp;            toDestroy.getReference().clear();</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;418</td>  <td class="nbHitsCovered">&nbsp;10</td>  <td class="src"><pre class="src">&nbsp;        }</pre></td></tr
-<tr>  <td class="numLineCover">&nbsp;419</td>  <td class="nbHitsCovered">&nbsp;10</td>  <td class="src"><pre class="src">&nbsp;    }</pre></td></tr
-<tr>  <td class="numLine">&nbsp;420</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;</pre></td></tr
-<tr>  <td class="numLine">&nbsp;421</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;    <span class="comment">/**</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;422</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * Clears cleared references from iterator's collection</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;423</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     * @param iterator iterator over idle/allReferences</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;424</td>  <td class="nbHits">&nbsp;</td
-  <td class="src"><pre class="src">&nbsp;<span class="comment">     */</span></pre></td></tr
-<tr>  <td class="numLine">&nbsp;425</td>  <td class="nbHits">&nbsp;</td

[... 754 lines stripped ...]


Mime
View raw message