Skip to content

Commit 8d0808d

Browse files
committed
fix style
1 parent b72f9a3 commit 8d0808d

File tree

2 files changed

+17
-3
lines changed
  • opengrok-indexer/src

2 files changed

+17
-3
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/web/Util.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,17 @@
4646
import java.nio.charset.StandardCharsets;
4747
import java.text.DecimalFormat;
4848
import java.text.NumberFormat;
49-
import java.util.*;
49+
import java.util.Arrays;
50+
import java.util.Collection;
51+
import java.util.HashMap;
52+
import java.util.LinkedList;
53+
import java.util.List;
54+
import java.util.Locale;
55+
import java.util.Map;
5056
import java.util.Map.Entry;
57+
import java.util.Objects;
58+
import java.util.Optional;
59+
import java.util.TreeMap;
5160
import java.util.function.IntConsumer;
5261
import java.util.logging.Level;
5362
import java.util.logging.Logger;
@@ -1595,7 +1604,7 @@ private static String buildLinkReplacer(MatchResult result, String text, String
15951604
stringBuilder.append(buildLink(group1, appendedUrl, true));
15961605
stringBuilder.append(text.substring(result.end(1), result.end(0)));
15971606
return stringBuilder.toString();
1598-
} catch (URISyntaxException|MalformedURLException e) {
1607+
} catch (URISyntaxException | MalformedURLException e) {
15991608
LOGGER.log(Level.WARNING, "The given URL ''{0}'' is not valid", appendedUrl);
16001609
return result.group(0);
16011610
}

opengrok-indexer/src/test/java/org/opengrok/indexer/web/UtilTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@
5353

5454
import static org.hamcrest.MatcherAssert.assertThat;
5555
import static org.hamcrest.collection.IsIterableContainingInOrder.contains;
56-
import static org.junit.jupiter.api.Assertions.*;
56+
import static org.junit.jupiter.api.Assertions.assertEquals;
57+
import static org.junit.jupiter.api.Assertions.assertFalse;
58+
import static org.junit.jupiter.api.Assertions.assertNotNull;
59+
import static org.junit.jupiter.api.Assertions.assertNull;
60+
import static org.junit.jupiter.api.Assertions.assertThrows;
61+
import static org.junit.jupiter.api.Assertions.assertTrue;
5762
import static org.opengrok.indexer.condition.RepositoryInstalled.Type.MERCURIAL;
5863

5964
/**

0 commit comments

Comments
 (0)