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

Fix for IndexOutOfBoundsException - #595

Open
mariuszs wants to merge 1 commit into
masterfrom
fix/activity_tracker_index_out_of_band
Open

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

Conversation

@mariuszs

@mariuszs mariuszs commented Aug 9, 2016

Copy link
Copy Markdown
Collaborator

@norbson Take a look

@coveralls

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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?

@me3x me3x left a comment

Copy link
Copy Markdown
Contributor

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