You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package de.dummy;
public class CheckDummy {
public void check(DummyEnum dummy) {
var check = switch (dummy) {
default -> true;
};
}
}
de.dummy.DummyEnum is a enumeration.
Running ArchUnit with ConstantsAndStaticNonFinalFieldsNamesRule enabled, it prints the error
[ERROR] Constants have to be written in uppercase. It's possible to add underscore but not at the beginning or the end of the name. - class: de.dummy.CheckDummy$1 - field name: $SwitchMap$de$dummy$DummyEnum
Running ArchUnit with ConstantsAndStaticNonFinalFieldsNamesRule enabled, it prints the error
[ERROR] Constants have to be written in uppercase. It's possible to add underscore but not at the beginning or the end of the name. - class: de.dummy.CheckDummy$1 - field name: $SwitchMap$de$dummy$DummyEnum
Expected Behavior
Expected behaviour should accept this special case as a valid exception.
Steps to Reproduce (for bugs)
Your Environment
Version used: arch-unit-maven-plugin:3.0.2
OS and version: JDK17
Version of libs used:
The text was updated successfully, but these errors were encountered:
Summary
Have a method with the following code snippet:
de.dummy.DummyEnum
is a enumeration.Running ArchUnit with
ConstantsAndStaticNonFinalFieldsNamesRule
enabled, it prints the errorIt seems related to TNG/ArchUnit#1019
Type of Issue
It is a :
Motivation
Current Behavior
Running ArchUnit with
ConstantsAndStaticNonFinalFieldsNamesRule
enabled, it prints the errorExpected Behavior
Expected behaviour should accept this special case as a valid exception.
Steps to Reproduce (for bugs)
Your Environment
The text was updated successfully, but these errors were encountered: