code format

This commit is contained in:
Shinsuke Sugaya 2016-05-30 22:43:27 +09:00
parent 9fd65e183a
commit 9944f68739
3 changed files with 3 additions and 5 deletions

View file

@ -115,8 +115,7 @@ public class BadWordService implements Serializable {
targetWord = targetWord.substring(2);
}
final String target = targetWord;
BadWord badWord = badWordBhv.selectEntity(cb ->
cb.query().setSuggestWord_Equal(target)).orElse(null);//TODO
BadWord badWord = badWordBhv.selectEntity(cb -> cb.query().setSuggestWord_Equal(target)).orElse(null);//TODO
final long now = ComponentUtil.getSystemHelper().getCurrentTimeAsLong();
if (isDelete) {
badWordBhv.delete(badWord);

View file

@ -49,8 +49,7 @@ public class BoostDocumentRuleService implements Serializable {
// update pager
BeanUtil.copyBeanToBean(boostDocumentRuleList, boostDocumentRulePager, option -> option.include(Constants.PAGER_CONVERSION_RULE));
boostDocumentRulePager.setPageNumberList(boostDocumentRuleList.pageRange(op ->
op.rangeSize(5)).createPageNumberList());
boostDocumentRulePager.setPageNumberList(boostDocumentRuleList.pageRange(op -> op.rangeSize(5)).createPageNumberList());
return boostDocumentRuleList;
}

View file

@ -265,7 +265,7 @@ public class CrawlingInfoService implements Serializable {
list.add("CreatedTime");
csvWriter.writeValues(list);
final DateTimeFormatter formatter = DateTimeFormatter.ofPattern(CoreLibConstants.DATE_FORMAT_ISO_8601_EXTEND);
crawlingInfoParamBhv.selectCursor(cb -> cb.query().matchAll(),new EntityRowHandler<CrawlingInfoParam>() {
crawlingInfoParamBhv.selectCursor(cb -> cb.query().matchAll(), new EntityRowHandler<CrawlingInfoParam>() {
@Override
public void handle(final CrawlingInfoParam entity) {
final List<String> list = new ArrayList<>();