code format
This commit is contained in:
parent
ef84011e80
commit
992f82d1f6
4 changed files with 5 additions and 5 deletions
|
@ -263,9 +263,9 @@ public class JsonApiManager extends BaseApiManager {
|
|||
buf.append(',');
|
||||
buf.append("\"geo\":");
|
||||
try {
|
||||
XContentBuilder builder = XContentFactory.jsonBuilder();
|
||||
final XContentBuilder builder = XContentFactory.jsonBuilder();
|
||||
buf.append(geoInfo.toQueryBuilder().toXContent(builder, ToXContent.EMPTY_PARAMS).string());
|
||||
} catch (Exception e) {
|
||||
} catch (final Exception e) {
|
||||
buf.append("{ \"error\" : \"").append(ExceptionsHelper.detailedMessage(e)).append("\"}");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ public class User extends BsUser implements FessUser {
|
|||
return stream(getGroups()).get(stream -> stream.map(s -> decode(s)).toArray(n -> new String[n]));
|
||||
}
|
||||
|
||||
private String decode(String value) {
|
||||
private String decode(final String value) {
|
||||
return new String(Base64.getDecoder().decode(value), Constants.CHARSET_UTF_8);
|
||||
}
|
||||
|
||||
|
|
|
@ -581,7 +581,7 @@ public class QueryHelper implements Serializable {
|
|||
this.highlightedFields = highlightedFields;
|
||||
}
|
||||
|
||||
public void highlightedFields(Consumer<Stream<String>> stream) {
|
||||
public void highlightedFields(final Consumer<Stream<String>> stream) {
|
||||
stream(highlightedFields).of(stream);
|
||||
;
|
||||
}
|
||||
|
|
|
@ -375,7 +375,7 @@ public final class ComponentUtil {
|
|||
*
|
||||
* @param fessConfig
|
||||
*/
|
||||
public static void setFessConfig(FessConfig fessConfig) {
|
||||
public static void setFessConfig(final FessConfig fessConfig) {
|
||||
ComponentUtil.fessConfig = fessConfig;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue