Skip to content

Commit b617969

Browse files
authored
Remove unnecessary HttpView.currentView() casts in JSPs (#223)
1 parent d1b03b3 commit b617969

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

hdrl/src/org/labkey/hdrl/view/editRequest.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
%>
3636
<%
37-
JspView<HDRLController.RequestForm> me = (JspView<HDRLController.RequestForm>)HttpView.currentView();
37+
JspView<HDRLController.RequestForm> me = HttpView.currentView();
3838
ViewContext ctx = getViewContext();
3939
Container c = getContainer();
4040
User user = getUser();

hdrl/src/org/labkey/hdrl/view/sensitiveData.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<%@ page extends="org.labkey.api.jsp.JspBase" %>
2323
<%@ taglib prefix="labkey" uri="http://www.labkey.org/taglib" %>
2424
<%
25-
JspView<HDRLController.SensitiveDataForm> sensitiveDataFormJspView = (JspView<HDRLController.SensitiveDataForm>)HttpView.currentView();
25+
JspView<HDRLController.SensitiveDataForm> sensitiveDataFormJspView = HttpView.currentView();
2626
HDRLController.SensitiveDataForm bean = sensitiveDataFormJspView.getModelBean();
2727
String timeWindow = String.valueOf(bean.getTimeWindowInDays());
2828
%>

pepdb/src/org/scharp/atlas/pepdb/view/importPeptides.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<%@ page extends="org.labkey.api.jsp.JspBase" %>
88
<div>
99
<%
10-
JspView<FileForm> me = (JspView<FileForm>) HttpView.currentView();
10+
JspView<FileForm> me = HttpView.currentView();
1111
FileForm bean = me.getModelBean();
1212
%>
1313
<labkey:errors/>

pepdb/src/org/scharp/atlas/pepdb/view/importPools.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<%@ page extends="org.labkey.api.jsp.JspBase" %>
77
<div>
88
<%
9-
JspView<PepDBController.FileForm> me = (JspView<PepDBController.FileForm>) HttpView.currentView();
9+
JspView<PepDBController.FileForm> me = HttpView.currentView();
1010
PepDBController.FileForm bean = me.getModelBean();
1111
%>
1212

pepdb/src/org/scharp/atlas/pepdb/view/peptideDetails.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<%@ page import="org.scharp.atlas.pepdb.model.Source" %>
99
<%@ page extends="org.labkey.api.jsp.JspBase" %>
1010
<%
11-
JspView<PeptideQueryForm> me = (JspView<PeptideQueryForm>) HttpView.currentView();
11+
JspView<PeptideQueryForm> me = HttpView.currentView();
1212
PeptideQueryForm bean = me.getModelBean();
1313
%>
1414
<table>

pepdb/src/org/scharp/atlas/pepdb/view/peptideGroupSelect.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<%@ page import="org.scharp.atlas.pepdb.model.ProteinCategory" %>
1111
<%@ page extends="org.labkey.api.jsp.JspBase" %>
1212
<%
13-
JspView<PeptideQueryForm> me = (JspView<PeptideQueryForm>) HttpView.currentView();
13+
JspView<PeptideQueryForm> me = HttpView.currentView();
1414
PeptideQueryForm bean = me.getModelBean();
1515
if(bean.getMessage() != null){
1616
%>

0 commit comments

Comments
 (0)