From dbbe146185027d9cb041a83645985a6b1a26cb75 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 8 Dec 2005 09:17:41 +0000 Subject: [PATCH] EqualsignoreCase --- src/MCview/PDBChain.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/MCview/PDBChain.java b/src/MCview/PDBChain.java index 5f23a26..0715b6a 100755 --- a/src/MCview/PDBChain.java +++ b/src/MCview/PDBChain.java @@ -195,26 +195,26 @@ public class PDBChain { try { Bond b = (Bond) bonds.elementAt(i); - if (b.at1.resName.toUpperCase().equals("ASP") || - b.at1.resName.toUpperCase().equals("GLU")) { + if (b.at1.resName.equalsIgnoreCase("ASP") || + b.at1.resName.equalsIgnoreCase("GLU")) { b.startCol = Color.red; - } else if (b.at1.resName.toUpperCase().equals("LYS") || - b.at1.resName.toUpperCase().equals("ARG")) { + } else if (b.at1.resName.equalsIgnoreCase("LYS") || + b.at1.resName.equalsIgnoreCase("ARG")) { b.startCol = Color.blue; - } else if (b.at1.resName.toUpperCase().equals("CYS")) { + } else if (b.at1.resName.equalsIgnoreCase("CYS")) { b.startCol = Color.yellow; } else { //int atno = ((Integer) ResidueProperties.getAA3Hash().get(b.at1.resName.toUpperCase())).intValue(); b.startCol = Color.lightGray; } - if (b.at2.resName.toUpperCase().equals("ASP") || - b.at2.resName.toUpperCase().equals("GLU")) { + if (b.at2.resName.equalsIgnoreCase("ASP") || + b.at2.resName.equalsIgnoreCase("GLU")) { b.endCol = Color.red; - } else if (b.at2.resName.toUpperCase().equals("LYS") || - b.at2.resName.toUpperCase().equals("ARG")) { + } else if (b.at2.resName.equalsIgnoreCase("LYS") || + b.at2.resName.equalsIgnoreCase("ARG")) { b.endCol = Color.blue; - } else if (b.at2.resName.toUpperCase().equals("CYS")) { + } else if (b.at2.resName.equalsIgnoreCase("CYS")) { b.endCol = Color.yellow; } else { //int atno = ((Integer) ResidueProperties.getAA3Hash().get(b.at2.resName.toUpperCase())).intValue(); -- 1.7.10.2