Skip to content

Commit 50ce45b

Browse files
remove usages of HtmlView(String,String)
1 parent 9558a1d commit 50ce45b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/SequenceAnalysisController.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public ModelAndView getView(FastqcForm form, BindException errors) throws Except
309309

310310
if (files.size() == 0)
311311
{
312-
return new HtmlView("Error: either no files provided or the files did not exist on the server");
312+
return HtmlView.of("Error: either no files provided or the files did not exist on the server");
313313
}
314314

315315
FastqcRunner runner = new FastqcRunner(null);
@@ -324,7 +324,7 @@ public ModelAndView getView(FastqcForm form, BindException errors) throws Except
324324
}
325325
catch (FileNotFoundException e)
326326
{
327-
return new HtmlView("Error: " + e.getMessage());
327+
return HtmlView.of("Error: " + e.getMessage());
328328
}
329329
}
330330

@@ -506,7 +506,7 @@ public ModelAndView getConfirmView(Object o, BindException errors) throws Except
506506
{
507507
setTitle("Find Orphan Sequence Files");
508508

509-
HtmlView view = new HtmlView("This will start a pipeline job that will inspect all files in this folder to identify potential orphan or otherwise unnecessary files. Do you want to continue?");
509+
HtmlView view = HtmlView.of("This will start a pipeline job that will inspect all files in this folder to identify potential orphan or otherwise unnecessary files. Do you want to continue?");
510510
return view;
511511
}
512512

@@ -544,7 +544,7 @@ public ModelAndView getConfirmView(Object form, BindException errors) throws Exc
544544
throw new UnauthorizedException("This can only be used from the root container");
545545
}
546546

547-
return new HtmlView("This will calculate the sequence length field for any reference NT sequences lacking it. Do you want to continue?");
547+
return HtmlView.of("This will calculate the sequence length field for any reference NT sequences lacking it. Do you want to continue?");
548548
}
549549

550550
@Override

cluster/src/org/labkey/cluster/ClusterController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public URLHelper getSuccessURL(Object form)
8888
@Override
8989
public ModelAndView getConfirmView(Object form, BindException errors) throws Exception
9090
{
91-
return new HtmlView("This will run a very simple test pipeline job against all configured cluster engines. This is designed to help make sure your site's configuration is functional. Do you want to continue?<br><br>");
91+
return HtmlView.of("This will run a very simple test pipeline job against all configured cluster engines. This is designed to help make sure your site's configuration is functional. Do you want to continue?<br><br>");
9292
}
9393

9494
@Override

0 commit comments

Comments
 (0)