-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in 'type' attribute handling in JacksonDeserializer
There was a bug in the 'type' attribute handling in deserializeCondition. But after some examination I simplified things a bit by: - Have the ConditionEval subclasses set their 'type' at construction time. There is only one valid type, just set it. This is now analogous to Condition, where the type is also set at construction. - Given that we can depend on the type field being set, simplify the 'type' handling in the deserializer. - Also, convert to switch stmts on the enum for clarity. - Note, this fixed a bug in ExternalConditionEval where type was not being set correctly.
- Loading branch information
Showing
9 changed files
with
183 additions
and
164 deletions.
There are no files selected for viewing
274 changes: 150 additions & 124 deletions
274
hawkular-alerts-api/src/main/java/org/hawkular/alerts/api/json/JacksonDeserializer.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
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