File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
opengrok-web/src/main/java/org/opengrok/web Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ public void removeAttribute(String string) {
213
213
* special characters ...
214
214
*/
215
215
public void addHeaderData (String data ) {
216
- if (data == null || data .length () == 0 ) {
216
+ if (data == null || data .isEmpty () ) {
217
217
return ;
218
218
}
219
219
if (headLines == null ) {
@@ -976,7 +976,7 @@ private SortedSet<String> getRequestedProjects(
976
976
.stream ()
977
977
.map (Group ::getByName )
978
978
.filter (Objects ::nonNull )
979
- .collect ( Collectors . toList () );
979
+ .toList ();
980
980
groupNames .stream ()
981
981
.map (group -> getProjectHelper ().getAllGrouped (group ))
982
982
.flatMap (Collection ::stream )
@@ -1458,7 +1458,7 @@ public Scripts getScripts() {
1458
1458
public File getDataRoot () {
1459
1459
if (dataRoot == null ) {
1460
1460
String tmp = getEnv ().getDataRootPath ();
1461
- if (tmp == null || tmp .length () == 0 ) {
1461
+ if (tmp == null || tmp .isEmpty () ) {
1462
1462
throw new InvalidParameterException ("dataRoot parameter is not "
1463
1463
+ "set in configuration.xml!" );
1464
1464
}
You can’t perform that action at this time.
0 commit comments