Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add strong typing to common event properties #834

Merged

Conversation

guperrot
Copy link
Member

@guperrot guperrot commented Oct 9, 2018

Test app U.I. in a separate PR.

Test app U.I. in a separate PR.
@guperrot
Copy link
Member Author

guperrot commented Oct 9, 2018

#833 should be approved before merging this

target.getPropertyConfigurator().setEventProperty("myNullString", (String) null);
target.getPropertyConfigurator().setEventProperty("myTrue", true);
target.getPropertyConfigurator().setEventProperty("myFalse", false);
target.getPropertyConfigurator().setEventProperty("myLong", 123);
Copy link
Member

Choose a reason for hiding this comment

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

Use a real long value between 2^32 and 2^64-1 for long type

Copy link
Member Author

Choose a reason for hiding this comment

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

Using 2^64 -1 then ;)

target.getPropertyConfigurator().setEventProperty("myLong", 123);
target.getPropertyConfigurator().setEventProperty("myDate", new Date(456));
target.getPropertyConfigurator().setEventProperty("myNullDate", (Date) null);
target.getPropertyConfigurator().setEventProperty("myDouble", -3.14);
Copy link
Member

Choose a reason for hiding this comment

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

Add a case for scientific notation of double like "1.2345e" would be great

Copy link
Member Author

Choose a reason for hiding this comment

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

Another method has a simple double so will just change this one

Copy link
Member

@dhei dhei left a comment

Choose a reason for hiding this comment

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

see my comments

@guperrot guperrot changed the base branch from feature/event-typed-properties-transmission-target to feature/event-typed-properties October 9, 2018 18:48
@guperrot guperrot merged commit 1c48501 into feature/event-typed-properties Oct 9, 2018
@guperrot guperrot deleted the feature/common-typed-properties branch October 9, 2018 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants