107 |
parser.setLastComment(new String(source, startIndex, endIndex-startIndex)); |
parser.setLastComment(new String(source, startIndex, endIndex-startIndex)); |
108 |
} |
} |
109 |
else if (null == parser.getBoilerplateComment()) { |
else if (null == parser.getBoilerplateComment()) { |
110 |
parser.setBoilerplateComment(new String(source, startIndex, endIndex-startIndex)); |
String boilerplateComment = new String(source, startIndex + 2, endIndex-startIndex - 4); |
111 |
|
if (boilerplateComment.toLowerCase().indexOf("copyright") >= 0) { |
112 |
|
parser.setBoilerplateComment(boilerplateComment); |
113 |
|
} |
114 |
} |
} |
115 |
|
|
116 |
return endIndex; |
return endIndex; |