-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add possibility to get enum constants from
JavaClass
It might prove useful to check for the existence of a certain enum constant within an enum type. Signed-off-by: Peter Gafert <[email protected]>
- Loading branch information
1 parent
b284e32
commit edbff5a
Showing
5 changed files
with
57 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
.../test/java/com/tngtech/archunit/core/importer/testexamples/simpleimport/EnumToImport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
package com.tngtech.archunit.core.importer.testexamples.simpleimport; | ||
|
||
@SuppressWarnings("unused") | ||
public enum EnumToImport { | ||
FIRST, SECOND; | ||
|
||
public static EnumToImport someStaticField; | ||
|
||
EnumToImport instantField; | ||
} |