@@ -190,8 +190,7 @@ public void removeAttribute(String string) {
190190 }
191191
192192 /**
193- * Add the given data to the <head> section of the html page to
194- * generate.
193+ * Add the given data to the <head> section of the html page to generate.
195194 *
196195 * @param data data to add. It is copied as is, so remember to escape
197196 * special characters ...
@@ -207,8 +206,7 @@ public void addHeaderData(String data) {
207206 }
208207
209208 /**
210- * Get addition data, which should be added as is to the <head>
211- * section of the html page.
209+ * Get addition data, which should be added as is to the <head> section of the HTML page.
212210 *
213211 * @return an empty string if nothing to add, the data otherwise.
214212 */
@@ -432,10 +430,10 @@ public String canProcess() {
432430 * @return an empty list, if the resource does not exist, is not a directory
433431 * or an error occurred when reading it, otherwise a list of filenames in
434432 * that directory, sorted alphabetically
435- *
436433 * <p>
437434 * For the root directory (/xref/), authorization check is performed for each
438435 * project in case that projects are used.
436+ * </p>
439437 *
440438 * @see #getResourceFile()
441439 * @see #isDir()
@@ -499,8 +497,6 @@ List<String> getSortedFiles(File[] files) {
499497 }
500498
501499 /**
502- * Get the time of last modification of the related file or directory.
503- *
504500 * @return the last modification time of the related file or directory.
505501 * @see File#lastModified()
506502 */
@@ -509,11 +505,10 @@ public long getLastModified() {
509505 }
510506
511507 /**
512- * Get all RSS related directories from the request using its {@code also}
513- * parameter.
508+ * Get all RSS related directories from the request using its {@code also} parameter.
514509 *
515510 * @return an empty string if the requested resource is not a directory, a
516- * space (' ') separated list of unchecked directory names otherwise.
511+ * space (<code> ' '</code> ) separated list of unchecked directory names otherwise.
517512 */
518513 public String getHistoryDirs () {
519514 if (!isDir ()) {
@@ -534,10 +529,8 @@ public String getHistoryDirs() {
534529 * Get the int value of the given request parameter.
535530 *
536531 * @param name name of the parameter to lookup.
537- * @param defaultValue value to return, if the parameter is not set, is not
538- * a number, or is < 0.
539- * @return the parsed int value on success, the given default value
540- * otherwise.
532+ * @param defaultValue value to return, if the parameter is not set, is not a number, or is < 0.
533+ * @return the parsed int value on success, the given default value otherwise.
541534 */
542535 public int getIntParam (String name , int defaultValue ) {
543536 int ret = defaultValue ;
@@ -1107,10 +1100,10 @@ public boolean isUnreadable() {
11071100
11081101 /**
11091102 * Get the file object for the given path.
1110- *
1103+ * <p>
11111104 * NOTE: If a repository contains hard or symbolic links, the returned file
11121105 * may finally point to a file outside the source root directory.
1113- *
1106+ * </p>
11141107 * @param path the path to the file relatively to the source root
11151108 * @return null if the related file or directory is not
11161109 * available (can not be found below the source root directory), the readable file or directory otherwise.
@@ -1127,10 +1120,10 @@ public File getResourceFile(String path) {
11271120
11281121 /**
11291122 * Get the on disk file to the request related file or directory.
1130- *
1123+ * <p>
11311124 * NOTE: If a repository contains hard or symbolic links, the returned file
11321125 * may finally point to a file outside the source root directory.
1133- *
1126+ * </p>
11341127 * @return {@code new File({@link org.opengrok.indexer.index.Indexer#PATH_SEPARATOR_STRING })}
11351128 * if the related file or directory is not available (can not be find below the source root directory),
11361129 * the readable file or directory otherwise.
@@ -1426,10 +1419,8 @@ public File getDataRoot() {
14261419 }
14271420
14281421 /**
1429- * Play nice in reverse proxy environment by using pre-configured hostname
1430- * request to construct the URLs.
1431- * Will not work well if the scheme or port is different for proxied server
1432- * and original server.
1422+ * Play nice in reverse proxy environment by using pre-configured hostname request to construct the URLs.
1423+ * Will not work well if the scheme or port is different for proxied server and original server.
14331424 * @return server name
14341425 */
14351426 public String getServerName () {
@@ -1698,17 +1689,16 @@ private SortedSet<AcceptedMessage> getProjectMessages() {
16981689 * <p>
16991690 * The resource is modified since the weak ETag value in the request, the ETag is
17001691 * computed using:
1701- *
17021692 * <ul>
17031693 * <li>the source file modification</li>
17041694 * <li>project messages</li>
17051695 * <li>last timestamp for index</li>
17061696 * <li>OpenGrok current deployed version</li>
17071697 * </ul>
1708- *
1698+ * </p>
17091699 * <p>
17101700 * If the resource was modified, appropriate headers in the response are filled.
1711- *
1701+ * </p>
17121702 *
17131703 * @param request the http request containing the headers
17141704 * @param response the http response for setting the headers
@@ -1753,9 +1743,8 @@ public static String getRelativePath(String root, String path) {
17531743 }
17541744
17551745 /**
1756- * Determines whether a match offset from a search result has been
1757- * indicated, and if so tries to calculate a translated xref fragment
1758- * identifier.
1746+ * Determines whether a match offset from a search result has been indicated,
1747+ * and if so tries to calculate a translated xref fragment identifier.
17591748 * @return {@code true} if a xref fragment identifier was calculated by the call to this method
17601749 */
17611750 public boolean evaluateMatchOffset () {
0 commit comments