diff --git a/plugin/pom.xml b/plugin/pom.xml
index a460e2b1..9a688ca6 100644
--- a/plugin/pom.xml
+++ b/plugin/pom.xml
@@ -221,16 +221,15 @@
10.17.0
+
+ checkstyle.xml
+ true
+ true
+
checkstyle-validation
validate
-
- checkstyle.xml
- true
- true
- src/**/*.java
-
check
diff --git a/plugin/src/software/aws/toolkits/eclipse/amazonq/chat/ChatCommunicationManager.java b/plugin/src/software/aws/toolkits/eclipse/amazonq/chat/ChatCommunicationManager.java
index 2c229bce..123dd04b 100644
--- a/plugin/src/software/aws/toolkits/eclipse/amazonq/chat/ChatCommunicationManager.java
+++ b/plugin/src/software/aws/toolkits/eclipse/amazonq/chat/ChatCommunicationManager.java
@@ -57,4 +57,4 @@ public void sendMessageToChatUI(final Browser browser, final ChatUIInboundComman
});
}
-}
\ No newline at end of file
+}
diff --git a/plugin/src/software/aws/toolkits/eclipse/amazonq/chat/ChatMessageProvider.java b/plugin/src/software/aws/toolkits/eclipse/amazonq/chat/ChatMessageProvider.java
index d8287739..5470cd5f 100644
--- a/plugin/src/software/aws/toolkits/eclipse/amazonq/chat/ChatMessageProvider.java
+++ b/plugin/src/software/aws/toolkits/eclipse/amazonq/chat/ChatMessageProvider.java
@@ -22,7 +22,7 @@ public static CompletableFuture createAsync() {
.thenApply(ChatMessageProvider::new);
}
- private ChatMessageProvider(AmazonQLspServer amazonQLspServer) {
+ private ChatMessageProvider(final AmazonQLspServer amazonQLspServer) {
this.amazonQLspServer = amazonQLspServer;
}
diff --git a/plugin/src/software/aws/toolkits/eclipse/amazonq/util/QInvocationSession.java b/plugin/src/software/aws/toolkits/eclipse/amazonq/util/QInvocationSession.java
index ea34ef65..28f70741 100644
--- a/plugin/src/software/aws/toolkits/eclipse/amazonq/util/QInvocationSession.java
+++ b/plugin/src/software/aws/toolkits/eclipse/amazonq/util/QInvocationSession.java
@@ -321,8 +321,8 @@ public void executeCallbackForCodeReference() {
codeReferenceAcceptanceCallback.onCallback(selectedSuggestion, startLine);
}
}
-
- public void setVerticalIndent(int line, int height) {
+
+ public void setVerticalIndent(final int line, final int height) {
var widget = viewer.getTextWidget();
widget.setLineVerticalIndent(line, height);
unsetVerticalIndent = () -> {
diff --git a/plugin/src/software/aws/toolkits/eclipse/amazonq/views/AmazonQChatViewActionHandler.java b/plugin/src/software/aws/toolkits/eclipse/amazonq/views/AmazonQChatViewActionHandler.java
index 8c65cee9..2e15f79d 100644
--- a/plugin/src/software/aws/toolkits/eclipse/amazonq/views/AmazonQChatViewActionHandler.java
+++ b/plugin/src/software/aws/toolkits/eclipse/amazonq/views/AmazonQChatViewActionHandler.java
@@ -61,4 +61,4 @@ public final void handleCommand(final ParsedCommand parsedCommand, final Browser
}
}
-}
\ No newline at end of file
+}
diff --git a/plugin/src/software/aws/toolkits/eclipse/amazonq/views/AmazonQChatWebview.java b/plugin/src/software/aws/toolkits/eclipse/amazonq/views/AmazonQChatWebview.java
index 0d7cbc1b..61784096 100644
--- a/plugin/src/software/aws/toolkits/eclipse/amazonq/views/AmazonQChatWebview.java
+++ b/plugin/src/software/aws/toolkits/eclipse/amazonq/views/AmazonQChatWebview.java
@@ -55,49 +55,55 @@ public Object function(final Object[] arguments) {
private String getContent() {
String jsFile = PluginUtils.getAwsDirectory(LspConstants.LSP_SUBDIRECTORY).resolve("amazonq-ui.js").toString();
- return String.format("\n"
- + "\n"
- + "\n"
- + " \n"
- + " \n"
- + " Chat UI\n"
- + " %s\n"
- + "\n"
- + "\n"
- + " %s\n"
- + "\n"
- + "", generateCss(), generateJS(jsFile));
+ return String.format("""
+
+
+
+
+
+ Chat UI
+ %s
+
+
+ %s
+
+
+ """, generateCss(), generateJS(jsFile));
}
private String generateCss() {
- return "";
+ return """
+
+ """;
}
private String generateJS(final String jsEntrypoint) {
- return String.format("\n"
- + " ", jsEntrypoint);
+ return String.format("""
+
+
+ """, jsEntrypoint);
}
@Override
diff --git a/plugin/src/software/aws/toolkits/eclipse/amazonq/views/FeedbackDialog.java b/plugin/src/software/aws/toolkits/eclipse/amazonq/views/FeedbackDialog.java
index 400a194b..6b8931b2 100644
--- a/plugin/src/software/aws/toolkits/eclipse/amazonq/views/FeedbackDialog.java
+++ b/plugin/src/software/aws/toolkits/eclipse/amazonq/views/FeedbackDialog.java
@@ -217,16 +217,16 @@ private void createQuestionSection(final Composite container) {
CustomRadioButton negativeSentimentButton = createCustomRadioButton(sentimentContainer, "icons/FrownyFace.png", "Unsatisfied", SWT.NONE, false);
positiveSentimentButton.getRadioButton().addSelectionListener(new SelectionAdapter() {
@Override
- public void widgetSelected(SelectionEvent e) {
- negativeSentimentButton.getRadioButton().setSelection(false);
- selectedSentiment = Sentiment.POSITIVE;
+ public void widgetSelected(final SelectionEvent e) {
+ negativeSentimentButton.getRadioButton().setSelection(false);
+ selectedSentiment = Sentiment.POSITIVE;
}
});
negativeSentimentButton.getRadioButton().addSelectionListener(new SelectionAdapter() {
@Override
- public void widgetSelected(SelectionEvent e) {
- positiveSentimentButton.getRadioButton().setSelection(false);
- selectedSentiment = Sentiment.NEGATIVE;
+ public void widgetSelected(final SelectionEvent e) {
+ positiveSentimentButton.getRadioButton().setSelection(false);
+ selectedSentiment = Sentiment.NEGATIVE;
}
});
@@ -280,7 +280,8 @@ private void createSeparator(final Composite parent) {
separatorLabel.setLayoutData(separatorGithubLayout);
}
- private CustomRadioButton createCustomRadioButton(final Composite parent, final String imagePath, final String text, final int style, final boolean isSelected) {
+ private CustomRadioButton createCustomRadioButton(final Composite parent, final String imagePath,
+ final String text, final int style, final boolean isSelected) {
CustomRadioButton button = new CustomRadioButton(parent, loadImage(imagePath), text, style);
button.getRadioButton().setSelection(isSelected);
return button;
diff --git a/plugin/src/software/aws/toolkits/eclipse/amazonq/views/ToolkitLoginWebview.java b/plugin/src/software/aws/toolkits/eclipse/amazonq/views/ToolkitLoginWebview.java
index cd8e910d..5088e1f9 100644
--- a/plugin/src/software/aws/toolkits/eclipse/amazonq/views/ToolkitLoginWebview.java
+++ b/plugin/src/software/aws/toolkits/eclipse/amazonq/views/ToolkitLoginWebview.java
@@ -64,26 +64,28 @@ protected void handleAuthStatusChange(final boolean isLoggedIn) {
private String getContent() {
try {
URL jsFile = PluginUtils.getResource("webview/build/assets/js/getStart.js");
- return String.format("\n"
- + "\n"
- + " \n"
- + " AWS Q\n"
- + " \n"
- + " \n"
- + " \n"
- + " \n"
- + " \n"
- + " \n"
- + "", jsFile.toString());
+ return String.format("""
+
+
+
+ AWS Q
+
+
+
+
+
+
+
+ """, jsFile.toString());
} catch (IOException e) {
return "Failed to load JS";
}