File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
src/main/java/com/contentful/java/cda Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public String mimeType() {
2323 @ SuppressWarnings ("unchecked" )
2424 public <T > T fileField (String key ) {
2525 T result = null ;
26- Map <?, ? > file = getField ("file" );
26+ Map <String , Object > file = getField ("file" );
2727 if (file != null ) {
2828 result = (T ) file .get (key );
2929 }
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ public final class CDAField {
1818
1919 boolean localized ;
2020
21- Map <?, ? > items ;
21+ Map <String , Object > items ;
2222
23- Map <?, ? > validations ;
23+ Map <String , Object > validations ;
2424
2525 public String name () {
2626 return name ;
@@ -50,11 +50,11 @@ public boolean isLocalized() {
5050 return localized ;
5151 }
5252
53- public Map <?, ? > items () {
53+ public Map <String , Object > items () {
5454 return items ;
5555 }
5656
57- public Map <?, ? > validations () {
57+ public Map <String , Object > validations () {
5858 return validations ;
5959 }
6060}
Original file line number Diff line number Diff line change 77
88public abstract class CDAResource {
99 @ SerializedName ("sys" )
10- Map <String , ? > attrs ;
10+ Map <String , Object > attrs ;
1111
1212 public String id () {
1313 return getAttribute ("id" );
@@ -18,7 +18,7 @@ public CDAType type() {
1818 return CDAType .valueOf (type .toUpperCase (LOCALE ));
1919 }
2020
21- public Map <String , ? > attrs () {
21+ public Map <String , Object > attrs () {
2222 return attrs ;
2323 }
2424
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ public abstract class LocalizedResource extends CDAResource {
88
99 String defaultLocale ;
1010
11- Map <String , ? > fields ;
11+ Map <String , Object > fields ;
1212
13- Map <String , ? > rawFields ;
13+ Map <String , Object > rawFields ;
1414
1515 /**
1616 * Extracts a field from the fields set of the active locale, result type is inferred.
@@ -32,7 +32,7 @@ public <T> T getField(String key) {
3232 }
3333
3434 /** Raw unprocessed fields. */
35- public Map <String , ? > rawFields () {
35+ public Map <String , Object > rawFields () {
3636 return rawFields ;
3737 }
3838
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ static CDAType typeForClass(Class<? extends CDAResource> clazz) {
7777 }
7878
7979 @ SuppressWarnings ("unchecked" )
80- static <T > T extractNested (Map <?, ?> source , String ... keys ) {
80+ static <T > T extractNested (Map <?, ?> source , Object ... keys ) {
8181 Map <?, ?> curr = source ;
8282 for (int i = 0 ; i < keys .length ; i ++) {
8383 if (i == keys .length - 1 ) {
You can’t perform that action at this time.
0 commit comments