* The URI to shorten
* @return The shortened URI
*/
- private String shortenURI(String uri) {
+ private static String shortenURI(String uri) {
String shortUri = uri;
if (shortUri.startsWith("freenet:")) {
shortUri = shortUri.substring("freenet:".length());
* The edition number
* @return The URI for the update file for the given edition
*/
- private String constructUpdateKey(int edition) {
+ private static String constructUpdateKey(int edition) {
return UPDATE_KEY + "/jSite/" + edition + "/jSite.properties";
}
* The number of fractional digits
* @return The formatted number
*/
- private String formatNumber(double number, int digits) {
+ private static String formatNumber(double number, int digits) {
int multiplier = (int) Math.pow(10, digits);
String formattedNumber = String.valueOf((int) (number * multiplier) / (double) multiplier);
if (formattedNumber.indexOf('.') == -1) {
* @return The supported locale that was found, or the default locale if no
* supported locale could be found
*/
- private Locale findSupportedLocale(Locale forLocale) {
+ private static Locale findSupportedLocale(Locale forLocale) {
for (Locale locale : SUPPORTED_LOCALES) {
if (locale.equals(forLocale)) {
return locale;