Skip to content

Commit 82bda3c

Browse files
committed
Merge branch 'master' of github.com:hamcrest/JavaHamcrest
2 parents eaef06e + d97240c commit 82bda3c

12 files changed

Lines changed: 48 additions & 17 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
/.idea/tasks.xml
88
.DS_Store
99
*~
10+
*.swp

‎.settings/org.eclipse.jdt.core.prefs‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
#Sat May 19 16:48:52 BST 2012
21
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
3+
org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
4+
org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
5+
org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
6+
org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
37
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
48
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
59
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
@@ -18,6 +22,7 @@ org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=
1822
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
1923
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
2024
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
25+
org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
2126
org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
2227
org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
2328
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
@@ -31,7 +36,9 @@ org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
3136
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
3237
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
3338
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
39+
org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
3440
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
41+
org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
3542
org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
3643
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
3744
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
@@ -40,13 +47,19 @@ org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignor
4047
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
4148
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
4249
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
50+
org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
4351
org.eclipse.jdt.core.compiler.problem.nullReference=warning
52+
org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
53+
org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning
4454
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
4555
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
4656
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
4757
org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
58+
org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
4859
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
60+
org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
4961
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
62+
org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore
5063
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
5164
org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
5265
org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
@@ -58,6 +71,7 @@ org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
5871
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
5972
org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
6073
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
74+
org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
6175
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
6276
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
6377
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore

‎README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ Documentation
4444
-------------
4545
Documentation can be found on the [google code wiki][].
4646

47+
Reporting Bugs/Issues
48+
---------------------
49+
If you find an issue with Java Hamcrest, please report it via the [GitHub issue tracker][], after first checking that it hasn't been raised already. N.B. a few issues are still tracked using the old [google code Issue tracker][].
50+
4751
Source
4852
------
4953
The complete source for Hamcrest is bundled. This includes:
@@ -83,3 +87,5 @@ Also, thanks to everyone who has worked on DynaMock, nMock, jMock, EasyMock and
8387
[google code downloads]: http://code.google.com/p/hamcrest/downloads/list?can=2&q=label%3AJava
8488
[google code wiki]: http://code.google.com/p/hamcrest/wiki/Tutorial
8589
[hamcrest extensions page]: https://github.com/hamcrest/JavaHamcrest/wiki/Related-Projects
90+
[GitHub issue tracker]: https://github.com/hamcrest/JavaHamcrest/issues
91+
[google code Issue tracker]: http://code.google.com/p/hamcrest/issues/list?can=2&q=label%3AJava

‎build.xml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<path id="cp-hamcrest-core-main" path="build/hamcrest-api-${version}.jar"/>
4242
<path id="cp-hamcrest-core-test" path=""/>
4343
<compile-module modulename="hamcrest-core"/>
44-
<generate-module-factory modulename="hamcrest-core" configurationfile="core-matchers.xml" targetclass="org.hamcrest.CoreMatchers"/>
44+
<generate-module-factory modulename="hamcrest-core" configurationfile="hamcrest-core/core-matchers.xml" targetclass="org.hamcrest.CoreMatchers" sources="hamcrest-core/src/main/java"/>
4545
<jar-module modulename="hamcrest-core"/>
4646
<test-module modulename="hamcrest-core"/>
4747
</target>
@@ -50,7 +50,7 @@
5050
<path id="cp-hamcrest-library-main" path="build/hamcrest-api-${version}.jar;build/hamcrest-core-${version}.jar"/>
5151
<path id="cp-hamcrest-library-test" path="build/hamcrest-core-${version}-tests.jar"/>
5252
<compile-module modulename="hamcrest-library"/>
53-
<generate-module-factory modulename="hamcrest-library" configurationfile="matchers.xml" targetclass="org.hamcrest.Matchers"/>
53+
<generate-module-factory modulename="hamcrest-library" configurationfile="hamcrest-library/matchers.xml" targetclass="org.hamcrest.Matchers" sources="hamcrest-core/src/main/java,hamcrest-library/src/main/java"/>
5454
<jar-module modulename="hamcrest-library"/>
5555
<test-module modulename="hamcrest-library"/>
5656
</target>
@@ -208,14 +208,15 @@
208208
<attribute name="modulename" description="Name of the module to jar"/>
209209
<attribute name="configurationfile" description="xml configuration file"/>
210210
<attribute name="targetclass" description="factory class to generate"/>
211+
<attribute name="sources" description="comma-separated source directories"/>
211212
<sequential>
212213
<mkdir dir="build/temp/@{modulename}/generated-code"/>
213214
<java classname="org.hamcrest.generator.config.XmlConfigurator" fork="yes" failonerror="yes">
214215
<classpath path="build/hamcrest-generator-${version}.jar"/>
215216
<classpath refid="cp-@{modulename}-main"/>
216217
<classpath path="build/temp/@{modulename}-${version}.jar.contents"/>
217218
<arg value="@{configurationfile}"/>
218-
<arg value="@{modulename}/src/main/java"/>
219+
<arg value="@{sources}"/>
219220
<arg value="@{targetclass}"/>
220221
<arg value="build/temp/@{modulename}/generated-code"/>
221222
</java>

‎hamcrest-core/src/test/java/org/hamcrest/core/CombinableTest.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import static org.hamcrest.AbstractMatcherTest.assertMismatchDescription;
77
import static org.hamcrest.AbstractMatcherTest.assertNullSafe;
88
import static org.hamcrest.AbstractMatcherTest.assertUnknownTypeSafe;
9-
import static org.hamcrest.core.CombinableMatcher.both;
109
import static org.hamcrest.core.IsEqual.equalTo;
1110
import static org.hamcrest.core.IsNot.not;
1211
import static org.hamcrest.core.IsNull.notNullValue;

‎hamcrest-library/src/main/java/org/hamcrest/collection/IsCollectionWithSize.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
import java.util.Collection;
99

10-
import static org.hamcrest.core.IsEqual.equalTo;
11-
1210
/**
1311
* Matches if collection size satisfies a nested matcher.
1412
*/

‎scripts/snapshot-with-git.cm‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -u
3+
set -e
4+
5+
BASE_DIR="$( cd "$( /usr/bin/dirname "${BASH_SOURCE[0]}" )/.." && /bin/pwd )"
6+
7+
cd "$BASE_DIR"
8+
ant -Dversion="GIT-$(git log -1 --oneline | cut -d " " -f 1)"
9+

0 commit comments

Comments
 (0)