Skip to content

Commit

Permalink
Fix visibility of location
Browse files Browse the repository at this point in the history
  • Loading branch information
ohr committed Feb 21, 2018
1 parent 754469a commit 285eafb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions hapi-base/src/main/java/ca/uhn/hl7v2/Location.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ GNU General Public License (the "GPL"), in which case the provisions of the GPL
*/
package ca.uhn.hl7v2;

import java.util.Collection;
import java.util.Collections;
import java.util.Stack;

/**
Expand Down Expand Up @@ -60,7 +62,9 @@ public Location(Location l) {
this.subcomponent = l.subcomponent;
}


public Collection<GroupLocation> getGroups() {
return Collections.unmodifiableCollection(groups);
}

public boolean isUnknown() {
return this == UNKNOWN;
Expand All @@ -71,8 +75,8 @@ public Location pushGroup(String name, int rep) {
return this;
}

public void popGroup() {
groups.pop();
public GroupLocation popGroup() {
return groups.pop();
}

public GroupLocation getGroupLocation() {
Expand Down Expand Up @@ -241,7 +245,7 @@ public boolean equals(Object obj) {
return true;
}

private static class GroupLocation {
public static class GroupLocation {
String groupName;
int repetition;

Expand Down

0 comments on commit 285eafb

Please sign in to comment.