Skip to content

Commit 09d5ce1

Browse files
committed
address some nits
1 parent 352ca46 commit 09d5ce1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opengrok-web/src/main/java/org/opengrok/web/PageConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public void removeAttribute(String string) {
213213
* special characters ...
214214
*/
215215
public void addHeaderData(String data) {
216-
if (data == null || data.length() == 0) {
216+
if (data == null || data.isEmpty()) {
217217
return;
218218
}
219219
if (headLines == null) {
@@ -976,7 +976,7 @@ private SortedSet<String> getRequestedProjects(
976976
.stream()
977977
.map(Group::getByName)
978978
.filter(Objects::nonNull)
979-
.collect(Collectors.toList());
979+
.toList();
980980
groupNames.stream()
981981
.map(group -> getProjectHelper().getAllGrouped(group))
982982
.flatMap(Collection::stream)
@@ -1458,7 +1458,7 @@ public Scripts getScripts() {
14581458
public File getDataRoot() {
14591459
if (dataRoot == null) {
14601460
String tmp = getEnv().getDataRootPath();
1461-
if (tmp == null || tmp.length() == 0) {
1461+
if (tmp == null || tmp.isEmpty()) {
14621462
throw new InvalidParameterException("dataRoot parameter is not "
14631463
+ "set in configuration.xml!");
14641464
}

0 commit comments

Comments
 (0)