git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'feature/JAL-3690_callback-based-web-services' into alpha/JAL-3066_Jalvi...
[jalview.git]
/
src
/
jalview
/
util
/
ColorUtils.java
diff --git
a/src/jalview/util/ColorUtils.java
b/src/jalview/util/ColorUtils.java
index
c1feeee
..
4305f59
100644
(file)
--- a/
src/jalview/util/ColorUtils.java
+++ b/
src/jalview/util/ColorUtils.java
@@
-219,7
+219,7
@@
public class ColorUtils
colour = colour.trim();
Color col = null;
colour = colour.trim();
Color col = null;
- if (colour.length() == 6 && StringUtils.isHexString(colour))
+ if (StringUtils.isHexString(colour))
{
try
{
{
try
{
@@
-255,10
+255,6
@@
public class ColorUtils
return col;
}
return col;
}
-
- public static boolean couldBeHexColor(String n) {
- return (n.length() > 0 && "abcdefABCDEF".indexOf(n.charAt(0)) >= 0);
- }
/**
* Constructs a colour from a text string. The hashcode of the whole string is
/**
* Constructs a colour from a text string. The hashcode of the whole string is