diff options
author | wujingchao <wujingchao92@gmail.com> | 2016-11-14 15:48:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-14 15:48:53 +0800 |
commit | abeff7b4fd6a909bd32723d90dc0e0535c84bd0a (patch) | |
tree | 8e312725e6f5a4732a2eab7b8e6d0e1f2e177f0e | |
parent | a30e5af2043c805abcbebd07db4c8cbe2779a430 (diff) | |
download | protobuf-abeff7b4fd6a909bd32723d90dc0e0535c84bd0a.tar.gz protobuf-abeff7b4fd6a909bd32723d90dc0e0535c84bd0a.tar.bz2 protobuf-abeff7b4fd6a909bd32723d90dc0e0535c84bd0a.zip |
Class is final but declares protected field
This class is declared to be final, but declares fields to be protected. Since the class is final, it can not be derived from, and the use of protected is confusing.
-rw-r--r-- | javanano/src/main/java/com/google/protobuf/nano/InternalNano.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/javanano/src/main/java/com/google/protobuf/nano/InternalNano.java b/javanano/src/main/java/com/google/protobuf/nano/InternalNano.java index f1263df5..278368a0 100644 --- a/javanano/src/main/java/com/google/protobuf/nano/InternalNano.java +++ b/javanano/src/main/java/com/google/protobuf/nano/InternalNano.java @@ -67,8 +67,8 @@ public final class InternalNano { public static final int TYPE_SINT32 = 17; public static final int TYPE_SINT64 = 18; - protected static final Charset UTF_8 = Charset.forName("UTF-8"); - protected static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); + static final Charset UTF_8 = Charset.forName("UTF-8"); + static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); private InternalNano() {} |