Committed by
Gerrit Code Review
[ONOS-3878] Addressed Unwanted Warning in Listener's Framework
Change-Id: I41cc51a4cbbd4732f631c5e82808f1f3131757e3
Showing
4 changed files
with
57 additions
and
14 deletions
... | @@ -152,11 +152,43 @@ | ... | @@ -152,11 +152,43 @@ |
152 | <configuration> | 152 | <configuration> |
153 | <sourceDirectory>src/main/resources</sourceDirectory> | 153 | <sourceDirectory>src/main/resources</sourceDirectory> |
154 | <outputDirectory>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</outputDirectory> | 154 | <outputDirectory>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</outputDirectory> |
155 | - <visitor>true</visitor> | 155 | + <visitor>false</visitor> |
156 | <listener>true</listener> | 156 | <listener>true</listener> |
157 | </configuration> | 157 | </configuration> |
158 | </plugin> | 158 | </plugin> |
159 | <plugin> | 159 | <plugin> |
160 | + <artifactId>maven-clean-plugin</artifactId> | ||
161 | + <version>3.0.0</version> | ||
162 | + <executions> | ||
163 | + <execution> | ||
164 | + <id>Deleting auto-generated listener interfaces</id> | ||
165 | + <phase>generate-sources</phase> | ||
166 | + <goals> | ||
167 | + <goal>clean</goal> | ||
168 | + </goals> | ||
169 | + </execution> | ||
170 | + </executions> | ||
171 | + <configuration> | ||
172 | + <excludeDefaultDirectories>true</excludeDefaultDirectories> | ||
173 | + <filesets> | ||
174 | + <fileset> | ||
175 | + <directory>target</directory> | ||
176 | + <followSymlinks>false</followSymlinks> | ||
177 | + <useDefaultExcludes>true</useDefaultExcludes> | ||
178 | + <excludes> | ||
179 | + <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.java</exclude> | ||
180 | + <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYang.tokens</exclude> | ||
181 | + <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangParser.java</exclude> | ||
182 | + <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.tokens</exclude> | ||
183 | + <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.java</exclude> | ||
184 | + <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.tokens</exclude> | ||
185 | + </excludes> | ||
186 | + </fileset> | ||
187 | + </filesets> | ||
188 | + <verbose>true</verbose> | ||
189 | + </configuration> | ||
190 | + </plugin> | ||
191 | + <plugin> | ||
160 | <groupId>org.codehaus.mojo</groupId> | 192 | <groupId>org.codehaus.mojo</groupId> |
161 | <artifactId>build-helper-maven-plugin</artifactId> | 193 | <artifactId>build-helper-maven-plugin</artifactId> |
162 | <version>1.10</version> | 194 | <version>1.10</version> |
... | @@ -176,16 +208,6 @@ | ... | @@ -176,16 +208,6 @@ |
176 | </executions> | 208 | </executions> |
177 | </plugin> | 209 | </plugin> |
178 | <plugin> | 210 | <plugin> |
179 | - <groupId>org.apache.maven.plugins</groupId> | ||
180 | - <artifactId>maven-javadoc-plugin</artifactId> | ||
181 | - <version>2.10.3</version> | ||
182 | - <configuration> | ||
183 | - <excludePackageNames> | ||
184 | - *.org.onosproject.yangutils.parser.antlrgencode | ||
185 | - </excludePackageNames> | ||
186 | - </configuration> | ||
187 | - </plugin> | ||
188 | - <plugin> | ||
189 | <groupId>org.apache.felix</groupId> | 211 | <groupId>org.apache.felix</groupId> |
190 | <artifactId>maven-bundle-plugin</artifactId> | 212 | <artifactId>maven-bundle-plugin</artifactId> |
191 | <extensions>true</extensions> | 213 | <extensions>true</extensions> | ... | ... |
... | @@ -29,9 +29,10 @@ public interface YangUtilsParser { | ... | @@ -29,9 +29,10 @@ public interface YangUtilsParser { |
29 | /** | 29 | /** |
30 | * It is an entry function to initiate the YANG file parsing. | 30 | * It is an entry function to initiate the YANG file parsing. |
31 | * | 31 | * |
32 | - * @param file input YANG file | 32 | + * @param file input YANG file. |
33 | - * @return YangNode root node of the data model tree | 33 | + * @return YangNode root node of the data model tree. |
34 | - * @throws ParserException when fails to get the data model | 34 | + * @throws ParserException when fails to get the data model. |
35 | + * @throws IOException when there is an exception in IO operation. | ||
35 | */ | 36 | */ |
36 | YangNode getDataModel(String file) throws IOException, ParserException; | 37 | YangNode getDataModel(String file) throws IOException, ParserException; |
37 | } | 38 | } | ... | ... |
This diff is collapsed. Click to expand it.
utils/yangutils/src/main/java/org/onosproject/yangutils/parser/antlrgencode/package-info.java
0 → 100644
1 | +/* | ||
2 | + * Copyright 2016 Open Networking Laboratory | ||
3 | + * | ||
4 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
5 | + * use this file except in compliance with the License. You may obtain a copy of | ||
6 | + * the License at | ||
7 | + * | ||
8 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | + * | ||
10 | + * Unless required by applicable law or agreed to in writing, software | ||
11 | + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
12 | + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
13 | + * License for the specific language governing permissions and limitations under | ||
14 | + * the License. | ||
15 | + */ | ||
16 | + | ||
17 | +/** | ||
18 | + * ANTLR interfaces to be implemented by listener. | ||
19 | + */ | ||
20 | +package org.onosproject.yangutils.parser.antlrgencode; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment