Class UpgradeJavaVersion

java.lang.Object
org.openrewrite.Recipe
org.openrewrite.java.migrate.UpgradeJavaVersion
All Implemented Interfaces:
Cloneable

public class UpgradeJavaVersion extends org.openrewrite.Recipe
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.openrewrite.Recipe

    org.openrewrite.Recipe.Builder, org.openrewrite.Recipe.DelegatingRecipe
  • Field Summary

    Fields inherited from class org.openrewrite.Recipe

    contributors, examples, PANIC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    This recipe only updates markers, so it does not correspond to human manual effort.
    List<org.openrewrite.Recipe>
     
    org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>
     

    Methods inherited from class org.openrewrite.Recipe

    addDataTable, builder, buildRecipeList, causesAnotherCycle, clone, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescriptor, getExamples, getInstanceName, getInstanceNameSuffix, getJacksonPolymorphicTypeTag, getMaintainers, getName, getTags, hashCode, maxCycles, noop, run, run, run, setContributors, setExamples, validate, validate, validateAll, validateAll

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UpgradeJavaVersion

      public UpgradeJavaVersion()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in class org.openrewrite.Recipe
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in class org.openrewrite.Recipe
    • getRecipeList

      public List<org.openrewrite.Recipe> getRecipeList()
      Overrides:
      getRecipeList in class org.openrewrite.Recipe
    • getEstimatedEffortPerOccurrence

      public Duration getEstimatedEffortPerOccurrence()
      This recipe only updates markers, so it does not correspond to human manual effort.
      Overrides:
      getEstimatedEffortPerOccurrence in class org.openrewrite.Recipe
      Returns:
      Zero estimated time.
    • getVisitor

      public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor()
      Overrides:
      getVisitor in class org.openrewrite.Recipe