Skip to content

Commit 70b63d6

Browse files
authored
Remove unnecessary HttpView.currentView() casts in JSPs
Original PR: LabKey/platform#6535
1 parent b7e23ad commit 70b63d6

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

study/src/org/labkey/study/view/studydesign/manageAssaySchedule.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
}
3939
%>
4040
<%
41-
JspView<StudyDesignController.AssayScheduleForm> me = (JspView<StudyDesignController.AssayScheduleForm>) HttpView.currentView();
41+
JspView<StudyDesignController.AssayScheduleForm> me = HttpView.currentView();
4242
StudyDesignController.AssayScheduleForm form = me.getModelBean();
4343
4444
Container c = getContainer();

study/src/org/labkey/study/view/studydesign/manageStudyProducts.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838
%>
3939
<%
40-
JspView<ReturnUrlForm> me = (JspView<ReturnUrlForm>) HttpView.currentView();
40+
JspView<ReturnUrlForm> me = HttpView.currentView();
4141
ReturnUrlForm bean = me.getModelBean();
4242
Container c = getContainer();
4343

study/src/org/labkey/study/view/studydesign/manageTreatments.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<%@ page import="org.labkey.api.study.Study" %>
2222
<%@ page import="org.labkey.api.study.TimepointType" %>
2323
<%@ page import="org.labkey.api.study.Visit" %>
24+
<%@ page import="org.labkey.api.study.security.permissions.ManageStudyPermission" %>
2425
<%@ page import="org.labkey.api.view.ActionURL" %>
2526
<%@ page import="org.labkey.api.view.HttpView" %>
2627
<%@ page import="org.labkey.api.view.JspView" %>
@@ -29,7 +30,6 @@
2930
<%@ page import="org.labkey.study.controllers.StudyController" %>
3031
<%@ page import="org.labkey.study.controllers.StudyDesignController" %>
3132
<%@ page import="org.labkey.study.model.StudyManager" %>
32-
<%@ page import="org.labkey.api.study.security.permissions.ManageStudyPermission" %>
3333
<%@ page extends="org.labkey.api.jsp.JspBase" %>
3434
<%!
3535
@Override
@@ -40,7 +40,7 @@
4040
}
4141
%>
4242
<%
43-
JspView<StudyDesignController.ManageTreatmentsBean> me = (JspView<StudyDesignController.ManageTreatmentsBean>) HttpView.currentView();
43+
JspView<StudyDesignController.ManageTreatmentsBean> me = HttpView.currentView();
4444
StudyDesignController.ManageTreatmentsBean bean = me.getModelBean();
4545
4646
Container c = getContainer();

0 commit comments

Comments
 (0)