mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
simplify static final methods to just be static. (IntelliJ inspection)
This commit is contained in:
parent
f7edcd60ce
commit
2ecdc22111
@ -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();
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user