Polish codacy warning: fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

This commit is contained in:
igor-suhorukov 2018-02-16 10:38:21 +03:00 committed by Juergen Hoeller
parent 2be4985b8f
commit d5b0df8c3f
1 changed files with 3 additions and 4 deletions

View File

@ -70,6 +70,9 @@ import org.springframework.util.xml.StaxUtils;
*/
public abstract class AbstractMarshaller implements Marshaller, Unmarshaller {
private static final EntityResolver NO_OP_ENTITY_RESOLVER =
(publicId, systemId) -> new InputSource(new StringReader(""));
/** Logger available to subclasses */
protected final Log logger = LogFactory.getLog(getClass());
@ -604,8 +607,4 @@ public abstract class AbstractMarshaller implements Marshaller, Unmarshaller {
protected abstract Object unmarshalReader(Reader reader)
throws XmlMappingException, IOException;
private static final EntityResolver NO_OP_ENTITY_RESOLVER =
(publicId, systemId) -> new InputSource(new StringReader(""));
}