mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-23 22:26:01 +00:00
Replace Spring's removed @Required annotation with our own
Spring 6 removed @Required and they suggest using constructor injection instead. If we switched our beans to that we'd break existing Heritrix crawl configs. So this change implements our own basic version so we still get errors when a @Required property is null.
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
package org.archive.crawler.spring;
|
||||
|
||||
import org.archive.modules.deciderules.DecideRule;
|
||||
import org.archive.spring.Required;
|
||||
import org.springframework.beans.factory.BeanNameAware;
|
||||
import org.springframework.beans.factory.annotation.Required;
|
||||
import org.springframework.core.Ordered;
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
package org.archive.crawler.spring;
|
||||
|
||||
import java.util.List;
|
||||
import org.archive.spring.Required;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Required;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* SheetAssociation applied on the basis of matching SURT prefixes.
|
||||
|
||||
Reference in New Issue
Block a user