summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorSven de Marothy <sven@physto.se>2005-04-18 10:11:45 +0000
committerSven de Marothy <sven@physto.se>2005-04-18 10:11:45 +0000
commitb631215e31033654ccc12ddd91f71ab4bdfb2024 (patch)
treebb2fff309eb1d85777397f97dd574edb08aeeb81 /java
parentb7bdb387aa475963de6eb133349214f83246f81a (diff)
downloadclasspath-b631215e31033654ccc12ddd91f71ab4bdfb2024.tar.gz
2005-04-18 Sven de Marothy <sven@physto.se>
* java/lang/String.java: Value, offset and count should be private.
Diffstat (limited to 'java')
-rw-r--r--java/lang/String.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/lang/String.java b/java/lang/String.java
index 5b7a6f00d..ce7488f48 100644
--- a/java/lang/String.java
+++ b/java/lang/String.java
@@ -112,14 +112,14 @@ public final class String implements Serializable, Comparable, CharSequence
* Characters which make up the String.
* Package access is granted for use by StringBuffer.
*/
- public final char[] value;
+ private final char[] value;
/**
* Holds the number of characters in value. This number is generally
* the same as value.length, but can be smaller because substrings and
* StringBuffers can share arrays. Package visible for use by trusted code.
*/
- public final int count;
+ private final int count;
/**
* Caches the result of hashCode(). If this value is zero, the hashcode
@@ -132,7 +132,7 @@ public final class String implements Serializable, Comparable, CharSequence
* substring()'s are common, the use of offset allows the operation
* to perform in O(1). Package access is granted for use by StringBuffer.
*/
- public final int offset;
+ private final int offset;
/**
* An implementation for {@link CASE_INSENSITIVE_ORDER}.