From 2ecdc22111ff2db5a6a98a4a838b5b043bcba452 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Wed, 1 Dec 2010 02:59:50 +0000 Subject: [PATCH] simplify static final methods to just be static. (IntelliJ inspection) --- src/com/fsck/k9/helper/Regex.java | 4 ++-- src/com/fsck/k9/helper/Utility.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/fsck/k9/helper/Regex.java b/src/com/fsck/k9/helper/Regex.java index df3d41f0d..fddb6ed92 100644 --- a/src/com/fsck/k9/helper/Regex.java +++ b/src/com/fsck/k9/helper/Regex.java @@ -159,7 +159,7 @@ public class Regex * @return A String comprising all of the non-null matched * groups concatenated together */ - public static final String concatGroups(Matcher matcher) + public static String concatGroups(Matcher matcher) { StringBuilder b = new StringBuilder(); final int numGroups = matcher.groupCount(); @@ -189,7 +189,7 @@ public class Regex * @return A String comprising all of the digits and plus in * the match */ - public static final String digitsAndPlusOnly(Matcher matcher) + public static String digitsAndPlusOnly(Matcher matcher) { StringBuilder buffer = new StringBuilder(); String matchingRegion = matcher.group(); diff --git a/src/com/fsck/k9/helper/Utility.java b/src/com/fsck/k9/helper/Utility.java index a9d35de97..e60ec304d 100644 --- a/src/com/fsck/k9/helper/Utility.java +++ b/src/com/fsck/k9/helper/Utility.java @@ -31,7 +31,7 @@ public class Utility private static final Pattern TAG_PATTERN = Pattern.compile("\\[[-_a-z0-9]+\\] ", Pattern.CASE_INSENSITIVE); - public final static String readInputStream(InputStream in, String encoding) throws IOException + public static String readInputStream(InputStream in, String encoding) throws IOException { InputStreamReader reader = new InputStreamReader(in, encoding); StringBuffer sb = new StringBuffer(); @@ -44,7 +44,7 @@ public class Utility return sb.toString(); } - public final static boolean arrayContains(Object[] a, Object o) + public static boolean arrayContains(Object[] a, Object o) { for (Object element : a) {