From 25d3e43f27fb4d055af69c6934f3531fef115a02 Mon Sep 17 00:00:00 2001 From: "Hockla, Ali (ah999m)" Date: Wed, 15 Jan 2020 15:04:09 -0600 Subject: policy/drools-apps jdk11 upgrades Issue-ID: POLICY-1587 Change-Id: I02bef6c829f2f24954ae73fb0c540ab7198775ce Signed-off-by: Hockla, Ali (ah999m) --- .../m2/test/src/test/java/org/onap/policy/m2/test/SimDmaap.java | 4 ++-- .../m2/test/src/test/java/org/onap/policy/m2/test/Util.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'controlloop/m2/test') diff --git a/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/SimDmaap.java b/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/SimDmaap.java index 3a80f9581..925e9451f 100644 --- a/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/SimDmaap.java +++ b/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/SimDmaap.java @@ -173,7 +173,7 @@ public class SimDmaap { * @return a JSON array, containing 0-limit messages */ String get(String group, long timeout, int limit) - throws InterruptedException { + throws InterruptedException { // look up the group -- create one if it doesn't exist Group groupObj = groupTable.get(group); if (groupObj == null) { @@ -257,7 +257,7 @@ public class SimDmaap { @PathParam("id") String id, @QueryParam("timeout") long timeout, @QueryParam("limit") int limit) - throws InterruptedException { + throws InterruptedException { logger.info("Receive: topic={}, group={}, id={}, timeout={}, limit={}", topic, group, id, timeout, limit); diff --git a/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/Util.java b/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/Util.java index 393a030f0..e2d258cb6 100644 --- a/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/Util.java +++ b/controlloop/m2/test/src/test/java/org/onap/policy/m2/test/Util.java @@ -98,7 +98,7 @@ public class Util { * @return a String containing the contents of the file */ public static String fileToString(File file) - throws IOException, FileNotFoundException { + throws IOException, FileNotFoundException { try (FileInputStream fis = new FileInputStream(file)) { String string = inputStreamToString(fis); return string; @@ -113,7 +113,7 @@ public class Util { * @return a File, whose contents contain the string */ public static File stringToFile(String string, String suffix) - throws IOException { + throws IOException { File file = File.createTempFile("templates-util", suffix); file.deleteOnExit(); @@ -130,7 +130,7 @@ public class Util { * @return a File, whose contents contain the string */ public static File stringToFile(String string) - throws IOException { + throws IOException { return stringToFile(string, ""); } @@ -162,7 +162,7 @@ public class Util { * replaced */ public static String openAndReplace(String fileName, String... args) - throws IOException, FileNotFoundException { + throws IOException, FileNotFoundException { String text = fileToString(new File(fileName)); for (int i = 0 ; i < args.length ; i += 2) { text = text.replace(args[i], args[i + 1]); -- cgit 1.2.3-korg