Skip to content

Commit b3bd78a

Browse files
author
joeretro
committed
Deleted redundant matchers (not required with Java5).
1 parent e8ede1d commit b3bd78a

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

‎src/library/org/hamcrest/Matchers.java‎

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -37,40 +37,6 @@ public static IsEqual eq(Object operand) {
3737
return new IsEqual(operand);
3838
}
3939

40-
public static IsEqual eq(boolean operand) {
41-
// Avoid newing Boolean objects.
42-
// Boolean.valueOf() not available on JDK 1.3.
43-
return eq(operand ? Boolean.TRUE : Boolean.FALSE);
44-
}
45-
46-
public static IsEqual eq(byte operand) {
47-
return eq(new Byte(operand));
48-
}
49-
50-
public static IsEqual eq(short operand) {
51-
return eq(new Short(operand));
52-
}
53-
54-
public static IsEqual eq(char operand) {
55-
return eq(new Character(operand));
56-
}
57-
58-
public static IsEqual eq(int operand) {
59-
return eq(new Integer(operand));
60-
}
61-
62-
public static IsEqual eq(long operand) {
63-
return eq(new Long(operand));
64-
}
65-
66-
public static IsEqual eq(float operand) {
67-
return eq(new Float(operand));
68-
}
69-
70-
public static IsEqual eq(double operand) {
71-
return eq(new Double(operand));
72-
}
73-
7440
public static IsInstanceOf isA(Class operandClass) {
7541
return new IsInstanceOf(operandClass);
7642
}

0 commit comments

Comments
 (0)