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