Skip to content

Commit

Permalink
Merge pull request #707 from zhangchicool/master
Browse files Browse the repository at this point in the history
Changed access levels of a few methods in NexusParser
  • Loading branch information
tgvaughan committed May 19, 2017
2 parents 1a86c3b + a1c721e commit e17320e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/beast/util/NexusParser.java
Expand Up @@ -71,7 +71,7 @@ public class NexusParser {

public List<TaxonSet> taxonsets = new ArrayList<>();

private List<NexusParserListener> listeners = new ArrayList<>();
protected List<NexusParserListener> listeners = new ArrayList<>();

/**
* Adds a listener for client classes that want to monitor progress of the parsing.
Expand Down Expand Up @@ -217,7 +217,7 @@ protected void parseTreesBlock(final BufferedReader fin) throws IOException {
}
}

private List<String> getIndexedTranslationMap(final Map<String, String> translationMap, final int origin) {
protected List<String> getIndexedTranslationMap(final Map<String, String> translationMap, final int origin) {

Log.warning.println("translation map size = " + translationMap.size());

Expand All @@ -233,7 +233,7 @@ private List<String> getIndexedTranslationMap(final Map<String, String> translat
* @param translationMap
* @return minimum key value if keys are a contiguous set of integers starting from zero or one, -1 otherwise
*/
private int getIndexedTranslationMapOrigin(final Map<String, String> translationMap) {
protected int getIndexedTranslationMapOrigin(final Map<String, String> translationMap) {

final SortedSet<Integer> indices = new TreeSet<>();

Expand All @@ -255,7 +255,7 @@ private int getIndexedTranslationMapOrigin(final Map<String, String> translation
* whereas values are generally descriptive strings.
* @throws IOException
*/
private Map<String, String> parseTranslateBlock(final BufferedReader reader) throws IOException {
protected Map<String, String> parseTranslateBlock(final BufferedReader reader) throws IOException {

final Map<String, String> translationMap = new HashMap<>();

Expand Down Expand Up @@ -1049,7 +1049,7 @@ public static String generateSequenceID(final String taxon) {
/**
* read line from nexus file *
*/
String readLine(final BufferedReader fin) throws IOException {
protected String readLine(final BufferedReader fin) throws IOException {
if (!fin.ready()) {
return null;
}
Expand Down Expand Up @@ -1086,7 +1086,7 @@ protected String nextLine(final BufferedReader fin) throws IOException {
/**
* return attribute value as a string *
*/
String getAttValue(final String attribute, final String str) {
protected String getAttValue(final String attribute, final String str) {
final Pattern pattern = Pattern.compile(".*" + attribute + "\\s*=\\s*([^\\s;]+).*");
final Matcher matcher = pattern.matcher(str.toLowerCase());
if (!matcher.find()) {
Expand Down

0 comments on commit e17320e

Please sign in to comment.