Skip to content

Commit 6e61024

Browse files
committed
ST6RI-178 Added missing javadoc
1 parent 4a4449e commit 6e61024

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

org.omg.sysml.interactive/src/org/omg/sysml/interactive/SysMLInteractive.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import java.util.Collections;
3535
import java.util.Date;
3636
import java.util.List;
37-
import java.util.NoSuchElementException;
3837
import java.util.Scanner;
3938
import java.util.UUID;
4039
import java.util.stream.Collectors;

org.omg.sysml/src/org/omg/sysml/util/repository/RemoteProject.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,24 @@ public RemoteBranch getDefaultBranch() throws NoSuchElementException {
6767
return new RemoteBranch(defaultBranch.getAtId(), true);
6868
}
6969

70+
/**
71+
* Branch by name
72+
*
73+
* @param branchName name of the branch
74+
* @return branch with the given name or null if no branch is found
75+
*/
7076
public RemoteBranch getBranch(String branchName) {
7177
Branch branch = getProjectRepository().getBranch(getRemoteId(), branchName);
7278
if (branch == null || branch.getAtId() == null) return null;
7379
return new RemoteBranch(branch.getAtId(), branch.getName());
7480
}
7581

82+
/**
83+
* Branch by id
84+
*
85+
* @param branchId id of the branch
86+
* @return branch with the given UUID or null of no such branch is found
87+
*/
7688
public RemoteBranch getBranch(UUID branchId) {
7789
Branch branch = getProjectRepository().getBranch(getRemoteId(), branchId);
7890
if (branch == null || branch.getAtId() == null) return null;
@@ -190,7 +202,9 @@ public RemoteProject getRemoteProject() {
190202
return RemoteProject.this;
191203
}
192204

193-
205+
/**
206+
* @return true if this branch is the default branch of its project
207+
*/
194208
public boolean isDefault() {
195209
return isDefault;
196210
}

0 commit comments

Comments
 (0)