Skip to content

Commit

Permalink
Restore public constructors for compatibility
Browse files Browse the repository at this point in the history
CoreMatchers, MatcherAssert, and Matchers had private contructors added
to fix javadoc warnings. Unfortunately, this can break existig users of
the classes.

Fixes hamcrest#427
  • Loading branch information
tumbarumba committed Nov 17, 2024
1 parent f0545a5 commit 4289521
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion hamcrest/src/main/java/org/hamcrest/CoreMatchers.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
@SuppressWarnings("UnusedDeclaration")
public class CoreMatchers {

private CoreMatchers() {
/**
* Unused
*/
public CoreMatchers() {
}

/**
Expand Down
5 changes: 4 additions & 1 deletion hamcrest/src/main/java/org/hamcrest/MatcherAssert.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
*/
public class MatcherAssert {

private MatcherAssert() {
/**
* Unused.
*/
public MatcherAssert() {
}

/**
Expand Down
5 changes: 4 additions & 1 deletion hamcrest/src/main/java/org/hamcrest/Matchers.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
@SuppressWarnings({"unused", "WeakerAccess"})
public class Matchers {

private Matchers() {
/**
* Unused
*/
public Matchers() {
}

/**
Expand Down

0 comments on commit 4289521

Please sign in to comment.