Skip to content

Commit b68a057

Browse files
authored
Schema bump to 21.000 (#37)
1 parent be445e6 commit b68a057

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

demo/src/org/labkey/demo/DemoModule.java

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
import org.labkey.demo.model.Person;
3333
import org.labkey.demo.view.DemoWebPart;
3434

35-
import java.util.ArrayList;
3635
import java.util.Collection;
3736
import java.util.Collections;
3837
import java.util.LinkedList;
38+
import java.util.List;
3939
import java.util.Set;
4040

4141

@@ -50,7 +50,7 @@ public String getName()
5050
@Override
5151
public @Nullable Double getSchemaVersion()
5252
{
53-
return 20.000;
53+
return 21.000;
5454
}
5555

5656
@Override
@@ -63,18 +63,20 @@ protected void init()
6363
@NotNull
6464
protected Collection<WebPartFactory> createWebPartFactories()
6565
{
66-
return new ArrayList<>(Collections.singletonList(new BaseWebPartFactory("Demo Summary", WebPartFactory.LOCATION_BODY, WebPartFactory.LOCATION_RIGHT)
67-
{
66+
return List.of(
67+
new BaseWebPartFactory("Demo Summary", WebPartFactory.LOCATION_BODY, WebPartFactory.LOCATION_RIGHT)
6868
{
69-
addLegacyNames("Narrow Demo Summary");
70-
}
69+
{
70+
addLegacyNames("Narrow Demo Summary");
71+
}
7172

72-
@Override
73-
public WebPartView getWebPartView(@NotNull ViewContext portalCtx, @NotNull Portal.WebPart webPart)
74-
{
75-
return new DemoWebPart();
73+
@Override
74+
public WebPartView<?> getWebPartView(@NotNull ViewContext portalCtx, @NotNull Portal.WebPart webPart)
75+
{
76+
return new DemoWebPart();
77+
}
7678
}
77-
}));
79+
);
7880
}
7981

8082
@Override

0 commit comments

Comments
 (0)