Skip to content

Commit

Permalink
Add Javadoc before fill method
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinMoskala committed Feb 7, 2017
1 parent 401b9cd commit 28df4b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ internal class ActivityBinding(element: TypeElement) : IntentBinding(element) {

override fun createFillFieldsMethod(): MethodSpec {
val builder = MethodSpec.methodBuilder("fill")
.addJavadoc("This is method used to fill Activity fields. Use it by calling ActivityStarter.fill(this).")
.addParameter(targetTypeName, "activity")
.addModifiers(PUBLIC, STATIC)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ internal class FragmentBinding(element: TypeElement) : ClassBinding(element) {

override fun createFillFieldsMethod(): MethodSpec {
val builder = MethodSpec.methodBuilder("fill")
.addJavadoc("This is method used to fill Fragment fields. Use it by calling ActivityStarter.fill(this).")
.addParameter(targetTypeName, "fragment")
.addModifiers(PUBLIC, STATIC)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ internal class ServiceBinding(element: TypeElement) : IntentBinding(element) {

override fun createFillFieldsMethod(): MethodSpec {
val builder = MethodSpec.methodBuilder("fill")
.addJavadoc("This is method used to fill Service fields. Use it by calling ActivityStarter.fill(this).")
.addParameter(targetTypeName, "service")
.addParameter(INTENT, "intent")
.addModifiers(PUBLIC, STATIC)
Expand Down

0 comments on commit 28df4b3

Please sign in to comment.