Hi there, when I was reading the code of the function "private void renameFile(File file, File dest)" in spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Repackager.java, I found it has no Javadoc. My understand is “rename the given file info to the reference in the file. @param file the file to use for. @param dest the destination". Can you check if this is correct? Thanks.

Comment From: 129124

Besides, I also want to add javadoc "return true if any lock exists within dir for this resource." to the funcion "private boolean exists(String resourceLocation)" in spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/mock/web/SpringBootMockServletContext.java. Can you please check if this is correct? Thanks.

Comment From: 129124

Furthermore, my understanding of function "private boolean hasValidSignature(Token token, String key)" in spring-boot/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/servlet/TokenValidator.java is " checks whether the given signature for the uri.@param token the token value to be processed @param key the key with a unnique handle", Can you please also check if this is correct? Thanks.

Comment From: snicoll

@129124 the issue tracker is not a good place to questions and chatting about multiple topics in a single issue. If you want to understand the codebase please come chat with the community on Gitter. If you have questions, please ask on StackOverflow. See Getting Help in this project's README.

My understand is “rename the given file info to the reference in the file. @param file the file to use for. @param dest the destination". Can you check if this is correct? Thanks.

The method merely calls java.io.File#renameTo and throws an exception if the renaming fails. As such, it is a wrapper around the core JDK method. We don't usually add Javadoc to private methods