File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
org.gitools.heatmap/src/main/java/org/gitools/heatmap/decorator/impl Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 3737import javax .xml .bind .annotation .XmlTransient ;
3838import javax .xml .bind .annotation .adapters .XmlJavaTypeAdapter ;
3939import java .awt .*;
40- import java .util .ArrayList ;
4140import java .util .List ;
4241
4342@ XmlAccessorType (XmlAccessType .NONE )
@@ -185,19 +184,16 @@ public NonEventToNullFunction getDefaultEventFunction() {
185184 @ Override
186185 public List <NonEventToNullFunction > getEventFunctionAlternatives () {
187186
188- List <NonEventToNullFunction > list = new ArrayList <>();
189- list .add (getDefaultEventFunction ());
190-
191- if (aboveScaleFunction == null ) {
192- initEventFunctions ();
187+ if (aboveScaleFunction != null ) {
188+ return super .getEventFunctionAlternatives ();
193189 }
194190
191+ initEventFunctions ();
192+ List <NonEventToNullFunction > list = super .getEventFunctionAlternatives ();
193+
195194 list .add (aboveScaleFunction );
196195 list .add (belowScaleFunction );
197196
198-
199-
200-
201197 return list ;
202198 }
203199
You can’t perform that action at this time.
0 commit comments