Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Remove unnecessary setting of element in results cache array #197

Closed
wants to merge 1 commit into from
Closed

Remove unnecessary setting of element in results cache array #197

wants to merge 1 commit into from

Conversation

papiomytoglou
Copy link

@papiomytoglou papiomytoglou commented Sep 14, 2017

Remove unnecessary setting of element in results cache array in the scenario the value has already been calculated:

https://github.com/mdeverdelhan/ta4j/blob/6b9403c68533813698ec7e47a4ff1bd72c626b1c/ta4j/src/main/java/eu/verdelhan/ta4j/indicators/CachedIndicator.java#L103-L107

The statement in line 107 should be included in the body of the if clause so that the element in resultInnerIndex is not overwritten by itself when result is not null.

…scenario the value has already been calculated
@martinklepsch
Copy link
Contributor

@papiomytoglou as per #192 this project is no longer maintained, consider opening PRs against the new repo at https://github.com/ta4j/ta4j

@papiomytoglou papiomytoglou changed the title Removed unnecessary setting of element in results cache array Remove unnecessary setting of element in results cache array Sep 15, 2017
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.

2 participants