Matcher mtrr8onlyhead;\r
\r
// add head comment\r
- Matcher mtrr8onlyheadcomment = Critic.PTN_NEW_HEAD_COMMENT\r
- .matcher(line);\r
- if (mtrr8onlyheadcomment.find()) {\r
- outfile1.append(mtrr8onlyheadcomment.group() + "\n\n");\r
- outfile2.append(mtrr8onlyheadcomment.group() + "\n\n");\r
- }\r
-\r
- // add functions body\r
+ if (mi.license != null) {\r
+ String header = "/**@file\n Copyright (c) 2007, Intel Corporation\n\n" + \r
+ mi.license.replace(" ", " ") + "**/\n\n"; \r
+ outfile1.append(header);\r
+ outfile2.append(header);\r
+ }\r
+ \r
+ // add functions body\r
while (mtrr8only.find()) {\r
if (mi.hashr8only.contains(mtrr8only.group(3))) {\r
paragraph = mtrr8only.group(2);\r