Skip to content

Commit dc1f06d

Browse files
committed
Fix indentation
1 parent 0ab5df4 commit dc1f06d

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

src/org/opensolaris/opengrok/analysis/CtagsReader.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ private static String cutPattern(String tagLine, int startTab, int endTab) {
378378
* Adds a tag to a {@code Definitions} instance.
379379
*/
380380
private void addTag(Definitions defs, int lineno, String symbol,
381-
String type, String text, String namespace, String signature,
382-
int lineStart, int lineEnd) {
381+
String type, String text, String namespace, String signature,
382+
int lineStart, int lineEnd) {
383383
// The strings are frequently repeated (a symbol can be used in
384384
// multiple definitions, multiple definitions can have the same type,
385385
// one line can contain multiple definitions). Intern them to minimize
@@ -397,9 +397,7 @@ private void addTag(Definitions defs, int lineno, String symbol,
397397
* syntax.
398398
* @return a defined instance
399399
*/
400-
private CpatIndex bestIndexOfTag(int lineno, String whole,
401-
String str) {
402-
400+
private CpatIndex bestIndexOfTag(int lineno, String whole, String str) {
403401
if (whole.length() < 1) {
404402
return new CpatIndex(lineno, 0, 1, true);
405403
}

src/org/opensolaris/opengrok/analysis/plain/DefinitionsTokenStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class DefinitionsTokenStream extends TokenStream {
6666
* @throws IOException if I/O error occurs
6767
*/
6868
public void initialize(Definitions defs, StreamSource src,
69-
ReaderWrapper wrapper) throws IOException {
69+
ReaderWrapper wrapper) throws IOException {
7070
if (defs == null) {
7171
throw new IllegalArgumentException("`defs' is null");
7272
}

test/org/opensolaris/opengrok/analysis/plain/DefinitionsTokenStreamTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private void testDefinitionsVsContent(boolean expandTabs,
116116
String source;
117117
try (Reader rdr = ExpandTabsReader.wrap(
118118
IOUtils.createBOMStrippedReader(src.getStream(),
119-
StandardCharsets.UTF_8.name()), tabSize)) {
119+
StandardCharsets.UTF_8.name()), tabSize)) {
120120
int c;
121121
while ((c = rdr.read()) != -1) {
122122
bld.append((char)c);
@@ -158,8 +158,8 @@ private void testDefinitionsVsContent(boolean expandTabs,
158158

159159
boolean cutContainsTerm = cutValue.endsWith(termValue);
160160
assertTrue("cut term" + count + " at " +
161-
(offs.startOffset()) + "-" + (offs.endOffset()) + "["
162-
+ cutValue + "] vs [" + termValue + "]", cutContainsTerm);
161+
(offs.startOffset()) + "-" + (offs.endOffset()) + "[" +
162+
cutValue + "] vs [" + termValue + "]", cutContainsTerm);
163163
}
164164

165165
assertEquals("token count", expectedCount, count);

0 commit comments

Comments
 (0)