Skip to content

Commit

Permalink
Merge pull request #21363 from geoand/generated-main-startuptask
Browse files Browse the repository at this point in the history
Avoid having '-' in the names of generated StartupTask classes
  • Loading branch information
geoand authored Nov 11, 2021
2 parents 977b5fb + 72b94c9 commit c5103b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ public void execute(final BuildContext bc) {
BytecodeRecorderImpl bri = isRecorder
? new BytecodeRecorderImpl(recordAnnotation.value() == ExecutionTime.STATIC_INIT,
clazz.getSimpleName(), method.getName(),
Integer.toString(method.toString().hashCode()), identityComparison,
Integer.toString(Math.abs(method.toString().hashCode())), identityComparison,
s -> {
if (s instanceof Class) {
var cfg = ((Class<?>) s).getAnnotation(ConfigRoot.class);
Expand Down

0 comments on commit c5103b4

Please sign in to comment.