Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 9df7769

Browse files
committed
remove redundant variable assignments
1 parent 9a8ff24 commit 9df7769

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/mathworks/ci/MatlabInstallationAxis.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ static private List<String> evaluateValues(List<String> values) {
3535

3636
@Extension
3737
public static class DescriptorImpl extends AxisDescriptor{
38-
private final String useMatlabWarning = Message.getValue("Axis.use.matlab.warning");
39-
private final String noInstallationError = Message.getValue("Axis.no.installed.matlab.error");
4038

4139
@Override
4240
public String getDisplayName() {
@@ -57,15 +55,15 @@ public MatlabInstallation[] getInstallations () {
5755
}
5856

5957
public String getUseMatlabWarning() {
60-
return useMatlabWarning;
58+
return Message.getValue("Axis.use.matlab.warning");
6159
}
6260

6361
public boolean isMatlabInstallationEmpty() {
6462
return MatlabInstallation.isEmpty();
6563
}
6664

6765
public String getNoInstallationError() {
68-
return noInstallationError;
66+
return Message.getValue("Axis.no.installed.matlab.error");
6967
}
7068
}
7169
}

0 commit comments

Comments
 (0)