We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b6ca91 commit f4a58a6Copy full SHA for f4a58a6
src/test/java/org/openrewrite/java/migrate/net/URLConstructorsToURITest.java
@@ -127,9 +127,17 @@ void urlConstructor(String spec) throws Exception {
127
@Issue("https://github.com/openrewrite/rewrite-migrate-java/issues/191")
128
void urlCheckNullPath() {
129
rewriteRun(
130
- spec -> spec.expectedCyclesThatMakeChanges(0),
131
//language=java
132
java(
+ """
133
+ import java.net.URL;
134
+
135
+ class Test {
136
+ void urlConstructor(String spec) throws Exception {
137
+ URL url1 = new URL(null);
138
+ }
139
140
+ """,
141
"""
142
import java.net.URI;
143
import java.net.URL;
0 commit comments