Skip to content

Commit

Permalink
Update spotless to 7.0.1 and fix style issues (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
wmdietl authored Jan 9, 2025
1 parent a2083e6 commit 17649a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
// Code formatting; defines targets "spotlessApply" and "spotlessCheck".
// https://github.com/diffplug/spotless/tags ; see tags starting "gradle/"
// Only works on JDK 11+.
classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.25.0'
classpath 'com.diffplug.spotless:spotless-plugin-gradle:7.0.1'
}
}
}
Expand Down Expand Up @@ -102,7 +102,6 @@ tasks.withType(JavaCompile).configureEach {
// "-processing" avoids javac warning "No processor claimed any of these annotations".
// "-Xlint:-options" is because of JDK 21 warning "source value 8 is obsolete..."
options.compilerArgs << '-Xlint:all,-processing,-options' << '-Werror'
options.errorprone.enabled = isJava11orHigher
options.errorprone {
disable('ExtendsObject') // Incorrect when using the Checker Framework
disable('ReferenceEquality') // Use Interning Checker instead.
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/plumelib/bcelutil/StackMapUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -649,9 +649,9 @@ protected final StackMapType generateStackMapTypeFromType(Type t) {
case Const.T_OBJECT:
return new StackMapType(
Const.ITEM_Object, pool.addClass(typeToClassGetName(t)), pool.getConstantPool());
// UNKNOWN seems to be used for Uninitialized objects.
// The second argument to the constructor should be the code offset
// of the corresponding 'new' instruction. Just using 0 for now.
// UNKNOWN seems to be used for Uninitialized objects.
// The second argument to the constructor should be the code offset
// of the corresponding 'new' instruction. Just using 0 for now.
case Const.T_UNKNOWN:
return new StackMapType(Const.ITEM_NewObject, 0, pool.getConstantPool());
default:
Expand Down

0 comments on commit 17649a0

Please sign in to comment.