Skip to content

Commit c70825c

Browse files
author
smgfreeman
committed
Narrowed templating on IsEqual. Added java 1.5 target to compilation.
1 parent 6280ff2 commit c70825c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
<attribute name="classpath" description="Anything additional to add on the classpath" default=""/>
228228
<sequential>
229229
<mkdir dir="build/temp/@{destjar}.contents"/>
230-
<javac srcdir="@{srcdir}" destdir="build/temp/@{destjar}.contents" debug="${debug}">
230+
<javac srcdir="@{srcdir}" destdir="build/temp/@{destjar}.contents" debug="${debug}" target="1.5">
231231
<classpath>
232232
<fileset dir="lib/integration">
233233
<include name="*.jar"/>

hamcrest-core/src/main/java/org/hamcrest/core/IsEqual.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private static boolean areEqual(Object o1, Object o2) {
4141

4242
private static boolean areArraysEqual(Object o1, Object o2) {
4343
return areArrayLengthsEqual(o1, o2)
44-
&& areArrayElementsEqual(o1, o2);
44+
&& areArrayElementsEqual(o1, o2);
4545
}
4646

4747
private static boolean areArrayLengthsEqual(Object o1, Object o2) {
@@ -64,7 +64,7 @@ private static boolean isArray(Object o) {
6464
* {@link java.lang.Object#equals} invokedMethod?
6565
*/
6666
@Factory
67-
public static <T> Matcher<? super T> equalTo(T operand) {
67+
public static <T> Matcher<T> equalTo(T operand) {
6868
return new IsEqual<T>(operand);
6969
}
7070
}

0 commit comments

Comments
 (0)