Skip to content

Commit cd39a5e

Browse files
authored
Update IsEqualCompressingWhiteSpace.java
1 parent c5db21c commit cd39a5e

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

hamcrest/src/main/java/org/hamcrest/text/IsEqualCompressingWhiteSpace.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ public class IsEqualCompressingWhiteSpace extends TypeSafeMatcher<String> {
1717
* enum the whitespace type where SPACE is '\s', TAB is '\t', LINE_FEED is '\n',
1818
* FORM_FEED is '\f', CARRIAGE_RETURN is '\r', MIX is combined type above.
1919
* @author Koko
20-
* @version 0.0.1
21-
* @date 2021/04/26
2220
*/
2321
enum whiteSpaceType
2422
{
@@ -63,9 +61,8 @@ public void describeTo(Description description) {
6361
* besides that replace all whitespace specified by this.type with " "
6462
* strip redundant space between words
6563
* @author Koko
66-
* @version 0.0.1
67-
* @date 2021/04/26
68-
* @Param string to be stripped
64+
* @param toBeStripped
65+
* string to be stripped
6966
* @return: string after stripped
7067
*/
7168
private String stripSpaces(String toBeStripped) {
@@ -119,10 +116,9 @@ public static Matcher<String> equalToCompressingWhiteSpace(String expectedString
119116
/**
120117
* different types of generate string matcher according to whitespace type
121118
* @author Koko
122-
* @version 0.0.1
123-
* @date 2021/04/26
124-
* @Param string to generate matcher
125-
* @return: string matcher
119+
* @param expectedString
120+
* string to generate matcher
121+
* @return string matcher
126122
*/
127123
public static Matcher<String> equalToCompressingSpace(String expectedString) {
128124
return new IsEqualCompressingWhiteSpace(expectedString, whiteSpaceType.SPACE);

0 commit comments

Comments
 (0)