Skip to content

Commit 21ee425

Browse files
authored
Merge branch 'master' into feature/VNA04-J-thread-atomicity
2 parents b0cccfa + b0596f3 commit 21ee425

File tree

93 files changed

+136
-131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+136
-131
lines changed

CHANGELOG.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
2727
- Recognize some classes as immutable, fixing EI_EXPOSE and MS_EXPOSE FPs ([#3137](https://github.com/spotbugs/spotbugs/pull/3137))
2828

2929
### Cleanup
30-
- Cleaup thread issue and regex issue in test-harness ([#3130](https://github.com/spotbugs/spotbugs/issues/3130))
30+
- Cleanup thread issue and regex issue in test-harness ([#3130](https://github.com/spotbugs/spotbugs/issues/3130))
3131
- Remove extra blank lines and remove public from interface objects as inherently already public ([#3131](https://github.com/spotbugs/spotbugs/issues/3131))
3232
- Fix order of modifiers on properties/methods and ensure correct location in file ([#3132](https://github.com/spotbugs/spotbugs/issues/3132))
3333
- Return objects directly instead of creating more garbage collection by defining them ([#3133](https://github.com/spotbugs/spotbugs/issues/3133))
@@ -37,6 +37,9 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.
3737
- New detector `ResourceInMultipleThreadsDetector` and introduced new bug type:
3838
- `AT_UNSAFE_RESOURCE_ACCESS_IN_THREAD` is reported in case of unsafe resource access in multiple threads.
3939

40+
### Changed
41+
- Bump up Java version to 11
42+
4043
## 4.8.6 - 2024-06-17
4144
### Fixed
4245
- Do not report BC_UNCONFIRMED_CAST for Java 21's type switches when the switch instruction is TABLESWITCH ([#2782](https://github.com/spotbugs/spotbugs/issues/2782))
@@ -600,7 +603,7 @@ This version contains no change, except for the solution for [a deployment probl
600603
* Replace to try-with-resources
601604
* Reset DataAnalysis.DEBUG back when analysis reaches MAX_ITER
602605
* Remove unused methods in `BCELUtil`
603-
* Remove unused methods and deperecated methods in `edu.umd.cs.findbugs.util.Util`
606+
* Remove unused methods and deprecated methods in `edu.umd.cs.findbugs.util.Util`
604607
* Change to removeIf from Iterator and Iterator.remove
605608
* Use Map.computeIfAbsent instead of Map.get and Map.put
606609
* Use for-each instead of for-loop and while-loop
@@ -665,7 +668,7 @@ This version contains no change, except for the solution for [a deployment probl
665668
* edu.umd.cs.findbugs.util.ClassName#assertIsSlashed return type is changed to void
666669

667670
### Deprecated
668-
* edu.umd.cs.findbugs.classfile.ClassDescriptor#toDottedClassName() is depricated and getDottedClassName() can be used instead.
671+
* edu.umd.cs.findbugs.classfile.ClassDescriptor#toDottedClassName() is deprecated and getDottedClassName() can be used instead.
669672

670673
## 3.1.9 - 2018-11-20
671674

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ More information at the [official website](https://spotbugs.github.io/). A lot o
1717

1818
SpotBugs is built using [Gradle](https://gradle.org). The recommended way to obtain it is to simply run the `gradlew` (or `gradlew.bat`) wrapper, which will automatically download and run the correct version as needed (using the settings in `gradle/wrapper/gradle-wrapper.properties`).
1919

20-
Building SpotBugs requires JDK 21 to run all the tests (using SpotBugs requires JDK 8 or above).
20+
Building SpotBugs requires JDK 21 to run all the tests (using SpotBugs requires JDK 11 or above, but it can analyze code compiled with older versions).
2121

2222
To see a list of build options, run `gradle tasks` (or `gradlew tasks`). The `build` task will perform a full build and test.
2323

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ allprojects {
3030
mavenCentral()
3131
}
3232
dependencies {
33-
def junitVersion = '5.11.1'
33+
def junitVersion = '5.11.2'
3434
compileOnly platform("org.junit:junit-bom:$junitVersion")
3535
testImplementation platform("org.junit:junit-bom:$junitVersion")
3636
}

docs/annotations.rst

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Annotations
44
SpotBugs supports several annotations to express the developer's intent so that SpotBugs can issue warnings more appropriately.
55
Annotations for SpotBugs.
66

7+
.. literalinclude:: generated/migration-findbugs-annotations-maven.template.inc
8+
:language: xml
9+
10+
.. literalinclude:: generated/migration-findbugs-annotations-gradle.template.inc
11+
:language: groovy
12+
713
edu.umd.cs.findbugs.annotations.CheckForNull
814
--------------------------------------------
915
The annotated element might be null, and uses of the element should check for null.

docs/locale/ja/LC_MESSAGES/bugDescriptions.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -3978,7 +3978,7 @@ msgstr ""
39783978
#: ../../generated/bugDescriptionList.inc:3908
39793979
msgid ""
39803980
" <p>\n"
3981-
"This partical method invocation doesn't make sense, for reasons that "
3981+
"This partial method invocation doesn't make sense, for reasons that "
39823982
"should be apparent from inspection.\n"
39833983
"</p>"
39843984
msgstr ""

eclipsePlugin-junit/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tasks.named('compileJava', JavaCompile).configure {
1111

1212
dependencies {
1313
implementation project(':eclipsePlugin')
14-
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.11.1'
14+
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.11.2'
1515
testImplementation 'org.mockito:mockito-core:5.14.1'
1616
}
1717

eclipsePlugin-test/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies {
2626
}
2727

2828
implementation project(':test-harness')
29-
implementation 'org.junit.jupiter:junit-jupiter-engine:5.11.1'
29+
implementation 'org.junit.jupiter:junit-jupiter-engine:5.11.2'
3030
implementation 'org.apache.ant:ant:1.10.15'
3131
}
3232

eclipsePlugin/RELEASENOTES

+5-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Release 1.3.8 - Andrey Loskutov
4040
- feature: added FindBugs perspective link to all Java perspectives
4141
- feature 2022229: have workspace level preferences for FindBugs
4242
per default, workspace settings are used for new plugins
43-
plugins with existing .fbprefs files are assumed to have custom preferences until they explicitely disable project prefs
43+
plugins with existing .fbprefs files are assumed to have custom preferences until they explicitly disable project prefs
4444
per default, Eclipse will not enable categories EXPERIMENTAL,I18N,MALICIOUS_CODE,SECURITY for new projects
4545
FilterFiles tab: now dialog will disallow invalid selection of filter files
4646
- internal rework of job scheduling: use same rule for all FB jobs.
@@ -50,7 +50,7 @@ Release 1.3.8 - Andrey Loskutov
5050
- feature: property view shows bug counts info for elements selected in bug explorer
5151
- feature: added "navigate - Show In - Bug Explorer" menu entry in all Java perspectives
5252
- feature: added "Show Bug Details" action to Java editor ruler
53-
- feature: replaced bug details view with standart properties view, supporting Java editor
53+
- feature: replaced bug details view with standard properties view, supporting Java editor
5454
bug details view exists no more, perspective definition changed
5555
- bugfix: fixed bug explorer (common navigator) errors with Eclipse 3.5
5656
- feature: filtering by specific pattern from bug explorer
@@ -142,14 +142,14 @@ Release 1.3.0 - FindBugs team
142142
- Include/Exclude filter-file selector now sanity-checks selection
143143

144144
Release 1.2.2 - major code cleanup and refactoring by Andrey Loskutov
145-
- fixed non-Eclipse-like behavoir of view selection/activation/opening (work in progress)
145+
- fixed non-Eclipse-like behavior of view selection/activation/opening (work in progress)
146146
- bud tree view monitors resource changes now
147147
- refactoring of all FindBugs views
148148
- created new icons for findbugs action and views
149149
- created new FindBugs perspective
150150
- fixed popup contribution for the problems view (was never functional)
151-
- no system.out.println callls without if(DEBUG) flag
152-
- no printStackTrace() callls without if(DEBUG) flag
151+
- no system.out.println calls without if(DEBUG) flag
152+
- no printStackTrace() calls without if(DEBUG) flag
153153
- other code cleanup
154154

155155
Release 0.1.0 - some enhancements by Peter Friese

eclipsePlugin/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import static groovy.io.FileType.FILES
33
// TODO: deploy not only jar but also sources and javadoc, to pass validation by Sonatype nexus
44
// apply from: "$rootDir/gradle/maven.gradle"
55
plugins {
6-
id 'org.ajoberstar.grgit' version '5.2.2'
6+
id 'org.ajoberstar.grgit' version '5.3.0'
77
id "eclipse-convention"
88
}
99

eclipsePlugin/doc/installing_findbugsplugin.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Manual mode
6565
------------
6666
Since running the FindBugs plug-in in automatic mode can be vey time-consuming,
6767
you may choose to run the plug-in in manual mode. As the name implies, you
68-
have to start the bug pattern detecion manually when the plug-in is in manual mode.
68+
have to start the bug pattern detection manually when the plug-in is in manual mode.
6969

7070
To enable manual mode:
7171
1) Make sure that the [Run FindBugs automatically] checkbox on the Java project properties

eclipsePlugin/src/de/tobject/findbugs/FindbugsSaveParticipant.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import de.tobject.findbugs.util.ProjectUtilities;
2727

2828
/**
29-
* Callback object responsible for saving the uncomitted state of any
29+
* Callback object responsible for saving the uncommitted state of any
3030
* FindBugs-enabled projects.
3131
*
3232
* @author David Hovemeyer

eclipsePlugin/src/de/tobject/findbugs/actions/MarkerRulerAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public MarkerRulerAction() {
8484
@Override
8585
public void setActiveEditor(IAction callerAction, IEditorPart targetEditor) {
8686
Control control;
87-
// See if we're already listenting to an editor; if so, stop listening
87+
// See if we're already listening to an editor; if so, stop listening
8888
if (editor != null) {
8989
if (ruler != null) {
9090
control = ruler.getControl();

eclipsePlugin/src/de/tobject/findbugs/builder/FindBugsBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws
9494
default: {
9595

9696
FindbugsPlugin.getDefault()
97-
.logWarning("UKNOWN BUILD kind" + kind);
97+
.logWarning("UNKNOWN BUILD kind" + kind);
9898
doBuild(args, monitor, kind);
9999
break;
100100
}

eclipsePlugin/src/de/tobject/findbugs/reporter/JdtUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Contributions to FindBugs
33
* Copyright (C) 2009, Andrei Loskutov
44
*
5-
* The original code was developed by Andrei Loskutov under the BSD lizense for the
5+
* The original code was developed by Andrei Loskutov under the BSD license for the
66
* Bytecode Outline plugin at http://andrei.gmxhome.de/bytecode/index.html
77
*
88
* This library is free software; you can redistribute it and/or
@@ -419,7 +419,7 @@ private static int getAnonCompilePriority(IJavaElement elt, IJavaElement firstAn
419419
* opposite to rule 2)
420420
*
421421
* @param javaElement
422-
* @return priority - lesser mean wil be compiled later, a value > 0
422+
* @return priority - lesser mean will be compiled later, a value > 0
423423
*/
424424
private static int getAnonCompilePriority50(IJavaElement javaElement, IJavaElement firstAncestor, IJavaElement topAncestor) {
425425

eclipsePlugin/src/de/tobject/findbugs/reporter/MarkerReporter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private void addMarker(MarkerParameter mp) throws CoreException {
125125
oldMarker.delete();
126126
}
127127
}
128-
// XXX With Eclipse 4.19, we could use *single* method to create marker with attribures
128+
// XXX With Eclipse 4.19, we could use *single* method to create marker with attributes
129129
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=570914
130130
// We can use that once we have 4.19 as minimum platform
131131
IMarker newMarker = markerTarget.createMarker(mp.markerType);

eclipsePlugin/src/de/tobject/findbugs/util/EditorUtil.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static void goToLine(IEditorPart editorPart, int lineNumber) {
5454
if (document != null) {
5555
IRegion lineInfo = null;
5656
try {
57-
// line count internaly starts with 0, and not with 1 like in
57+
// line count internally starts with 0, and not with 1 like in
5858
// GUI
5959
lineInfo = document.getLineInformation(lineNumber - 1);
6060
} catch (BadLocationException e) {

eclipsePlugin/src/de/tobject/findbugs/view/explorer/BugContentProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ public synchronized Set<BugGroup> updateContent(List<DeltaInfo> deltas) {
508508
break;
509509
default:
510510
FindbugsPlugin.getDefault()
511-
.logWarning("UKNOWN delta change kind" + delta.changeKind);
511+
.logWarning("UNKNOWN delta change kind" + delta.changeKind);
512512

513513
}
514514
}

eclipsePlugin/src/de/tobject/findbugs/view/explorer/FilterBugsDialog.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public boolean close() {
340340
// allow to specify filters using text area (no validation checks
341341
// yet)
342342
// TODO validate text entered by user and throw away
343-
// invalide/duplicated entries
343+
// invalid/duplicated entries
344344
selectedAsText = text;
345345
} else {
346346
selectedAsText = computed;
@@ -492,7 +492,7 @@ private ContainerCheckedTreeViewer createTree(Composite parent, int style) {
492492
final ContainerCheckedTreeViewer viewer = new ContainerCheckedTreeViewer(parent, style | SWT.SINGLE | SWT.BORDER
493493
| SWT.V_SCROLL | SWT.H_SCROLL | SWT.RESIZE) {
494494
/**
495-
* Overriden to re-set checked state of elements after filter change
495+
* Overridden to re-set checked state of elements after filter change
496496
*/
497497
@Override
498498
public void refresh(boolean updateLabels) {

eclipsePlugin/src/edu/umd/cs/findbugs/plugin/eclipse/quickfix/BugResolutionAssociations.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
/**
4040
* The <CODE>BugResolutionAssociations</CODE> is the container for the loaded
41-
* bug-resolutions. For each registred bug pattern, at least one resolution-class
41+
* bug-resolutions. For each registered bug pattern, at least one resolution-class
4242
* has to be specified. Also an instance of a bug resolution can be associated
4343
* with a bug pattern.
4444
*

eclipsePlugin/src/edu/umd/cs/findbugs/plugin/eclipse/quickfix/BugResolutionGenerator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import de.tobject.findbugs.reporter.MarkerUtil;
3333

3434
/**
35-
* The <CODE>BugResolutionGenerator</CODE> searchs for bug-resolutions, that can
35+
* The <CODE>BugResolutionGenerator</CODE> searches for bug-resolutions, that can
3636
* be used to fix the specific bug-type.
3737
*
3838
* @author <a href="mailto:[email protected]">Thierry Wyss</a>

eclipsePlugin/src/edu/umd/cs/findbugs/plugin/eclipse/quickfix/util/ASTUtil.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public static ASTNode getASTNode(CompilationUnit compilationUnit, SourceLineAnno
183183
}
184184

185185
/**
186-
* Searchs the first <CODE>ASTNode</CODE> between the specified
186+
* Searches the first <CODE>ASTNode</CODE> between the specified
187187
* <CODE>startLine</CODE> and <CODE>endLine</CODE>. If the source line
188188
* doesn't contain an <CODE>ASTNode</CODE>, a
189189
* <CODE>ASTNodeNotFoundException</CODE> is thrown.
@@ -196,7 +196,7 @@ public static ASTNode getASTNode(CompilationUnit compilationUnit, SourceLineAnno
196196
* @param endLine
197197
* the ending source line number.
198198
* @throws ASTNodeNotFoundException
199-
* if no <CODE>ASTNode</CODE> found between the specifed start
199+
* if no <CODE>ASTNode</CODE> found between the specified start
200200
* and end line.
201201
*/
202202
public static ASTNode getASTNode(CompilationUnit compilationUnit, int startLine, int endLine) throws ASTNodeNotFoundException {

gradle/java.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tasks.withType(Javadoc).configureEach {
88
options.encoding = 'UTF-8'
99
}
1010
tasks.named('compileJava', JavaCompile).configure {
11-
options.release = 8
11+
options.release = 11
1212
}
1313

1414
// make the build reproducible https://reproducible-builds.org/

gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
asm = "9.7"
2+
asm = "9.7.1"
33
guice = "5.1.0"
44
log4j = "2.24.1"
55

spotbugs-ant/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies {
88
compileOnly 'org.apache.ant:ant:1.10.15'
99

1010
testImplementation 'org.apache.ant:ant:1.10.15'
11-
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.11.1'
11+
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.11.2'
1212
testImplementation 'org.hamcrest:hamcrest:3.0'
1313
}
1414

spotbugs-tests/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ dependencies {
1212
implementation project(':test-harness')
1313
implementation project(':test-harness-jupiter')
1414

15-
implementation 'org.junit.jupiter:junit-jupiter-engine:5.11.1'
16-
implementation 'org.junit.jupiter:junit-jupiter-params:5.11.1'
15+
implementation 'org.junit.jupiter:junit-jupiter-engine:5.11.2'
16+
implementation 'org.junit.jupiter:junit-jupiter-params:5.11.2'
1717
implementation 'org.hamcrest:hamcrest:3.0'
1818
implementation 'org.apache.ant:ant:1.10.15'
1919
implementation libs.log4j.core

spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/DontReusePublicIdentifiersTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ void testGoodPublicIdentifiersClassNames() {
4646

4747
// check good public identifiers as inner classes
4848
performAnalysis("publicIdentifiers/inner/GoodPublicIdentifiersInnerClassNames.class",
49-
"publicIdentifiers/inner/GoodPublicIdentifiersInnerClassNames$1.class",
5049
"publicIdentifiers/inner/GoodPublicIdentifiersInnerClassNames$MyBuffer.class",
5150
"publicIdentifiers/inner/GoodPublicIdentifiersInnerClassNames$MyFile.class",
5251
"publicIdentifiers/inner/GoodPublicIdentifiersInnerClassNames$MyBigInteger.class");

spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/FindArgumentAssertionsTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void testArgumentAssertions() {
4646
assertNoBugInMethod(BUG_TYPE, "ArgumentAssertions", "privateFinalMethod");
4747
assertNoBugInMethod(BUG_TYPE, "ArgumentAssertions", "privateStaticMethod");
4848
assertDABug("assertingArgInFor", 198);
49-
// assertDABug("lambda$assertingArgInStream$0", 206); // assertations inside streams are not supported yet
49+
// assertDABug("lambda$assertingArgInStream$0", 206); // assertions inside streams are not supported yet
5050
}
5151

5252
private void assertDABug(String method, int line) {

spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/Issue2465Test.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Issue2465Test extends AbstractIntegrationTest {
99

1010
@Test
1111
void testIssue() {
12-
Assertions.assertDoesNotThrow(() -> performAnalysis("ghIssues/Issue2465.class", "ghIssues/Issue2465$1.class",
12+
Assertions.assertDoesNotThrow(() -> performAnalysis("ghIssues/Issue2465.class",
1313
"ghIssues/Issue2465$Role.class"));
1414
}
1515
}

spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/Issue2968Test.java

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class Issue2968Test extends AbstractIntegrationTest {
99
void testIssue() {
1010
performAnalysis(
1111
"ghIssues/Issue2968.class",
12-
"ghIssues/Issue2968$1.class",
1312
"ghIssues/Issue2968$TestIf.class",
1413
"ghIssues/Issue2968$CommonException.class",
1514
"ghIssues/Issue2968$ActualException.class",

spotbugs-tests/src/test/java/edu/umd/cs/findbugs/detect/MultipleInstantiationsOfSingletonsTest.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ void abstractClassTest() {
1616
@Test
1717
void innerChildInstanceTest() {
1818
performAnalysis("singletons/InnerChildInstance.class",
19-
"singletons/InnerChildInstance$Unknown.class",
20-
"singletons/InnerChildInstance$1.class");
19+
"singletons/InnerChildInstance$Unknown.class");
2120
assertNoBugs();
2221
}
2322

2423
@Test
2524
void innerChildAndMoreInstanceTest() {
2625
performAnalysis("singletons/InnerChildAndMoreInstance.class",
27-
"singletons/InnerChildAndMoreInstance$1.class",
2826
"singletons/InnerChildAndMoreInstance$Unknown.class");
2927
assertBugTypeCount("SING_SINGLETON_HAS_NONPRIVATE_CONSTRUCTOR", 1);
3028
assertBugInClass("SING_SINGLETON_HAS_NONPRIVATE_CONSTRUCTOR", "InnerChildAndMoreInstance");
@@ -39,7 +37,6 @@ void innerChildAndMoreInstanceTest() {
3937
@Test
4038
void InnerChildAndMoreInstanceReorderedTest() {
4139
performAnalysis("singletons/InnerChildAndMoreInstanceReordered.class",
42-
"singletons/InnerChildAndMoreInstanceReordered$1.class",
4340
"singletons/InnerChildAndMoreInstanceReordered$Unknown.class");
4441
assertBugTypeCount("SING_SINGLETON_HAS_NONPRIVATE_CONSTRUCTOR", 1);
4542
assertBugInClass("SING_SINGLETON_HAS_NONPRIVATE_CONSTRUCTOR", "InnerChildAndMoreInstanceReordered");
@@ -54,7 +51,6 @@ void InnerChildAndMoreInstanceReorderedTest() {
5451
@Test
5552
void InnerChildAndMoreInstanceNoGetterTest() {
5653
performAnalysis("singletons/InnerChildAndMoreInstanceNoGetter.class",
57-
"singletons/InnerChildAndMoreInstanceNoGetter$1.class",
5854
"singletons/InnerChildAndMoreInstanceNoGetter$Unknown.class");
5955
assertNoBugs();
6056
}

spotbugs/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply from: "$rootDir/gradle/checkstyle.gradle"
44
apply from: "$rootDir/gradle/javadoc.gradle"
55

66
tasks.named('compileJava', JavaCompile).configure {
7-
options.release = 8
7+
options.release = 11
88
}
99

1010
// Force Eclipse use Java 1.8, otherwise it will get Java 17 (!) from gradle
@@ -103,7 +103,7 @@ clean {
103103
}
104104

105105
tasks.named('compileGuiJava', JavaCompile).configure {
106-
options.release = 8
106+
options.release = 11
107107
}
108108

109109
tasks.withType(Jar).configureEach {

0 commit comments

Comments
 (0)