code format

This commit is contained in:
Shinsuke Sugaya 2016-05-28 18:24:38 +09:00
parent ef84011e80
commit 992f82d1f6
4 changed files with 5 additions and 5 deletions

View file

@ -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("\"}");
}
}

View file

@ -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);
}

View file

@ -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);
;
}

View file

@ -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;
}