simplify static final methods to just be static. (IntelliJ inspection)

This commit is contained in:
Jesse Vincent 2010-12-01 02:59:50 +00:00
parent f7edcd60ce
commit 2ecdc22111
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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)
{