Skip to content

Commit 5e793f5

Browse files
committed
Fix Checkstyle issues
1 parent c304a7f commit 5e793f5

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

plugin/pom.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,15 @@
221221
<version>10.17.0</version>
222222
</dependency>
223223
</dependencies>
224+
<configuration>
225+
<configLocation>checkstyle.xml</configLocation>
226+
<consoleOutput>true</consoleOutput>
227+
<failsOnError>true</failsOnError>
228+
</configuration>
224229
<executions>
225230
<execution>
226231
<id>checkstyle-validation</id>
227232
<phase>validate</phase>
228-
<configuration>
229-
<configLocation>checkstyle.xml</configLocation>
230-
<consoleOutput>true</consoleOutput>
231-
<failsOnError>true</failsOnError>
232-
<includes>src/**/*.java</includes>
233-
</configuration>
234233
<goals>
235234
<goal>check</goal>
236235
</goals>

plugin/src/software/aws/toolkits/eclipse/amazonq/chat/ChatCommunicationManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ public void sendMessageToChatUI(final Browser browser, final ChatUIInboundComman
5757
});
5858
}
5959

60-
}
60+
}

plugin/src/software/aws/toolkits/eclipse/amazonq/chat/ChatMessageProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static CompletableFuture<ChatMessageProvider> createAsync() {
2222
.thenApply(ChatMessageProvider::new);
2323
}
2424

25-
private ChatMessageProvider(AmazonQLspServer amazonQLspServer) {
25+
private ChatMessageProvider(final AmazonQLspServer amazonQLspServer) {
2626
this.amazonQLspServer = amazonQLspServer;
2727
}
2828

plugin/src/software/aws/toolkits/eclipse/amazonq/util/QInvocationSession.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ public void executeCallbackForCodeReference() {
339339
codeReferenceAcceptanceCallback.onCallback(selectedSuggestion, startLine);
340340
}
341341
}
342-
343-
public void setVerticalIndent(int line, int height) {
342+
343+
public void setVerticalIndent(final int line, final int height) {
344344
var widget = viewer.getTextWidget();
345345
widget.setLineVerticalIndent(line, height);
346346
unsetVerticalIndent = () -> {

plugin/src/software/aws/toolkits/eclipse/amazonq/views/AmazonQChatViewActionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ public final void handleCommand(final ParsedCommand parsedCommand, final Browser
6161
}
6262
}
6363

64-
}
64+
}

plugin/src/software/aws/toolkits/eclipse/amazonq/views/FeedbackDialog.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -217,16 +217,16 @@ private void createQuestionSection(final Composite container) {
217217
CustomRadioButton negativeSentimentButton = createCustomRadioButton(sentimentContainer, "icons/FrownyFace.png", "Unsatisfied", SWT.NONE, false);
218218
positiveSentimentButton.getRadioButton().addSelectionListener(new SelectionAdapter() {
219219
@Override
220-
public void widgetSelected(SelectionEvent e) {
221-
negativeSentimentButton.getRadioButton().setSelection(false);
222-
selectedSentiment = Sentiment.POSITIVE;
220+
public void widgetSelected(final SelectionEvent e) {
221+
negativeSentimentButton.getRadioButton().setSelection(false);
222+
selectedSentiment = Sentiment.POSITIVE;
223223
}
224224
});
225225
negativeSentimentButton.getRadioButton().addSelectionListener(new SelectionAdapter() {
226226
@Override
227-
public void widgetSelected(SelectionEvent e) {
228-
positiveSentimentButton.getRadioButton().setSelection(false);
229-
selectedSentiment = Sentiment.NEGATIVE;
227+
public void widgetSelected(final SelectionEvent e) {
228+
positiveSentimentButton.getRadioButton().setSelection(false);
229+
selectedSentiment = Sentiment.NEGATIVE;
230230
}
231231
});
232232

@@ -280,7 +280,8 @@ private void createSeparator(final Composite parent) {
280280
separatorLabel.setLayoutData(separatorGithubLayout);
281281
}
282282

283-
private CustomRadioButton createCustomRadioButton(final Composite parent, final String imagePath, final String text, final int style, final boolean isSelected) {
283+
private CustomRadioButton createCustomRadioButton(final Composite parent, final String imagePath,
284+
final String text, final int style, final boolean isSelected) {
284285
CustomRadioButton button = new CustomRadioButton(parent, loadImage(imagePath), text, style);
285286
button.getRadioButton().setSelection(isSelected);
286287
return button;

0 commit comments

Comments
 (0)