Skip to content

Commit 32b2e55

Browse files
committed
Minor code imporvements
1 parent 9b666b7 commit 32b2e55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/utplsql/maven/plugin/UtPLSQLMojo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public void execute() throws MojoExecutionException {
213213
throw new MojoExecutionException(e.getMessage(), e);
214214
} finally {
215215
try {
216-
if (null != connection) {
216+
if (connection != null) {
217217
reporterWriter.writeReporters(connection);
218218

219219
DBHelper.disableDBMSOutput(connection);
@@ -337,7 +337,7 @@ private List<Reporter> initReporters(Connection connection, Version utlVersion,
337337
reporterList.add(reporter);
338338

339339
// Turns the console output on by default if both file and console output are empty.
340-
if (!reporterParameter.isFileOutput() && null == reporterParameter.getConsoleOutput()) {
340+
if (!reporterParameter.isFileOutput() && reporterParameter.getConsoleOutput() == null) {
341341
reporterParameter.setConsoleOutput(true);
342342
}
343343

0 commit comments

Comments
 (0)