maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r816660 [30/33] - in /websites/production/maventest/content/plugins/maven-checkstyle-plugin-latest: ./ apidocs/ apidocs/org/apache/maven/plugin/checkstyle/ apidocs/org/apache/maven/plugin/checkstyle/class-use/ apidocs/org/apache/maven/plugi...
Date Tue, 08 May 2012 13:58:28 GMT
Modified: websites/production/maventest/content/plugins/maven-checkstyle-plugin-latest/xref/org/apache/maven/plugin/checkstyle/CheckstyleReportListener.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-checkstyle-plugin-latest/xref/org/apache/maven/plugin/checkstyle/CheckstyleReportListener.html (original)
+++ websites/production/maventest/content/plugins/maven-checkstyle-plugin-latest/xref/org/apache/maven/plugin/checkstyle/CheckstyleReportListener.html Tue May  8 13:58:21 2012
@@ -6,7 +6,7 @@
 <link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
 </head>
 <body>
-<div id="overview"><a href="../../../../../../apidocs/org/apache/maven/plugin/checkstyle/CheckstyleReportListener.html">View Javadoc</a></div><pre>
+<div id="overview"><a href="../../../../../../../../../../../../site/apidocs/org/apache/maven/plugin/checkstyle/CheckstyleReportListener.html">View Javadoc</a></div><pre>
 
 <a name="1" href="#1">1</a>   <strong class="jxr_keyword">package</strong> org.apache.maven.plugin.checkstyle;
 <a name="2" href="#2">2</a>   
@@ -38,169 +38,166 @@
 <a name="28" href="#28">28</a>  
 <a name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> java.io.File;
 <a name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> java.util.ArrayList;
-<a name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> java.util.Iterator;
-<a name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> java.util.List;
-<a name="33" href="#33">33</a>  
-<a name="34" href="#34">34</a>  <em class="jxr_javadoccomment">/**</em>
-<a name="35" href="#35">35</a>  <em class="jxr_javadoccomment"> * Listener in charge of receiving events from the Checker.</em>
-<a name="36" href="#36">36</a>  <em class="jxr_javadoccomment"> *</em>
-<a name="37" href="#37">37</a>  <em class="jxr_javadoccomment"> * @author &lt;a href="<a href="mailto:evenisse@apache.org" target="alexandria_uri">mailto:evenisse@apache.org</a>"&gt;Emmanuel Venisse&lt;/a&gt;</em>
-<a name="38" href="#38">38</a>  <em class="jxr_javadoccomment"> * @author &lt;a href="<a href="mailto:vincent.siveton@gmail.com" target="alexandria_uri">mailto:vincent.siveton@gmail.com</a>"&gt;Vincent Siveton&lt;/a&gt;</em>
-<a name="39" href="#39">39</a>  <em class="jxr_javadoccomment"> * @version $Id$</em>
-<a name="40" href="#40">40</a>  <em class="jxr_javadoccomment"> */</em>
-<a name="41" href="#41">41</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/maven/plugin/checkstyle/CheckstyleReportListener.html">CheckstyleReportListener</a>
-<a name="42" href="#42">42</a>      <strong class="jxr_keyword">extends</strong> AutomaticBean
-<a name="43" href="#43">43</a>      implements AuditListener
-<a name="44" href="#44">44</a>  {
-<a name="45" href="#45">45</a>      <strong class="jxr_keyword">private</strong> List sourceDirectories;
-<a name="46" href="#46">46</a>  
-<a name="47" href="#47">47</a>      <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/maven/plugin/checkstyle/CheckstyleResults.html">CheckstyleResults</a> results;
-<a name="48" href="#48">48</a>  
-<a name="49" href="#49">49</a>      <strong class="jxr_keyword">private</strong> String currentFile;
-<a name="50" href="#50">50</a>  
-<a name="51" href="#51">51</a>      <strong class="jxr_keyword">private</strong> List events;
-<a name="52" href="#52">52</a>  
-<a name="53" href="#53">53</a>      <strong class="jxr_keyword">private</strong> SeverityLevel severityLevel;
-<a name="54" href="#54">54</a>      
-<a name="55" href="#55">55</a>      <strong class="jxr_keyword">private</strong> Configuration checkstyleConfiguration;
-<a name="56" href="#56">56</a>  
-<a name="57" href="#57">57</a>      <em class="jxr_javadoccomment">/**</em>
-<a name="58" href="#58">58</a>  <em class="jxr_javadoccomment">     * @param sourceDirectory assume that is &lt;code&gt;sourceDirectory&lt;/code&gt; is a not null directory and exists</em>
-<a name="59" href="#59">59</a>  <em class="jxr_javadoccomment">     */</em>
-<a name="60" href="#60">60</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/maven/plugin/checkstyle/CheckstyleReportListener.html">CheckstyleReportListener</a>( File sourceDirectory )
-<a name="61" href="#61">61</a>      {
-<a name="62" href="#62">62</a>          <strong class="jxr_keyword">this</strong>.sourceDirectories = <strong class="jxr_keyword">new</strong> ArrayList();
-<a name="63" href="#63">63</a>          <strong class="jxr_keyword">this</strong>.sourceDirectories.add( sourceDirectory );
-<a name="64" href="#64">64</a>      }
-<a name="65" href="#65">65</a>      <em class="jxr_javadoccomment">/**</em>
-<a name="66" href="#66">66</a>  <em class="jxr_javadoccomment">     * @param sourceDirectory assume that is &lt;code&gt;sourceDirectory&lt;/code&gt; is a not null directory and exists</em>
-<a name="67" href="#67">67</a>  <em class="jxr_javadoccomment">     * @param configuration checkstyle configuration</em>
-<a name="68" href="#68">68</a>  <em class="jxr_javadoccomment">     * @since 2.5</em>
-<a name="69" href="#69">69</a>  <em class="jxr_javadoccomment">     */</em>
-<a name="70" href="#70">70</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/maven/plugin/checkstyle/CheckstyleReportListener.html">CheckstyleReportListener</a>( File sourceDirectory, Configuration configuration )
-<a name="71" href="#71">71</a>      {
-<a name="72" href="#72">72</a>          <strong class="jxr_keyword">this</strong>.sourceDirectories = <strong class="jxr_keyword">new</strong> ArrayList();
-<a name="73" href="#73">73</a>          <strong class="jxr_keyword">this</strong>.sourceDirectories.add( sourceDirectory );
-<a name="74" href="#74">74</a>          <strong class="jxr_keyword">this</strong>.checkstyleConfiguration = configuration;
-<a name="75" href="#75">75</a>      }    
-<a name="76" href="#76">76</a>  
-<a name="77" href="#77">77</a>      <em class="jxr_javadoccomment">/**</em>
-<a name="78" href="#78">78</a>  <em class="jxr_javadoccomment">     * @param sourceDirectory assume that is &lt;code&gt;sourceDirectory&lt;/code&gt; is a not null directory and exists</em>
-<a name="79" href="#79">79</a>  <em class="jxr_javadoccomment">     */</em>
-<a name="80" href="#80">80</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> addSourceDirectory( File sourceDirectory )
-<a name="81" href="#81">81</a>      {
-<a name="82" href="#82">82</a>          <strong class="jxr_keyword">this</strong>.sourceDirectories.add( sourceDirectory );
-<a name="83" href="#83">83</a>      }
-<a name="84" href="#84">84</a>  
-<a name="85" href="#85">85</a>      <em class="jxr_javadoccomment">/**</em>
-<a name="86" href="#86">86</a>  <em class="jxr_javadoccomment">     * @param severityLevel</em>
-<a name="87" href="#87">87</a>  <em class="jxr_javadoccomment">     */</em>
-<a name="88" href="#88">88</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setSeverityLevelFilter( SeverityLevel severityLevel )
-<a name="89" href="#89">89</a>      {
-<a name="90" href="#90">90</a>          <strong class="jxr_keyword">this</strong>.severityLevel = severityLevel;
-<a name="91" href="#91">91</a>      }
-<a name="92" href="#92">92</a>  
-<a name="93" href="#93">93</a>      <em class="jxr_javadoccomment">/**</em>
-<a name="94" href="#94">94</a>  <em class="jxr_javadoccomment">     * @return</em>
-<a name="95" href="#95">95</a>  <em class="jxr_javadoccomment">     */</em>
-<a name="96" href="#96">96</a>      <strong class="jxr_keyword">public</strong> SeverityLevel getSeverityLevelFilter()
-<a name="97" href="#97">97</a>      {
-<a name="98" href="#98">98</a>          <strong class="jxr_keyword">return</strong> severityLevel;
-<a name="99" href="#99">99</a>      }
-<a name="100" href="#100">100</a> 
-<a name="101" href="#101">101</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> {@inheritDoc} */</em>
-<a name="102" href="#102">102</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> auditStarted( AuditEvent event )
-<a name="103" href="#103">103</a>     {
-<a name="104" href="#104">104</a>         setResults( <strong class="jxr_keyword">new</strong> CheckstyleResults() );
-<a name="105" href="#105">105</a>     }
-<a name="106" href="#106">106</a> 
-<a name="107" href="#107">107</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> {@inheritDoc} */</em>
-<a name="108" href="#108">108</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> auditFinished( AuditEvent event )
-<a name="109" href="#109">109</a>     {
-<a name="110" href="#110">110</a>         <em class="jxr_comment">//do nothing</em>
-<a name="111" href="#111">111</a>     }
-<a name="112" href="#112">112</a> 
-<a name="113" href="#113">113</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> {@inheritDoc} */</em>
-<a name="114" href="#114">114</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> fileStarted( AuditEvent event )
-<a name="115" href="#115">115</a>     {
-<a name="116" href="#116">116</a>         <strong class="jxr_keyword">for</strong> ( Iterator it = sourceDirectories.iterator(); it.hasNext(); )
-<a name="117" href="#117">117</a>         {
-<a name="118" href="#118">118</a>             File sourceDirectory = (File) it.next();
+<a name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> java.util.List;
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="34" href="#34">34</a>  <em class="jxr_javadoccomment"> * Listener in charge of receiving events from the Checker.</em>
+<a name="35" href="#35">35</a>  <em class="jxr_javadoccomment"> *</em>
+<a name="36" href="#36">36</a>  <em class="jxr_javadoccomment"> * @author &lt;a href="<a href="mailto:evenisse@apache.org" target="alexandria_uri">mailto:evenisse@apache.org</a>"&gt;Emmanuel Venisse&lt;/a&gt;</em>
+<a name="37" href="#37">37</a>  <em class="jxr_javadoccomment"> * @author &lt;a href="<a href="mailto:vincent.siveton@gmail.com" target="alexandria_uri">mailto:vincent.siveton@gmail.com</a>"&gt;Vincent Siveton&lt;/a&gt;</em>
+<a name="38" href="#38">38</a>  <em class="jxr_javadoccomment"> * @version $Id$</em>
+<a name="39" href="#39">39</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="40" href="#40">40</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/maven/plugin/checkstyle/CheckstyleReportListener.html">CheckstyleReportListener</a>
+<a name="41" href="#41">41</a>      <strong class="jxr_keyword">extends</strong> AutomaticBean
+<a name="42" href="#42">42</a>      implements AuditListener
+<a name="43" href="#43">43</a>  {
+<a name="44" href="#44">44</a>      <strong class="jxr_keyword">private</strong> List&lt;File&gt; sourceDirectories;
+<a name="45" href="#45">45</a>  
+<a name="46" href="#46">46</a>      <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/maven/plugin/checkstyle/CheckstyleResults.html">CheckstyleResults</a> results;
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>      <strong class="jxr_keyword">private</strong> String currentFile;
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>      <strong class="jxr_keyword">private</strong> List&lt;AuditEvent&gt; events;
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>      <strong class="jxr_keyword">private</strong> SeverityLevel severityLevel;
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>      <strong class="jxr_keyword">private</strong> Configuration checkstyleConfiguration;
+<a name="55" href="#55">55</a>  
+<a name="56" href="#56">56</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="57" href="#57">57</a>  <em class="jxr_javadoccomment">     * @param sourceDirectory assume that is &lt;code&gt;sourceDirectory&lt;/code&gt; is a not null directory and exists</em>
+<a name="58" href="#58">58</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="59" href="#59">59</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/maven/plugin/checkstyle/CheckstyleReportListener.html">CheckstyleReportListener</a>( File sourceDirectory )
+<a name="60" href="#60">60</a>      {
+<a name="61" href="#61">61</a>          <strong class="jxr_keyword">this</strong>.sourceDirectories = <strong class="jxr_keyword">new</strong> ArrayList&lt;File&gt;();
+<a name="62" href="#62">62</a>          <strong class="jxr_keyword">this</strong>.sourceDirectories.add( sourceDirectory );
+<a name="63" href="#63">63</a>      }
+<a name="64" href="#64">64</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="65" href="#65">65</a>  <em class="jxr_javadoccomment">     * @param sourceDirectory assume that is &lt;code&gt;sourceDirectory&lt;/code&gt; is a not null directory and exists</em>
+<a name="66" href="#66">66</a>  <em class="jxr_javadoccomment">     * @param configuration checkstyle configuration</em>
+<a name="67" href="#67">67</a>  <em class="jxr_javadoccomment">     * @since 2.5</em>
+<a name="68" href="#68">68</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="69" href="#69">69</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/maven/plugin/checkstyle/CheckstyleReportListener.html">CheckstyleReportListener</a>( File sourceDirectory, Configuration configuration )
+<a name="70" href="#70">70</a>      {
+<a name="71" href="#71">71</a>          <strong class="jxr_keyword">this</strong>.sourceDirectories = <strong class="jxr_keyword">new</strong> ArrayList&lt;File&gt;();
+<a name="72" href="#72">72</a>          <strong class="jxr_keyword">this</strong>.sourceDirectories.add( sourceDirectory );
+<a name="73" href="#73">73</a>          <strong class="jxr_keyword">this</strong>.checkstyleConfiguration = configuration;
+<a name="74" href="#74">74</a>      }
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="77" href="#77">77</a>  <em class="jxr_javadoccomment">     * @param sourceDirectory assume that is &lt;code&gt;sourceDirectory&lt;/code&gt; is a not null directory and exists</em>
+<a name="78" href="#78">78</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="79" href="#79">79</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> addSourceDirectory( File sourceDirectory )
+<a name="80" href="#80">80</a>      {
+<a name="81" href="#81">81</a>          <strong class="jxr_keyword">this</strong>.sourceDirectories.add( sourceDirectory );
+<a name="82" href="#82">82</a>      }
+<a name="83" href="#83">83</a>  
+<a name="84" href="#84">84</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="85" href="#85">85</a>  <em class="jxr_javadoccomment">     * @param severityLevel</em>
+<a name="86" href="#86">86</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="87" href="#87">87</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setSeverityLevelFilter( SeverityLevel severityLevel )
+<a name="88" href="#88">88</a>      {
+<a name="89" href="#89">89</a>          <strong class="jxr_keyword">this</strong>.severityLevel = severityLevel;
+<a name="90" href="#90">90</a>      }
+<a name="91" href="#91">91</a>  
+<a name="92" href="#92">92</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="93" href="#93">93</a>  <em class="jxr_javadoccomment">     * @return</em>
+<a name="94" href="#94">94</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="95" href="#95">95</a>      <strong class="jxr_keyword">public</strong> SeverityLevel getSeverityLevelFilter()
+<a name="96" href="#96">96</a>      {
+<a name="97" href="#97">97</a>          <strong class="jxr_keyword">return</strong> severityLevel;
+<a name="98" href="#98">98</a>      }
+<a name="99" href="#99">99</a>  
+<a name="100" href="#100">100</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> {@inheritDoc} */</em>
+<a name="101" href="#101">101</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> auditStarted( AuditEvent event )
+<a name="102" href="#102">102</a>     {
+<a name="103" href="#103">103</a>         setResults( <strong class="jxr_keyword">new</strong> CheckstyleResults() );
+<a name="104" href="#104">104</a>     }
+<a name="105" href="#105">105</a> 
+<a name="106" href="#106">106</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> {@inheritDoc} */</em>
+<a name="107" href="#107">107</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> auditFinished( AuditEvent event )
+<a name="108" href="#108">108</a>     {
+<a name="109" href="#109">109</a>         <em class="jxr_comment">//do nothing</em>
+<a name="110" href="#110">110</a>     }
+<a name="111" href="#111">111</a> 
+<a name="112" href="#112">112</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> {@inheritDoc} */</em>
+<a name="113" href="#113">113</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> fileStarted( AuditEvent event )
+<a name="114" href="#114">114</a>     {
+<a name="115" href="#115">115</a>         <strong class="jxr_keyword">for</strong> ( File sourceDirectory : sourceDirectories )
+<a name="116" href="#116">116</a>         {
+<a name="117" href="#117">117</a>             currentFile = StringUtils.substring( event.getFileName(), sourceDirectory.getPath().length() + 1 );
+<a name="118" href="#118">118</a>             currentFile = StringUtils.replace( currentFile, <span class="jxr_string">"&#92;&#92;"</span>, <span class="jxr_string">"/"</span> );
 <a name="119" href="#119">119</a> 
-<a name="120" href="#120">120</a>             currentFile = StringUtils.substring( event.getFileName(), sourceDirectory.getPath().length() + 1 );
-<a name="121" href="#121">121</a>             currentFile = StringUtils.replace( currentFile, <span class="jxr_string">"&#92;&#92;"</span>, <span class="jxr_string">"/"</span> );
+<a name="120" href="#120">120</a>             events = getResults().getFileViolations( currentFile );
+<a name="121" href="#121">121</a>         }
 <a name="122" href="#122">122</a> 
-<a name="123" href="#123">123</a>             events = getResults().getFileViolations( currentFile );
-<a name="124" href="#124">124</a>         }
-<a name="125" href="#125">125</a> 
-<a name="126" href="#126">126</a>         <strong class="jxr_keyword">if</strong> ( events == <strong class="jxr_keyword">null</strong> )
-<a name="127" href="#127">127</a>         {
-<a name="128" href="#128">128</a>             events = <strong class="jxr_keyword">new</strong> ArrayList();
-<a name="129" href="#129">129</a>         }
-<a name="130" href="#130">130</a>     }
-<a name="131" href="#131">131</a> 
-<a name="132" href="#132">132</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> {@inheritDoc} */</em>
-<a name="133" href="#133">133</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> fileFinished( AuditEvent event )
-<a name="134" href="#134">134</a>     {
-<a name="135" href="#135">135</a>         getResults().setFileViolations( currentFile, events );
-<a name="136" href="#136">136</a>         currentFile = <strong class="jxr_keyword">null</strong>;
-<a name="137" href="#137">137</a>     }
-<a name="138" href="#138">138</a> 
-<a name="139" href="#139">139</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> {@inheritDoc} */</em>
-<a name="140" href="#140">140</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> addError( AuditEvent event )
-<a name="141" href="#141">141</a>     {
-<a name="142" href="#142">142</a>         <strong class="jxr_keyword">if</strong> ( SeverityLevel.IGNORE.equals( event.getSeverityLevel() ) )
-<a name="143" href="#143">143</a>         {
-<a name="144" href="#144">144</a>             <strong class="jxr_keyword">return</strong>;
-<a name="145" href="#145">145</a>         }
-<a name="146" href="#146">146</a> 
-<a name="147" href="#147">147</a>         <strong class="jxr_keyword">if</strong> ( severityLevel == <strong class="jxr_keyword">null</strong> || severityLevel.equals( event.getSeverityLevel() ) )
-<a name="148" href="#148">148</a>         {
-<a name="149" href="#149">149</a>             events.add( event );
-<a name="150" href="#150">150</a>         }
-<a name="151" href="#151">151</a>     }
-<a name="152" href="#152">152</a> 
-<a name="153" href="#153">153</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> {@inheritDoc} */</em>
-<a name="154" href="#154">154</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> addException( AuditEvent event, Throwable throwable )
-<a name="155" href="#155">155</a>     {
-<a name="156" href="#156">156</a>         <em class="jxr_comment">//Do Nothing</em>
-<a name="157" href="#157">157</a>     }
-<a name="158" href="#158">158</a> 
-<a name="159" href="#159">159</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="160" href="#160">160</a> <em class="jxr_javadoccomment">     * @return</em>
-<a name="161" href="#161">161</a> <em class="jxr_javadoccomment">     */</em>
-<a name="162" href="#162">162</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/maven/plugin/checkstyle/CheckstyleResults.html">CheckstyleResults</a> getResults()
-<a name="163" href="#163">163</a>     {
-<a name="164" href="#164">164</a>         results.setConfiguration( checkstyleConfiguration );
-<a name="165" href="#165">165</a>         <strong class="jxr_keyword">return</strong> results;
-<a name="166" href="#166">166</a>     }
-<a name="167" href="#167">167</a> 
-<a name="168" href="#168">168</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="169" href="#169">169</a> <em class="jxr_javadoccomment">     * @param results</em>
-<a name="170" href="#170">170</a> <em class="jxr_javadoccomment">     */</em>
-<a name="171" href="#171">171</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setResults( CheckstyleResults results )
-<a name="172" href="#172">172</a>     {
-<a name="173" href="#173">173</a>         <strong class="jxr_keyword">this</strong>.results = results;
-<a name="174" href="#174">174</a>     }
-<a name="175" href="#175">175</a> 
-<a name="176" href="#176">176</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="177" href="#177">177</a> <em class="jxr_javadoccomment">     * @since 2.5</em>
-<a name="178" href="#178">178</a> <em class="jxr_javadoccomment">     */</em>
-<a name="179" href="#179">179</a>     <strong class="jxr_keyword">public</strong> Configuration getCheckstyleConfiguration()
-<a name="180" href="#180">180</a>     {
-<a name="181" href="#181">181</a>         <strong class="jxr_keyword">return</strong> checkstyleConfiguration;
-<a name="182" href="#182">182</a>     }
-<a name="183" href="#183">183</a> 
-<a name="184" href="#184">184</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="185" href="#185">185</a> <em class="jxr_javadoccomment">     * @since 2.5</em>
-<a name="186" href="#186">186</a> <em class="jxr_javadoccomment">     */</em>
-<a name="187" href="#187">187</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setCheckstyleConfiguration( Configuration checkstyleConfiguration )
-<a name="188" href="#188">188</a>     {
-<a name="189" href="#189">189</a>         <strong class="jxr_keyword">this</strong>.checkstyleConfiguration = checkstyleConfiguration;
-<a name="190" href="#190">190</a>     }
-<a name="191" href="#191">191</a> 
-<a name="192" href="#192">192</a> }
-<a name="193" href="#193">193</a> 
+<a name="123" href="#123">123</a>         <strong class="jxr_keyword">if</strong> ( events == <strong class="jxr_keyword">null</strong> )
+<a name="124" href="#124">124</a>         {
+<a name="125" href="#125">125</a>             events = <strong class="jxr_keyword">new</strong> ArrayList&lt;AuditEvent&gt;();
+<a name="126" href="#126">126</a>         }
+<a name="127" href="#127">127</a>     }
+<a name="128" href="#128">128</a> 
+<a name="129" href="#129">129</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> {@inheritDoc} */</em>
+<a name="130" href="#130">130</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> fileFinished( AuditEvent event )
+<a name="131" href="#131">131</a>     {
+<a name="132" href="#132">132</a>         getResults().setFileViolations( currentFile, events );
+<a name="133" href="#133">133</a>         currentFile = <strong class="jxr_keyword">null</strong>;
+<a name="134" href="#134">134</a>     }
+<a name="135" href="#135">135</a> 
+<a name="136" href="#136">136</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> {@inheritDoc} */</em>
+<a name="137" href="#137">137</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> addError( AuditEvent event )
+<a name="138" href="#138">138</a>     {
+<a name="139" href="#139">139</a>         <strong class="jxr_keyword">if</strong> ( SeverityLevel.IGNORE.equals( event.getSeverityLevel() ) )
+<a name="140" href="#140">140</a>         {
+<a name="141" href="#141">141</a>             <strong class="jxr_keyword">return</strong>;
+<a name="142" href="#142">142</a>         }
+<a name="143" href="#143">143</a> 
+<a name="144" href="#144">144</a>         <strong class="jxr_keyword">if</strong> ( severityLevel == <strong class="jxr_keyword">null</strong> || severityLevel.equals( event.getSeverityLevel() ) )
+<a name="145" href="#145">145</a>         {
+<a name="146" href="#146">146</a>             events.add( event );
+<a name="147" href="#147">147</a>         }
+<a name="148" href="#148">148</a>     }
+<a name="149" href="#149">149</a> 
+<a name="150" href="#150">150</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> {@inheritDoc} */</em>
+<a name="151" href="#151">151</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> addException( AuditEvent event, Throwable throwable )
+<a name="152" href="#152">152</a>     {
+<a name="153" href="#153">153</a>         <em class="jxr_comment">//Do Nothing</em>
+<a name="154" href="#154">154</a>     }
+<a name="155" href="#155">155</a> 
+<a name="156" href="#156">156</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="157" href="#157">157</a> <em class="jxr_javadoccomment">     * @return</em>
+<a name="158" href="#158">158</a> <em class="jxr_javadoccomment">     */</em>
+<a name="159" href="#159">159</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/maven/plugin/checkstyle/CheckstyleResults.html">CheckstyleResults</a> getResults()
+<a name="160" href="#160">160</a>     {
+<a name="161" href="#161">161</a>         results.setConfiguration( checkstyleConfiguration );
+<a name="162" href="#162">162</a>         <strong class="jxr_keyword">return</strong> results;
+<a name="163" href="#163">163</a>     }
+<a name="164" href="#164">164</a> 
+<a name="165" href="#165">165</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="166" href="#166">166</a> <em class="jxr_javadoccomment">     * @param results</em>
+<a name="167" href="#167">167</a> <em class="jxr_javadoccomment">     */</em>
+<a name="168" href="#168">168</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setResults( CheckstyleResults results )
+<a name="169" href="#169">169</a>     {
+<a name="170" href="#170">170</a>         <strong class="jxr_keyword">this</strong>.results = results;
+<a name="171" href="#171">171</a>     }
+<a name="172" href="#172">172</a> 
+<a name="173" href="#173">173</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="174" href="#174">174</a> <em class="jxr_javadoccomment">     * @since 2.5</em>
+<a name="175" href="#175">175</a> <em class="jxr_javadoccomment">     */</em>
+<a name="176" href="#176">176</a>     <strong class="jxr_keyword">public</strong> Configuration getCheckstyleConfiguration()
+<a name="177" href="#177">177</a>     {
+<a name="178" href="#178">178</a>         <strong class="jxr_keyword">return</strong> checkstyleConfiguration;
+<a name="179" href="#179">179</a>     }
+<a name="180" href="#180">180</a> 
+<a name="181" href="#181">181</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="182" href="#182">182</a> <em class="jxr_javadoccomment">     * @since 2.5</em>
+<a name="183" href="#183">183</a> <em class="jxr_javadoccomment">     */</em>
+<a name="184" href="#184">184</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setCheckstyleConfiguration( Configuration checkstyleConfiguration )
+<a name="185" href="#185">185</a>     {
+<a name="186" href="#186">186</a>         <strong class="jxr_keyword">this</strong>.checkstyleConfiguration = checkstyleConfiguration;
+<a name="187" href="#187">187</a>     }
+<a name="188" href="#188">188</a> 
+<a name="189" href="#189">189</a> }
+<a name="190" href="#190">190</a> 
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: websites/production/maventest/content/plugins/maven-checkstyle-plugin-latest/xref/org/apache/maven/plugin/checkstyle/CheckstyleResults.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-checkstyle-plugin-latest/xref/org/apache/maven/plugin/checkstyle/CheckstyleResults.html (original)
+++ websites/production/maventest/content/plugins/maven-checkstyle-plugin-latest/xref/org/apache/maven/plugin/checkstyle/CheckstyleResults.html Tue May  8 13:58:21 2012
@@ -6,7 +6,7 @@
 <link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
 </head>
 <body>
-<div id="overview"><a href="../../../../../../apidocs/org/apache/maven/plugin/checkstyle/CheckstyleResults.html">View Javadoc</a></div><pre>
+<div id="overview"><a href="../../../../../../../../../../../../site/apidocs/org/apache/maven/plugin/checkstyle/CheckstyleResults.html">View Javadoc</a></div><pre>
 
 <a name="1" href="#1">1</a>   <strong class="jxr_keyword">package</strong> org.apache.maven.plugin.checkstyle;
 <a name="2" href="#2">2</a>   
@@ -34,127 +34,118 @@
 <a name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> com.puppycrawl.tools.checkstyle.api.SeverityLevel;
 <a name="25" href="#25">25</a>  
 <a name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> java.util.HashMap;
-<a name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> java.util.Iterator;
-<a name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> java.util.LinkedList;
-<a name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> java.util.List;
-<a name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> java.util.Map;
-<a name="31" href="#31">31</a>  
-<a name="32" href="#32">32</a>  <em class="jxr_javadoccomment">/**</em>
-<a name="33" href="#33">33</a>  <em class="jxr_javadoccomment"> * Object holding the references to the CheckstyleResults.</em>
-<a name="34" href="#34">34</a>  <em class="jxr_javadoccomment"> *</em>
-<a name="35" href="#35">35</a>  <em class="jxr_javadoccomment"> * @author &lt;a href="<a href="mailto:joakim@erdfelt.net" target="alexandria_uri">mailto:joakim@erdfelt.net</a>"&gt;Joakim Erdfelt&lt;/a&gt;</em>
-<a name="36" href="#36">36</a>  <em class="jxr_javadoccomment"> * @version $Id$</em>
-<a name="37" href="#37">37</a>  <em class="jxr_javadoccomment"> * @todo provide fallback to disk based storage if too many results.</em>
-<a name="38" href="#38">38</a>  <em class="jxr_javadoccomment"> */</em>
-<a name="39" href="#39">39</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/maven/plugin/checkstyle/CheckstyleResults.html">CheckstyleResults</a>
-<a name="40" href="#40">40</a>  {
-<a name="41" href="#41">41</a>      <strong class="jxr_keyword">private</strong> Map files;
-<a name="42" href="#42">42</a>      
-<a name="43" href="#43">43</a>      <strong class="jxr_keyword">private</strong> Configuration configuration;
-<a name="44" href="#44">44</a>  
-<a name="45" href="#45">45</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/maven/plugin/checkstyle/CheckstyleResults.html">CheckstyleResults</a>()
-<a name="46" href="#46">46</a>      {
-<a name="47" href="#47">47</a>          files = <strong class="jxr_keyword">new</strong> HashMap();
-<a name="48" href="#48">48</a>      }
-<a name="49" href="#49">49</a>  
-<a name="50" href="#50">50</a>      <strong class="jxr_keyword">public</strong> List getFileViolations( String file )
-<a name="51" href="#51">51</a>      {
-<a name="52" href="#52">52</a>          List violations;
-<a name="53" href="#53">53</a>  
-<a name="54" href="#54">54</a>          <strong class="jxr_keyword">if</strong> ( <strong class="jxr_keyword">this</strong>.files.containsKey( file ) )
-<a name="55" href="#55">55</a>          {
-<a name="56" href="#56">56</a>              violations = (List) <strong class="jxr_keyword">this</strong>.files.get( file );
-<a name="57" href="#57">57</a>          }
-<a name="58" href="#58">58</a>          <strong class="jxr_keyword">else</strong>
-<a name="59" href="#59">59</a>          {
-<a name="60" href="#60">60</a>              violations = <strong class="jxr_keyword">new</strong> LinkedList();
-<a name="61" href="#61">61</a>              <strong class="jxr_keyword">this</strong>.files.put( file, violations );
-<a name="62" href="#62">62</a>          }
-<a name="63" href="#63">63</a>  
-<a name="64" href="#64">64</a>          <strong class="jxr_keyword">return</strong> violations;
-<a name="65" href="#65">65</a>      }
-<a name="66" href="#66">66</a>  
-<a name="67" href="#67">67</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setFileViolations( String file, List violations )
-<a name="68" href="#68">68</a>      {
-<a name="69" href="#69">69</a>          <strong class="jxr_keyword">this</strong>.files.put( file, violations );
-<a name="70" href="#70">70</a>      }
-<a name="71" href="#71">71</a>  
-<a name="72" href="#72">72</a>      <strong class="jxr_keyword">public</strong> Map getFiles()
-<a name="73" href="#73">73</a>      {
-<a name="74" href="#74">74</a>          <strong class="jxr_keyword">return</strong> files;
-<a name="75" href="#75">75</a>      }
-<a name="76" href="#76">76</a>  
-<a name="77" href="#77">77</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setFiles( Map files )
-<a name="78" href="#78">78</a>      {
-<a name="79" href="#79">79</a>          <strong class="jxr_keyword">this</strong>.files = files;
-<a name="80" href="#80">80</a>      }
-<a name="81" href="#81">81</a>  
-<a name="82" href="#82">82</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getFileCount()
-<a name="83" href="#83">83</a>      {
-<a name="84" href="#84">84</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.files.size();
-<a name="85" href="#85">85</a>      }
-<a name="86" href="#86">86</a>  
-<a name="87" href="#87">87</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">long</strong> getSeverityCount( SeverityLevel level )
-<a name="88" href="#88">88</a>      {
-<a name="89" href="#89">89</a>          <strong class="jxr_keyword">long</strong> count = 0;
-<a name="90" href="#90">90</a>  
-<a name="91" href="#91">91</a>          Iterator it = <strong class="jxr_keyword">this</strong>.files.values().iterator();
-<a name="92" href="#92">92</a>  
-<a name="93" href="#93">93</a>          <strong class="jxr_keyword">while</strong> ( it.hasNext() )
-<a name="94" href="#94">94</a>          {
-<a name="95" href="#95">95</a>              List errors = (List) it.next();
-<a name="96" href="#96">96</a>  
-<a name="97" href="#97">97</a>              count = count + getSeverityCount( errors, level );
-<a name="98" href="#98">98</a>          }
-<a name="99" href="#99">99</a>  
-<a name="100" href="#100">100</a>         <strong class="jxr_keyword">return</strong> count;
-<a name="101" href="#101">101</a>     }
-<a name="102" href="#102">102</a> 
-<a name="103" href="#103">103</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">long</strong> getSeverityCount( String file, SeverityLevel level )
-<a name="104" href="#104">104</a>     {
-<a name="105" href="#105">105</a>         <strong class="jxr_keyword">long</strong> count = 0;
+<a name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> java.util.LinkedList;
+<a name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> java.util.List;
+<a name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> java.util.Map;
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="32" href="#32">32</a>  <em class="jxr_javadoccomment"> * Object holding the references to the CheckstyleResults.</em>
+<a name="33" href="#33">33</a>  <em class="jxr_javadoccomment"> *</em>
+<a name="34" href="#34">34</a>  <em class="jxr_javadoccomment"> * @author &lt;a href="<a href="mailto:joakim@erdfelt.net" target="alexandria_uri">mailto:joakim@erdfelt.net</a>"&gt;Joakim Erdfelt&lt;/a&gt;</em>
+<a name="35" href="#35">35</a>  <em class="jxr_javadoccomment"> * @version $Id$</em>
+<a name="36" href="#36">36</a>  <em class="jxr_javadoccomment"> * @todo provide fallback to disk based storage if too many results.</em>
+<a name="37" href="#37">37</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="38" href="#38">38</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/maven/plugin/checkstyle/CheckstyleResults.html">CheckstyleResults</a>
+<a name="39" href="#39">39</a>  {
+<a name="40" href="#40">40</a>      <strong class="jxr_keyword">private</strong> Map&lt;String, List&lt;AuditEvent&gt;&gt; files;
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>      <strong class="jxr_keyword">private</strong> Configuration configuration;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/maven/plugin/checkstyle/CheckstyleResults.html">CheckstyleResults</a>()
+<a name="45" href="#45">45</a>      {
+<a name="46" href="#46">46</a>          files = <strong class="jxr_keyword">new</strong> HashMap&lt;String, List&lt;AuditEvent&gt;&gt;();
+<a name="47" href="#47">47</a>      }
+<a name="48" href="#48">48</a>  
+<a name="49" href="#49">49</a>      <strong class="jxr_keyword">public</strong> List&lt;AuditEvent&gt; getFileViolations( String file )
+<a name="50" href="#50">50</a>      {
+<a name="51" href="#51">51</a>          List&lt;AuditEvent&gt; violations;
+<a name="52" href="#52">52</a>  
+<a name="53" href="#53">53</a>          <strong class="jxr_keyword">if</strong> ( <strong class="jxr_keyword">this</strong>.files.containsKey( file ) )
+<a name="54" href="#54">54</a>          {
+<a name="55" href="#55">55</a>              violations = <strong class="jxr_keyword">this</strong>.files.get( file );
+<a name="56" href="#56">56</a>          }
+<a name="57" href="#57">57</a>          <strong class="jxr_keyword">else</strong>
+<a name="58" href="#58">58</a>          {
+<a name="59" href="#59">59</a>              violations = <strong class="jxr_keyword">new</strong> LinkedList&lt;AuditEvent&gt;();
+<a name="60" href="#60">60</a>              <strong class="jxr_keyword">this</strong>.files.put( file, violations );
+<a name="61" href="#61">61</a>          }
+<a name="62" href="#62">62</a>  
+<a name="63" href="#63">63</a>          <strong class="jxr_keyword">return</strong> violations;
+<a name="64" href="#64">64</a>      }
+<a name="65" href="#65">65</a>  
+<a name="66" href="#66">66</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setFileViolations( String file, List&lt;AuditEvent&gt; violations )
+<a name="67" href="#67">67</a>      {
+<a name="68" href="#68">68</a>          <strong class="jxr_keyword">this</strong>.files.put( file, violations );
+<a name="69" href="#69">69</a>      }
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>      <strong class="jxr_keyword">public</strong> Map&lt;String, List&lt;AuditEvent&gt;&gt; getFiles()
+<a name="72" href="#72">72</a>      {
+<a name="73" href="#73">73</a>          <strong class="jxr_keyword">return</strong> files;
+<a name="74" href="#74">74</a>      }
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setFiles( Map&lt;String, List&lt;AuditEvent&gt;&gt; files )
+<a name="77" href="#77">77</a>      {
+<a name="78" href="#78">78</a>          <strong class="jxr_keyword">this</strong>.files = files;
+<a name="79" href="#79">79</a>      }
+<a name="80" href="#80">80</a>  
+<a name="81" href="#81">81</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getFileCount()
+<a name="82" href="#82">82</a>      {
+<a name="83" href="#83">83</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.files.size();
+<a name="84" href="#84">84</a>      }
+<a name="85" href="#85">85</a>  
+<a name="86" href="#86">86</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">long</strong> getSeverityCount( SeverityLevel level )
+<a name="87" href="#87">87</a>      {
+<a name="88" href="#88">88</a>          <strong class="jxr_keyword">long</strong> count = 0;
+<a name="89" href="#89">89</a>  
+<a name="90" href="#90">90</a>          <strong class="jxr_keyword">for</strong> ( List&lt;AuditEvent&gt; errors : <strong class="jxr_keyword">this</strong>.files.values() )
+<a name="91" href="#91">91</a>          {
+<a name="92" href="#92">92</a>              count = count + getSeverityCount( errors, level );
+<a name="93" href="#93">93</a>          }
+<a name="94" href="#94">94</a>  
+<a name="95" href="#95">95</a>          <strong class="jxr_keyword">return</strong> count;
+<a name="96" href="#96">96</a>      }
+<a name="97" href="#97">97</a>  
+<a name="98" href="#98">98</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">long</strong> getSeverityCount( String file, SeverityLevel level )
+<a name="99" href="#99">99</a>      {
+<a name="100" href="#100">100</a>         <strong class="jxr_keyword">long</strong> count = 0;
+<a name="101" href="#101">101</a> 
+<a name="102" href="#102">102</a>         <strong class="jxr_keyword">if</strong> ( !<strong class="jxr_keyword">this</strong>.files.containsKey( file ) )
+<a name="103" href="#103">103</a>         {
+<a name="104" href="#104">104</a>             <strong class="jxr_keyword">return</strong> count;
+<a name="105" href="#105">105</a>         }
 <a name="106" href="#106">106</a> 
-<a name="107" href="#107">107</a>         <strong class="jxr_keyword">if</strong> ( !<strong class="jxr_keyword">this</strong>.files.containsKey( file ) )
-<a name="108" href="#108">108</a>         {
-<a name="109" href="#109">109</a>             <strong class="jxr_keyword">return</strong> count;
-<a name="110" href="#110">110</a>         }
-<a name="111" href="#111">111</a> 
-<a name="112" href="#112">112</a>         List violations = (List) <strong class="jxr_keyword">this</strong>.files.get( file );
+<a name="107" href="#107">107</a>         List&lt;AuditEvent&gt; violations = <strong class="jxr_keyword">this</strong>.files.get( file );
+<a name="108" href="#108">108</a> 
+<a name="109" href="#109">109</a>         count = getSeverityCount( violations, level );
+<a name="110" href="#110">110</a> 
+<a name="111" href="#111">111</a>         <strong class="jxr_keyword">return</strong> count;
+<a name="112" href="#112">112</a>     }
 <a name="113" href="#113">113</a> 
-<a name="114" href="#114">114</a>         count = getSeverityCount( violations, level );
-<a name="115" href="#115">115</a> 
-<a name="116" href="#116">116</a>         <strong class="jxr_keyword">return</strong> count;
-<a name="117" href="#117">117</a>     }
-<a name="118" href="#118">118</a> 
-<a name="119" href="#119">119</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">long</strong> getSeverityCount( List violations, SeverityLevel level )
-<a name="120" href="#120">120</a>     {
-<a name="121" href="#121">121</a>         <strong class="jxr_keyword">long</strong> count = 0;
-<a name="122" href="#122">122</a> 
-<a name="123" href="#123">123</a>         Iterator it = violations.iterator();
-<a name="124" href="#124">124</a> 
-<a name="125" href="#125">125</a>         <strong class="jxr_keyword">while</strong> ( it.hasNext() )
-<a name="126" href="#126">126</a>         {
-<a name="127" href="#127">127</a>             AuditEvent event = (AuditEvent) it.next();
+<a name="114" href="#114">114</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">long</strong> getSeverityCount( List&lt;AuditEvent&gt; violations, SeverityLevel level )
+<a name="115" href="#115">115</a>     {
+<a name="116" href="#116">116</a>         <strong class="jxr_keyword">long</strong> count = 0;
+<a name="117" href="#117">117</a> 
+<a name="118" href="#118">118</a>         <strong class="jxr_keyword">for</strong> ( AuditEvent event : violations )
+<a name="119" href="#119">119</a>         {
+<a name="120" href="#120">120</a>             <strong class="jxr_keyword">if</strong> ( event.getSeverityLevel().equals( level ) )
+<a name="121" href="#121">121</a>             {
+<a name="122" href="#122">122</a>                 count++;
+<a name="123" href="#123">123</a>             }
+<a name="124" href="#124">124</a>         }
+<a name="125" href="#125">125</a> 
+<a name="126" href="#126">126</a>         <strong class="jxr_keyword">return</strong> count;
+<a name="127" href="#127">127</a>     }
 <a name="128" href="#128">128</a> 
-<a name="129" href="#129">129</a>             <strong class="jxr_keyword">if</strong> ( event.getSeverityLevel().equals( level ) )
-<a name="130" href="#130">130</a>             {
-<a name="131" href="#131">131</a>                 count++;
-<a name="132" href="#132">132</a>             }
-<a name="133" href="#133">133</a>         }
-<a name="134" href="#134">134</a> 
-<a name="135" href="#135">135</a>         <strong class="jxr_keyword">return</strong> count;
-<a name="136" href="#136">136</a>     }
-<a name="137" href="#137">137</a> 
-<a name="138" href="#138">138</a>     <strong class="jxr_keyword">public</strong> Configuration getConfiguration()
-<a name="139" href="#139">139</a>     {
-<a name="140" href="#140">140</a>         <strong class="jxr_keyword">return</strong> configuration;
-<a name="141" href="#141">141</a>     }
-<a name="142" href="#142">142</a> 
-<a name="143" href="#143">143</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setConfiguration( Configuration configuration )
-<a name="144" href="#144">144</a>     {
-<a name="145" href="#145">145</a>         <strong class="jxr_keyword">this</strong>.configuration = configuration;
-<a name="146" href="#146">146</a>     }
-<a name="147" href="#147">147</a> }
+<a name="129" href="#129">129</a>     <strong class="jxr_keyword">public</strong> Configuration getConfiguration()
+<a name="130" href="#130">130</a>     {
+<a name="131" href="#131">131</a>         <strong class="jxr_keyword">return</strong> configuration;
+<a name="132" href="#132">132</a>     }
+<a name="133" href="#133">133</a> 
+<a name="134" href="#134">134</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setConfiguration( Configuration configuration )
+<a name="135" href="#135">135</a>     {
+<a name="136" href="#136">136</a>         <strong class="jxr_keyword">this</strong>.configuration = configuration;
+<a name="137" href="#137">137</a>     }
+<a name="138" href="#138">138</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>



Mime
View raw message