Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
austin007008 committed Nov 22, 2024
1 parent 630383f commit c3b02db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static SummarySize from(String string) {

SummarySize summarySize = new SummarySize();

try{
try {
String[] parameterParts = string.split(Constants.FORWARD_SLASH);
// add the size
summarySize.summarySize = Integer.parseInt(parameterParts[0]);
Expand All @@ -76,7 +76,7 @@ public static SummarySize from(String string) {
}
Collections.addAll(summarySize.contentNamesList, parameterParts[2].split(Constants.COMMA));
}
}catch (Exception e) {
} catch (Exception e) {
summarySize = new SummarySize();
summarySize.summarySize = DEFAULT_SIZE;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private static void addExcerptsToDocument(Set<Summary> summaries, Document docum
Attributes summaryAttribute = new Attributes(true);

for (Summary summary : summaries) {
if(!summary.isEmpty()){
if (!summary.isEmpty()) {
Content contentSummary = new Content(summary.getSummary(), summary.getSource(), true);
summaryAttribute.add(contentSummary);
}
Expand Down

0 comments on commit c3b02db

Please sign in to comment.