From a2c984366f119a651851cb4aa8f16466d3ae4e96 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 17 Feb 2015 11:23:21 +0000
Subject: [PATCH] AutoRefactor: remove unnecessary locals before return
---
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java
index e7e67b0..42acb6b 100644
--- a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java
+++ b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2008-2010 Sun Microsystems, Inc.
- * Portions Copyright 2011-2014 ForgeRock AS
+ * Portions Copyright 2011-2015 ForgeRock AS
*/
package org.opends.guitools.controlpanel.ui;
@@ -499,10 +499,8 @@
*/
protected boolean isBinary(String attrName)
{
- boolean isBinary = false;
Schema schema = getInfo().getServerDescriptor().getSchema();
- isBinary = Utilities.hasBinarySyntax(attrName, schema);
- return isBinary;
+ return Utilities.hasBinarySyntax(attrName, schema);
}
/**
@@ -514,10 +512,8 @@
*/
protected boolean isPassword(String attrName)
{
- boolean isPassword = false;
Schema schema = getInfo().getServerDescriptor().getSchema();
- isPassword = Utilities.hasPasswordSyntax(attrName, schema);
- return isPassword;
+ return Utilities.hasPasswordSyntax(attrName, schema);
}
/**
--
Gitblit v1.10.0