Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
David Habib committed Jan 27, 2015
1 parent ddf2d89 commit 160899c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/org/salesforce/apexdoc/ApexDoc.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static void RunApexDoc(String[] args, IProgressMonitor monitor) {
rgstrScope = new String[3];
rgstrScope[0] = "global";
rgstrScope[1] = "public";
rgstrScope[3] = "webService";
rgstrScope[2] = "webService";
}

// find all the files to parse
Expand Down Expand Up @@ -238,7 +238,7 @@ public static ClassModel parseFileContents(String filePath) {

// if we are in a nested class, and we just got back to nesting level 1,
// then we are done with the nested class, and should set its props and methods.
if (nestedCurlyBraceDepth == 1 && cModels.size() > 1 && cModel != null) {
if (nestedCurlyBraceDepth == 1 && openCurlies != closeCurlies && cModels.size() > 1 && cModel != null) {
cModels.pop();
cModel = cModels.peek();
continue;
Expand Down Expand Up @@ -397,7 +397,7 @@ private static void fillMethodModel(MethodModel mModel, String name, ArrayList<S

idxStart = comment.toLowerCase().indexOf("@return");
if (idxStart != -1) {
mModel.setReturns(comment.substring(idxStart + 8).trim());
mModel.setReturns(comment.substring(idxStart + 7).trim());
inDescription = false;
continue;
}
Expand Down

0 comments on commit 160899c

Please sign in to comment.