Skip to content

Commit 01e49d8

Browse files
authored
Merge pull request #904 from hazendaz/formatting
[format] Enable formatting which just trims whitespace in this case
2 parents 2981293 + b57c12c commit 01e49d8

33 files changed

+230
-220
lines changed

format.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
base-parent (https://github.com/hazendaz/base-parent)
5+
6+
Copyright 2011-2023 Hazendaz.
7+
8+
All rights reserved. This program and the accompanying materials
9+
are made available under the terms of The Apache Software License,
10+
Version 2.0 which accompanies this distribution, and is available at
11+
https://www.apache.org/licenses/LICENSE-2.0.txt
12+
13+
Contributors:
14+
Hazendaz (Jeremy Landis).
15+
16+
-->
17+
<!DOCTYPE Format>
18+
<Format>
19+
<!-- Dummy format file -->
20+
</Format>

src/it/check-multi-filter-dups/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,3 @@
6060
</plugins>
6161
</build>
6262
</project>
63-
64-

src/it/no-src/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@
5050
</plugins>
5151
</reporting>
5252
</project>
53-

src/main/groovy/org/codehaus/mojo/spotbugs/BaseViolationCheckMojo.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ abstract class BaseViolationCheckMojo extends AbstractMojo {
364364
* @since 2.4.1
365365
*/
366366
@Parameter(property = "spotbugs.maxAllowedViolations", defaultValue = "0")
367-
int maxAllowedViolations
367+
int maxAllowedViolations
368368

369369
/** Disable bugs log. */
370370
@Parameter(defaultValue = "false", property = "spotbugs.quiet")

src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
12881288

12891289
/**
12901290
* Set report output directory, allowed to be not read only as defined in AbstractMavenParent.
1291-
*
1291+
*
12921292
* @see AbstractMavenReport#setReportOutputDirectory(File)
12931293
*/
12941294
@Override

src/site/resources/examples/spotbugsXml.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="windows-1252"?>
22
<!--
33
4-
Copyright 2005-2023 the original author or authors.
4+
Copyright 2005-2024 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -76,14 +76,14 @@ public void foo() {
7676
&lt;p&gt;Such assignments are useless, and may indicate a logic error or typo.&lt;/p&gt;
7777

7878
</Details></BugPattern><BugPattern abbrev='NP' category='BAD_PRACTICE' type='NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT'><ShortDescription>equals() method does not check for null argument</ShortDescription><Details>
79-
79+
8080
&lt;p&gt;
8181
This implementation of equals(Object) violates the contract defined
8282
by java.lang.Object.equals() because it does not check for null
8383
being passed as the argument. All equals() methods should return
8484
false if passed a null value.
8585
&lt;/p&gt;
86-
86+
8787
</Details></BugPattern><BugPattern abbrev='RE' category='CORRECTNESS' type='RE_POSSIBLE_UNINTENDED_PATTERN'><ShortDescription>"." or "|" used for regular expression</ShortDescription><Details>
8888

8989
&lt;p&gt;
@@ -153,13 +153,13 @@ block for an &lt;code&gt;if&lt;/code&gt; statement:&lt;/p&gt;
153153
&lt;p&gt;Assigning the same value to a variable twice is useless, and may indicate a logic error or typo.&lt;/p&gt;
154154

155155
</Details></BugPattern><BugPattern abbrev='NP' category='BAD_PRACTICE' type='NP_CLONE_COULD_RETURN_NULL'><ShortDescription>Clone method may return null</ShortDescription><Details>
156-
156+
157157
&lt;p&gt;
158158
This clone method seems to return null in some circumstances, but clone is never
159159
allowed to return a null value. If you are convinced this path is unreachable, throw an AssertionError
160160
instead.
161161
&lt;/p&gt;
162-
162+
163163
</Details></BugPattern><BugPattern abbrev='HE' category='BAD_PRACTICE' type='HE_INHERITS_EQUALS_USE_HASHCODE'><ShortDescription>Class inherits equals() and uses Object.hashCode()</ShortDescription><Details>
164164

165165
&lt;p&gt; This class inherits &lt;code&gt;equals(Object)&lt;/code&gt; from an abstract
@@ -202,7 +202,7 @@ The field is public or protected, so perhaps
202202
consider removing it from the class.&lt;/p&gt;
203203

204204
</Details></BugPattern><BugPattern abbrev='IO' category='CORRECTNESS' type='IO_APPENDING_TO_OBJECT_OUTPUT_STREAM'><ShortDescription>Doomed attempt to append to an object output stream</ShortDescription><Details>
205-
205+
206206
&lt;p&gt;
207207
This code opens a file in append mode and then wraps the result in an object output stream like as follows:
208208
&lt;/p&gt;
@@ -216,7 +216,7 @@ consider removing it from the class.&lt;/p&gt;
216216
could work is if on reading the file you plan to open it in random access mode and seek to the byte offset
217217
where the append started.
218218
&lt;/p&gt;
219-
219+
220220
</Details></BugPattern><BugPattern abbrev='FI' category='BAD_PRACTICE' type='FI_USELESS'><ShortDescription>Finalizer does nothing but call superclass finalizer</ShortDescription><Details>
221221

222222
&lt;p&gt; The only thing this &lt;code&gt;finalize()&lt;/code&gt; method does is call

src/site/resources/examples/xref-test/org/codehaus/mojo/spotbugsmavenplugin/it/App.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
3-
Copyright 2005-2023 the original author or authors.
3+
Copyright 2005-2024 the original author or authors.
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -39,21 +39,21 @@
3939
<a class="jxr_linenumber" name="L14" href="#L14">14</a> <em class="jxr_comment"> * limitations under the License.</em>
4040
<a class="jxr_linenumber" name="L15" href="#L15">15</a> <em class="jxr_comment"> */</em>
4141
<a class="jxr_linenumber" name="L16" href="#L16">16</a> <strong class="jxr_keyword">package</strong> org.codehaus.mojo.spotbugsmavenplugin.it;
42-
<a class="jxr_linenumber" name="L17" href="#L17">17</a>
42+
<a class="jxr_linenumber" name="L17" href="#L17">17</a>
4343
<a class="jxr_linenumber" name="L18" href="#L18">18</a> <em class="jxr_javadoccomment">/**</em>
4444
<a class="jxr_linenumber" name="L19" href="#L19">19</a> <em class="jxr_javadoccomment"> * Hello world!</em>
4545
<a class="jxr_linenumber" name="L20" href="#L20">20</a> <em class="jxr_javadoccomment"> *</em>
4646
<a class="jxr_linenumber" name="L21" href="#L21">21</a> <em class="jxr_javadoccomment"> */</em>
4747
<a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a name="App" href="../../../../../org/codehaus/mojo/spotbugsmavenplugin/it/App.html#App">App</a> <strong class="jxr_keyword">implements</strong> Cloneable {
48-
<a class="jxr_linenumber" name="L23" href="#L23">23</a>
48+
<a class="jxr_linenumber" name="L23" href="#L23">23</a>
4949
<a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> main( String[] args ) {
5050
<a class="jxr_linenumber" name="L25" href="#L25">25</a> System.out.println( <span class="jxr_string">"Hello World!"</span> );
5151
<a class="jxr_linenumber" name="L26" href="#L26">26</a> }
52-
<a class="jxr_linenumber" name="L27" href="#L27">27</a>
52+
<a class="jxr_linenumber" name="L27" href="#L27">27</a>
5353
<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong class="jxr_keyword">public</strong> Object clone() {
5454
<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>; <em class="jxr_comment">// Does not call 'super.clone()'.</em>
5555
<a class="jxr_linenumber" name="L30" href="#L30">30</a> }
56-
<a class="jxr_linenumber" name="L31" href="#L31">31</a>
56+
<a class="jxr_linenumber" name="L31" href="#L31">31</a>
5757
<a class="jxr_linenumber" name="L32" href="#L32">32</a> }
5858
</pre>
5959
<hr/>

src/site/resources/examples/xref-test/org/codehaus/mojo/spotbugsmavenplugin/it/FooTest.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
3-
Copyright 2005-2023 the original author or authors.
3+
Copyright 2005-2024 the original author or authors.
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -39,23 +39,23 @@
3939
<a class="jxr_linenumber" name="L14" href="#L14">14</a> <em class="jxr_comment"> * limitations under the License.</em>
4040
<a class="jxr_linenumber" name="L15" href="#L15">15</a> <em class="jxr_comment"> */</em>
4141
<a class="jxr_linenumber" name="L16" href="#L16">16</a> <strong class="jxr_keyword">package</strong> org.codehaus.mojo.spotbugsmavenplugin.it;
42-
<a class="jxr_linenumber" name="L17" href="#L17">17</a>
43-
<a class="jxr_linenumber" name="L18" href="#L18">18</a>
42+
<a class="jxr_linenumber" name="L17" href="#L17">17</a>
43+
<a class="jxr_linenumber" name="L18" href="#L18">18</a>
4444
<a class="jxr_linenumber" name="L19" href="#L19">19</a> <strong class="jxr_keyword">import</strong> org.junit.jupiter.api.Test;
4545
<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong class="jxr_keyword">import</strong> org.junit.jupiter.api.Disabled;
46-
<a class="jxr_linenumber" name="L21" href="#L21">21</a>
46+
<a class="jxr_linenumber" name="L21" href="#L21">21</a>
4747
<a class="jxr_linenumber" name="L22" href="#L22">22</a> <em class="jxr_javadoccomment">/**</em>
4848
<a class="jxr_linenumber" name="L23" href="#L23">23</a> <em class="jxr_javadoccomment"> * Tests for {@link Foo}.</em>
4949
<a class="jxr_linenumber" name="L24" href="#L24">24</a> <em class="jxr_javadoccomment"> *</em>
5050
<a class="jxr_linenumber" name="L25" href="#L25">25</a> <em class="jxr_javadoccomment"> * @author [email protected] (John Doe)</em>
5151
<a class="jxr_linenumber" name="L26" href="#L26">26</a> <em class="jxr_javadoccomment"> */</em>
5252
<a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong class="jxr_keyword">class</strong> <a name="FooTest" href="../../../../../org/codehaus/mojo/spotbugsmavenplugin/it/FooTest.html#FooTest">FooTest</a> {
53-
<a class="jxr_linenumber" name="L28" href="#L28">28</a>
53+
<a class="jxr_linenumber" name="L28" href="#L28">28</a>
5454
<a class="jxr_linenumber" name="L29" href="#L29">29</a> @Test
5555
<a class="jxr_linenumber" name="L30" href="#L30">30</a> <strong class="jxr_keyword">void</strong> thisAlwaysPasses() {
5656
<a class="jxr_linenumber" name="L31" href="#L31">31</a> <em class="jxr_comment">// Do nothing</em>
5757
<a class="jxr_linenumber" name="L32" href="#L32">32</a> }
58-
<a class="jxr_linenumber" name="L33" href="#L33">33</a>
58+
<a class="jxr_linenumber" name="L33" href="#L33">33</a>
5959
<a class="jxr_linenumber" name="L34" href="#L34">34</a> @Disabled
6060
<a class="jxr_linenumber" name="L35" href="#L35">35</a> @Test
6161
<a class="jxr_linenumber" name="L36" href="#L36">36</a> <strong class="jxr_keyword">void</strong> thisIsIgnored() {

src/site/resources/examples/xref-test/org/codehaus/mojo/spotbugsmavenplugin/it/package-summary.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
3-
Copyright 2005-2023 the original author or authors.
3+
Copyright 2005-2024 the original author or authors.
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
1515
limitations under the License.
1616
1717
-->
18-
1918
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2019
<html xml:lang="en" lang="en">
2120
<!-- generated by Apache Maven JXR (jdk8) -->
@@ -58,7 +57,7 @@
5857
</div>
5958
<a name="skip-navbar_top"><!-- --></a>
6059
</div>
61-
60+
6261
<div class="header">
6362
<h1 title="Package" class="title">Package org.codehaus.mojo.spotbugsmavenplugin.it</h1>
6463
</div>
@@ -88,7 +87,7 @@ <h1 title="Package" class="title">Package org.codehaus.mojo.spotbugsmavenplugin.
8887
</li>
8988
</ul>
9089
</div>
91-
90+
9291
<div class="bottomNav">
9392
<a name="navbar_bottom"><!-- --></a>
9493
<a href="#skip-navbar_bottom" title="Skip navigation links"></a>
@@ -121,7 +120,7 @@ <h1 title="Package" class="title">Package org.codehaus.mojo.spotbugsmavenplugin.
121120
</div>
122121
<a name="skip-navbar_bottom"><!-- --></a>
123122
</div>
124-
123+
125124
<div id="footer">
126125
Copyright &#169; 2023. All rights reserved.
127126
</div>

src/site/resources/examples/xref-test/overview-summary.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
3-
Copyright 2005-2023 the original author or authors.
3+
Copyright 2005-2024 the original author or authors.
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
1515
limitations under the License.
1616
1717
-->
18-
1918
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2019
<html xml:lang="en" lang="en">
2120
<!-- generated by Apache Maven JXR (jdk7) -->
@@ -52,7 +51,7 @@
5251
</ul>
5352
<a name="skip-navbar_top"><!-- --></a>
5453
</div>
55-
54+
5655
<div class="header">
5756
<h1 class="title">basic-1 testing Reference</h1>
5857
</div>
@@ -73,7 +72,7 @@ <h1 class="title">basic-1 testing Reference</h1>
7372
</tbody>
7473
</table>
7574
</div>
76-
75+
7776
<div class="bottomNav">
7877
<a name="navbar_bottom"><!-- --></a>
7978
<a href="#skip-navbar_bottom" title="Skip navigation links"></a>
@@ -101,7 +100,7 @@ <h1 class="title">basic-1 testing Reference</h1>
101100
</ul>
102101
<a name="skip-navbar_bottom"><!-- --></a>
103102
</div>
104-
103+
105104
<div id="footer">
106105
Copyright &#169; 2023. All rights reserved.
107106
</div>

src/site/resources/examples/xref-test/stylesheet.css

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2005-2023 the original author or authors.
2+
* Copyright 2005-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
/* Javadoc style sheet */
1716
/*
1817
Overall document style
1918
*/
@@ -146,7 +145,7 @@ Navigation bar styles
146145
height:2.8em;
147146
padding-top:10px;
148147
overflow:hidden;
149-
font-size:12px;
148+
font-size:12px;
150149
}
151150
.bottomNav {
152151
margin-top:10px;
@@ -346,7 +345,7 @@ ul.blockList li.blockList, ul.blockListLast li.blockList {
346345
}
347346
ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList {
348347
padding:0px 20px 5px 10px;
349-
border:1px solid #ededed;
348+
border:1px solid #ededed;
350349
background-color:#f8f8f8;
351350
}
352351
ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList {
@@ -374,9 +373,9 @@ Table styles
374373
*/
375374
.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary {
376375
width:100%;
377-
border-left:1px solid #EEE;
378-
border-right:1px solid #EEE;
379-
border-bottom:1px solid #EEE;
376+
border-left:1px solid #EEE;
377+
border-right:1px solid #EEE;
378+
border-bottom:1px solid #EEE;
380379
}
381380
.overviewSummary, .memberSummary {
382381
padding:0px;
@@ -461,7 +460,7 @@ Table styles
461460
display:none;
462461
width:5px;
463462
margin-right:3px;
464-
position:relative;
463+
position:relative;
465464
float:left;
466465
background-color:#F8981D;
467466
}

src/site/resources/examples/xref/AbstractMissingHashCode.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
3-
Copyright 2005-2023 the original author or authors.
3+
Copyright 2005-2024 the original author or authors.
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -25,32 +25,32 @@
2525
<div id="overview"><a href="../apidocs/AbstractMissingHashCode.html">View Javadoc</a></div><pre>
2626
<a class="jxr_linenumber" name="L1" href="#L1">1</a> <strong class="jxr_keyword">import</strong> edu.umd.cs.findbugs.annotations.ExpectWarning;
2727
<a class="jxr_linenumber" name="L2" href="#L2">2</a> <strong class="jxr_keyword">import</strong> edu.umd.cs.findbugs.annotations.NoWarning;
28-
<a class="jxr_linenumber" name="L3" href="#L3">3</a>
28+
<a class="jxr_linenumber" name="L3" href="#L3">3</a>
2929
<a class="jxr_linenumber" name="L4" href="#L4">4</a> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a name="AbstractMissingHashCode" href="..//AbstractMissingHashCode.html#AbstractMissingHashCode">AbstractMissingHashCode</a> {
3030
<a class="jxr_linenumber" name="L5" href="#L5">5</a> <strong class="jxr_keyword">int</strong> x;
31-
<a class="jxr_linenumber" name="L6" href="#L6">6</a>
31+
<a class="jxr_linenumber" name="L6" href="#L6">6</a>
3232
<a class="jxr_linenumber" name="L7" href="#L7">7</a> @Override
3333
<a class="jxr_linenumber" name="L8" href="#L8">8</a> @ExpectWarning(<span class="jxr_string">"HE_EQUALS_USE_HASHCODE"</span>)
3434
<a class="jxr_linenumber" name="L9" href="#L9">9</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> equals(Object o) {
3535
<a class="jxr_linenumber" name="L10" href="#L10">10</a> <strong class="jxr_keyword">if</strong> (!(o instanceof <a name="AbstractMissingHashCode" href="..//AbstractMissingHashCode.html#AbstractMissingHashCode">AbstractMissingHashCode</a>))
3636
<a class="jxr_linenumber" name="L11" href="#L11">11</a> <strong class="jxr_keyword">return</strong> false;
3737
<a class="jxr_linenumber" name="L12" href="#L12">12</a> <strong class="jxr_keyword">return</strong> x == ((<a name="AbstractMissingHashCode" href="..//AbstractMissingHashCode.html#AbstractMissingHashCode">AbstractMissingHashCode</a>) o).x;
3838
<a class="jxr_linenumber" name="L13" href="#L13">13</a> }
39-
<a class="jxr_linenumber" name="L14" href="#L14">14</a>
39+
<a class="jxr_linenumber" name="L14" href="#L14">14</a>
4040
<a class="jxr_linenumber" name="L15" href="#L15">15</a> @ExpectWarning(<span class="jxr_string">"HE_INHERITS_EQUALS_USE_HASHCODE"</span>)
4141
<a class="jxr_linenumber" name="L16" href="#L16">16</a> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> StillMissingHashCode <strong class="jxr_keyword">extends</strong> <a name="AbstractMissingHashCode" href="..//AbstractMissingHashCode.html#AbstractMissingHashCode">AbstractMissingHashCode</a> {
4242
<a class="jxr_linenumber" name="L17" href="#L17">17</a> <strong class="jxr_keyword">int</strong> y;
4343
<a class="jxr_linenumber" name="L18" href="#L18">18</a> }
44-
<a class="jxr_linenumber" name="L19" href="#L19">19</a>
44+
<a class="jxr_linenumber" name="L19" href="#L19">19</a>
4545
<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> Concrete <strong class="jxr_keyword">extends</strong> StillMissingHashCode {
4646
<a class="jxr_linenumber" name="L21" href="#L21">21</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> z;
47-
<a class="jxr_linenumber" name="L22" href="#L22">22</a>
47+
<a class="jxr_linenumber" name="L22" href="#L22">22</a>
4848
<a class="jxr_linenumber" name="L23" href="#L23">23</a> @Override
4949
<a class="jxr_linenumber" name="L24" href="#L24">24</a> @NoWarning(<span class="jxr_string">"HE"</span>)
5050
<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> hashCode(){
5151
<a class="jxr_linenumber" name="L26" href="#L26">26</a> <strong class="jxr_keyword">return</strong> 0;
5252
<a class="jxr_linenumber" name="L27" href="#L27">27</a> }
53-
<a class="jxr_linenumber" name="L28" href="#L28">28</a>
53+
<a class="jxr_linenumber" name="L28" href="#L28">28</a>
5454
<a class="jxr_linenumber" name="L29" href="#L29">29</a> @ExpectWarning(<span class="jxr_string">"EQ_UNUSUAL"</span>)
5555
<a class="jxr_linenumber" name="L30" href="#L30">30</a> @Override
5656
<a class="jxr_linenumber" name="L31" href="#L31">31</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> equals(Object o) {
@@ -61,7 +61,7 @@
6161
<a class="jxr_linenumber" name="L36" href="#L36">36</a> <strong class="jxr_keyword">return</strong> o == <strong class="jxr_keyword">this</strong>;
6262
<a class="jxr_linenumber" name="L37" href="#L37">37</a> }
6363
<a class="jxr_linenumber" name="L38" href="#L38">38</a> }
64-
<a class="jxr_linenumber" name="L39" href="#L39">39</a>
64+
<a class="jxr_linenumber" name="L39" href="#L39">39</a>
6565
<a class="jxr_linenumber" name="L40" href="#L40">40</a> @ExpectWarning(<span class="jxr_string">"EQ_DOESNT_OVERRIDE_EQUALS"</span>)
6666
<a class="jxr_linenumber" name="L41" href="#L41">41</a> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> ConcreteMissingEquals <strong class="jxr_keyword">extends</strong> Concrete {
6767
<a class="jxr_linenumber" name="L42" href="#L42">42</a> <strong class="jxr_keyword">int</strong> z;

0 commit comments

Comments
 (0)