Skip to content

Commit aca6afe

Browse files
committed
[Auto] Latest versions as of 2026-01-24T0106
1 parent d54b179 commit aca6afe

19 files changed

+1018
-0
lines changed

docs/recipes/java/changemethodname.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ This recipe is used as part of the following composite recipes:
7171
* [Migrate `ApiInfoBuilder` to `Info`](/recipes/java/spring/doc/apiinfobuildertoinfo.md)
7272
* [Migrate `ConsumerGroupState` to `GroupState`](/recipes/kafka/migrateconsumergroupstatetogroupstate.md)
7373
* [Migrate `Joined.named()` to `Joined.as()`](/recipes/kafka/streams/migratejoinednamemethod.md)
74+
* [Migrate from Acegi Security 1.0.x to Spring Security 5.0](/recipes/java/spring/security/migrateacegitospringsecurity_5_0.md)
7475
* [Migrate from EasyMock to Mockito](/recipes/java/testing/easymock/easymocktomockito.md)
7576
* [Migrate from Java Faker to Datafaker](/recipes/java/testing/datafaker/javafakertodatafaker.md)
7677
* [Migrate from Micronaut 2.x to 3.x](/recipes/java/micronaut/micronaut2to3migration.md)

docs/recipes/java/changetype.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ This recipe is used as part of the following composite recipes:
8888
* [Migrate deprecated `javax.annotation.sql` packages to `jakarta.annotation.sql`](/recipes/io/quarkus/updates/core/quarkus30/javaxannotationsqlpackagetojakarta.md)
8989
* [Migrate deprecated `javax.annotation` packages to `jakarta.annotation`](/recipes/io/quarkus/updates/core/quarkus30/javaxannotationpackagetojakarta.md)
9090
* [Migrate deprecated `javax.annotation` to `jakarta.annotation`](/recipes/com/oracle/weblogic/rewrite/jakarta/javaxannotationmigrationtojakarta9annotation.md)
91+
* [Migrate from Acegi Security 1.0.x to Spring Security 5.0](/recipes/java/spring/security/migrateacegitospringsecurity_5_0.md)
9192
* [Migrate from EasyMock to Mockito](/recipes/java/testing/easymock/easymocktomockito.md)
9293
* [Migrate from Elasticsearch 8 to 9](/recipes/elastic/elastic9/migratetoelasticsearch9.md)
9394
* [Migrate from JMockit to Mockito](/recipes/java/testing/jmockit/jmockittomockito.md)

docs/recipes/java/dependencies/adddependency.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ This recipe is used as part of the following composite recipes:
9090
* [Migrate deprecated `javax.servlet` packages to `jakarta.servlet`](/recipes/java/migrate/jakarta/javaxservlettojakartaservlet.md)
9191
* [Migrate deprecated `javax.ws` packages to `jakarta.ws`](/recipes/java/migrate/jakarta/javaxwstojakartaws.md)
9292
* [Migrate deprecated `javax.xml.ws` packages to `jakarta.xml.ws`](/recipes/java/migrate/jakarta/javaxxmlwsmigrationtojakartaxmlws.md)
93+
* [Migrate from Acegi Security 1.0.x to Spring Security 5.0](/recipes/java/spring/security/migrateacegitospringsecurity_5_0.md)
9394
* [Migrate from EasyMock to Mockito](/recipes/java/testing/easymock/easymocktomockito.md)
9495
* [Migrate from Elasticsearch 8 to 9](/recipes/elastic/elastic9/migratetoelasticsearch9.md)
9596
* [Migrate from JMockit to Mockito](/recipes/java/testing/jmockit/jmockittomockito.md)

docs/recipes/java/dependencies/changedependency.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ This recipe is used as part of the following composite recipes:
123123
* [Migrate deprecated `org.apache.commons.fileload` packages to `org.apache.commons.fileload.core`](/recipes/java/migrate/jakarta/fileuploadtofileupload2.md)
124124
* [Migrate deprecated `org.glassfish.javax.el` packages to `jakarta.el`](/recipes/com/oracle/weblogic/rewrite/jakarta/orgglassfishjavaxeltojakartael.md)
125125
* [Migrate dropWizard dependencies to Spring Boot 3.x](/recipes/java/spring/boot3/migratedropwizarddependencies.md)
126+
* [Migrate from Acegi Security 1.0.x to Spring Security 5.0](/recipes/java/spring/security/migrateacegitospringsecurity_5_0.md)
126127
* [Migrate from Java Faker to Datafaker](/recipes/java/testing/datafaker/javafakertodatafaker.md)
127128
* [Migrate from Spring Boot 1.x to 2.0](/recipes/java/spring/boot2/upgradespringboot_2_0-community-edition.md)
128129
* [Migrate from Swagger to OpenAPI](/recipes/openapi/swagger/swaggertoopenapi.md)

docs/recipes/java/spring/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ _Recipes for upgrading and patching [Spring](https://spring.io/) applications._
2121
* [Opentelemetry](/recipes/java/spring/opentelemetry)
2222
* [Orm](/recipes/java/spring/orm)
2323
* [Search](/recipes/java/spring/search)
24+
* [Security](/recipes/java/spring/security)
2425
* [Security7](/recipes/java/spring/security7)
2526
* [Spring Batch](/recipes/java/spring/batch)
2627
* [Spring Boot 2.x](/recipes/java/spring/boot2)

docs/recipes/java/spring/framework/migratedeprecatedbeanxmlproperties.md

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,113 @@ This recipe is used as part of the following composite recipes:
2525

2626
* [Migrate to Spring Framework 3.x](/recipes/java/spring/framework/upgradespringframework_3_0.md)
2727

28+
## Examples
29+
##### Example 1
30+
`MigrateDeprecatedBeanXmlPropertiesTest#migrateRefLocalToBean`
31+
32+
33+
<Tabs groupId="beforeAfter">
34+
<TabItem value="xml" label="xml">
35+
36+
37+
###### Before
38+
```xml
39+
<?xml version="1.0" encoding="UTF-8"?>
40+
<beans xmlns="http://www.springframework.org/schema/beans"
41+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
42+
xsi:schemaLocation="http://www.springframework.org/schema/beans
43+
http://www.springframework.org/schema/beans/spring-beans.xsd">
44+
<bean id="myBean" class="com.example.MyBean">
45+
<property name="dependency">
46+
<ref local="otherBean"/>
47+
</property>
48+
</bean>
49+
</beans>
50+
```
51+
52+
###### After
53+
```xml
54+
<?xml version="1.0" encoding="UTF-8"?>
55+
<beans xmlns="http://www.springframework.org/schema/beans"
56+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
57+
xsi:schemaLocation="http://www.springframework.org/schema/beans
58+
http://www.springframework.org/schema/beans/spring-beans.xsd">
59+
<bean id="myBean" class="com.example.MyBean">
60+
<property name="dependency">
61+
<ref bean="otherBean"/>
62+
</property>
63+
</bean>
64+
</beans>
65+
```
66+
67+
</TabItem>
68+
<TabItem value="diff" label="Diff" >
69+
70+
```diff
71+
@@ -8,1 +8,1 @@
72+
<bean id="myBean" class="com.example.MyBean">
73+
<property name="dependency">
74+
- <ref local="otherBean"/>
75+
+ <ref bean="otherBean"/>
76+
</property>
77+
```
78+
</TabItem>
79+
</Tabs>
80+
81+
---
82+
83+
##### Example 2
84+
`MigrateDeprecatedBeanXmlPropertiesTest#migrateRefLocalToBean`
85+
86+
87+
<Tabs groupId="beforeAfter">
88+
<TabItem value="xml" label="xml">
89+
90+
91+
###### Before
92+
```xml
93+
<?xml version="1.0" encoding="UTF-8"?>
94+
<beans xmlns="http://www.springframework.org/schema/beans"
95+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
96+
xsi:schemaLocation="http://www.springframework.org/schema/beans
97+
http://www.springframework.org/schema/beans/spring-beans.xsd">
98+
<bean id="myBean" class="com.example.MyBean">
99+
<property name="dependency">
100+
<ref local="otherBean"/>
101+
</property>
102+
</bean>
103+
</beans>
104+
```
105+
106+
###### After
107+
```xml
108+
<?xml version="1.0" encoding="UTF-8"?>
109+
<beans xmlns="http://www.springframework.org/schema/beans"
110+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
111+
xsi:schemaLocation="http://www.springframework.org/schema/beans
112+
http://www.springframework.org/schema/beans/spring-beans.xsd">
113+
<bean id="myBean" class="com.example.MyBean">
114+
<property name="dependency">
115+
<ref bean="otherBean"/>
116+
</property>
117+
</bean>
118+
</beans>
119+
```
120+
121+
</TabItem>
122+
<TabItem value="diff" label="Diff" >
123+
124+
```diff
125+
@@ -8,1 +8,1 @@
126+
<bean id="myBean" class="com.example.MyBean">
127+
<property name="dependency">
128+
- <ref local="otherBean"/>
129+
+ <ref bean="otherBean"/>
130+
</property>
131+
```
132+
</TabItem>
133+
</Tabs>
134+
28135

29136
## Usage
30137

docs/recipes/java/spring/kafka/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ description: Spring Kafka OpenRewrite recipes.
44

55
# Spring Kafka
66

7+
## Categories
8+
9+
* [Consumer](/recipes/java/spring/kafka/consumer)
10+
* [Producer](/recipes/java/spring/kafka/producer)
11+
712
## Composite Recipes
813

914
_Recipes that include further recipes, often including the individual recipes below._
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
description: Consumer OpenRewrite recipes.
3+
---
4+
5+
# Consumer
6+
7+
## Recipes
8+
9+
* [Find `@KafkaListener` methods without error handling](./findkafkalistenerwithouterrorhandling.md)
10+
* [Find `@RetryableTopic` without `@DltHandler`](./findmissingdlthandler.md)
11+
* [Is likely a Kafka consumer module](./iskafkaconsumer.md)
12+
13+
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
---
2+
sidebar_label: "Find `@KafkaListener` methods without error handling"
3+
---
4+
5+
import Tabs from '@theme/Tabs';
6+
import TabItem from '@theme/TabItem';
7+
8+
# Find `@KafkaListener` methods without error handling
9+
10+
**io.moderne.java.spring.kafka.consumer.FindKafkaListenerWithoutErrorHandling**
11+
12+
_Flags `@KafkaListener` methods that lack proper error handling. Methods should have `@RetryableTopic`, specify an `errorHandler` in the annotation, or implement try-catch blocks for error handling._
13+
14+
## Recipe source
15+
16+
This recipe is only available to users of [Moderne](https://docs.moderne.io/).
17+
18+
19+
This recipe is available under the [Moderne Proprietary License](https://docs.moderne.io/licensing/overview).
20+
21+
22+
## Usage
23+
24+
This recipe has no required configuration options. Users of Moderne can run it via the Moderne CLI:
25+
<Tabs groupId="projectType">
26+
27+
28+
<TabItem value="moderne-cli" label="Moderne CLI">
29+
30+
You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command.
31+
32+
```shell title="shell"
33+
mod run . --recipe FindKafkaListenerWithoutErrorHandling
34+
```
35+
36+
If the recipe is not available locally, then you can install it using:
37+
```shell
38+
mod config recipes jar install io.moderne.recipe:rewrite-spring:{{VERSION_IO_MODERNE_RECIPE_REWRITE_SPRING}}
39+
```
40+
</TabItem>
41+
</Tabs>
42+
43+
## See how this recipe works across multiple open-source repositories
44+
45+
import RecipeCallout from '@site/src/components/ModerneLink';
46+
47+
<RecipeCallout link="https://app.moderne.io/recipes/io.moderne.java.spring.kafka.consumer.FindKafkaListenerWithoutErrorHandling" />
48+
49+
The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.
50+
51+
Please [contact Moderne](https://moderne.io/product) for more information about safely running the recipes on your own codebase in a private SaaS.
52+
## Data Tables
53+
54+
<Tabs groupId="data-tables">
55+
<TabItem value="org.openrewrite.table.SourcesFileResults" label="SourcesFileResults">
56+
57+
### Source files that had results
58+
**org.openrewrite.table.SourcesFileResults**
59+
60+
_Source files that were modified by the recipe run._
61+
62+
| Column Name | Description |
63+
| ----------- | ----------- |
64+
| Source path before the run | The source path of the file before the run. `null` when a source file was created during the run. |
65+
| Source path after the run | A recipe may modify the source path. This is the path after the run. `null` when a source file was deleted during the run. |
66+
| Parent of the recipe that made changes | In a hierarchical recipe, the parent of the recipe that made a change. Empty if this is the root of a hierarchy or if the recipe is not hierarchical at all. |
67+
| Recipe that made changes | The specific recipe that made a change. |
68+
| Estimated time saving | An estimated effort that a developer to fix manually instead of using this recipe, in unit of seconds. |
69+
| Cycle | The recipe cycle in which the change was made. |
70+
71+
</TabItem>
72+
73+
<TabItem value="org.openrewrite.table.SearchResults" label="SearchResults">
74+
75+
### Source files that had search results
76+
**org.openrewrite.table.SearchResults**
77+
78+
_Search results that were found during the recipe run._
79+
80+
| Column Name | Description |
81+
| ----------- | ----------- |
82+
| Source path of search result before the run | The source path of the file with the search result markers present. |
83+
| Source path of search result after run the run | A recipe may modify the source path. This is the path after the run. `null` when a source file was deleted during the run. |
84+
| Result | The trimmed printed tree of the LST element that the marker is attached to. |
85+
| Description | The content of the description of the marker. |
86+
| Recipe that added the search marker | The specific recipe that added the Search marker. |
87+
88+
</TabItem>
89+
90+
<TabItem value="org.openrewrite.table.SourcesFileErrors" label="SourcesFileErrors">
91+
92+
### Source files that errored on a recipe
93+
**org.openrewrite.table.SourcesFileErrors**
94+
95+
_The details of all errors produced by a recipe run._
96+
97+
| Column Name | Description |
98+
| ----------- | ----------- |
99+
| Source path | The file that failed to parse. |
100+
| Recipe that made changes | The specific recipe that made a change. |
101+
| Stack trace | The stack trace of the failure. |
102+
103+
</TabItem>
104+
105+
<TabItem value="org.openrewrite.table.RecipeRunStats" label="RecipeRunStats">
106+
107+
### Recipe performance
108+
**org.openrewrite.table.RecipeRunStats**
109+
110+
_Statistics used in analyzing the performance of recipes._
111+
112+
| Column Name | Description |
113+
| ----------- | ----------- |
114+
| The recipe | The recipe whose stats are being measured both individually and cumulatively. |
115+
| Source file count | The number of source files the recipe ran over. |
116+
| Source file changed count | The number of source files which were changed in the recipe run. Includes files created, deleted, and edited. |
117+
| Cumulative scanning time (ns) | The total time spent across the scanning phase of this recipe. |
118+
| Max scanning time (ns) | The max time scanning any one source file. |
119+
| Cumulative edit time (ns) | The total time spent across the editing phase of this recipe. |
120+
| Max edit time (ns) | The max time editing any one source file. |
121+
122+
</TabItem>
123+
124+
</Tabs>

0 commit comments

Comments
 (0)