Skip to content

Commit

Permalink
Merge pull request alibaba#3303 from SelfRidicule/master
Browse files Browse the repository at this point in the history
remove extends Object
  • Loading branch information
wenshao committed Jun 30, 2020
2 parents 13ae28e + 074ce1e commit 28678ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/alibaba/fastjson/JSONArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,20 +131,20 @@ public boolean containsAll(Collection<?> c) {
return list.containsAll(c);
}

public boolean addAll(Collection<? extends Object> c) {
public boolean addAll(Collection<?> c) {
return list.addAll(c);
}

public JSONArray fluentAddAll(Collection<? extends Object> c) {
public JSONArray fluentAddAll(Collection<?> c) {
list.addAll(c);
return this;
}

public boolean addAll(int index, Collection<? extends Object> c) {
public boolean addAll(int index, Collection<?> c) {
return list.addAll(index, c);
}

public JSONArray fluentAddAll(int index, Collection<? extends Object> c) {
public JSONArray fluentAddAll(int index, Collection<?> c) {
list.addAll(index, c);
return this;
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/alibaba/fastjson/JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,11 @@ public JSONObject fluentPut(String key, Object value) {
return this;
}

public void putAll(Map<? extends String, ? extends Object> m) {
public void putAll(Map<? extends String, ?> m) {
map.putAll(m);
}

public JSONObject fluentPutAll(Map<? extends String, ? extends Object> m) {
public JSONObject fluentPutAll(Map<? extends String, ?> m) {
map.putAll(m);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public void write(Object o, Type type, MediaType contentType, HttpOutputMessage
* @see org.springframework.http.converter.AbstractHttpMessageConverter#readInternal(java.lang.Class, org.springframework.http.HttpInputMessage)
*/
@Override
protected Object readInternal(Class<? extends Object> clazz, //
protected Object readInternal(Class<?> clazz, //
HttpInputMessage inputMessage //
) throws IOException, HttpMessageNotReadableException {
return readType(getType(clazz, null), inputMessage);
Expand Down

0 comments on commit 28678ad

Please sign in to comment.