code clean-up
This commit is contained in:
parent
0542685f07
commit
0665940b1d
5 changed files with 8 additions and 8 deletions
|
@ -87,7 +87,7 @@ public class FessBoot extends TomcatBoot {
|
|||
}
|
||||
op.replace("fess.log.path", fessLogPath.replace("\\", "/"));
|
||||
}).asYouLikeIt(resource -> {
|
||||
Host host = resource.getHost();
|
||||
final Host host = resource.getHost();
|
||||
if (host instanceof StandardHost) {
|
||||
((StandardHost) host).setErrorReportValveClass(SuppressErrorReportValve.class.getName());
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ public class HighlightInfo {
|
|||
private int numOfFragments;
|
||||
|
||||
public HighlightInfo() {
|
||||
FessConfig fessConfig = ComponentUtil.getFessConfig();
|
||||
final FessConfig fessConfig = ComponentUtil.getFessConfig();
|
||||
this.type = fessConfig.getQueryHighlightType();
|
||||
this.fragmentSize = fessConfig.getQueryHighlightFragmentSizeAsInteger();
|
||||
this.numOfFragments = fessConfig.getQueryHighlightNumberOfFragmentsAsInteger();
|
||||
|
@ -34,7 +34,7 @@ public class HighlightInfo {
|
|||
return type;
|
||||
}
|
||||
|
||||
public HighlightInfo type(String type) {
|
||||
public HighlightInfo type(final String type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ public class HighlightInfo {
|
|||
return fragmentSize;
|
||||
}
|
||||
|
||||
public HighlightInfo fragmentSize(int fragmentSize) {
|
||||
public HighlightInfo fragmentSize(final int fragmentSize) {
|
||||
this.fragmentSize = fragmentSize;
|
||||
return this;
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ public class HighlightInfo {
|
|||
return numOfFragments;
|
||||
}
|
||||
|
||||
public HighlightInfo numOfFragments(int numOfFragments) {
|
||||
public HighlightInfo numOfFragments(final int numOfFragments) {
|
||||
this.numOfFragments = numOfFragments;
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -1519,7 +1519,7 @@ public class FessEsClient implements Client {
|
|||
}
|
||||
|
||||
@Override
|
||||
public BulkRequestBuilder prepareBulk(String globalIndex, String globalType) {
|
||||
public BulkRequestBuilder prepareBulk(final String globalIndex, final String globalType) {
|
||||
return client.prepareBulk(globalIndex, globalType);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ public interface CrawlingConfig {
|
|||
public enum ConfigType {
|
||||
WEB("W"), FILE("F"), DATA("D");
|
||||
|
||||
private final String typePrefix;
|
||||
private String typePrefix;
|
||||
|
||||
ConfigType(final String typePrefix) {
|
||||
this.typePrefix = typePrefix;
|
||||
|
|
|
@ -166,7 +166,7 @@ public class FessFwAssistantDirector extends CachedFwAssistantDirector {
|
|||
} else {
|
||||
return "/error/system.jsp";
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue