Skip to content

Commit 464bdde

Browse files
committed
Change Constants class to package-private
closes #3
1 parent 4a12ea4 commit 464bdde

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/main/java/uk/ac/sussex/gdsc/analytics/parameters/Constants.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,20 @@
3232
/**
3333
* Contains constants.
3434
*/
35-
public final class Constants {
36-
35+
final class Constants {
3736
/**
3837
* The '<strong>{@code =}</strong>' (Equal) character.
3938
*
4039
* <p>Used to to create a {@code name=value} pair for a URL.
4140
*/
42-
public static final char EQUAL = '=';
41+
static final char EQUAL = '=';
4342

4443
/**
4544
* The '<strong>{@code &}</strong>' (Ampersand) character.
4645
*
4746
* <p>Used to join {@code name=value} pairs for a URL, e.g. {@code name=value&name2=value2}.
4847
*/
49-
public static final char AND = '&';
48+
static final char AND = '&';
5049

5150
/**
5251
* The '<strong>{@code _}</strong>' (Underscore) character.
@@ -55,32 +54,32 @@ public final class Constants {
5554
* parameter pair, e.g. {@code cm_} where {@code _} is the index of the custom metric {@code cm}
5655
* parameter.
5756
*/
58-
public static final char UNDERSCORE = '_';
57+
static final char UNDERSCORE = '_';
5958

6059
/**
6160
* The '<strong>{@code /}</strong>' (forward slash) character.
6261
*
6362
* <p>The character required at the start of a document path for a URL.
6463
*/
65-
public static final char FORWARD_SLASH = '/';
64+
static final char FORWARD_SLASH = '/';
6665

6766
/**
6867
* The empty string "".
6968
*/
70-
public static final String EMPTY_STRING = "";
69+
static final String EMPTY_STRING = "";
7170

7271
/**
7372
* A zero length char array.
7473
*/
75-
public static final char[] EMPTY_CHARS = new char[0];
74+
static final char[] EMPTY_CHARS = new char[0];
7675

7776
/**
7877
* A zero length hit type array.
7978
*/
8079
static final HitType[] EMPTY_HIT_TYPE = new HitType[0];
8180

8281
/**
83-
* No public construction.
82+
* No construction.
8483
*/
8584
private Constants() {
8685
// Do nothing

0 commit comments

Comments
 (0)