Commit 502f46c 1 parent de7a404 commit 502f46c Copy full SHA for 502f46c
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ open class GPGSignMavenArtifact(
32
32
}
33
33
34
34
class NameCounter (val name : String ) {
35
- var counter = 0
35
+ private var counter = 0
36
36
val nextName: String
37
37
get() = name + if (counter == 0 ) {
38
38
counter = 1 ; " "
@@ -44,6 +44,7 @@ class NameCounter(val name: String) {
44
44
object PublishingAccess {
45
45
fun getMetadataArtifacts (publication : MavenPublication ): Collection <MavenArtifact > {
46
46
if (publication is DefaultMavenPublication ) {
47
+ @Suppress(" UNCHECKED_CAST" )
47
48
return DefaultMavenPublication ::class .java.getDeclaredField(" metadataArtifacts" )
48
49
.also { it.isAccessible = true }
49
50
.get(publication) as Collection <MavenArtifact >
Original file line number Diff line number Diff line change 12
12
package analyzes
13
13
14
14
import groovy.util.Node
15
- import groovy.util.XmlParser
16
15
import org.gradle.api.Project
17
- import org.objectweb.asm.ClassReader
18
16
import org.objectweb.asm.Type
19
17
import org.objectweb.asm.tree.ClassNode
20
18
import org.objectweb.asm.tree.FieldInsnNode
@@ -212,7 +210,8 @@ object AndroidApiLevelCheck {
212
210
val apiVersionsFile =
213
211
project.rootProject.projectDir.resolve(" buildSrc/src/main/resources/androidutil/api-versions.xml" )
214
212
val classesInfos = mutableMapOf<String , ClassInfo >()
215
- XmlParser ().parse(apiVersionsFile).children().forEach { classNode ->
213
+ @Suppress(" DEPRECATION" )
214
+ groovy.util.XmlParser ().parse(apiVersionsFile).children().forEach { classNode ->
216
215
classNode as Node
217
216
if (classNode.name() == " class" ) {
218
217
val fieldInfos = mutableMapOf<String , ClassInfo .MemberInfo >()
You can’t perform that action at this time.
0 commit comments