Skip to content

Commit

Permalink
[core] Make two constructors of (From|To)MatchesFilter private
Browse files Browse the repository at this point in the history
Those are reachable over public static methods.
  • Loading branch information
Flowdalic committed Oct 25, 2024
1 parent 33cac75 commit 9fa98b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public final class FromMatchesFilter extends AbstractFromToMatchesFilter {
* have a from address.
* @param ignoreResourcepart TODO javadoc me please
*/
public FromMatchesFilter(Jid address, boolean ignoreResourcepart) {
private FromMatchesFilter(Jid address, boolean ignoreResourcepart) {
super(address, ignoreResourcepart);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public final class ToMatchesFilter extends AbstractFromToMatchesFilter {

public static final ToMatchesFilter MATCH_NO_TO_SET = create(null);

public ToMatchesFilter(Jid address, boolean ignoreResourcepart) {
private ToMatchesFilter(Jid address, boolean ignoreResourcepart) {
super(address, ignoreResourcepart);
}

Expand Down

0 comments on commit 9fa98b1

Please sign in to comment.