/*
 * Copyright (c) 2015, Stefan Ferstl
 * Licensed under https://raw.githubusercontent.com/ferstl/jitwatch-jarscan-maven-plugin/master/LICENSE
 */
package com.github.ferstl.jarscan;

import org.adoptopenjdk.jitwatch.jarscan.IJarScanOperation;
import org.adoptopenjdk.jitwatch.jarscan.freqinlinesize.FreqInlineSizeOperation;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.plugins.annotations.ResolutionScope;

/**
 * Scans the project's artifact and, if enabled, it's dependencies for large methods using JITWatch's JarScan utility.
 */
@Mojo(
    name = "scan",
    aggregator = false,
    defaultPhase = LifecyclePhase.VERIFY,
    requiresDependencyCollection = ResolutionScope.TEST,
    requiresDependencyResolution = ResolutionScope.TEST,
    requiresDirectInvocation = false,
    threadSafe = true)
public class JarScanMojo extends AbstractJarScanMojo {

  /**
   * The value of the {@code -XX:FreqInlineSize} option. The default is 325.
   *
   * @since 1.0.0
   */
  @Parameter(property = "freqInlineSize", defaultValue = "325")
  private int freqInlineSize;

  @Override
  protected IJarScanOperation createOperation() {
    return new FreqInlineSizeOperation(this.freqInlineSize);
  }
}

@@ -668,16 +668,148 @@
 tility.%0A
+ *%0A * @deprecated Use the goal %7B@code maxMethodSize%7D with %7B@code -Dlimit=325%7D or your previously chosen%0A * %7B@link #freqInlineSize%7D.%0A
  */%0A@Moj
@@ -1071,16 +1071,28 @@
 = true)%0A
+@Deprecated%0A
 public c

Mark as deprecated