Skip to content

Commit

Permalink
Refactor YAML parser exceptions and minor fixes
Browse files Browse the repository at this point in the history
- Throw exception up to rest calls
- Show exceptions in the ui
- Fix casting issues in the builder
- Add collect context information in the builder
- Add context to exception
- Complete list of exceptions for reflection tests
- Replace tabs with spaces for converter classes
- Fix AbstractVisitor visiting attributes twice issue
- Fix visitor initial call to visit() instead of accept()
- Improve validation

Signed-off-by: Christoph Kleine <kleinech.github@gmail.com>
  • Loading branch information
kleinech committed Dec 8, 2017
1 parent cdab370 commit fca3377
Show file tree
Hide file tree
Showing 76 changed files with 4,804 additions and 4,382 deletions.
5 changes: 5 additions & 0 deletions docs/dev/CodeHeaders.md
Expand Up @@ -22,6 +22,11 @@ This file explains how to create and maintain copyright headers in source files.

See also <https://www.eclipse.org/projects/handbook/#ip-copyright-headers>.

## Regex
```
\/[\*]*\n \* Copyright \(c\) \d\d\d\d Contributors to the Eclipse Foundation\n \*[ ]*\n \* See the NOTICE file\(s\) distributed with this work for additional\n \* information regarding copyright ownership.\n \*[ ]*\n \* This program and the accompanying materials are made available under the\n \* terms of the Eclipse Public License 2.0 which is available at\n \* http:\/\/www\.eclipse\.org\/legal\/epl-2\.0, or the Apache Software License 2\.0\n \* which is available at https:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0\.\n \*[ ]*\n \* SPDX-License-Identifier: EPL-2\.0 OR Apache-2\.0\n [\*]*\/
```

## Full information

Full information is available at: http://www.eclipse.org/legal/copyrightandlicensenotice.php
Expand Down
Expand Up @@ -200,7 +200,6 @@ public R visit(TNodeTemplate node, P parameter) {
@Override
public R visit(TNodeType node, P parameter) {
return reduce(Stream.of(
visitElement(node.getAttributes(), parameter, "attributes"),
visitMapElement(node.getRequirements(), parameter, "requirements"),
visitElement(node.getInterfaces(), parameter, "interfaces"),
visitElement(node.getArtifacts(), parameter, "artifacts")
Expand Down

0 comments on commit fca3377

Please sign in to comment.