Skip to content

Commit

Permalink
Fix checkstyle issue and test CI workflow with GitHub Actions
Browse files Browse the repository at this point in the history
Ensure that no line exceeds 120 characters per line to adhere to
commit message style guidelines and improve readability.

CI workflow failed due to a line exceeding 120 characters.
By resolving this issue, we ensure that the codebase complies with
the defined coding standards and that the CI workflow
successfully executes without errors.

Additionally, this commit demonstrates the effectiveness of the CI setup
by triggering a build and ensuring that the codebase is continuously
integrated and tested throughout the development process.
  • Loading branch information
NeoHW committed Feb 6, 2024
1 parent e3717e8 commit a15db83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/bytebuddy/tasks/TaskList.java
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ public String findTaskWithKeywordInTaskList(List<String> keywords) throws ByteBu
for (String keyword: keywords) {
for (int i = 0; i < taskList.size(); i++) {
String description = taskList.get(i).getDescription().toLowerCase();
Pair<StringBuilder, Boolean> pair = processMatchingTask(keyword.toLowerCase(), str, foundTask, description, i);
Pair<StringBuilder, Boolean> pair =
processMatchingTask(keyword.toLowerCase(), str, foundTask, description, i);
str = pair.getKey();
foundTask = pair.getValue();
}
Expand All @@ -393,7 +394,8 @@ public String findTaskWithKeywordInTaskList(List<String> keywords) throws ByteBu
}


private Pair<StringBuilder, Boolean> processMatchingTask(String keyword, StringBuilder str, boolean foundTask, String description, int i) {
private Pair<StringBuilder, Boolean> processMatchingTask(String keyword, StringBuilder str,
boolean foundTask, String description, int i) {
if (description.contains(keyword)) {
if (!foundTask) {
str.append("Here are the matching tasks in your list:");
Expand Down

0 comments on commit a15db83

Please sign in to comment.