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) {
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 }
You can’t perform that action at this time.
0 commit comments