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
JAL-1933 update threshold on focus lost in text field
[jalview.git]
/
src
/
jalview
/
util
/
Comparison.java
diff --git
a/src/jalview/util/Comparison.java
b/src/jalview/util/Comparison.java
index
5269d4f
..
1326647
100644
(file)
--- a/
src/jalview/util/Comparison.java
+++ b/
src/jalview/util/Comparison.java
@@
-417,8
+417,8
@@
public class Comparison
}
/**
}
/**
- * Compares two chars either case sensitively or case insensitively depending
- * on the caseSensitive flag
+ * Compares two residues either case sensitively or case insensitively
+ * depending on the caseSensitive flag
*
* @param c1
* first char
*
* @param c1
* first char
@@
-428,18
+428,12
@@
public class Comparison
* if true comparison will be case sensitive otherwise its not
* @return
*/
* if true comparison will be case sensitive otherwise its not
* @return
*/
- public static boolean compareChars(char c1, char c2, boolean caseSensitive)
+ public static boolean isSameResidue(char c1, char c2,
+ boolean caseSensitive)
{
{
- boolean sameCase = (Character.isUpperCase(c1) && Character
- .isUpperCase(c2))
- || (Character.isLowerCase(c1) && Character.isLowerCase(c2));
- if (sameCase)
+ if (caseSensitive)
{
{
- return c1 == c2;
- }
- else if (caseSensitive)
- {
- return false;
+ return (c1 == c2);
}
else
{
}
else
{