Merge pull request #3303 from SelfRidicule/master

remove extends Object
This commit is contained in:
温绍锦
2020-06-30 09:42:30 +08:00
committed by GitHub
3 changed files with 7 additions and 7 deletions
@@ -131,20 +131,20 @@ public class JSONArray extends JSON implements List<Object>, Cloneable, RandomAc
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;
}
@@ -352,11 +352,11 @@ public class JSONObject extends JSON implements Map<String, Object>, Cloneable,
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;
}
@@ -250,7 +250,7 @@ public class FastJsonHttpMessageConverter extends AbstractHttpMessageConverter<O
* @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);