From 7d7913228e6f52273f2fdada6822a380f95e0f8c Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 20 Oct 2014 12:11:48 +0000
Subject: [PATCH] Autorefactored simplifying expressions: - removed useless parentheses - added parentheses to disambiguate expressions - removed useless use of "this" keyword in method calls - removed useless null checks in conjunction with use of instanceof operator
---
opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java b/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java
index a1fb8cc..070126a 100644
--- a/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java
+++ b/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java
@@ -450,8 +450,8 @@
public static boolean isCertificateException(Throwable t) {
boolean returnValue = false;
- while (!returnValue && (t != null)) {
- returnValue = (t instanceof SSLHandshakeException) || (t instanceof GeneralSecurityException);
+ while (!returnValue && t != null) {
+ returnValue = t instanceof SSLHandshakeException || t instanceof GeneralSecurityException;
t = t.getCause();
}
@@ -530,7 +530,7 @@
return file.canWrite();
}
final File parentFile = file.getParentFile();
- return (parentFile != null && parentFile.canWrite());
+ return parentFile != null && parentFile.canWrite();
}
@@ -575,7 +575,7 @@
*/
private static boolean isOutOfMemory(Throwable t) {
boolean isOutOfMemory = false;
- while (!isOutOfMemory && (t != null)) {
+ while (!isOutOfMemory && t != null) {
if (t instanceof OutOfMemoryError) {
isOutOfMemory = true;
} else if (t instanceof IOException) {
--
Gitblit v1.10.0