Skip to content

Commit

Permalink
3.0.22 - Reintroduce constructors in Expand
Browse files Browse the repository at this point in the history
  • Loading branch information
saw303 committed Sep 1, 2023
1 parent 5fdd47c commit dd74ed0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {

subprojects { subproject ->

version = "3.0.21"
version = "3.0.22"

apply plugin: 'com.github.ben-manes.versions'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class RestApiPlugin implements Plugin<Project> {

project.configurations.maybeCreate(CONFIGURATION_REST_API)

final String pluginVersion = "3.0.21"
final String pluginVersion = "3.0.22"
final String libPhoneNumberVersion = "8.11.5"

final List<String> deps = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,7 @@ private void attachExpandedGetsBody(

Object result = executableMethod.invoke(bean, argumentList);

Expand expandedData = new Expand();
expandedData.setName(expandName);
Expand expandedData = new Expand(expandName);

if (result instanceof Collection) {
expandedData.setData((List<ResourceModel>) result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ public class Expand {

public Expand() {}

public Expand(String name) {
this.name = name;
}

public Expand(String name, List<ResourceModel> data) {
this.name = name;
this.data = data;
}

public String getName() {
return name;
}
Expand Down

0 comments on commit dd74ed0

Please sign in to comment.