1 | /******************************************************************************* | |
2 | * Copyhacked (H) 2012-2020. | |
3 | * This program and the accompanying materials | |
4 | * are made available under no term at all, use it like | |
5 | * you want, but share and discuss about it | |
6 | * every time possible with every body. | |
7 | * | |
8 | * Contributors: | |
9 | * ron190 at ymail dot com - initial implementation | |
10 | ******************************************************************************/ | |
11 | package com.jsql.view.swing.interaction; | |
12 | ||
13 | import com.jsql.model.bean.util.Header; | |
14 | import com.jsql.view.interaction.InteractionCommand; | |
15 | import com.jsql.view.swing.util.MediatorHelper; | |
16 | ||
17 | import java.util.Map; | |
18 | ||
19 | /** | |
20 | * Mark the injection as invulnerable to a error based injection. | |
21 | */ | |
22 | public class MarkErrorInvulnerable implements InteractionCommand { | |
23 | | |
24 | private final int indexMethodError; | |
25 | | |
26 | @SuppressWarnings("unchecked") | |
27 | public MarkErrorInvulnerable(Object[] interactionParams) { | |
28 | | |
29 | Map<Header, Object> mapHeader = (Map<Header, Object>) interactionParams[0]; | |
30 | this.indexMethodError = (int) mapHeader.get(Header.INDEX_ERROR_STRATEGY); | |
31 | } | |
32 | ||
33 | @Override | |
34 | public void execute() { | |
35 |
1
1. execute : removed call to com/jsql/view/swing/panel/address/AddressMenuBar::markErrorInvulnerable → NO_COVERAGE |
MediatorHelper.panelAddressBar().getAddressMenuBar().markErrorInvulnerable(this.indexMethodError); |
36 | } | |
37 | } | |
Mutations | ||
35 |
1.1 |