All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.rewrite.javax-xml-stream.yml Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
#
# Copyright 2021 the original author or authors.
# 

# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at #

# https://www.apache.org/licenses/LICENSE-2.0 #

# Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.migrate.javax.JavaxXmlStreamAPIs displayName: Use modernized `javax.xml.stream` APIs description: Certain `javax.xml.stream` APIs have become deprecated and their usages changed, necessitating usage changes. recipeList: - org.openrewrite.java.migrate.javax.MigrateXMLEventFactoryNewInstanceToNewFactory - org.openrewrite.java.migrate.javax.MigrateXMLInputFactoryNewInstanceToNewFactory - org.openrewrite.java.migrate.javax.MigrateXMLOutputFactoryNewInstanceToNewFactory --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.migrate.javax.MigrateXMLEventFactoryNewInstanceToNewFactory displayName: Use `javax.xml.stream.XMLEventFactory#newFactory(String, ClassLoader)` description: Use `javax.xml.stream.XMLEventFactory#newFactory` instead of the deprecated `javax.xml.stream.XMLEventFactory#newInstance` in Java 7 or higher. recipeList: - org.openrewrite.java.ChangeMethodName: methodPattern: javax.xml.stream.XMLEventFactory newInstance(String, java.lang.ClassLoader) newMethodName: newFactory --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.migrate.javax.MigrateXMLInputFactoryNewInstanceToNewFactory displayName: Use `javax.xml.stream.XMLInputFactory#newFactory(String, ClassLoader)` description: Use `javax.xml.stream.XMLInputFactory#newFactory` instead of the deprecated `javax.xml.stream.XMLInputFactory#newInstance` in Java 7 or higher. recipeList: - org.openrewrite.java.ChangeMethodName: methodPattern: javax.xml.stream.XMLInputFactory newInstance(String, java.lang.ClassLoader) newMethodName: newFactory --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.migrate.javax.MigrateXMLOutputFactoryNewInstanceToNewFactory displayName: Use `javax.xml.stream.XMLOutputFactory#newFactory(String, ClassLoader)` description: Use `javax.xml.stream.XMLOutputFactory#newFactory` instead of the deprecated `javax.xml.stream.XMLOutputFactory#newInstance` in Java 7 or higher. recipeList: - org.openrewrite.java.ChangeMethodName: methodPattern: javax.xml.stream.XMLOutputFactory newInstance(String, java.lang.ClassLoader) newMethodName: newFactory





© 2015 - 2025 Weber Informatics LLC | Privacy Policy