From 7fe5e3591449637f9f8dbaf002f2d6efb6c80d3b Mon Sep 17 00:00:00 2001 From: Andrius Semionovas Date: Thu, 22 Mar 2018 22:29:01 +0200 Subject: [PATCH] Cleanup comments --- .../main/java/lt/neworld/spanner/AbsoluteSizeSpanBuilder.kt | 4 ---- lib/src/main/java/lt/neworld/spanner/AlignmentSpanBuilder.kt | 4 ---- lib/src/main/java/lt/neworld/spanner/BulletSpanBuilder.kt | 5 ----- lib/src/main/java/lt/neworld/spanner/ClickSpanBuilder.kt | 4 ---- lib/src/main/java/lt/neworld/spanner/ColorSpanBuilder.kt | 4 ---- lib/src/main/java/lt/neworld/spanner/ImageSpan.kt | 4 ---- lib/src/main/java/lt/neworld/spanner/ImageSpanBuilder.kt | 4 ---- .../main/java/lt/neworld/spanner/LeadingMarginSpanBuilder.kt | 4 ---- lib/src/main/java/lt/neworld/spanner/QuoteSpanBuilder.kt | 4 ---- lib/src/main/java/lt/neworld/spanner/Span.kt | 4 ---- lib/src/main/java/lt/neworld/spanner/SpanBuilder.java | 5 ----- lib/src/main/java/lt/neworld/spanner/Spanner.kt | 4 ---- lib/src/main/java/lt/neworld/spanner/Spans.java | 5 ----- lib/src/main/java/lt/neworld/spanner/StyleSpanBuilder.kt | 5 ----- 14 files changed, 60 deletions(-) diff --git a/lib/src/main/java/lt/neworld/spanner/AbsoluteSizeSpanBuilder.kt b/lib/src/main/java/lt/neworld/spanner/AbsoluteSizeSpanBuilder.kt index 095f2bc..b401d0e 100644 --- a/lib/src/main/java/lt/neworld/spanner/AbsoluteSizeSpanBuilder.kt +++ b/lib/src/main/java/lt/neworld/spanner/AbsoluteSizeSpanBuilder.kt @@ -2,10 +2,6 @@ package lt.neworld.spanner import android.text.style.AbsoluteSizeSpan -/** - * @author Andrius Semionovas - * @since 2017-10-11 - */ internal class AbsoluteSizeSpanBuilder(private val size: Int, private val dip: Boolean) : SpanBuilder { override fun build(): Any = AbsoluteSizeSpan(size, dip) } \ No newline at end of file diff --git a/lib/src/main/java/lt/neworld/spanner/AlignmentSpanBuilder.kt b/lib/src/main/java/lt/neworld/spanner/AlignmentSpanBuilder.kt index d52af3d..23be9f2 100644 --- a/lib/src/main/java/lt/neworld/spanner/AlignmentSpanBuilder.kt +++ b/lib/src/main/java/lt/neworld/spanner/AlignmentSpanBuilder.kt @@ -3,10 +3,6 @@ package lt.neworld.spanner import android.text.Layout import android.text.style.AlignmentSpan -/** - * @author Andrius Semionovas - * @since 2017-10-11 - */ internal class AlignmentSpanBuilder(private val alignment: Layout.Alignment) : SpanBuilder { override fun build(): Any = AlignmentSpan.Standard(alignment) } \ No newline at end of file diff --git a/lib/src/main/java/lt/neworld/spanner/BulletSpanBuilder.kt b/lib/src/main/java/lt/neworld/spanner/BulletSpanBuilder.kt index 999f1ca..b5918e3 100644 --- a/lib/src/main/java/lt/neworld/spanner/BulletSpanBuilder.kt +++ b/lib/src/main/java/lt/neworld/spanner/BulletSpanBuilder.kt @@ -3,11 +3,6 @@ package lt.neworld.spanner import android.support.annotation.ColorInt import android.text.style.BulletSpan -/** - * @author Andrius Semionovas - * @since 2017-10-11 - */ - internal class BulletSpanBuilder(private val gapWidth: Int?, @ColorInt private val color: Int?) : SpanBuilder { override fun build(): Any { return if (gapWidth != null && color != null) { diff --git a/lib/src/main/java/lt/neworld/spanner/ClickSpanBuilder.kt b/lib/src/main/java/lt/neworld/spanner/ClickSpanBuilder.kt index 2637627..6b3a7ea 100644 --- a/lib/src/main/java/lt/neworld/spanner/ClickSpanBuilder.kt +++ b/lib/src/main/java/lt/neworld/spanner/ClickSpanBuilder.kt @@ -3,10 +3,6 @@ package lt.neworld.spanner import android.text.style.ClickableSpan import android.view.View -/** - * @author Andrius Semionovas - * @since 2017-10-11 - */ internal class ClickSpanBuilder(private val clickListener: View.OnClickListener) : SpanBuilder { override fun build(): Any = EasyClickableSpan(clickListener) diff --git a/lib/src/main/java/lt/neworld/spanner/ColorSpanBuilder.kt b/lib/src/main/java/lt/neworld/spanner/ColorSpanBuilder.kt index e2ca779..02028c4 100644 --- a/lib/src/main/java/lt/neworld/spanner/ColorSpanBuilder.kt +++ b/lib/src/main/java/lt/neworld/spanner/ColorSpanBuilder.kt @@ -4,10 +4,6 @@ import android.support.annotation.ColorInt import android.text.style.BackgroundColorSpan import android.text.style.ForegroundColorSpan -/** - * @author Andrius Semionovas - * @since 2017-10-11 - */ internal class ColorSpanBuilder(private val type: Int, @ColorInt private val color: Int) : SpanBuilder { override fun build(): Any { return when (type) { diff --git a/lib/src/main/java/lt/neworld/spanner/ImageSpan.kt b/lib/src/main/java/lt/neworld/spanner/ImageSpan.kt index e71c09d..d21c09a 100644 --- a/lib/src/main/java/lt/neworld/spanner/ImageSpan.kt +++ b/lib/src/main/java/lt/neworld/spanner/ImageSpan.kt @@ -1,7 +1,3 @@ package lt.neworld.spanner -/** - * @author Andrius Semionovas - * @since 2017-10-01 - */ class ImageSpan internal constructor(builder: SpanBuilder) : Span(builder) diff --git a/lib/src/main/java/lt/neworld/spanner/ImageSpanBuilder.kt b/lib/src/main/java/lt/neworld/spanner/ImageSpanBuilder.kt index fdff718..0738c3f 100644 --- a/lib/src/main/java/lt/neworld/spanner/ImageSpanBuilder.kt +++ b/lib/src/main/java/lt/neworld/spanner/ImageSpanBuilder.kt @@ -5,10 +5,6 @@ import android.graphics.drawable.Drawable import android.text.style.DrawableMarginSpan import android.text.style.IconMarginSpan -/** - * @author Andrius Semionovas - * @since 2017-10-11 - */ internal class ImageSpanBuilder(private val drawable: Drawable?, private val bitmap: Bitmap?, private val pad: Int?) : SpanBuilder { override fun build(): Any { return if (drawable != null && pad != null) { diff --git a/lib/src/main/java/lt/neworld/spanner/LeadingMarginSpanBuilder.kt b/lib/src/main/java/lt/neworld/spanner/LeadingMarginSpanBuilder.kt index f8b64f7..f019470 100644 --- a/lib/src/main/java/lt/neworld/spanner/LeadingMarginSpanBuilder.kt +++ b/lib/src/main/java/lt/neworld/spanner/LeadingMarginSpanBuilder.kt @@ -2,10 +2,6 @@ package lt.neworld.spanner import android.text.style.LeadingMarginSpan -/** - * @author Andrius Semionovas - * @since 2017-10-11 - */ internal class LeadingMarginSpanBuilder(private val everyOrFirst: Int, private val rest: Int?) : SpanBuilder { override fun build(): Any { return if (rest != null) { diff --git a/lib/src/main/java/lt/neworld/spanner/QuoteSpanBuilder.kt b/lib/src/main/java/lt/neworld/spanner/QuoteSpanBuilder.kt index b6dbd06..93b0755 100644 --- a/lib/src/main/java/lt/neworld/spanner/QuoteSpanBuilder.kt +++ b/lib/src/main/java/lt/neworld/spanner/QuoteSpanBuilder.kt @@ -3,10 +3,6 @@ package lt.neworld.spanner import android.support.annotation.ColorInt import android.text.style.QuoteSpan -/** - * @author Andrius Semionovas - * @since 2017-10-11 - */ internal class QuoteSpanBuilder(@ColorInt private val color: Int?) : SpanBuilder { override fun build(): Any { return if (color == null) { diff --git a/lib/src/main/java/lt/neworld/spanner/Span.kt b/lib/src/main/java/lt/neworld/spanner/Span.kt index d5e5240..9a40f8b 100644 --- a/lib/src/main/java/lt/neworld/spanner/Span.kt +++ b/lib/src/main/java/lt/neworld/spanner/Span.kt @@ -1,9 +1,5 @@ package lt.neworld.spanner -/** - * @author Andrius Semionovas - * @since 2017-10-01 - */ open class Span internal constructor(private val builder: SpanBuilder) { internal fun buildSpan() = builder.build() } diff --git a/lib/src/main/java/lt/neworld/spanner/SpanBuilder.java b/lib/src/main/java/lt/neworld/spanner/SpanBuilder.java index 9b12b22..f464044 100644 --- a/lib/src/main/java/lt/neworld/spanner/SpanBuilder.java +++ b/lib/src/main/java/lt/neworld/spanner/SpanBuilder.java @@ -1,10 +1,5 @@ package lt.neworld.spanner; -/** - * @author Andrius Semionovas - * @since 2017-10-01 - */ - public interface SpanBuilder { Object build(); } diff --git a/lib/src/main/java/lt/neworld/spanner/Spanner.kt b/lib/src/main/java/lt/neworld/spanner/Spanner.kt index 1803818..751e6bd 100644 --- a/lib/src/main/java/lt/neworld/spanner/Spanner.kt +++ b/lib/src/main/java/lt/neworld/spanner/Spanner.kt @@ -4,10 +4,6 @@ import android.support.annotation.RequiresApi import android.text.SpannableStringBuilder import android.text.TextUtils -/** - * @author Andrius Semionovas - * @since 2017-08-01 - */ class Spanner(text: CharSequence?) : SpannableStringBuilder(text) { constructor() : this("") diff --git a/lib/src/main/java/lt/neworld/spanner/Spans.java b/lib/src/main/java/lt/neworld/spanner/Spans.java index 9f2ccd4..052c421 100644 --- a/lib/src/main/java/lt/neworld/spanner/Spans.java +++ b/lib/src/main/java/lt/neworld/spanner/Spans.java @@ -39,11 +39,6 @@ import android.widget.TextView; import java.util.Locale; -/** - * @author Andrius Semionovas - * @since 2017-10-01 - */ - public class Spans { private Spans() { //hide diff --git a/lib/src/main/java/lt/neworld/spanner/StyleSpanBuilder.kt b/lib/src/main/java/lt/neworld/spanner/StyleSpanBuilder.kt index c7482bb..31fead7 100644 --- a/lib/src/main/java/lt/neworld/spanner/StyleSpanBuilder.kt +++ b/lib/src/main/java/lt/neworld/spanner/StyleSpanBuilder.kt @@ -3,11 +3,6 @@ package lt.neworld.spanner import android.text.style.StyleSpan import java.util.* -/** - * @author Andrius Semionovas - * @since 2017-10-11 - */ - internal class StyleSpanBuilder(private val style: Int) : SpanBuilder { override fun build(): Any = StyleSpan(style) }