From b88d6bca1a36b0d8657ac79028d532d43eb1eacf Mon Sep 17 00:00:00 2001 From: dcanar9 Date: Tue, 29 Nov 2022 17:23:54 -0700 Subject: [PATCH] java 11 --- .github/workflows/maven-pr-checks.yml | 4 ++-- .travis.yml | 2 +- .../dashboard/service/CollectorItemServiceImpl.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven-pr-checks.yml b/.github/workflows/maven-pr-checks.yml index a6b0f4a7..add4d24c 100755 --- a/.github/workflows/maven-pr-checks.yml +++ b/.github/workflows/maven-pr-checks.yml @@ -10,10 +10,10 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Set up JDK 1.8 + - name: Set up JDK 11 uses: actions/setup-java@v1 with: - java-version: 1.8 + java-version: 11 - name: Build with Maven run: mvn test --file pom.xml diff --git a/.travis.yml b/.travis.yml index 0cf3086c..40bf92e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: java jdk: - - openjdk8 + - openjdk11 services: - docker diff --git a/src/main/java/com/capitalone/dashboard/service/CollectorItemServiceImpl.java b/src/main/java/com/capitalone/dashboard/service/CollectorItemServiceImpl.java index d6186846..5fc40bbc 100644 --- a/src/main/java/com/capitalone/dashboard/service/CollectorItemServiceImpl.java +++ b/src/main/java/com/capitalone/dashboard/service/CollectorItemServiceImpl.java @@ -73,7 +73,7 @@ public ResponseEntity cleanup(String collectorTypeString, String collect for (CollectorItem collectorItem : collectorItems) { if (!hasComponent(collectorType, collectorItem.getId())) { - String loggingPrefix = String.format("cleanup :: Removing (#%d of %d):: could not find a dashboard for the collectorItem with the following options:" + String loggingPrefix = String.format("cleanup :: Removing (#%d of %d) :: could not find a dashboard for the collectorItem with the following options:" ,collectorItems.indexOf(collectorItem)+1, collectorItems.size()); logDeletedCollectorItem(collectorType, collectorItem, loggingPrefix);