Skip to content

Commit 404c652

Browse files
simpletonfacebook-github-bot
authored andcommitted
Fix the javadoc warnings
Summary: Fix below javadoc warnings: ``` /Users/simsun/fbsource/fbandroid/libraries/soloader/java/com/facebook/soloader/SoSource.java:95: warning: no param for soName protected File getSoFileByName(String soName) throws IOException { ^ /Users/simsun/fbsource/fbandroid/libraries/soloader/java/com/facebook/soloader/SoSource.java:95: warning: no return protected File getSoFileByName(String soName) throws IOException { ^ /Users/simsun/fbsource/fbandroid/libraries/soloader/java/com/facebook/soloader/SoSource.java:95: warning: no throws for java.io.IOException protected File getSoFileByName(String soName) throws IOException { ^ Generating /var/folders/48/qgw4nzlj2p56xl344pd8rfh40000gn/T/tmp7j2fsb_l/com/facebook/soloader/AsyncInitSoSource.html... Generating /var/folders/48/qgw4nzlj2p56xl344pd8rfh40000gn/T/tmp7j2fsb_l/com/facebook/soloader/BackupSoSource.html... /Users/simsun/fbsource/fbandroid/libraries/soloader/java/com/facebook/soloader/UnpackingSoSource.java:484: warning: no throws for java.io.IOException public void prepareForceRefresh() throws IOException { ^ Generating /var/folders/48/qgw4nzlj2p56xl344pd8rfh40000gn/T/ ``` Differential Revision: D52492588 fbshipit-source-id: b38e09417c50fa1a98d2996c45599e89c803a22b
1 parent 13d198a commit 404c652

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Diff for: java/com/facebook/soloader/SoSource.java

+4
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ public abstract int loadLibrary(
9090
/**
9191
* Returns the so file for the specified library. Returns null if the library does not exist or if
9292
* it's not backed by a file.
93+
*
94+
* @param soName Name of library to load
95+
* @return File if library found; {@code null} if not.
96+
* @throws IOException IOException
9397
*/
9498
@Nullable
9599
protected File getSoFileByName(String soName) throws IOException {

Diff for: java/com/facebook/soloader/UnpackingSoSource.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,11 @@ public String getLibraryPath(String soName) throws IOException {
480480
return soFile.getCanonicalPath();
481481
}
482482

483-
/** Prepare this SoSource by unconditonally unpacking/re-unpacking it. */
483+
/**
484+
* Prepare this SoSource by unconditonally unpacking/re-unpacking it.
485+
*
486+
* @throws IOException IOException
487+
*/
484488
public void prepareForceRefresh() throws IOException {
485489
prepare(SoSource.PREPARE_FLAG_FORCE_REFRESH);
486490
}

Diff for: java/com/facebook/soloader/recovery/RecoveryStrategyFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
public interface RecoveryStrategyFactory {
2020
/**
21-
* @returns an instance of RecoveryStrategy that will be used to recover from failures to load a
21+
* @return an instance of RecoveryStrategy that will be used to recover from failures to load a
2222
* native library. The recover method of the returned object might be called multiple times
2323
* until false is returned or until a successfull retry of the load is performed. All calls
2424
* are guaranteed to hapen sequentially, within the context of a single library load. This

0 commit comments

Comments
 (0)