refactor: make constant values final

This commit is contained in:
Connor Tumbleson 2020-09-13 08:44:08 -04:00
parent 2720cf93a3
commit 65eeb2fb4a
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ package brut.androlib.res.data.value;
* @author Matt Mastracci <matthew@mastracci.com>
*/
public class ResIntBasedValue extends ResValue {
private int mRawIntValue;
private final int mRawIntValue;
protected ResIntBasedValue(int rawIntValue) {
mRawIntValue = rawIntValue;

View File

@ -71,5 +71,5 @@ public class ResStringValue extends ResScalarValue {
return allDigits.matcher(val).matches() ? "\\ " + val : val;
}
private static Pattern allDigits = Pattern.compile("\\d{9,}");
private static final Pattern allDigits = Pattern.compile("\\d{9,}");
}