Skip to content

Commit d6df743

Browse files
authored
Annotate overrides to suppress warnings in BaseWebPartFactory (#529)
1 parent 6174ce6 commit d6df743

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

SkylineToolsStore/src/org/labkey/skylinetoolsstore/SkylineToolsStoreModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected Collection<WebPartFactory> createWebPartFactories()
7373
addLegacyNames("Skyline Tools Store");
7474
}
7575
@Override
76-
public WebPartView getWebPartView(ViewContext portalCtx, Portal.WebPart webPart) throws WebPartConfigurationException
76+
public WebPartView getWebPartView(@NotNull ViewContext portalCtx, Portal.@NotNull WebPart webPart) throws WebPartConfigurationException
7777
{
7878
return new SkylineToolsStoreWebPart();
7979
}

signup/src/org/labkey/signup/SignUpModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected Collection<WebPartFactory> createWebPartFactories()
6969
BaseWebPartFactory signupWebpart = new BaseWebPartFactory("Sign Up")
7070
{
7171
@Override
72-
public WebPartView getWebPartView(ViewContext portalCtx, Portal.WebPart webPart)
72+
public WebPartView getWebPartView(@NotNull ViewContext portalCtx, Portal.@NotNull WebPart webPart)
7373
{
7474
JspView<SignUpController.SignupForm> view = new JspView("/org/labkey/signup/signupPage.jsp", new SignUpController.SignupForm());
7575
view.setTitle("Sign Up");

testresults/src/org/labkey/testresults/TestResultsWebPart.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.labkey.testresults;
22

3+
import org.jetbrains.annotations.NotNull;
34
import org.labkey.api.data.Container;
45
import org.labkey.api.view.BaseWebPartFactory;
56
import org.labkey.api.view.JspView;
@@ -21,7 +22,7 @@ public TestResultsWebPart()
2122
}
2223

2324
@Override
24-
public WebPartView getWebPartView(ViewContext portalCtx, Portal.WebPart webPart) throws WebPartConfigurationException
25+
public WebPartView getWebPartView(@NotNull ViewContext portalCtx, Portal.@NotNull WebPart webPart) throws WebPartConfigurationException
2526
{
2627
Container c =portalCtx.getContainer();
2728
TestsDataBean bean = null;

0 commit comments

Comments
 (0)