File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 2222import java .util .List ;
2323import java .util .Map ;
2424
25- import static java .util .Collections .EMPTY_MAP ;
26-
2725/**
2826 * Class for representing and parsing optional resolution, query and fragment components
2927 * and making them accessible via unmodifiable maps.
@@ -37,7 +35,7 @@ public final class RQF_RFC8141 {
3735 *
3836 * @see <a href="https://en.wikipedia.org/wiki/Null_object_pattern">Null object pattern</a>
3937 */
40- public static final RQF_RFC8141 NULL = new RQF_RFC8141 (EMPTY_MAP , EMPTY_MAP , "" );
38+ public static final RQF_RFC8141 NULL = new RQF_RFC8141 (Collections . emptyMap (), Collections . emptyMap () , "" );
4139
4240 private final Map <String , String > resolutionParameters ;
4341 private final Map <String , String > queryParameters ;
Original file line number Diff line number Diff line change @@ -52,17 +52,17 @@ public void NULL_object_is_not_equal_to_null() {
5252
5353 @ Test (expected = IllegalArgumentException .class )
5454 public void Passing_null_as_resolutionParameterMap_throws_exception () {
55- new RQF_RFC8141 (null , Collections .EMPTY_MAP , "" );
55+ new RQF_RFC8141 (null , Collections .emptyMap () , "" );
5656 }
5757
5858 @ Test (expected = IllegalArgumentException .class )
5959 public void Passing_null_as_queryParameterMap_throws_exception () {
60- new RQF_RFC8141 (Collections .EMPTY_MAP , null , "" );
60+ new RQF_RFC8141 (Collections .emptyMap () , null , "" );
6161 }
6262
6363 @ Test (expected = IllegalArgumentException .class )
6464 public void Passing_null_as_fragment_throws_exception () {
65- new RQF_RFC8141 (Collections .EMPTY_MAP , Collections .EMPTY_MAP , null );
65+ new RQF_RFC8141 (Collections .emptyMap () , Collections .emptyMap () , null );
6666 }
6767
6868
You can’t perform that action at this time.
0 commit comments