davsclaus commented on code in PR #30282:
URL: https://github.com/apache/camel/pull/30282#discussion_r4601471981
##########
core/camel-support/src/main/java/org/apache/camel/support/processor/idempotent/FileIdempotentRepository.java:
##########
@@ -229,8 +276,25 @@ public File getFileStore() {
return fileStore;
}
+ /**
+ * Sets the file of the repository (incl directory).
+ */
public void setFileStore(File fileStore) {
this.fileStore = fileStore;
+ this.fileName = fileStore != null ? fileStore.getPath() : null;
+ }
+
+ public String getFileName() {
+ return fileName;
Review Comment:
Fixed in 03675278e533: added the Javadoc (with `@param`/`@return`, and the
side effect on the file name / file store).
_Claude Code on behalf of Claus Ibsen_
##########
core/camel-support/src/main/java/org/apache/camel/support/processor/state/FileStateRepository.java:
##########
@@ -321,10 +352,25 @@ public File getFileStore() {
return fileStore;
}
+ /**
+ * Sets the file of the repository (incl directory).
+ */
public void setFileStore(File fileStore) {
this.fileStore = fileStore;
}
+ public String getFileName() {
+ return fileStore != null ? fileStore.getPath() : null;
Review Comment:
Fixed in 03675278e533: added the Javadoc (with `@param`/`@return`, and the
side effect on the file name / file store).
_Claude Code on behalf of Claus Ibsen_
##########
core/camel-support/src/main/java/org/apache/camel/support/processor/idempotent/FileIdempotentRepository.java:
##########
@@ -229,8 +276,25 @@ public File getFileStore() {
return fileStore;
}
+ /**
+ * Sets the file of the repository (incl directory).
+ */
Review Comment:
Fixed in 03675278e533: added the Javadoc (with `@param`/`@return`, and the
side effect on the file name / file store).
_Claude Code on behalf of Claus Ibsen_
##########
core/camel-support/src/main/java/org/apache/camel/support/processor/state/FileStateRepository.java:
##########
@@ -321,10 +352,25 @@ public File getFileStore() {
return fileStore;
}
+ /**
+ * Sets the file of the repository (incl directory).
+ */
Review Comment:
Fixed in 03675278e533: added the Javadoc (with `@param`/`@return`, and the
side effect on the file name / file store).
_Claude Code on behalf of Claus Ibsen_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]