Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Evgeny Mandrikov
asm
Commits
b11efc51
Commit
b11efc51
authored
Mar 14, 2022
by
Eric Bruneton
Browse files
Upgrade Gradle to 7.4.1 version, and plugins to latest versions.
parent
aea18767
Changes
6
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
b11efc51
image
:
gradle:7.
3.3
-jdk11
image
:
gradle:7.
4.1
-jdk11
variables
:
# Set the location of the dependency cache to a local directory, so that it
...
...
asm-test/src/main/java/org/objectweb/asm/test/ClassFile.java
View file @
b11efc51
...
...
@@ -202,7 +202,7 @@ public class ClassFile {
for
(
Class
<?>
parameterType
:
constructor
.
getParameterTypes
())
{
arguments
.
add
(
Array
.
get
(
Array
.
newInstance
(
parameterType
,
1
),
0
));
}
constructor
.
setAccessible
(
true
);
constructor
.
setAccessible
(
true
);
// NOPMD(AvoidAccessibilityAlteration): ok for tests.
return
constructor
.
newInstance
(
arguments
.
toArray
(
new
Object
[
0
]));
}
return
null
;
...
...
asm-util/src/test/java/org/objectweb/asm/util/CheckMethodAdapterTest.java
View file @
b11efc51
...
...
@@ -215,7 +215,7 @@ class CheckMethodAdapterTest extends AsmTest implements Opcodes {
checkMethodAdapter
.
visitInsn
(
NOP
);
Executable
visitFrame
=
()
->
checkMethodAdapter
.
visitFrame
(
F_FULL
,
1
,
new
Object
[]
{
new
Float
(
0.0f
)},
0
,
null
);
()
->
checkMethodAdapter
.
visitFrame
(
F_FULL
,
1
,
new
Object
[]
{
Float
.
valueOf
(
0.0f
)},
0
,
null
);
Exception
exception
=
assertThrows
(
IllegalArgumentException
.
class
,
visitFrame
);
assertEquals
(
"Invalid stack frame value: 0.0"
,
exception
.
getMessage
());
...
...
build.gradle
View file @
b11efc51
...
...
@@ -28,10 +28,10 @@
buildscript
{
repositories
{
mavenCentral
()
}
dependencies
{
classpath
'org.netbeans.tools:sigtest-maven-plugin:1.
3
'
}
dependencies
{
classpath
'org.netbeans.tools:sigtest-maven-plugin:1.
5
'
}
}
plugins
{
id
'biz.aQute.bnd.builder'
version
'6.
1
.0'
apply
false
}
plugins
{
id
'biz.aQute.bnd.builder'
version
'6.
2
.0'
apply
false
}
plugins
{
id
'com.github.sherter.google-java-format'
version
'0.9'
apply
false
}
plugins
{
id
'me.champeau.gradle.jmh'
version
'0.5.3'
apply
false
}
plugins
{
id
'org.sonarqube'
version
'3.3'
apply
false
}
...
...
@@ -163,7 +163,7 @@ project(':tools:bnd-module-plugin') {
description
=
"bnd plugin to build moduleinfo with ${rootProject.description}"
// TODO: this compiles asm twice (here and in :asm), find a way to avoid this.
sourceSets
.
main
.
java
.
srcDirs
+=
project
(
':asm'
).
sourceSets
.
main
.
java
.
srcDirs
depends
=
[
'biz.aQute.bnd:biz.aQute.bnd:6.
1
.0'
]
depends
=
[
'biz.aQute.bnd:biz.aQute.bnd:6.
2
.0'
]
}
project
(
':tools:retrofitter'
)
{
...
...
@@ -180,7 +180,7 @@ project(':tools:retrofitter') {
// and tested with :asm-test and JUnit.
subprojects
{
apply
plugin:
'com.github.sherter.google-java-format'
googleJavaFormat
.
toolVersion
=
'1.1
3
.0'
googleJavaFormat
.
toolVersion
=
'1.1
5
.0'
googleJavaFormat
.
exclude
'src/resources/java/**/*'
// Check the coding style with Checkstyle. Fail in case of error or warning.
...
...
gradle/wrapper/gradle-wrapper.properties
View file @
b11efc51
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-7.
3.3
-bin.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-7.
4.1
-bin.zip
tools/pmd.xml
View file @
b11efc51
...
...
@@ -102,7 +102,7 @@
<exclude
name=
"StaticEJBFieldShouldBeFinal"
/>
<exclude
name=
"UseProperClassLoader"
/>
</rule>
<rule
ref=
"category/java/errorprone.xml/ReturnEmpty
Array
RatherThanNull"
>
<rule
ref=
"category/java/errorprone.xml/ReturnEmpty
Collection
RatherThanNull"
>
<properties>
<property
name=
"violationSuppressXPath"
value=
"//MethodDeclaration[@Private='true']"
/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment