git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ef33330
)
isGap slightly more efficient
author
amwaterhouse
<Andrew Waterhouse>
Mon, 15 Aug 2005 12:13:00 +0000
(12:13 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Mon, 15 Aug 2005 12:13:00 +0000
(12:13 +0000)
src/jalview/util/Comparison.java
patch
|
blob
|
history
diff --git
a/src/jalview/util/Comparison.java
b/src/jalview/util/Comparison.java
index
c779bb1
..
9b61798
100755
(executable)
--- a/
src/jalview/util/Comparison.java
+++ b/
src/jalview/util/Comparison.java
@@
-238,6
+238,6
@@
public class Comparison
*/
\r
public static boolean isGap(char c)
\r
{
\r
*/
\r
public static boolean isGap(char c)
\r
{
\r
- return ((c != '.') && (c != '-') && (c != ' ')) ? false : true;
\r
+ return ( c=='-' || c=='.' || c==' ' ) ? true : false;
\r
}
\r
}
\r
}
\r
}
\r