Skip to content

Commit 17f3247

Browse files
committed
improve style
1 parent f3e1cd6 commit 17f3247

File tree

1 file changed

+4
-6
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/search

1 file changed

+4
-6
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/search/Results.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,13 @@ private static String getTags(File basedir, String path, boolean compressed) {
122122
} catch (Exception e) {
123123
String fnm = compressed ? TandemPath.join(basedir + path, ".gz") :
124124
basedir + path;
125-
LOGGER.log(Level.WARNING, "An error reading tags from " + fnm, e);
125+
LOGGER.log(Level.WARNING, String.format("An error reading tags from '%s'", fnm), e);
126126
}
127127
return "";
128128
}
129129

130130
/** Return a reader for the specified xref file. */
131-
private static Reader getXrefReader(
132-
File basedir, String path, boolean compressed)
133-
throws IOException {
131+
private static Reader getXrefReader(File basedir, String path, boolean compressed) throws IOException {
134132
/*
135133
* For backward compatibility, read the OpenGrok-produced document
136134
* using the system default charset.
@@ -165,9 +163,9 @@ private static Reader getXrefReader(
165163
* @throws IOException I/O exception
166164
* @throws ClassNotFoundException class not found
167165
*/
168-
public static void prettyPrint(Writer out, SearchHelper sh, int start,
169-
long end)
166+
public static void prettyPrint(Writer out, SearchHelper sh, int start, long end)
170167
throws HistoryException, IOException, ClassNotFoundException {
168+
171169
Project p;
172170
String contextPath = sh.getContextPath();
173171
String ctxE = Util.uriEncodePath(contextPath);

0 commit comments

Comments
 (0)