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

Commit 963da3b

Browse files
sbouchetadietish
authored andcommitted
chore: fix sonarcloud issues
Signed-off-by: Stephane Bouchet <[email protected]>
1 parent 82c1f1d commit 963da3b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+54
-105
lines changed

src/it/java/org/jboss/tools/intellij/openshift/test/ui/AbstractBaseTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
import com.intellij.remoterobot.utils.WaitForConditionTimeoutException;
1515
import com.redhat.devtools.intellij.commonuitest.fixtures.mainidewindow.idestatusbar.IdeStatusBar;
1616
import com.redhat.devtools.intellij.commonuitest.fixtures.mainidewindow.toolwindowspane.ToolWindowsPane;
17+
import org.jboss.tools.intellij.openshift.test.ui.annotations.UITest;
1718
import org.jboss.tools.intellij.openshift.test.ui.dialogs.ProjectStructureDialog;
1819
import org.jboss.tools.intellij.openshift.test.ui.junit.TestRunnerExtension;
1920
import org.jboss.tools.intellij.openshift.test.ui.runner.IdeaRunner;
20-
import org.jboss.tools.intellij.openshift.test.ui.annotations.UITest;
2121
import org.jboss.tools.intellij.openshift.test.ui.utils.ProjectUtility;
2222
import org.junit.jupiter.api.BeforeAll;
2323
import org.junit.jupiter.api.extension.ExtendWith;
@@ -29,7 +29,7 @@
2929
*/
3030
@ExtendWith(TestRunnerExtension.class)
3131
@UITest
32-
abstract public class AbstractBaseTest {
32+
public abstract class AbstractBaseTest {
3333

3434
protected static RemoteRobot robot;
3535

src/it/java/org/jboss/tools/intellij/openshift/utils/helm/HelmCliTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import org.jboss.tools.intellij.openshift.utils.ToolFactory;
1616
import org.jboss.tools.intellij.openshift.utils.odo.Odo;
1717

18-
1918
public abstract class HelmCliTest extends BasePlatformTestCase {
2019

2120
protected Helm helm;

src/main/java/org/jboss/tools/intellij/openshift/GettingStartedToolWindow.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private GettingStartedGroupLessons buildOpenShiftFuncLessons() {
144144
gifStartDeployLesson
145145
);
146146

147-
GettingStartedGroupLessons groupLessons = new GettingStartedGroupLessons(
147+
return new GettingStartedGroupLessons(
148148
"Getting Started with OpenShift Toolkit",
149149
"Start your application development on OpenShift or Kubernetes",
150150
loginLesson,
@@ -153,7 +153,6 @@ private GettingStartedGroupLessons buildOpenShiftFuncLessons() {
153153
startDevLesson,
154154
startDebugLesson,
155155
startDeployLesson);
156-
return groupLessons;
157156
}
158157

159158
private URL getLessonGif(String name) {

src/main/java/org/jboss/tools/intellij/openshift/actions/HelmAction.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@ public void actionPerformed(AnActionEvent anActionEvent, TreePath path, Object s
4141
if (helm == null) {
4242
return;
4343
}
44-
this.actionPerformed(anActionEvent, (Object) getElement(selected), helm);
44+
this.actionPerformedOnSelectedObject(anActionEvent, getElement(selected), helm);
4545
}
4646

4747
private Helm getHelm(AnActionEvent anActionEvent) {
4848
try {
49-
return ActionUtils.getApplicationRootNode(anActionEvent).getHelm(true).getNow(null);
49+
return ActionUtils.getApplicationRootNode(anActionEvent).getHelm().getNow(null);
5050
} catch(Exception e) {
5151
LOGGER.warn("Could not get helm: " + e.getMessage(), e);
5252
return null;
5353
}
5454
}
5555

56-
public abstract void actionPerformed(AnActionEvent anActionEvent, Object selected, @NotNull Helm helm);
56+
public abstract void actionPerformedOnSelectedObject(AnActionEvent anActionEvent, Object selected, @NotNull Helm helm);
5757

5858
protected abstract String getTelemetryActionName();
5959

src/main/java/org/jboss/tools/intellij/openshift/actions/OdoAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void actionPerformed(AnActionEvent anActionEvent, TreePath path, Object s
4141
if (odo == null) {
4242
return;
4343
}
44-
this.actionPerformed(anActionEvent, (Object) getElement(selected), odo);
44+
this.actionPerformedOnSelectedObject(anActionEvent, getElement(selected), odo);
4545
}
4646

4747
private Odo getOdo(AnActionEvent anActionEvent) {
@@ -53,7 +53,7 @@ private Odo getOdo(AnActionEvent anActionEvent) {
5353
}
5454
}
5555

56-
public abstract void actionPerformed(AnActionEvent anActionEvent, Object selected, @NotNull Odo odo);
56+
public abstract void actionPerformedOnSelectedObject(AnActionEvent anActionEvent, Object selected, @NotNull Odo odo);
5757

5858
protected abstract String getTelemetryActionName();
5959

src/main/java/org/jboss/tools/intellij/openshift/actions/OpenGettingStartedAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected String getTelemetryActionName() {
3131
}
3232

3333
@Override
34-
public void actionPerformed(AnActionEvent anActionEvent, Object selected, @NotNull Odo odo) {
34+
public void actionPerformedOnSelectedObject(AnActionEvent anActionEvent, Object selected, @NotNull Odo odo) {
3535
Project project = anActionEvent.getProject();
3636
if (project == null) {
3737
return;

src/main/java/org/jboss/tools/intellij/openshift/actions/binding/DeleteBindingAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public DeleteBindingAction() {
2727
}
2828

2929
@Override
30-
public void actionPerformed(AnActionEvent anActionEvent, Object selected, @NotNull Odo odo) {
30+
public void actionPerformedOnSelectedObject(AnActionEvent anActionEvent, Object selected, @NotNull Odo odo) {
3131
try {
3232
BindingNode node = (BindingNode) selected;
3333
if (Messages.NO == Messages.showYesNoDialog("Delete binding '" + node.getName() + "'.\nAre you sure?",

src/main/java/org/jboss/tools/intellij/openshift/actions/binding/ShowBindingDetailsAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public ShowBindingDetailsAction() {
2424
}
2525

2626
@Override
27-
public void actionPerformed(AnActionEvent anActionEvent, Object selected, @NotNull Odo odo) {
27+
public void actionPerformedOnSelectedObject(AnActionEvent anActionEvent, Object selected, @NotNull Odo odo) {
2828
BindingNode node = (BindingNode) selected;
2929
BindingDetailDialog dialog = new BindingDetailDialog(anActionEvent.getProject(), null, node.getBinding());
3030
dialog.show();

src/main/java/org/jboss/tools/intellij/openshift/actions/cluster/AboutAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public AboutAction() {
3333
protected String getTelemetryActionName() { return "about"; }
3434

3535
@Override
36-
public void actionPerformed(AnActionEvent anActionEvent, Object selected, @NotNull Odo odo) {
36+
public void actionPerformedOnSelectedObject(AnActionEvent anActionEvent, Object selected, @NotNull Odo odo) {
3737
runWithProgress((ProgressIndicator progress) -> {
3838
try {
3939
odo.about();

src/main/java/org/jboss/tools/intellij/openshift/actions/cluster/LoginAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public LoginAction() {
3737
protected String getTelemetryActionName() { return "login to cluster"; }
3838

3939
@Override
40-
public void actionPerformed(AnActionEvent anActionEvent, Object selected, @NotNull Odo odo) {
40+
public void actionPerformedOnSelectedObject(AnActionEvent anActionEvent, Object selected, @NotNull Odo odo) {
4141
ApplicationsRootNode clusterNode = (ApplicationsRootNode) selected;
4242
runWithProgress((ProgressIndicator progress) -> {
4343
try {

0 commit comments

Comments
 (0)