mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-27 08:05:46 +00:00
Avoid exception - "org.springframework.beans.NotWritablePropertyException:
Invalid property 'timeoutSeconds' of bean class
[org.archive.modules.fetcher.FetchFTP]: Bean property 'timeoutSeconds' is not
writable or has an invalid setter method. Does the parameter type of the setter
match the return type of the getter?"
* FetchFTP.java
change setTimeoutSeconds(Integer) to setTimeoutSeconds(int)
This commit is contained in:
@@ -201,7 +201,7 @@ public class FetchFTP extends Processor {
|
||||
public int getTimeoutSeconds() {
|
||||
return (Integer) kp.get("timeoutSeconds");
|
||||
}
|
||||
public void setTimeoutSeconds(Integer timeout) {
|
||||
public void setTimeoutSeconds(int timeout) {
|
||||
kp.put("timeoutSeconds",timeout);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user