Skip to content

Issue #15061: Add new input for pattern variables on AnnotationOnSame…#15483

Merged
nrmancuso merged 1 commit into
checkstyle:masterfrom
checkstyle-GSoC25:ano-on-same-line-input
Aug 15, 2024
Merged

Issue #15061: Add new input for pattern variables on AnnotationOnSame…#15483
nrmancuso merged 1 commit into
checkstyle:masterfrom
checkstyle-GSoC25:ano-on-same-line-input

Conversation

@mahfouz72

Copy link
Copy Markdown
Member

closes #15061

@nrmancuso nrmancuso left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Item:

//non-compiled with javac: Compilable with Java21
package com.puppycrawl.tools.checkstyle.checks.annotation.annotationonsameline;

public class InputAnnotationOnSameLinePatternVariables {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add some unnamed variables in here too: @Deprecated int _ = 0; as well as unnamed record components.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@mahfouz72 mahfouz72 force-pushed the ano-on-same-line-input branch from f7c348b to 3cb2370 Compare August 13, 2024 18:47
@mahfouz72

Copy link
Copy Markdown
Member Author

semaphoreci has stopped

@nrmancuso nrmancuso merged commit b1090bc into checkstyle:master Aug 15, 2024
@mahfouz72 mahfouz72 deleted the ano-on-same-line-input branch May 9, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

Add Check Support for Java 21 Unnamed Variables & Patterns Syntax: AnnotationOnSameLineCheck

2 participants