Skip to content

Commit

Permalink
#198 Removed compareTo() in AbbreviatedText
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciofx committed Jan 26, 2018
1 parent 927410c commit 8ffc394
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions src/main/java/org/cactoos/text/AbbreviatedText.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* The MIT License (MIT)
*
* Copyright (c) 2017 Yegor Bugayenko
* Copyright (c) 2017-2018 Yegor Bugayenko
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -33,7 +33,7 @@
*
* @author Fabricio Cabral (fabriciofx@gmail.com)
* @version $Id$
* @since 0.28
* @since 0.29
*/
public final class AbbreviatedText implements Text {

Expand Down Expand Up @@ -132,9 +132,4 @@ public String asString() throws IOException {
}
return abbreviated.asString();
}

@Override
public int compareTo(final Text text) {
return new UncheckedText(this).compareTo(text);
}
}
4 changes: 2 additions & 2 deletions src/test/java/org/cactoos/text/AbbreviatedTextTest.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* The MIT License (MIT)
*
* Copyright (c) 2017 Yegor Bugayenko
* Copyright (c) 2017-2018 Yegor Bugayenko
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -31,7 +31,7 @@
* Test case for {@link AbbreviatedText}.
* @author Fabricio Cabral (fabriciofx@gmail.com)
* @version $Id$
* @since 0.28
* @since 0.29
* @checkstyle JavadocMethodCheck (500 lines)
*/
@SuppressWarnings(
Expand Down

0 comments on commit 8ffc394

Please sign in to comment.