Skip to content

Commit

Permalink
Remove unused SuppresWarnings
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Pupier <[email protected]>
  • Loading branch information
apupier authored and lburgazzoli committed Jul 15, 2019
1 parent 2a88332 commit a2f0b60
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public List<String> getSupportedLanguages() {
return Collections.singletonList("yaml");
}

@SuppressWarnings("uncheked")
@Override
public RouteBuilder load(CamelContext camelContext, Source source) throws Exception {
return builder(URIResolver.resolve(camelContext, source));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,12 @@ public final class Definitions {
private Definitions() {
}

@SuppressWarnings("unchecked")
public static Map<String, Class<? extends DataFormatDefinition>> dataFormatDefinition() {
Map<String, Class<? extends DataFormatDefinition>> definitions = loadDefinitionFromJaxbIndex("org.apache.camel.model.dataformat");

return Collections.unmodifiableMap(definitions);
}

@SuppressWarnings("unchecked")
public static Map<String, Class<? extends ExpressionDefinition>> expressionDefinition() {
Map<String, Class<? extends ExpressionDefinition>> definitions = loadDefinitionFromJaxbIndex("org.apache.camel.model.language");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ private boolean isHttpMethodAllowed(HttpRequest request, String method) {
return getHandler(request, method) != null;
}

@SuppressWarnings("unchecked")
private HttpServerChannelHandler getHandler(HttpRequest request, String method) {
HttpServerChannelHandler answer = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public KnativeServiceDefinition lookupServiceOrDefault(Knative.Type type, String
//
// ************************

@SuppressWarnings("unchecked")
private Optional<KnativeServiceDefinition> lookup(Knative.Type type, String name) {
final String contextPath = StringHelper.after(name, "/");
final String serviceName = (contextPath == null) ? name : StringHelper.before(name, "/");
Expand Down Expand Up @@ -177,7 +176,6 @@ public static KnativeEnvironment mandatoryLoadFromResource(CamelContext context,
//
// ************************

@SuppressWarnings("unchecked")
public static final class KnativeServiceDefinition extends DefaultServiceDefinition {
@JsonCreator
public KnativeServiceDefinition(
Expand Down

0 comments on commit a2f0b60

Please sign in to comment.