X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemes%2FResidueProperties.java;fp=src%2Fjalview%2Fschemes%2FResidueProperties.java;h=5f84ca07adc5ea2257cad4c11e605695a845fb9f;hb=4f77328104498504339216829abf5ea87e2791ec;hp=df6610a0d5a0be2a1ffd7fceab45fa95f97fdb55;hpb=2b8c0785318a3528e1876e8e2dd48b7d831eae69;p=jalview.git diff --git a/src/jalview/schemes/ResidueProperties.java b/src/jalview/schemes/ResidueProperties.java index df6610a..5f84ca0 100755 --- a/src/jalview/schemes/ResidueProperties.java +++ b/src/jalview/schemes/ResidueProperties.java @@ -498,35 +498,34 @@ public class ResidueProperties * Color.white, // R Color.white, // Y Color.white, // N Color.white, // Gap */ - public static final String STOP = "STOP"; + public static String STOP = "STOP"; - public static final List STOP_CODONS = Arrays.asList("TGA", "TAA", - "TAG"); + public static List STOP_CODONS = Arrays.asList("TGA", "TAA", "TAG"); - public static final String START = "ATG"; + public static String START = "ATG"; // Stores residue codes/names and colours and other things - public static final Map> propHash = new Hashtable<>(); + public static Map> propHash = new Hashtable<>(); - public static final Map hydrophobic = new Hashtable<>(); + public static Map hydrophobic = new Hashtable<>(); - public static final Map polar = new Hashtable<>(); + public static Map polar = new Hashtable<>(); - public static final Map small = new Hashtable<>(); + public static Map small = new Hashtable<>(); - public static final Map positive = new Hashtable<>(); + public static Map positive = new Hashtable<>(); - public static final Map negative = new Hashtable<>(); + public static Map negative = new Hashtable<>(); - public static final Map charged = new Hashtable<>(); + public static Map charged = new Hashtable<>(); - public static final Map aromatic = new Hashtable<>(); + public static Map aromatic = new Hashtable<>(); - public static final Map aliphatic = new Hashtable<>(); + public static Map aliphatic = new Hashtable<>(); - public static final Map tiny = new Hashtable<>(); + public static Map tiny = new Hashtable<>(); - public static final Map proline = new Hashtable<>(); + public static Map proline = new Hashtable<>(); static { @@ -897,7 +896,8 @@ public class ResidueProperties public static String codonTranslate(String lccodon) { - String peptide = GeneticCodes.getStandardCodeTable().translate(lccodon); + String peptide = GeneticCodes.getInstance().getStandardCodeTable() + .translate(lccodon); if ("*".equals(peptide)) { return "STOP"; @@ -909,7 +909,7 @@ public class ResidueProperties * lookup of (A-Z) alternative secondary structure symbols' * equivalents in DSSP3 notation */ - private final static char[] toDssp3State; + private static char[] toDssp3State; static { toDssp3State = new char[9]; // for 'A'-'I'; extend if needed