Skip to content

Commit 97a5ea4

Browse files
artembilangaryrussell
authored andcommitted
Move IntegrationDsl from .kt to .java
Turns out Eclipse Kotlin plugin is not perfect at the moment, and it causes some code parsing problems in the editor. * Move Kotlin annotation to Java to mitigate normal source code flow: Java to Kotlin, not opposite
1 parent b477277 commit 97a5ea4

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed
Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 the original author or authors.
2+
* Copyright 2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,14 +14,27 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.integration.dsl
17+
package org.springframework.integration.dsl;
18+
19+
import java.lang.annotation.Documented;
20+
import java.lang.annotation.ElementType;
21+
import java.lang.annotation.Retention;
22+
import java.lang.annotation.RetentionPolicy;
23+
import java.lang.annotation.Target;
24+
25+
import kotlin.DslMarker;
1826

1927
/**
20-
* The Kotlin [DslMarker] annotation for classes used in scope of DSL, including all the Java DSL classes.
28+
* The Kotlin {@link DslMarker} annotation for classes used in scope of DSL, including all the Java DSL classes.
2129
*
2230
* @author Artem Bilan
2331
*
2432
* @since 5.5.8
2533
*/
34+
@Target(ElementType.TYPE)
35+
@Retention(RetentionPolicy.CLASS)
36+
@Documented
2637
@DslMarker
27-
annotation class IntegrationDsl
38+
public @interface IntegrationDsl {
39+
40+
}

0 commit comments

Comments
 (0)