Modified: maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/overview-tree.html ============================================================================== --- maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/overview-tree.html (original) +++ maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/overview-tree.html Sat Jul 12 17:23:46 2025 @@ -2,7 +2,7 @@ <html lang="en"> <head> <!-- Generated by javadoc (21) --> -<title>Class Hierarchy (Apache Maven Enforcer Built-In Rules 3.6.0 API)</title> +<title>Class Hierarchy (Apache Maven Enforcer Built-In Rules 3.6.1 API)</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="description" content="class tree"> @@ -118,6 +118,7 @@ loadScripts(document, 'script');</script </ul> </li> <li class="circle">org.apache.maven.enforcer.rules.utils.<a href="org/apache/maven/enforcer/rules/utils/ArtifactMatcher.html" class="type-name-link" title="class in org.apache.maven.enforcer.rules.utils">ArtifactMatcher</a></li> +<li class="circle">org.apache.maven.enforcer.rules.utils.<a href="org/apache/maven/enforcer/rules/utils/ArtifactMatcher.MatchingArtifact.html" class="type-name-link" title="class in org.apache.maven.enforcer.rules.utils">ArtifactMatcher.MatchingArtifact</a></li> <li class="circle">org.apache.maven.enforcer.rules.utils.<a href="org/apache/maven/enforcer/rules/utils/ArtifactMatcher.Pattern.html" class="type-name-link" title="class in org.apache.maven.enforcer.rules.utils">ArtifactMatcher.Pattern</a></li> <li class="circle">org.apache.maven.enforcer.rules.utils.<a href="org/apache/maven/enforcer/rules/utils/ArtifactUtils.html" class="type-name-link" title="class in org.apache.maven.enforcer.rules.utils">ArtifactUtils</a></li> <li class="circle">org.apache.maven.enforcer.rules.utils.<a href="org/apache/maven/enforcer/rules/utils/EnforcerRuleUtils.html" class="type-name-link" title="class in org.apache.maven.enforcer.rules.utils">EnforcerRuleUtils</a></li>
Modified: maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/search.html ============================================================================== --- maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/search.html (original) +++ maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/search.html Sat Jul 12 17:23:46 2025 @@ -2,7 +2,7 @@ <html lang="en"> <head> <!-- Generated by javadoc (21) --> -<title>Search (Apache Maven Enforcer Built-In Rules 3.6.0 API)</title> +<title>Search (Apache Maven Enforcer Built-In Rules 3.6.1 API)</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="description" content="search"> Modified: maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/BanDependencyManagementScope.html ============================================================================== --- maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/BanDependencyManagementScope.html (original) +++ maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/BanDependencyManagementScope.html Sat Jul 12 17:23:46 2025 @@ -126,8 +126,8 @@ <span class="source-line-no">113</span><span id="line-113"> + System.lineSeparator();</span> <span class="source-line-no">114</span><span id="line-114"> }</span> <span class="source-line-no">115</span><span id="line-115"></span> -<span class="source-line-no">116</span><span id="line-116"> public void setExcludes(List<String> theExcludes) {</span> -<span class="source-line-no">117</span><span id="line-117"> this.excludes = theExcludes;</span> +<span class="source-line-no">116</span><span id="line-116"> public void setExcludes(List<String> excludes) {</span> +<span class="source-line-no">117</span><span id="line-117"> this.excludes = excludes;</span> <span class="source-line-no">118</span><span id="line-118"> }</span> <span class="source-line-no">119</span><span id="line-119"></span> <span class="source-line-no">120</span><span id="line-120"> @Override</span> Modified: maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/BannedRepositories.html ============================================================================== --- maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/BannedRepositories.html (original) +++ maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/BannedRepositories.html Sat Jul 12 17:23:46 2025 @@ -44,7 +44,7 @@ <span class="source-line-no">031</span><span id="line-31">import org.apache.maven.project.MavenProject;</span> <span class="source-line-no">032</span><span id="line-32"></span> <span class="source-line-no">033</span><span id="line-33">/**</span> -<span class="source-line-no">034</span><span id="line-34"> * This rule checks that this project's maven session whether have banned repositories.</span> +<span class="source-line-no">034</span><span id="line-34"> * This rule checks whether this project's maven session has banned repositories.</span> <span class="source-line-no">035</span><span id="line-35"> *</span> <span class="source-line-no">036</span><span id="line-36"> * @author <a href="mailto:wangyf2...@gmail.com">Simon Wang</a></span> <span class="source-line-no">037</span><span id="line-37"> */</span> @@ -103,7 +103,7 @@ <span class="source-line-no">090</span><span id="line-90"></span> <span class="source-line-no">091</span><span id="line-91"> String errMsg = repoErrMsg + pluginRepoErrMsg;</span> <span class="source-line-no">092</span><span id="line-92"></span> -<span class="source-line-no">093</span><span id="line-93"> if (errMsg != null && !errMsg.isEmpty()) {</span> +<span class="source-line-no">093</span><span id="line-93"> if (!errMsg.isEmpty()) {</span> <span class="source-line-no">094</span><span id="line-94"> throw new EnforcerRuleException(errMsg);</span> <span class="source-line-no">095</span><span id="line-95"> }</span> <span class="source-line-no">096</span><span id="line-96"> }</span> Modified: maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/ExternalRules.html ============================================================================== --- maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/ExternalRules.html (original) +++ maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/ExternalRules.html Sat Jul 12 17:23:46 2025 @@ -222,7 +222,7 @@ <span class="source-line-no">209</span><span id="line-209"> | TransformerFactoryConfigurationError e) {</span> <span class="source-line-no">210</span><span id="line-210"> throw new RuntimeException("Could not open resource " + xsltLocation);</span> <span class="source-line-no">211</span><span id="line-211"> } catch (TransformerException e) {</span> -<span class="source-line-no">212</span><span id="line-212"> throw new RuntimeException("Could not transform " + sourceLocation + " usinng XSLT " + xsltLocation);</span> +<span class="source-line-no">212</span><span id="line-212"> throw new RuntimeException("Could not transform " + sourceLocation + " using XSLT " + xsltLocation);</span> <span class="source-line-no">213</span><span id="line-213"> }</span> <span class="source-line-no">214</span><span id="line-214"> }</span> <span class="source-line-no">215</span><span id="line-215">}</span> Modified: maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/ReactorModuleConvergence.html ============================================================================== --- maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/ReactorModuleConvergence.html (original) +++ maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/ReactorModuleConvergence.html Sat Jul 12 17:23:46 2025 @@ -48,7 +48,7 @@ <span class="source-line-no">035</span><span id="line-35">import org.codehaus.plexus.util.StringUtils;</span> <span class="source-line-no">036</span><span id="line-36"></span> <span class="source-line-no">037</span><span id="line-37">/**</span> -<span class="source-line-no">038</span><span id="line-38"> * This rule will check if a multi module build will follow the best practices.</span> +<span class="source-line-no">038</span><span id="line-38"> * This rule will check if a multi-module build will follow the best practices.</span> <span class="source-line-no">039</span><span id="line-39"> *</span> <span class="source-line-no">040</span><span id="line-40"> * @author Karl-Heinz Marbaise</span> <span class="source-line-no">041</span><span id="line-41"> * @since 1.4</span> @@ -205,7 +205,7 @@ <span class="source-line-no">192</span><span id="line-192"> }</span> <span class="source-line-no">193</span><span id="line-193"> }</span> <span class="source-line-no">194</span><span id="line-194"> } else {</span> -<span class="source-line-no">195</span><span id="line-195"> // This situation is currently ignored, cause it's handled by existModulesWithoutParentsInReactor()</span> +<span class="source-line-no">195</span><span id="line-195"> // This situation is currently ignored because it's handled by existModulesWithoutParentsInReactor()</span> <span class="source-line-no">196</span><span id="line-196"> }</span> <span class="source-line-no">197</span><span id="line-197"> }</span> <span class="source-line-no">198</span><span id="line-198"></span> @@ -267,7 +267,7 @@ <span class="source-line-no">254</span><span id="line-254"> }</span> <span class="source-line-no">255</span><span id="line-255"></span> <span class="source-line-no">256</span><span id="line-256"> /**</span> -<span class="source-line-no">257</span><span id="line-257"> * Assume we have a module which is a child of a multi module build but this child does not have a parent. This</span> +<span class="source-line-no">257</span><span id="line-257"> * Assume we have a module which is a child of a multi-module build but this child does not have a parent. This</span> <span class="source-line-no">258</span><span id="line-258"> * method will exactly search for such cases.</span> <span class="source-line-no">259</span><span id="line-259"> *</span> <span class="source-line-no">260</span><span id="line-260"> * @param sortedProjects The sorted list of the reactor modules.</span> @@ -317,7 +317,7 @@ <span class="source-line-no">304</span><span id="line-304"></span> <span class="source-line-no">305</span><span id="line-305"> /**</span> <span class="source-line-no">306</span><span id="line-306"> * Go through the list of modules in the builds and check if we have dependencies. If yes we will check every</span> -<span class="source-line-no">307</span><span id="line-307"> * dependency based on groupId/artifactId if it belongs to the multi module build. In such a case it will be checked</span> +<span class="source-line-no">307</span><span id="line-307"> * dependency based on groupId/artifactId if it belongs to the multi-module build. In such a case it will be checked</span> <span class="source-line-no">308</span><span id="line-308"> * if the version does fit the version in the rest of build.</span> <span class="source-line-no">309</span><span id="line-309"> *</span> <span class="source-line-no">310</span><span id="line-310"> * @param reactorVersion the version of the reactor</span> Modified: maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/RequireJavaVendor.html ============================================================================== --- maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/RequireJavaVendor.html (original) +++ maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/RequireJavaVendor.html Sat Jul 12 17:23:46 2025 @@ -109,10 +109,10 @@ <span class="source-line-no">096</span><span id="line-96"> * java.vendor, which you can also see with mvn --version. <br></span> <span class="source-line-no">097</span><span id="line-97"> * Excludes override the include rules.</span> <span class="source-line-no">098</span><span id="line-98"> *</span> -<span class="source-line-no">099</span><span id="line-99"> * @param theExcludes the vendors to exclude from the include list</span> +<span class="source-line-no">099</span><span id="line-99"> * @param excludes the vendors to exclude from the include list</span> <span class="source-line-no">100</span><span id="line-100"> */</span> -<span class="source-line-no">101</span><span id="line-101"> public void setExcludes(List<String> theExcludes) {</span> -<span class="source-line-no">102</span><span id="line-102"> this.excludes = theExcludes;</span> +<span class="source-line-no">101</span><span id="line-101"> public void setExcludes(List<String> excludes) {</span> +<span class="source-line-no">102</span><span id="line-102"> this.excludes = excludes;</span> <span class="source-line-no">103</span><span id="line-103"> }</span> <span class="source-line-no">104</span><span id="line-104"></span> <span class="source-line-no">105</span><span id="line-105"> /**</span> @@ -127,12 +127,12 @@ <span class="source-line-no">114</span><span id="line-114"> * <li><code>Amazon</code> prohibits vendor name Amazon </li></span> <span class="source-line-no">115</span><span id="line-115"> * </ul></span> <span class="source-line-no">116</span><span id="line-116"> *</span> -<span class="source-line-no">117</span><span id="line-117"> * @param theIncludes the list of required vendors</span> +<span class="source-line-no">117</span><span id="line-117"> * @param includes the list of required vendors</span> <span class="source-line-no">118</span><span id="line-118"> *</span> <span class="source-line-no">119</span><span id="line-119"> * @see #setExcludes(List)</span> <span class="source-line-no">120</span><span id="line-120"> */</span> -<span class="source-line-no">121</span><span id="line-121"> public void setIncludes(List<String> theIncludes) {</span> -<span class="source-line-no">122</span><span id="line-122"> this.includes = theIncludes;</span> +<span class="source-line-no">121</span><span id="line-121"> public void setIncludes(List<String> includes) {</span> +<span class="source-line-no">122</span><span id="line-122"> this.includes = includes;</span> <span class="source-line-no">123</span><span id="line-123"> }</span> <span class="source-line-no">124</span><span id="line-124"></span> <span class="source-line-no">125</span><span id="line-125"> @Override</span> Modified: maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/RequireOS.html ============================================================================== --- maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/RequireOS.html (original) +++ maven/website/components/enforcer-archives/enforcer-LATEST/enforcer-rules/apidocs/src-html/org/apache/maven/enforcer/rules/RequireOS.html Sat Jul 12 17:23:46 2025 @@ -244,87 +244,86 @@ <span class="source-line-no">231</span><span id="line-231"> * </ul></span> <span class="source-line-no">232</span><span id="line-232"> * Note: '!' is allowed at the beginning of the string and still considered valid.</span> <span class="source-line-no">233</span><span id="line-233"> *</span> -<span class="source-line-no">234</span><span id="line-234"> * @param theFamily the family to check.</span> -<span class="source-line-no">235</span><span id="line-235"> * @return true if one of the valid families.</span> +<span class="source-line-no">234</span><span id="line-234"> * @param family the family to check</span> +<span class="source-line-no">235</span><span id="line-235"> * @return true if one of the valid families</span> <span class="source-line-no">236</span><span id="line-236"> */</span> -<span class="source-line-no">237</span><span id="line-237"> public boolean isValidFamily(String theFamily) {</span> +<span class="source-line-no">237</span><span id="line-237"> public boolean isValidFamily(String family) {</span> <span class="source-line-no">238</span><span id="line-238"></span> <span class="source-line-no">239</span><span id="line-239"> // in case they are checking !family</span> -<span class="source-line-no">240</span><span id="line-240"> theFamily = StringUtils.stripStart(theFamily, "!");</span> +<span class="source-line-no">240</span><span id="line-240"> family = StringUtils.stripStart(family, "!");</span> <span class="source-line-no">241</span><span id="line-241"></span> -<span class="source-line-no">242</span><span id="line-242"> return (theFamily == null || theFamily.isEmpty())</span> -<span class="source-line-no">243</span><span id="line-243"> || Os.getValidFamilies().contains(theFamily);</span> -<span class="source-line-no">244</span><span id="line-244"> }</span> -<span class="source-line-no">245</span><span id="line-245"></span> -<span class="source-line-no">246</span><span id="line-246"> /**</span> -<span class="source-line-no">247</span><span id="line-247"> * Sets the arch.</span> -<span class="source-line-no">248</span><span id="line-248"> *</span> -<span class="source-line-no">249</span><span id="line-249"> * @param theArch the arch to set</span> -<span class="source-line-no">250</span><span id="line-250"> */</span> -<span class="source-line-no">251</span><span id="line-251"> public void setArch(String theArch) {</span> -<span class="source-line-no">252</span><span id="line-252"> this.arch = theArch;</span> -<span class="source-line-no">253</span><span id="line-253"> }</span> -<span class="source-line-no">254</span><span id="line-254"></span> -<span class="source-line-no">255</span><span id="line-255"> /**</span> -<span class="source-line-no">256</span><span id="line-256"> * Sets the family.</span> -<span class="source-line-no">257</span><span id="line-257"> *</span> -<span class="source-line-no">258</span><span id="line-258"> * @param theFamily the family to set</span> -<span class="source-line-no">259</span><span id="line-259"> */</span> -<span class="source-line-no">260</span><span id="line-260"> public void setFamily(String theFamily) {</span> -<span class="source-line-no">261</span><span id="line-261"> this.family = theFamily;</span> -<span class="source-line-no">262</span><span id="line-262"> }</span> -<span class="source-line-no">263</span><span id="line-263"></span> -<span class="source-line-no">264</span><span id="line-264"> /**</span> -<span class="source-line-no">265</span><span id="line-265"> * Sets the name.</span> -<span class="source-line-no">266</span><span id="line-266"> *</span> -<span class="source-line-no">267</span><span id="line-267"> * @param theName the name to set</span> -<span class="source-line-no">268</span><span id="line-268"> */</span> -<span class="source-line-no">269</span><span id="line-269"> public void setName(String theName) {</span> -<span class="source-line-no">270</span><span id="line-270"> this.name = theName;</span> -<span class="source-line-no">271</span><span id="line-271"> }</span> -<span class="source-line-no">272</span><span id="line-272"></span> -<span class="source-line-no">273</span><span id="line-273"> /**</span> -<span class="source-line-no">274</span><span id="line-274"> * Sets the version.</span> -<span class="source-line-no">275</span><span id="line-275"> *</span> -<span class="source-line-no">276</span><span id="line-276"> * @param theVersion the version to set</span> -<span class="source-line-no">277</span><span id="line-277"> */</span> -<span class="source-line-no">278</span><span id="line-278"> public void setVersion(String theVersion) {</span> -<span class="source-line-no">279</span><span id="line-279"> this.version = theVersion;</span> -<span class="source-line-no">280</span><span id="line-280"> }</span> -<span class="source-line-no">281</span><span id="line-281"></span> -<span class="source-line-no">282</span><span id="line-282"> /**</span> -<span class="source-line-no">283</span><span id="line-283"> * @param display The value for the display.</span> -<span class="source-line-no">284</span><span id="line-284"> */</span> -<span class="source-line-no">285</span><span id="line-285"> public void setDisplay(boolean display) {</span> -<span class="source-line-no">286</span><span id="line-286"> this.display = display;</span> -<span class="source-line-no">287</span><span id="line-287"> }</span> -<span class="source-line-no">288</span><span id="line-288"></span> -<span class="source-line-no">289</span><span id="line-289"> @Override</span> -<span class="source-line-no">290</span><span id="line-290"> public String getCacheId() {</span> -<span class="source-line-no">291</span><span id="line-291"> // return the hashcodes of all the parameters</span> -<span class="source-line-no">292</span><span id="line-292"> StringBuilder b = new StringBuilder();</span> -<span class="source-line-no">293</span><span id="line-293"> if (version != null && !version.isEmpty()) {</span> -<span class="source-line-no">294</span><span id="line-294"> b.append(version.hashCode());</span> -<span class="source-line-no">295</span><span id="line-295"> }</span> -<span class="source-line-no">296</span><span id="line-296"> if (name != null && !name.isEmpty()) {</span> -<span class="source-line-no">297</span><span id="line-297"> b.append(name.hashCode());</span> -<span class="source-line-no">298</span><span id="line-298"> }</span> -<span class="source-line-no">299</span><span id="line-299"> if (arch != null && !arch.isEmpty()) {</span> -<span class="source-line-no">300</span><span id="line-300"> b.append(arch.hashCode());</span> -<span class="source-line-no">301</span><span id="line-301"> }</span> -<span class="source-line-no">302</span><span id="line-302"> if (family != null && !family.isEmpty()) {</span> -<span class="source-line-no">303</span><span id="line-303"> b.append(family.hashCode());</span> -<span class="source-line-no">304</span><span id="line-304"> }</span> -<span class="source-line-no">305</span><span id="line-305"> return b.toString();</span> -<span class="source-line-no">306</span><span id="line-306"> }</span> -<span class="source-line-no">307</span><span id="line-307"></span> -<span class="source-line-no">308</span><span id="line-308"> @Override</span> -<span class="source-line-no">309</span><span id="line-309"> public String toString() {</span> -<span class="source-line-no">310</span><span id="line-310"> return String.format(</span> -<span class="source-line-no">311</span><span id="line-311"> "RequireOS[message=%s, arch=%s, family=%s, name=%s, version=%s, display=%b]",</span> -<span class="source-line-no">312</span><span id="line-312"> getMessage(), arch, family, name, version, display);</span> -<span class="source-line-no">313</span><span id="line-313"> }</span> -<span class="source-line-no">314</span><span id="line-314">}</span> +<span class="source-line-no">242</span><span id="line-242"> return (family == null || family.isEmpty()) || Os.getValidFamilies().contains(family);</span> +<span class="source-line-no">243</span><span id="line-243"> }</span> +<span class="source-line-no">244</span><span id="line-244"></span> +<span class="source-line-no">245</span><span id="line-245"> /**</span> +<span class="source-line-no">246</span><span id="line-246"> * Sets the architecture.</span> +<span class="source-line-no">247</span><span id="line-247"> *</span> +<span class="source-line-no">248</span><span id="line-248"> * @param architecture the architecture to set</span> +<span class="source-line-no">249</span><span id="line-249"> */</span> +<span class="source-line-no">250</span><span id="line-250"> public void setArch(String architecture) {</span> +<span class="source-line-no">251</span><span id="line-251"> this.arch = architecture;</span> +<span class="source-line-no">252</span><span id="line-252"> }</span> +<span class="source-line-no">253</span><span id="line-253"></span> +<span class="source-line-no">254</span><span id="line-254"> /**</span> +<span class="source-line-no">255</span><span id="line-255"> * Sets the family.</span> +<span class="source-line-no">256</span><span id="line-256"> *</span> +<span class="source-line-no">257</span><span id="line-257"> * @param family the family to set</span> +<span class="source-line-no">258</span><span id="line-258"> */</span> +<span class="source-line-no">259</span><span id="line-259"> public void setFamily(String family) {</span> +<span class="source-line-no">260</span><span id="line-260"> this.family = family;</span> +<span class="source-line-no">261</span><span id="line-261"> }</span> +<span class="source-line-no">262</span><span id="line-262"></span> +<span class="source-line-no">263</span><span id="line-263"> /**</span> +<span class="source-line-no">264</span><span id="line-264"> * Sets the name.</span> +<span class="source-line-no">265</span><span id="line-265"> *</span> +<span class="source-line-no">266</span><span id="line-266"> * @param name the name to set</span> +<span class="source-line-no">267</span><span id="line-267"> */</span> +<span class="source-line-no">268</span><span id="line-268"> public void setName(String name) {</span> +<span class="source-line-no">269</span><span id="line-269"> this.name = name;</span> +<span class="source-line-no">270</span><span id="line-270"> }</span> +<span class="source-line-no">271</span><span id="line-271"></span> +<span class="source-line-no">272</span><span id="line-272"> /**</span> +<span class="source-line-no">273</span><span id="line-273"> * Sets the version.</span> +<span class="source-line-no">274</span><span id="line-274"> *</span> +<span class="source-line-no">275</span><span id="line-275"> * @param version the version to set</span> +<span class="source-line-no">276</span><span id="line-276"> */</span> +<span class="source-line-no">277</span><span id="line-277"> public void setVersion(String version) {</span> +<span class="source-line-no">278</span><span id="line-278"> this.version = version;</span> +<span class="source-line-no">279</span><span id="line-279"> }</span> +<span class="source-line-no">280</span><span id="line-280"></span> +<span class="source-line-no">281</span><span id="line-281"> /**</span> +<span class="source-line-no">282</span><span id="line-282"> * @param display The value for the display.</span> +<span class="source-line-no">283</span><span id="line-283"> */</span> +<span class="source-line-no">284</span><span id="line-284"> public void setDisplay(boolean display) {</span> +<span class="source-line-no">285</span><span id="line-285"> this.display = display;</span> +<span class="source-line-no">286</span><span id="line-286"> }</span> +<span class="source-line-no">287</span><span id="line-287"></span> +<span class="source-line-no">288</span><span id="line-288"> @Override</span> +<span class="source-line-no">289</span><span id="line-289"> public String getCacheId() {</span> +<span class="source-line-no">290</span><span id="line-290"> // return the hash codes of all the parameters</span> +<span class="source-line-no">291</span><span id="line-291"> StringBuilder b = new StringBuilder();</span> +<span class="source-line-no">292</span><span id="line-292"> if (version != null && !version.isEmpty()) {</span> +<span class="source-line-no">293</span><span id="line-293"> b.append(version.hashCode());</span> +<span class="source-line-no">294</span><span id="line-294"> }</span> +<span class="source-line-no">295</span><span id="line-295"> if (name != null && !name.isEmpty()) {</span> +<span class="source-line-no">296</span><span id="line-296"> b.append(name.hashCode());</span> +<span class="source-line-no">297</span><span id="line-297"> }</span> +<span class="source-line-no">298</span><span id="line-298"> if (arch != null && !arch.isEmpty()) {</span> +<span class="source-line-no">299</span><span id="line-299"> b.append(arch.hashCode());</span> +<span class="source-line-no">300</span><span id="line-300"> }</span> +<span class="source-line-no">301</span><span id="line-301"> if (family != null && !family.isEmpty()) {</span> +<span class="source-line-no">302</span><span id="line-302"> b.append(family.hashCode());</span> +<span class="source-line-no">303</span><span id="line-303"> }</span> +<span class="source-line-no">304</span><span id="line-304"> return b.toString();</span> +<span class="source-line-no">305</span><span id="line-305"> }</span> +<span class="source-line-no">306</span><span id="line-306"></span> +<span class="source-line-no">307</span><span id="line-307"> @Override</span> +<span class="source-line-no">308</span><span id="line-308"> public String toString() {</span> +<span class="source-line-no">309</span><span id="line-309"> return String.format(</span> +<span class="source-line-no">310</span><span id="line-310"> "RequireOS[message=%s, arch=%s, family=%s, name=%s, version=%s, display=%b]",</span> +<span class="source-line-no">311</span><span id="line-311"> getMessage(), arch, family, name, version, display);</span> +<span class="source-line-no">312</span><span id="line-312"> }</span> +<span class="source-line-no">313</span><span id="line-313">}</span>