Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.

Comments

Fix for IndexOutOfBoundsException#595

Open
mariuszs wants to merge 1 commit intomasterfrom
fix/activity_tracker_index_out_of_band
Open

Fix for IndexOutOfBoundsException#595
mariuszs wants to merge 1 commit intomasterfrom
fix/activity_tracker_index_out_of_band

Conversation

@mariuszs
Copy link
Collaborator

@mariuszs mariuszs commented Aug 9, 2016

@norbson Take a look

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.008%) to 73.512% when pulling 1d65686 on fix/activity_tracker_index_out_of_band into 601625a on master.

parameterValues = joinPoint.getArgs() != null ? asList(joinPoint.getArgs()) : emptyList();
List<String> names = signature.getParameterNames() != null ? List.of(signature.getParameterNames()) : List.empty();
List<Object> values = joinPoint.getArgs() != null ? List.of(joinPoint.getArgs()) : List.empty();
parameters = HashMap.ofEntries(names.zip(values).map(t -> Tuple.of(t._1, t._2.toString())));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we really need for that easy thing java slang ? :D

Copy link
Contributor

Choose a reason for hiding this comment

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

We can use java 8 Optional and slang is definitely not needed. Is the bug still valid?

Copy link
Contributor

@me3x me3x left a comment

Choose a reason for hiding this comment

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

Remove slang, use java optional.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants