Rename instance field
Change-Id: I00ecd3fe74806dc800af1f48153b18941755a0d2
Showing
2 changed files
with
12 additions
and
12 deletions
... | @@ -25,20 +25,20 @@ import static org.onosproject.net.intent.IntentState.CORRUPT; | ... | @@ -25,20 +25,20 @@ import static org.onosproject.net.intent.IntentState.CORRUPT; |
25 | */ | 25 | */ |
26 | public class Corrupt extends FinalIntentProcessPhase { | 26 | public class Corrupt extends FinalIntentProcessPhase { |
27 | 27 | ||
28 | - private final IntentData intentData; | 28 | + private final IntentData data; |
29 | 29 | ||
30 | /** | 30 | /** |
31 | * Create an instance with the specified data. | 31 | * Create an instance with the specified data. |
32 | * | 32 | * |
33 | - * @param intentData intentData | 33 | + * @param data intentData |
34 | */ | 34 | */ |
35 | - Corrupt(IntentData intentData) { | 35 | + Corrupt(IntentData data) { |
36 | - this.intentData = checkNotNull(intentData); | 36 | + this.data = checkNotNull(data); |
37 | - this.intentData.setState(CORRUPT); | 37 | + this.data.setState(CORRUPT); |
38 | } | 38 | } |
39 | 39 | ||
40 | @Override | 40 | @Override |
41 | public IntentData data() { | 41 | public IntentData data() { |
42 | - return intentData; | 42 | + return data; |
43 | } | 43 | } |
44 | } | 44 | } | ... | ... |
... | @@ -25,20 +25,20 @@ import static org.onosproject.net.intent.IntentState.FAILED; | ... | @@ -25,20 +25,20 @@ import static org.onosproject.net.intent.IntentState.FAILED; |
25 | */ | 25 | */ |
26 | public class Failed extends FinalIntentProcessPhase { | 26 | public class Failed extends FinalIntentProcessPhase { |
27 | 27 | ||
28 | - private final IntentData intentData; | 28 | + private final IntentData data; |
29 | 29 | ||
30 | /** | 30 | /** |
31 | * Create an instance with the specified data. | 31 | * Create an instance with the specified data. |
32 | * | 32 | * |
33 | - * @param intentData intentData | 33 | + * @param data intentData |
34 | */ | 34 | */ |
35 | - Failed(IntentData intentData) { | 35 | + Failed(IntentData data) { |
36 | - this.intentData = checkNotNull(intentData); | 36 | + this.data = checkNotNull(data); |
37 | - this.intentData.setState(FAILED); | 37 | + this.data.setState(FAILED); |
38 | } | 38 | } |
39 | 39 | ||
40 | @Override | 40 | @Override |
41 | public IntentData data() { | 41 | public IntentData data() { |
42 | - return intentData; | 42 | + return data; |
43 | } | 43 | } |
44 | } | 44 | } | ... | ... |
-
Please register or login to post a comment