mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Polish: anonymous inner classes containing only one method should become lambdas,
use getOrDefault instead of ternary operator
This commit is contained in:
committed by
Juergen Hoeller
parent
aa4bcedad3
commit
2be4985b8f
@@ -605,11 +605,7 @@ public abstract class AbstractMarshaller implements Marshaller, Unmarshaller {
|
||||
throws XmlMappingException, IOException;
|
||||
|
||||
|
||||
private static final EntityResolver NO_OP_ENTITY_RESOLVER = new EntityResolver() {
|
||||
@Override
|
||||
public InputSource resolveEntity(String publicId, String systemId) {
|
||||
return new InputSource(new StringReader(""));
|
||||
}
|
||||
};
|
||||
private static final EntityResolver NO_OP_ENTITY_RESOLVER =
|
||||
(publicId, systemId) -> new InputSource(new StringReader(""));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user