diff --git a/src/main/java/org/openrewrite/analysis/InvocationMatcher.java b/src/main/java/org/openrewrite/analysis/InvocationMatcher.java index ed8b54686..38949d064 100644 --- a/src/main/java/org/openrewrite/analysis/InvocationMatcher.java +++ b/src/main/java/org/openrewrite/analysis/InvocationMatcher.java @@ -122,8 +122,8 @@ public boolean isAnyArgument(Cursor cursor) { return asExpression( cursor, expression -> nearestMethodCall(cursor).map(call -> - call.getArguments().contains(expression) - && matcher.matches(call) // Do the matcher.matches(...) last as this can be expensive + call.getArguments().contains(expression) && + matcher.matches(call) // Do the matcher.matches(...) last as this can be expensive ).orElse(false) ); } diff --git a/src/test/resources/dataflow-functional-tests/ArchiveAnalyzer.java b/src/test/resources/dataflow-functional-tests/ArchiveAnalyzer.java index 51d8c02ab..5f8d3fb2b 100644 --- a/src/test/resources/dataflow-functional-tests/ArchiveAnalyzer.java +++ b/src/test/resources/dataflow-functional-tests/ArchiveAnalyzer.java @@ -219,8 +219,8 @@ public void closeAnalyzer() throws Exception { if (!success && tempFileLocation.exists()) { final String[] l = tempFileLocation.list(); if (l != null && l.length > 0) { - LOGGER.warn("Failed to delete the Archive Analyzer's temporary files from `{}`, " - + "see the log for more details", tempFileLocation.toString()); + LOGGER.warn("Failed to delete the Archive Analyzer's temporary files from `{}`, " + + "see the log for more details", tempFileLocation.toString()); } } } @@ -520,14 +520,14 @@ private void ensureReadableJar(final String archiveExt, BufferedInputStream in) in.mark(7); final byte[] b = new byte[7]; final int read = in.read(b); - if (read == 7 - && b[0] == '#' - && b[1] == '!' - && b[2] == '/' - && b[3] == 'b' - && b[4] == 'i' - && b[5] == 'n' - && b[6] == '/') { + if (read == 7 && + b[0] == '#' && + b[1] == '!' && + b[2] == '/' && + b[3] == 'b' && + b[4] == 'i' && + b[5] == 'n' && + b[6] == '/') { boolean stillLooking = true; int chr; int nxtChr; @@ -655,8 +655,8 @@ private boolean isZipFileActuallyJarFile(Dependency dependency) { ZipFile zip = null; try { zip = new ZipFile(dependency.getActualFilePath()); - if (zip.getEntry("META-INF/MANIFEST.MF") != null - || zip.getEntry("META-INF/maven") != null) { + if (zip.getEntry("META-INF/MANIFEST.MF") != null || + zip.getEntry("META-INF/maven") != null) { final Enumeration entries = zip.getEntries(); while (entries.hasMoreElements()) { final ZipArchiveEntry entry = entries.nextElement(); diff --git a/src/test/resources/dataflow-functional-tests/FileUtils.java b/src/test/resources/dataflow-functional-tests/FileUtils.java index 2758db807..af7079271 100644 --- a/src/test/resources/dataflow-functional-tests/FileUtils.java +++ b/src/test/resources/dataflow-functional-tests/FileUtils.java @@ -1719,10 +1719,10 @@ public static void forceMkdir(File directory) throws IOException { if (directory.exists()) { if (!directory.isDirectory()) { String message = - "File " - + directory - + " exists and is " - + "not a directory. Unable to create directory."; + "File " + + directory + + " exists and is " + + "not a directory. Unable to create directory."; throw new IOException(message); } } else { @@ -1823,8 +1823,8 @@ public static boolean isFileNewer(File file, File reference) { throw new IllegalArgumentException("No specified reference file"); } if (!reference.exists()) { - throw new IllegalArgumentException("The reference file '" - + reference + "' doesn't exist"); + throw new IllegalArgumentException("The reference file '" + + reference + "' doesn't exist"); } return isFileNewer(file, reference.lastModified()); } @@ -1890,8 +1890,8 @@ public static boolean isFileOlder(File file, File reference) { throw new IllegalArgumentException("No specified reference file"); } if (!reference.exists()) { - throw new IllegalArgumentException("The reference file '" - + reference + "' doesn't exist"); + throw new IllegalArgumentException("The reference file '" + + reference + "' doesn't exist"); } return isFileOlder(file, reference.lastModified()); } diff --git a/src/test/resources/dataflow-functional-tests/GitCommandLineUtils.java b/src/test/resources/dataflow-functional-tests/GitCommandLineUtils.java index 723adc93f..858517a73 100644 --- a/src/test/resources/dataflow-functional-tests/GitCommandLineUtils.java +++ b/src/test/resources/dataflow-functional-tests/GitCommandLineUtils.java @@ -96,8 +96,8 @@ public static void addTarget( Commandline cl, List files ) } catch ( IOException ex ) { - throw new IllegalArgumentException( "Could not get canonical paths for workingDirectory = " - + workingDirectory + " or files=" + files, ex ); + throw new IllegalArgumentException( "Could not get canonical paths for workingDirectory = " + + workingDirectory + " or files=" + files, ex ); } }