-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Added JavaDoc comments to few methods and classes #1025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| public static RefWatcher getRefWatcher(Context context) { | ||
| CommonsApplication application = (CommonsApplication) context.getApplicationContext(); | ||
| return application.refWatcher; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason to have moved this method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto code clean up may have been the cause of it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please move it back? It was intentionally just below the refWatcher declaration.
You can use the page https://github.com/commons-app/apps-android-commons/pull/1025/files to see exactly what you changed :-) Thanks!
| import java.util.Map; | ||
|
|
||
| /** | ||
| * Represents LicenseList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A list of licenses, actually :-)
Would you mind correcting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem I will change it
| } | ||
|
|
||
| /** | ||
| * Modifies tag of media |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or create
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All your suggestions have been fulfilled I guess
| import java.util.Map; | ||
|
|
||
| /** | ||
| * Represents a list of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing a word I guess?
| } | ||
|
|
||
| /** | ||
| * Encodes given URL in UTF-8 format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tricky, please write "URLEncode an URL and make its first character uppercase".
| /** | ||
| * Encodes given URL in UTF-8 format | ||
| * @param url Unformatted URL | ||
| * @return Formatted URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Encoded URL"
| * | ||
| * @param context Activity context | ||
| */ | ||
| public static void startYourself(Context context) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this method back where it was too, thanks!
| } | ||
|
|
||
| /** | ||
| * Interface used create on clicked callback(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am actually not sure what this method does, so can you please remove the Javadoc? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are mentioning that destroy item comment or the one for interface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove the Javadoc of "public interface Callback {", thanks! :-)
| */ | ||
| public String getName() { | ||
| return name; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put all of these methods back where they were, thanks!
| + ");"; | ||
|
|
||
| /** | ||
| * Creates new database with provided SQLite database |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Create new table in provided SQLite database"
| } | ||
|
|
||
| /** | ||
| * Deletes existing database |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete existing table
| } | ||
|
|
||
| /** | ||
| * Logs in false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what this does, so please remove this javadoc, thanks!
| } | ||
|
|
||
| /** | ||
| * Computes arc length between 2 points |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good! :-)
| } | ||
|
|
||
| /** | ||
| * Gets twice the amount of arc sine of (x)^(1/2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Calculate the inverse haversine of an angle. See https://en.wikipedia.org/wiki/Haversine_formula"
| /** | ||
| * Computes square sine function for half of the value entered | ||
| * @param x Angle in radians | ||
| * @return One-forth of square of sine function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not exactly ;-) You can leave this one empty.
| } | ||
|
|
||
| /** | ||
| * Computes square sine function for half of the value entered |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Compute haversine"
build.gradle
Outdated
| } | ||
| dependencies { | ||
| classpath "com.android.tools.build:gradle:${project.gradleVersion}" | ||
| classpath 'com.android.tools.build:gradle:3.0.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intended?
| return ""; | ||
| } | ||
| // FIXME: Gross hack bercause my regex skills suck maybe or I am too lazy who knows | ||
| // FIXME: Gross hack because my regex skills suck maybe or I am too lazy who knows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected according to your suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
??
Added JavaDoc comments to few Java classes.