Skip to content

Commit 5aedecb

Browse files
committed
fix style
1 parent ec5b57e commit 5aedecb

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

plugins/src/main/java/opengrok/auth/plugin/LdapUserPlugin.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package opengrok.auth.plugin;
2424

@@ -57,9 +57,11 @@ public class LdapUserPlugin extends AbstractLdapPlugin {
5757
* List of configuration names.
5858
* <ul>
5959
* <li><code>filter</code> is LDAP filter used for searching (optional)</li>
60-
* <li><code>useDN</code> boolean value indicating if User.username should be treated as Distinguished Name (optional, default is false)</li>
60+
* <li><code>useDN</code> boolean value indicating if User.username should be treated as Distinguished Name
61+
* (optional, default is false)</li>
6162
* <li><code>attributes</code> is comma separated list of LDAP attributes to be produced (mandatory)</li>
62-
* <li><code>instance</code> integer that can be used to identify instance of this plugin by other LDAP plugins (optional, default empty)</li>
63+
* <li><code>instance</code> integer that can be used to identify instance of this plugin by other LDAP plugins
64+
* (optional, default empty)</li>
6365
* </ul>
6466
*/
6567
static final String LDAP_FILTER = "filter";
@@ -89,8 +91,7 @@ public void load(Map<String, Object> parameters) {
8991
private void init(Map<String, Object> parameters) {
9092
String attributesVal;
9193
if ((attributesVal = (String) parameters.get(ATTRIBUTES)) == null) {
92-
throw new NullPointerException("Missing configuration parameter [" + ATTRIBUTES +
93-
"] in the setup");
94+
throw new NullPointerException("Missing configuration parameter [" + ATTRIBUTES + "] in the setup");
9495
}
9596
attrSet = new HashSet<>(Arrays.asList(attributesVal.split(",")));
9697

@@ -119,8 +120,7 @@ private void init(Map<String, Object> parameters) {
119120
*/
120121
@Override
121122
protected boolean sessionExists(HttpServletRequest req) {
122-
return super.sessionExists(req)
123-
&& req.getSession().getAttribute(getSessionAttrName()) != null;
123+
return super.sessionExists(req) && req.getSession().getAttribute(getSessionAttrName()) != null;
124124
}
125125

126126
/**
@@ -157,8 +157,7 @@ public void fillSession(HttpServletRequest req, User user) {
157157
String dn = null;
158158
if (Boolean.TRUE.equals(useDN)) {
159159
dn = user.getUsername();
160-
LOGGER.log(Level.FINEST, "using DN ''{0}'' for user {1}",
161-
new Object[]{dn, user});
160+
LOGGER.log(Level.FINEST, "using DN ''{0}'' for user {1}", new Object[]{dn, user});
162161
}
163162

164163
String expandedFilter = null;

0 commit comments

Comments
 (0)