Skip to content

Commit d51fa06

Browse files
Fix javadoc issues and build verifier
1 parent 695f63f commit d51fa06

22 files changed

+35
-22
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## [0.8.8]
66
- Plugin is now compatible with IDEA 2024.3 (IDEA 243.*) with minimum version of 2024.2
7+
- Fix various deprecation warnings
8+
- Fix various javadoc issues
79

810
## [0.8.7]
911
- Plugin is now compatible with IDEA 2024.2 (IDEA 242.*)

build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616

1717
import org.jetbrains.changelog.Changelog
1818
import org.jetbrains.changelog.markdownToHTML
19+
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
1920
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
21+
import org.jetbrains.intellij.platform.gradle.models.ProductRelease
2022
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2123

2224
fun properties(key: String) = project.findProperty(key).toString()
@@ -79,6 +81,16 @@ intellijPlatform {
7981
password = System.getenv("PRIVATE_KEY_PASSWORD")
8082
}
8183

84+
pluginVerification {
85+
ides {
86+
select {
87+
types = listOf(IntelliJPlatformType.IntellijIdeaCommunity)
88+
channels = listOf(ProductRelease.Channel.RELEASE, ProductRelease.Channel.EAP)
89+
sinceBuild = properties("pluginSinceBuild")
90+
untilBuild = properties("pluginUntilBuild")
91+
}
92+
}
93+
}
8294
}
8395

8496
// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin

src/main/kotlin/org/axonframework/intellij/ide/plugin/api/Handler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import javax.swing.Icon
2525
* Parent interface of any Handler, providing methods to describe the handler in interface elements.
2626
*
2727
* @see org.axonframework.intellij.ide.plugin.resolving.MessageHandlerResolver
28-
* @see org.axonframework.intellij.ide.plugin.handlers.searchers.AbstractHandlerSearcher
28+
* @see org.axonframework.intellij.ide.plugin.resolving.handlers.types.AbstractHandlerSearcher
2929
*/
3030
interface Handler : PsiElementWrapper {
3131
/**

src/main/kotlin/org/axonframework/intellij/ide/plugin/markers/publishers/DeadlinePublisherLineMarkerProvider.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ import org.jetbrains.uast.toUElementOfType
4848
*
4949
* @see DeadlineHandler
5050
* @see org.axonframework.intellij.ide.plugin.resolving.DeadlineManagerMethodResolver
51-
* @see org.axonframework.intellij.ide.plugin.creators.searchers.DeadlineMessageCreatorSearcher
5251
*/
5352
class DeadlinePublisherLineMarkerProvider : LineMarkerProvider {
5453
override fun getLineMarkerInfo(element: PsiElement): LineMarkerInfo<*>? {

src/main/kotlin/org/axonframework/intellij/ide/plugin/resolving/AnnotationResolver.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class AnnotationResolver(val project: Project) {
7878
.firstOrNull { it.value.any { annClass -> annClass.psiClass.qualifiedName == qualifiedName } }
7979
?.key
8080
?: return null
81-
return MessageHandlerType.values().firstOrNull { it.annotation == annotation }
81+
return MessageHandlerType.entries.firstOrNull { it.annotation == annotation }
8282
}
8383

8484
/**
@@ -108,7 +108,7 @@ class AnnotationResolver(val project: Project) {
108108
*/
109109
private fun computeAnnotations(): Map<AxonAnnotation, List<ResolvedAnnotation>> {
110110
val libAnnotations = libraryAnnotationCache.getLibraryAnnotations()
111-
return AxonAnnotation.values().associateWith { axonAnn ->
111+
return AxonAnnotation.entries.associateWith { axonAnn ->
112112
val specificLibAnnotations = libAnnotations.filter { axonAnn == it.axonAnnotation }
113113
specificLibAnnotations.flatMap { descAnn ->
114114
scanDescendants(axonAnn, descAnn, project.axonScope())
@@ -175,7 +175,7 @@ class AnnotationResolver(val project: Project) {
175175
}
176176

177177
private fun updateLibraryAnnotations() {
178-
libraryAnnotations = AxonAnnotation.values().flatMap { scanAnnotation(it, project.allScope()) }
178+
libraryAnnotations = AxonAnnotation.entries.flatMap { scanAnnotation(it, project.allScope()) }
179179
libraryInitialized = true
180180
}
181181
}

src/main/kotlin/org/axonframework/intellij/ide/plugin/resolving/handlers/searchers/CommandHandlerInterceptorSearcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import org.axonframework.intellij.ide.plugin.util.toQualifiedName
2929
/**
3030
* Searches for any command interceptors. Currently, limited to Aggregates only.
3131
*
32-
* @see org.axonframework.intellij.ide.plugin.handlers.types.CommandHandlerInterceptor
32+
* @see org.axonframework.intellij.ide.plugin.resolving.handlers.types.CommandHandlerInterceptor
3333
*/
3434
class CommandHandlerInterceptorSearcher : AbstractHandlerSearcher(MessageHandlerType.COMMAND_INTERCEPTOR) {
3535
override fun createMessageHandler(method: PsiMethod, annotation: PsiClass?): Handler? {

src/main/kotlin/org/axonframework/intellij/ide/plugin/resolving/handlers/searchers/CommandHandlerSearcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import org.axonframework.intellij.ide.plugin.util.toQualifiedName
2828
/**
2929
* Searches for any command handlers
3030
*
31-
* @see org.axonframework.intellij.ide.plugin.handlers.types.CommandHandler
31+
* @see org.axonframework.intellij.ide.plugin.resolving.handlers.types.CommandHandler
3232
*/
3333
class CommandHandlerSearcher : AbstractHandlerSearcher(MessageHandlerType.COMMAND) {
3434
override fun createMessageHandler(method: PsiMethod, annotation: PsiClass?): Handler? {

src/main/kotlin/org/axonframework/intellij/ide/plugin/resolving/handlers/searchers/DeadlineHandlerSearcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import org.axonframework.intellij.ide.plugin.util.toQualifiedName
3131
* If there is not payload specific, the payload is java.lang.Object as fallback.
3232
* In addition, deadline handlers have a name.
3333
*
34-
* @see org.axonframework.intellij.ide.plugin.handlers.types.DeadlineHandler
34+
* @see org.axonframework.intellij.ide.plugin.resolving.handlers.types.DeadlineHandler
3535
*/
3636
class DeadlineHandlerSearcher : AbstractHandlerSearcher(MessageHandlerType.DEADLINE) {
3737
override fun createMessageHandler(method: PsiMethod, annotation: PsiClass?): Handler {

src/main/kotlin/org/axonframework/intellij/ide/plugin/resolving/handlers/searchers/EventHandlerSearcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import org.axonframework.intellij.ide.plugin.util.toQualifiedName
2828
/**
2929
* Searches for any event handlers that are not part of the aggregate model.
3030
*
31-
* @see org.axonframework.intellij.ide.plugin.handlers.types.EventHandler
31+
* @see org.axonframework.intellij.ide.plugin.resolving.handlers.types.EventHandler
3232
*/
3333
class EventHandlerSearcher : AbstractHandlerSearcher(MessageHandlerType.EVENT) {
3434
override fun createMessageHandler(method: PsiMethod, annotation: PsiClass?): Handler? {

src/main/kotlin/org/axonframework/intellij/ide/plugin/resolving/handlers/searchers/EventSourcingHandlerSearcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import org.axonframework.intellij.ide.plugin.util.toQualifiedName
2828
/**
2929
* Searches for any event handlers in aggregates that source the state of the aggregates.
3030
*
31-
* @see org.axonframework.intellij.ide.plugin.handlers.types.EventSourcingHandler
31+
* @see org.axonframework.intellij.ide.plugin.resolving.handlers.types.EventSourcingHandler
3232
*/
3333
class EventSourcingHandlerSearcher : AbstractHandlerSearcher(MessageHandlerType.EVENT_SOURCING) {
3434
override fun createMessageHandler(method: PsiMethod, annotation: PsiClass?): Handler? {

0 commit comments

Comments
 (0)